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