diff --git a/App.vue b/App.vue index 8bd670e..77fd51d 100644 --- a/App.vue +++ b/App.vue @@ -1,4 +1,5 @@ - + + .jsq{ + border: none !important; + font-size: 14px; + font-weight: 400; + color: #0078FF; + } + .anniu{ + width: 150px; + height: 40px; + border-radius: 50px; + display: flex; + align-items: center; + justify-content: center; + color: white; + background: #0D2E8D; + color: #FFFFFF; + margin: 0 auto; + } + .cont-popup{ + height: 250px; + width: 300px; + background-color: #FFFFFF; + box-sizing: border-box; + padding: 15px; + border-radius: 10px; + } + .popup-title{ + width: 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + font-weight: bold; + color: #0D2E8D; + } + .dix{ + width: 100%; + display: flex; + align-items: center; + justify-content: space-between; + margin: 20px 0px; + font-size: 18px; + font-weight: bold; + } + .lqiu{ + width: 15px; + height: 15px; + border-radius: 50%; + border: 1px solid #0D2E8D; + background: #0D2E8D; + color: white; + display: flex; + align-items: center; + justify-content: center; + } + .qiu{ + width: 15px; + height: 15px; + border-radius: 50%; + border: 1px solid #E8E8E8; + } + button { + border: none !important; + background: none !important; + margin: 0px; + display: block; + } + button:focus { + color: #0078FF; + outline: none; + box-shadow: none; + } + .content{ + box-sizing: border-box; + padding-top: 1px; + background-image: url('http://www.nuoyunr.com/lananRsc/jdc-bj.png'); + + background-size: cover; + width: 100%; + height: calc(100vh); + } + .top{ + box-sizing: border-box; + padding: 0px 27px; + padding-top: 100px; + + + // background-color:lightseagreen; + + background-position: center; + width: 100%; + // height: 385px; + } + .touxiang{ + width: 88px; + height: 88px; + border-radius: 10px; + background: #D7D7D7; + margin: 0 auto; + margin-bottom: 40px; + overflow: hidden; + image{ + width: 100%; + height: 100%; + } + } + .twotap{ + width: 100%; + display: flex; + align-items: center; + view{ + font-size: 15px; + font-family: Microsoft YaHei; + font-weight: 400; + color: #666666; + margin-right: 38.5px; + } + } + .blck{ + color: #333333 !important; + font-weight: bold !important; + } + .inputs{ + box-sizing: border-box; + padding: 16px 0px; + display: flex; + align-items: center; + border-bottom: 2px solid #E8E8E8 ; + margin-top: 20px; + } + .wjworb{ + margin-top: 5px; + width: 100%; + display: flex; + font-size: 12px; + color: #0078FF; + justify-content: flex-end; + align-items: center; + + } + .dl{ + width: 90%; + height: 44px; + background-color: #0D2E8D; + border-radius: 50px; + margin: 0 auto; + font-size: 16px; + color: #FFFFFF; + display: flex; + justify-content: center; + align-items: center; + margin-top: 300px; + } + .xiaoannoi{ + width: 90%; + height: 40px; + margin: 0 auto; + border-radius: 50px; + overflow: hidden; + margin-top: 300px; + } + .hging{ + width: 100%; + text-align: center; + font-size: 14px; + font-weight: 400; + color: #636363; + margin-top: 20px; + } + .wx{ + width: 38px; + height: 38px; + overflow: hidden; + box-sizing: border-box; + margin: 0px auto; + margin-top: 20px; + image{ + width: 100%; + height: 100%; + } + } + .hui{ + font-size: 10px; + width: 100%; + text-align: center; + font-weight: 400; + color: #666666; + } + .dbottom{ + width: 100%; + text-align: center; + font-size: 12px; + color: #333333; + margin-top: 40px; + position: fixed; + bottom: 25px; + display: flex; + justify-content: center; + align-items: center; + } + + .lan{ + color: #0D2E8D; + } + .land{ + + font-size: 25px; + font-weight: bold; + color: #0D2E8D; + margin-bottom: 5px; + } + .kuang{ + width: 90%; + margin: 0 auto; + margin-top: 100px; + } + .axquan{ + width: 18px; + height: 18px; + border-radius: 50%; + border: 1px solid #AAAAAA; + margin-right: 5px; + } + .axquanl{ + width: 18px; + height: 18px; + border-radius: 50%; + border: 1px solid #AAAAAA; + margin-right: 5px; + background-color: #0D2E8D; + } + \ No newline at end of file diff --git a/pages/my/my.vue b/pages/my/my.vue index 8e46126..7d61712 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -65,13 +65,16 @@ import VNavigationBar from '@/components/VNavigationBar.vue' import tabBarVue from '@/components/tabBar/tabBar.vue' import request from "@/utils/request"; + import {getToken} from '@/utils/auth.js' export default { components: { tabBarVue, VNavigationBar }, onShow(data) { - this.getServer() + if(getToken()){ + this.getServer() + } }, data() { return { @@ -107,9 +110,17 @@ method: 'get', params:{} }) - this.customInfo = res.data - uni.setStorageSync('customerInfo', JSON.stringify(this.customInfo)) - } + if(!res.data){ + uni.reLaunch({ + url: '/pages/my/register' + }) + + }else{ + this.customInfo = res.data + uni.setStorageSync('customerInfo', JSON.stringify(this.customInfo)) + } + + } } } diff --git a/pages/my/register.vue b/pages/my/register.vue index d9238e1..b36360a 100644 --- a/pages/my/register.vue +++ b/pages/my/register.vue @@ -1,6 +1,12 @@