Commit ccb86990 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 3ba48e6a a5443b44
...@@ -245,14 +245,13 @@ Page({ ...@@ -245,14 +245,13 @@ Page({
}) })
}, },
bindInput(e) { bindInput(e) {
console.log(e)
const { const {
item: { item: {
key, key,
} }
} = e.currentTarget.dataset } = e.currentTarget.dataset
this.setData({ this.setData({
[`formData.${key}`]: e.detail.value [`formData.${key}`]: e.detail.value.replace(/\s/g, '')
}) })
this.check() this.check()
}, },
......
...@@ -198,7 +198,9 @@ Page({ ...@@ -198,7 +198,9 @@ Page({
contactPhone: val.receiveMobile, contactPhone: val.receiveMobile,
contactAddress: `${val.provinceName}${val.cityName}${val.countyName}${val.address}` contactAddress: `${val.provinceName}${val.cityName}${val.countyName}${val.address}`
} }
} else { }
})
if (!Object.keys(obj)?.length) {
let data = res[0] let data = res[0]
obj = { obj = {
...data, ...data,
...@@ -207,7 +209,6 @@ Page({ ...@@ -207,7 +209,6 @@ Page({
contactAddress: `${data.provinceName}${data.cityName}${data.countyName}${data.address}` contactAddress: `${data.provinceName}${data.cityName}${data.countyName}${data.address}`
} }
} }
})
this.setData({ this.setData({
contactInfo: obj, contactInfo: obj,
isDefault: obj?.isDefault == 1, isDefault: obj?.isDefault == 1,
......
// packageIndex/pages/integral/rule/rule.js // packageIndex/pages/integral/rule/rule.js
import {
systemApi
} from '~/api/index'
Page({ Page({
/** /**
...@@ -117,8 +120,9 @@ Page({ ...@@ -117,8 +120,9 @@ Page({
goMall() { goMall() {
wx.p.router.reLaunch('/pages/tab/index/index') wx.p.router.reLaunch('/pages/tab/index/index')
}, },
policyDetail() { async policyDetail() {
wx.p.router.jumpH5(`https://img01.glsx.com.cn/weapp/resource/miniprogram/points-mall/html/policy.html`) let v = await systemApi.getImageVersion()
wx.p.router.jumpH5(`https://img01.glsx.com.cn/weapp/resource/miniprogram/points-mall/html/policy.html?v=${v}`)
}, },
bindButton(e) { bindButton(e) {
let { let {
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
</view> </view>
<view class="tax-container"></view> <view class="tax-container"></view>
<view class="recommend-container"> <view class="recommend-container">
<block wx:if="{{goodsList.length}}">
<view class="recommend-title">以下为根据您此次的提现积分推荐的积分商品</view> <view class="recommend-title">以下为根据您此次的提现积分推荐的积分商品</view>
<view class="goods-box" wx:if="{{goodsList.length}}"> <view class="goods-box" wx:if="{{goodsList.length}}">
...@@ -41,6 +42,7 @@ ...@@ -41,6 +42,7 @@
</view> </view>
<view class="suggest">若以上没有心仪商品,您可以点击<text>“去商城”</text>一键跳转积分商城选购更多商品</view> <view class="suggest">若以上没有心仪商品,您可以点击<text>“去商城”</text>一键跳转积分商城选购更多商品</view>
</block>
<view class="suggest">若您仍然想提现,请点击<text>“继续提现”</text>按钮提交提现申请。</view> <view class="suggest">若您仍然想提现,请点击<text>“继续提现”</text>按钮提交提现申请。</view>
<view class="btns flex_scb"> <view class="btns flex_scb">
<view class="btn-text" bind:tap="goMall">去商城</view> <view class="btn-text" bind:tap="goMall">去商城</view>
......
...@@ -46,7 +46,7 @@ Page({ ...@@ -46,7 +46,7 @@ Page({
// }) // })
}, },
goAgreement() { goAgreement() {
wx.p.router.jumpH5('https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/hmd/privacy.html', true) wx.p.router.jumpH5('https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/hmd/privacy.html', true)
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
......
...@@ -43,7 +43,7 @@ Page({ ...@@ -43,7 +43,7 @@ Page({
const { const {
name name
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.p.router.jumpH5(`https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/hmd/${name}.html`, true) wx.p.router.jumpH5(`https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/hmd/${name}.html`, true)
}, },
async onLoad() { async onLoad() {
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
......
import homeApi from '~/api/module/home.js' import homeApi from '~/api/module/home.js'
import commonApi from '~/api/module/common.js' import commonApi from '~/api/module/common.js'
import cartApi from '~/api/module/cart.js' import {
systemApi
} from '~/api/index'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -230,8 +232,9 @@ Page({ ...@@ -230,8 +232,9 @@ Page({
wx.p.router.go('/packageIndex/pages/integral/index/index') wx.p.router.go('/packageIndex/pages/integral/index/index')
}, },
// 查看公告政策详情 // 查看公告政策详情
policyDetail() { async policyDetail() {
wx.p.router.jumpH5(`https://img01.glsx.com.cn/weapp/resource/miniprogram/points-mall/html/policy.html`) let v = await systemApi.getImageVersion()
wx.p.router.jumpH5(`https://img01.glsx.com.cn/weapp/resource/miniprogram/points-mall/html/policy.html?v=${v}`)
}, },
// 跳转专场 // 跳转专场
handleSpecialSale(e) { handleSpecialSale(e) {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<image src="{{userInfo.headImgUrl}}" /> <image src="{{userInfo.headImgUrl}}" />
</block> </block>
<block wx:else> <block wx:else>
<glsx-image webp src="/mine/default-avatar.png"></glsx-image> <glsx-image webp src="/mine/avatar.png"></glsx-image>
</block> </block>
</view> </view>
<view class="info auth"> <view class="info auth">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!