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