优化问题
This commit is contained in:
parent
7a3f337eb8
commit
2f182c9b39
4
App.vue
4
App.vue
|
|
@ -25,9 +25,9 @@
|
|||
success: (data) => {
|
||||
uni.getUserInfo({
|
||||
provider: 'weixin',
|
||||
success: (infoRes) => {
|
||||
success: async (infoRes) => {
|
||||
uni.cache.set('weixincode', data.code);
|
||||
let res = this.api.userwxlogin({
|
||||
let res = await this.api.userwxlogin({
|
||||
code: uni.cache.get('weixincode'), //临时登录凭证
|
||||
rawData: infoRes.rawData,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<text class="towcontentitemtowetext">VIP{{userInfo.code || '无'}}</text>
|
||||
</view>
|
||||
<view class="towcontentitevip">
|
||||
VIP{{userInfo.isVip}}
|
||||
VIP{{userInfo.isVip?userInfo.isVip:''}}
|
||||
</view>
|
||||
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/erweima.png" class="imgStyle" mode=""
|
||||
@click=""></image>
|
||||
|
|
@ -26,6 +26,9 @@
|
|||
data() {
|
||||
return {}
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.userInfo,'调试1113')
|
||||
},
|
||||
methods: {
|
||||
clickEvent() {
|
||||
uni.navigateTo({
|
||||
|
|
|
|||
|
|
@ -27,9 +27,10 @@
|
|||
<view class="onecontentboxitemtext">
|
||||
手机号
|
||||
</view>
|
||||
<button class="onecontentboxiteminput" style="background-color: #fff;border: none;!important"
|
||||
open-type="getPhoneNumber" @getphonenumber="getPhone">{{phonetitle}} </button>
|
||||
<!-- <input class="onecontentboxiteminput" disabled v-model="userInfo.telephone" type="text"
|
||||
<button class="onecontentboxiteminput buttonstyle"
|
||||
style="background-color: #fff;border: none;!important" open-type="getPhoneNumber"
|
||||
@getphonenumber="getPhone">{{phonetitle}} </button>
|
||||
<!-- <input class="onecontentboxiteminput" disabled v-model="phonetitle" type="text"
|
||||
placeholder="请输入手机号"> -->
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -233,6 +234,12 @@
|
|||
color: #999999;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.buttonstyle {
|
||||
.buttonstyle:after {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -261,4 +268,9 @@
|
|||
border-radius: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.buttonstyle:after {
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue