Commit 3c3b773e by liimin

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas/mini-program/…

…points-mall into SAAS+V4.56.0-0908
2 parents f0dc0e8b cb63530c
......@@ -28,7 +28,7 @@
</view>
<view class="input-box">
<view class="input-label">手机号</view>
<input bindinput="input" data-target="phone" maxlength="11" value="{{walletObj.phone}}" type="text" placeholder="请输入"/>
<input bindinput="input" data-target="phone" maxlength="11" disabled value="{{walletObj.phone}}" type="text" placeholder="请输入"/>
</view>
<view class="wallet-btn" bindtap="confirm">一键开通</view>
</view>
......
......@@ -147,7 +147,7 @@ Page({
})
}
}).catcn((err) => {
}).catch((err) => {
wx.p.wxApi.showToast(JSON.stringify(err))
})
},
......
......@@ -77,7 +77,7 @@ Page({
checkbankConfig() {
let {
bankInfo
} = this.data, {
} = this.data, {
merchantId,
merchantName,
channelSource
......@@ -146,7 +146,7 @@ Page({
}
})
},
goBank(){
goBank() {
let {
score
} = this.data;
......@@ -236,15 +236,23 @@ Page({
price = '0.'
}
}
// 4. 处理多个小数点的情况,只保留第一个小数点
const dotIndex = price.indexOf('.')
if (dotIndex !== -1) {
const beforeDot = price.substring(0, dotIndex)
const afterDot = price.substring(dotIndex + 1).replace(/\./g, '')
price = beforeDot + '.' + afterDot
}
result = price
// 4.判断最大值和最小值
if (price) {
price = Number(price)
max = Number(max)
if ((max||max===0) && price > max) {
if ((max || max === 0) && price > max) {
result = max
}
if ((min||min===0) && price < min) {
if ((min || min === 0) && price < min) {
result = min
}
}
......
......@@ -13,7 +13,9 @@
background-size: 100%;
background-repeat: no-repeat;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/integral/bg.png');
.nav-wrap{
position: relative;
}
.bar-text {
font-weight: 500;
font-size: 34rpx;
......
......@@ -32,8 +32,8 @@ Page({
let userInfo = wx.p.storage.get('userInfo')
let params = {
pageNum: 2,
pageSize: 4,
pageNum: 1,
pageSize: 8,
canExchange: 1,
businessType:1,
staffPhone: userInfo?.phone,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!