修改充值后内容不刷新的问题,修改部分接口传参空值的问题,调整接口地址,,正在做分页

This commit is contained in:
2024-07-24 17:33:37 +08:00
parent 526e775cd8
commit 42412cb4ff
17 changed files with 281 additions and 21 deletions

View File

@@ -23,6 +23,7 @@ Page({
*/
onLoad(options) {
const { canBack } = options
console.log('cnaback', canBack)
if (canBack === 'false') {
this.setData({ canBack: false })
}

View File

@@ -5,13 +5,10 @@
<van-tab title="扫码绑定">
<view class="codeContent">
<view class="text">
您可以联系贵司在系统中预留的手机号联系人
点击下方扫一扫,扫描管理员二维码直接绑定。
</view>
<view class="text">
登录本系统-我的-二维码
</view>
<view class="text">
使用微信扫一扫,直接绑定
说明:系统预留手机号联系人为本系统管理员,其它人员可通过扫描管理员二维码进行绑定。
</view>
<view class="scan">
<van-button type="info" block bind:click="scan"> 去扫码 </van-button>

View File

@@ -276,9 +276,11 @@ Page({
}
if (!data?.length) {
alertInfo("尚无信息")
wx.redirectTo({
url: '/pages/handleLogin/index?back=false',
})
setTimeout(() => {
wx.redirectTo({
url: '/pages/handleLogin/index?back=false',
})
}, 500)
return;
}
const [firstPark = {}] = data;
@@ -336,6 +338,7 @@ Page({
alertInfo(message)
return;
}
const that = this;
wx.requestPayment({
timeStamp: data?.time,
nonceStr: data?.nonceStr,

View File

@@ -69,7 +69,7 @@ Page({
this.noPermission()
return;
}
alertSuccess("登录成功")
alertSuccess("注册成功")
const { token, ...user } = data
wx.setStorageSync('user', user)
wx.setStorageSync('token', data?.token)

View File

@@ -43,9 +43,10 @@ Component({
})
},
async setAdmin(e) {
const { user, tenement } = e.currentTarget.dataset;
const { user } = e.currentTarget.dataset;
const tenement = wx.getStorageSync('tenement');
await wxModal({ content: `你的管理员身份将转交给${user.name}` })
const { code, message } = await approveUser({ userId: user.id, type: 2, tenement })
const { code, message } = await approveUser({ userId: user.id, type: 2, tenement: tenement?.id })
if (code !== OK) {
alertInfo(message)
return;
@@ -57,9 +58,10 @@ Component({
alertSuccess("转交成功")
},
async remove(e) {
const { user, tenement } = e.currentTarget.dataset;
const { user } = e.currentTarget.dataset;
const tenement = wx.getStorageSync('tenement');
await wxModal({ content: `将移除${user.name}` })
const { code, message } = await removeUser(user.id, tenement)
const { code, message } = await removeUser(user.id, tenement?.id)
if (code !== OK) {
alertInfo(message)
return;

View File

@@ -2,7 +2,7 @@
<scrollPageWrapper>
<navigator title="常见问题" canBack="{{true}}" />
<view class="content">
<view wx:for="{{questions}}" list-item>
<view wx:for="{{questions}}" wx:key="index">
<view class="question"> {{index + 1}}、 {{ item.name }} </view>
<view class="answer"> {{ item.content }} </view>
</view>

View File

@@ -3,7 +3,6 @@
flex: 1;
padding: 16rpx 24rpx 20rpx;
box-sizing: border-box;
display: flex;
}
.question {