修改电量查询分页内容,兼容开票时用户未填写发票信息的问题

This commit is contained in:
2024-08-06 17:31:26 +08:00
parent f1358c2315
commit cf7756dd5c
917 changed files with 22 additions and 22876 deletions

View File

@@ -33,7 +33,7 @@ Page({
alertInfo(message)
return;
}
if (!data?.tenement?.id || !data?.name) {
if (!data?.tenement?.id || !data?.name || !data?.phone || !data?.email) {
const user = wx.getStorageSync('user')
if (user.isAdmin) {
wx.showModal({

View File

@@ -34,16 +34,16 @@ Page({
},
onLoad() {
this.getPrivacy();
this.setUser();
// this.setUser();
// if (user.status === 0 || user.status === 2) {
// wx.redirectTo({
// url: '/pages/waitApprove/index',
// })
// return
// }
wx.switchTab({
url: '/pages/home/index',
})
// wx.switchTab({
// url: '/pages/home/index',
// })
},
async getPrivacy() {
const { code, message, data } = await getPrivaciList()

View File

@@ -6,15 +6,6 @@
<view class="logoBtn">
<van-button type="info" block disabled="{{!agree}}" open-type="getPhoneNumber" bind:getphonenumber="getPhoneNumber">手机号快速登录</van-button>
</view>
<view class="agreement">
<view class="checkbox">
<van-checkbox value="{{ agree }}" bind:change="onChangeAgree"></van-checkbox>

View File

@@ -50,19 +50,19 @@ Page({
// 开发版
case 'develop':
wx.setClipboardData({
data: `http://1.92.72.5:8080/recharge-print/?id=${detail.serialNumber}`,
data: `http://1.92.72.5:8080/recharge-print/?id=${detail.id}`,
})
break;
// 体验版
case 'trial':
wx.setClipboardData({
data: `http://1.92.72.5:8080/recharge-print/?id=${detail.serialNumber}`,
data: `http://1.92.72.5:8080/recharge-print/?id=${detail.id}`,
})
break;
// 正式版
case 'release':
wx.setClipboardData({
data: `https://zgd.hbhcbn.com/recharge-print/?id=${detail.serialNumber}`,
data: `https://zgd.hbhcbn.com/recharge-print/?id=${detail.id}`,
})
break;
}