feat: 修改门店手机号保留一天和核销码显示逻辑,优化位置授权获取

This commit is contained in:
mkm 2024-07-22 17:59:27 +08:00
parent 91bdf53348
commit 20013124b9
4 changed files with 19 additions and 14 deletions

View File

@ -422,7 +422,7 @@
//
const setPhoneOneDay = () => {
if (uni.getStorageSync('VIP_PHONE')) return;
// if (uni.getStorageSync('VIP_PHONE')) return;
const currentDate = new Date();
const nextDay = new Date(currentDate);
nextDay.setDate(currentDate.getDate() + 1);

View File

@ -105,7 +105,7 @@
</view>
<view class="qr_code" v-if="datas.paid == 1 && datas.status == 1">
<up-image :src="datas.verify_img" width="404rpx" height="60rpx"></up-image>
<up-image :src="datas.verify_base64" width="404rpx" height="60rpx"></up-image>
<view style="font-weight: bold;color: #333;font-size: 26;margin-top: 20rpx;">
核销码 {{datas.verify_code}}
</view>

View File

@ -107,7 +107,7 @@
<view class="mask" v-if='showVerifyPop' @click="showVerifyPop=false">
<view
style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);background-color: white;padding: 20rpx;">
<up-image :src="orderData.verify_img" width="710rpx" height="105rpx"></up-image>
<up-image :src="orderData.verify_base64" width="710rpx" height="105rpx"></up-image>
<view style="font-weight: bold;color: #333;font-size: 26;text-align: center;margin-top: 20rpx;">
核销码 {{orderData.verify_code}}
</view>

View File

@ -98,7 +98,7 @@
<view class="row" v-if="[4,5,6].includes(userInfo.user_ship)" style="color: red;">
<view>优惠减免</view>
<view>
<text>-¥</text>{{ c_price(orderInfo.frozen_money, 0) }}<text>.{{ c_price(orderInfo.frozen_money, 1) }}</text>
<text>¥</text>{{ c_price(orderInfo.frozen_money, 0) }}<text>.{{ c_price(orderInfo.frozen_money, 1) }}</text>
</view>
</view>
<view class="row" v-if="userInfo.user_ship==1 ">
@ -562,20 +562,23 @@
}
onLoad(options => {
if (uni.getStorageSync('location')) {
try {
location = JSON.parse(uni.getStorageSync('location'))
checkOrder();
} catch (e) {
// if (uni.getStorageSync('location')) {
// try {
// location = JSON.parse(uni.getStorageSync('location'))
// checkOrder();
// } catch (e) {
// getLocation()
// }
// } else {
getLocation()
}
} else {
getLocation()
}
// }
})
const getLocation = () => {
// #ifdef H5
userLocationfalse()
// #endif
// #ifdef MP-WEIXIN
uni.getSetting({
success(res) {
if (res.authSetting["scope.userLocation"] == false) {
@ -585,6 +588,8 @@
}
}
})
// #endif
}
const LocationShowOpen = () => {
LocationShow.value = true;