Commit 28b86238 by 程南

解决冲突

parents 3da8f684 b35d7ec6
...@@ -73,7 +73,8 @@ wxService.page({ ...@@ -73,7 +73,8 @@ wxService.page({
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}) })
wxService.get(`/sale/product/mallCategory/buyer/findCategoryTree`).then(res => { // wxService.get(`/sale/product/mallCategory/buyer/findCategoryTree`).then(res => {
wxService.get(`/sale/product/mallCategory/findCategoryTree`).then(res => {
let { result, data } = res.data let { result, data } = res.data
if (result == 0) { if (result == 0) {
wx.hideLoading(); wx.hideLoading();
......
...@@ -1044,6 +1044,10 @@ wxService.page({ ...@@ -1044,6 +1044,10 @@ wxService.page({
} }
let _this = this; let _this = this;
params.needPayMoney = this.data.orderPrice*10*10;
let url = isSelect ? '/sale/payment/merged/buyer/bill' : '/sale/trade/buyer/bill' let url = isSelect ? '/sale/payment/merged/buyer/bill' : '/sale/trade/buyer/bill'
wxService.post(`${url}`, params).then(res => { wxService.post(`${url}`, params).then(res => {
if (res) { if (res) {
......
...@@ -84,14 +84,15 @@ wxService.page({ ...@@ -84,14 +84,15 @@ wxService.page({
item.canRefundNum = (item.count - item.refundCount) >= 0 ? (item.count - item.refundCount) : 0; item.canRefundNum = (item.count - item.refundCount) >= 0 ? (item.count - item.refundCount) : 0;
sum = sum + item.price * item.count; sum = sum + item.price * item.count;
}); });
if(data.order){
if(data.order.wechatCouponPrice){ if (data.order.wechatCouponPrice) {
data.order.wechatCouponPrice = data.order.wechatCouponPrice/10/10; data.order.wechatCouponPrice = data.order.wechatCouponPrice / 10 / 10;
data.payAmount = (data.payAmount *1) - (data.order.wechatCouponPrice*1) data.payAmount = (data.payAmount * 1) - (data.order.wechatCouponPrice * 1)
} }
if(data.order.postCouponDisCount){ if (data.order.postCouponDisCount) {
data.order.postCouponDisCount = data.order.postCouponDisCount/10/10; data.order.postCouponDisCount = data.order.postCouponDisCount / 10 / 10;
}
} }
......
...@@ -690,9 +690,15 @@ ...@@ -690,9 +690,15 @@
}, },
{ {
"id": -1, "id": -1,
<<<<<<< HEAD
"name": "签到", "name": "签到",
"pathName": "subPackageMarketing/page/pages/sign/sign", "pathName": "subPackageMarketing/page/pages/sign/sign",
"query": "", "query": "",
=======
"name": "支付券信息",
"pathName": "subPackageA/page/pages/payCardInfo/payCardInfo",
"query": "id=710195552385654784",
>>>>>>> mall_dev_7.12.0
"scene": null "scene": null
} }
] ]
......
...@@ -144,7 +144,7 @@ wxService.page({ ...@@ -144,7 +144,7 @@ wxService.page({
let pageNo = this.data.pageNo, let pageNo = this.data.pageNo,
pageSize = this.data.pageSize; pageSize = this.data.pageSize;
// wxService.post(`/sale/product/buyer/listPageByCategoryId?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => { // wxService.post(`/sale/product/buyer/listPageByCategoryId?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => {
wxService.post(`/sale/product/buyer/findCategoryTreeIdByProductList?pageNo=${pageNo}&pageSize=${pageSize}&id=${this.data.form.mallCategoryId}`).then(res => { wxService.post(`/sale/product/mallCategory/listPageProductByMallCategoryIdAndItsSons?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => {
const { result, data } = res.data const { result, data } = res.data
if (result == 0 && data.content) { if (result == 0 && data.content) {
wx.hideLoading() wx.hideLoading()
......
...@@ -64,25 +64,30 @@ wxService.page({ ...@@ -64,25 +64,30 @@ wxService.page({
}, },
//立即兑换优惠券 //立即兑换优惠券
exchange(e) { exchange(e) {
wx.showLoading({
title: '领取中..',
});
let isStart = e.currentTarget.dataset.start; let isStart = e.currentTarget.dataset.start;
const { id } = e.currentTarget.dataset; const { id } = e.currentTarget.dataset;
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
//先判断是不是老的活动 //先判断是不是老的活动
if (!item.couponList) { if (!item.couponList) {
wx.showLoading({
title: '领取中..',
});
this.getCoupon(id, item); this.getCoupon(id, item);
return; return;
} }
if (isStart) { if (isStart) {
wx.showLoading({
title: '领取中..',
});
this.getCoupon(id, item); this.getCoupon(id, item);
} }
//预约 //预约
else { else {
if (!item.isAppointMent){
this.orderCouponActivity(id, item); this.orderCouponActivity(id, item);
} }
}
}, },
//立即领取 //立即领取
getCoupon(id, item) { getCoupon(id, item) {
...@@ -116,6 +121,7 @@ wxService.page({ ...@@ -116,6 +121,7 @@ wxService.page({
}, },
//立即预约 //立即预约
orderCouponActivity(id) { orderCouponActivity(id) {
let self = this;
let baseUserInfo = wx.getStorageSync('_baseUserInfo'); let baseUserInfo = wx.getStorageSync('_baseUserInfo');
wxService.post(`${'/merchant/message/wxSubMsgMapping/getListByParams'}`, { wxService.post(`${'/merchant/message/wxSubMsgMapping/getListByParams'}`, {
scenarioIds: ['usernoticeappointment'], scenarioIds: ['usernoticeappointment'],
...@@ -145,7 +151,13 @@ wxService.page({ ...@@ -145,7 +151,13 @@ wxService.page({
} }
}, },
complete: (res) => { complete: (res) => {
wx.showLoading({
title: '加载中',
})
setTimeout(()=>{
self.initIntegralCouponList();
wx.hideLoading();
},1000)
} }
}) })
}).catch(err => { }).catch(err => {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
data-id="{{item.acvivityId}}" data-id="{{item.acvivityId}}"
data-start="{{item.isStart}}" data-start="{{item.isStart}}"
data-item="{{item}}" data-item="{{item}}"
bindtap='exchange'>{{item.isStart ? '立即领取': '立即预约'}}</view> bindtap='exchange'>{{item.isStart ? '立即领取': (item.isAppointMent?'已预约':'立即预约')}}</view>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -133,10 +133,14 @@ wxService.page({ ...@@ -133,10 +133,14 @@ wxService.page({
if (tempids.length > 0) { if (tempids.length > 0) {
let status = res[tempids[0]]; let status = res[tempids[0]];
if (status == 'accept') { if (status == 'accept') {
this.getACtivityInfo(); this.data.activityInfo.isAppointMent = true;
this.setData({
activityInfo: this.data.activityInfo
},()=>{
wx.showToast({ wx.showToast({
title: '预约成功', title: '预约成功',
}) })
})
} }
} }
}, },
......
...@@ -41,7 +41,7 @@ class='card-info' mode='widthFix'></image> ...@@ -41,7 +41,7 @@ class='card-info' mode='widthFix'></image>
<view class='rg-button positionRe {{checked ? "" : "disabled"}}' wx:if="{{!userHasBaseInfo}}"> <view class='rg-button positionRe {{checked ? "" : "disabled"}}' wx:if="{{!userHasBaseInfo}}">
<button class="positionAbs clear-btn" <button class="positionAbs clear-btn"
bindgetuserinfo="_getUserInfo" open-type='getUserInfo'></button> bindgetuserinfo="_getUserInfo" open-type='getUserInfo'></button>
{{buyType == 1 ? "立即购买" : "立即兑换"}} 立即购买
</view> </view>
<view class='rg-button {{checked ? "" : "disabled"}}' <view class='rg-button {{checked ? "" : "disabled"}}'
wx:if="{{userHasBaseInfo}}" bindtap='onTapBuy'>立即购买</view> wx:if="{{userHasBaseInfo}}" bindtap='onTapBuy'>立即购买</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment