积分商城 添加地址

This commit is contained in:
魏啾
2024-03-28 09:48:52 +08:00
parent 53afc38e76
commit a9b9da0bbf
27 changed files with 2762 additions and 39 deletions

View File

@@ -11,9 +11,11 @@
<view style="width: 36px; height: 36px;border-radius: 10rpx;">
<button open-type="chooseAvatar" @chooseavatar='onChooseAvatar'
style="padding: 0;margin: 0; width: 36px; height: 36px;border-radius: 10rpx;">
<image style="width: 36px; height: 36px;" v-if="userInfo.avatar" :src="userInfo.avatar" mode="aspectFill">
<image style="width: 36px; height: 36px;" v-if="userInfo.avatar" :src="userInfo.avatar"
mode="aspectFill">
</image>
<image style="width: 36px; height: 36px;" v-else src="@/static/avatar.png" mode="aspectFill">
<image style="width: 36px; height: 36px;" v-else src="@/static/avatar.png"
mode="aspectFill">
</image>
</button>
</view>
@@ -68,7 +70,7 @@
footerBanners: [require('@/static/footer_banner1.png')],
shopUser: {},
userInfo: {},
shopInfo:{}
shopInfo: {}
};
},
onLoad() {
@@ -83,7 +85,7 @@
onShow() {
if (uni.cache.get('token')) {
this.loginwxuserInfo()
}else{
} else {
uni.reLaunch({
url: '/pages/login/login'
})
@@ -105,6 +107,7 @@
}
},
scanCodehandle() {
// #ifndef H5
uni.scanCode({
success: (res) => {
let tableCode = this.getQueryString(decodeURIComponent(res.result), 'code')
@@ -113,8 +116,17 @@
tableCode: tableCode,
})
}
},
fail: (err) => {
console.log(err)
}
})
// #endif
// #ifdef H5
uni.pro.navigateTo('order_food/order_food', {
tableCode: '3000103958',
})
// #endif
},
memberindex() {
@@ -128,7 +140,7 @@
}
return null;
},
// / 更换头像
onChooseAvatar(e) {
uni.showLoading({