修改充值后内容不刷新的问题,修改部分接口传参空值的问题,调整接口地址,,正在做分页
This commit is contained in:
@@ -23,6 +23,7 @@ Page({
|
||||
*/
|
||||
onLoad(options) {
|
||||
const { canBack } = options
|
||||
console.log('cnaback', canBack)
|
||||
if (canBack === 'false') {
|
||||
this.setData({ canBack: false })
|
||||
}
|
||||
|
@@ -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>
|
||||
|
@@ -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,
|
||||
|
@@ -69,7 +69,7 @@ Page({
|
||||
this.noPermission()
|
||||
return;
|
||||
}
|
||||
alertSuccess("登录成功")
|
||||
alertSuccess("注册成功")
|
||||
const { token, ...user } = data
|
||||
wx.setStorageSync('user', user)
|
||||
wx.setStorageSync('token', data?.token)
|
||||
|
@@ -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;
|
||||
|
@@ -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>
|
||||
|
@@ -3,7 +3,6 @@
|
||||
flex: 1;
|
||||
padding: 16rpx 24rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.question {
|
||||
|
Reference in New Issue
Block a user