Commit 9baf52ca 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 f29f06d9 49aba43c
......@@ -51,7 +51,7 @@ Page({
orderGoodsList.push({
goodsId: val.id || val.goodsId, // 商品详情下单是id ,购物车结算是goodsId
sellQty: val?.sellQty,
specificationData: val?.specificationData,
specificationData: val?.specificationData || undefined,
goodsSkuCode: val.goodsSkuCode,
goodsSource: val.goodsSource
})
......
......@@ -29,18 +29,13 @@ Page({
},
// 获取商品数据
getGoodsList() {
let {
pageNum,
goodsList,
goodsSkuName,
frontendCategoryId,
activeTab
} = this.data
let userInfo = wx.p.storage.get('userInfo')
let params = {
pageNum: 2,
pageSize: 4,
canExchange: 1,
businessType:1,
staffPhone: userInfo?.phone,
staffPlatform: userInfo?.channelSource,
merchantNo: userInfo?.merchantId
......
......@@ -50,7 +50,8 @@ Page({
},
choose(e) {
let {
index
index,
item
} = e.currentTarget.dataset
let {
goodsList
......@@ -59,6 +60,7 @@ Page({
this.hide(e)
return
}
if (item.flag) return
this.setData({
[`goodsList[${index}].active`]: !goodsList[index].active
})
......
......@@ -17,7 +17,7 @@
<view class="list">
<view class="item {{item.showDel?'touch-move-active':''}}" data-index="{{index}}" data-ind="{{ind}}"
bindtouchstart="start" bindtouchmove="move">
<view class="content" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}">
<view class="content" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{item}}">
<view class="icon" wx:if="{{!item.flag}}">
<icon type="{{item.active?'success':'circle'}}" color="{{item.active?'#FB8A32':'#B1B1B3'}}" size="20">
</icon>
......
......@@ -39,22 +39,25 @@ Page({
// this.getMemberCardData();
},
searchScoreSummaryData() {
const { phone, channelSource } = this.data.userInfo;
wx.p.api.withdrawalApi
.searchScoreSummary({
staffPhone: phone,
channelSource, //1.阳光激励 2.续保用户 3.管理层
})
.then((res) => {
if (res.code == 0) {
this.setData({
scoreSummary: res.data,
});
}
})
.catch((err) => {
wx.p.wxApi.showToast(JSON.stringify(err));
});
const {
phone,
channelSource,
merchantId
} = this.data.userInfo
wx.p.api.withdrawalApi.searchScoreSummary({
staffPhone:phone,
merchantId,
channelSource //1.阳光激励 2.续保用户 3.管理层
}).then(res => {
if (res.code == 0) {
this.setData({
scoreSummary: res.data
})
}
}).catch((err) => {
wx.p.wxApi.showToast(JSON.stringify(err))
})
},
go(e) {
console.log(e);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!