Commit d7a0067d by 李伟康

修复

1 parent 4dddff07
...@@ -123,4 +123,11 @@ module.exports = { ...@@ -123,4 +123,11 @@ module.exports = {
...data ...data
}) })
}, },
//取消付款
cancelPay(orderCode) {
return api.fetch('scrm.api.shopmall.weapp.order.cancelPay',{
orderCode
})
},
} }
\ No newline at end of file \ No newline at end of file
...@@ -70,13 +70,13 @@ Page({ ...@@ -70,13 +70,13 @@ Page({
orderCode: memberInfo.orderCode, orderCode: memberInfo.orderCode,
orderSource: 3 orderSource: 3
} }
wx.$Track.setTrack( // wx.$Track.setTrack(
{ // {
...para, // ...para,
type: '购买权益卡' // type: '购买权益卡'
}, // },
7 // 7
) // )
wx.p.api.equityApi.buyMemberCard(para).then(res => { wx.p.api.equityApi.buyMemberCard(para).then(res => {
wx.hideLoading() wx.hideLoading()
this.handlePay(res) this.handlePay(res)
......
...@@ -138,7 +138,7 @@ Page({ ...@@ -138,7 +138,7 @@ Page({
sum: sum, sum: sum,
expressFee, expressFee,
goodsNumber, goodsNumber,
money money: money < 0 ? 0 : money
}) })
}, },
//获取最大优惠券 //获取最大优惠券
...@@ -363,11 +363,11 @@ Page({ ...@@ -363,11 +363,11 @@ Page({
payParams payParams
}) => { }) => {
wx.hideLoading() wx.hideLoading()
wx.$Track.setTrack({ // wx.$Track.setTrack({
goodsList // goodsList
}, // },
7 // 7
) // )
if (needPay) { if (needPay) {
let params = { let params = {
nonceStr: payParams.nonceStr, nonceStr: payParams.nonceStr,
......
...@@ -171,12 +171,12 @@ Page({ ...@@ -171,12 +171,12 @@ Page({
} }
wx.p.api.shopmallApi.delShoppingcart(para).then(res => { wx.p.api.shopmallApi.delShoppingcart(para).then(res => {
wx.p.wxApi.showToast('删除成功') wx.p.wxApi.showToast('删除成功')
wx.$Track.setTrack({ // wx.$Track.setTrack({
id, // id,
type: '购物车移除商品' // type: '购物车移除商品'
}, // },
7 // 7
) // )
setTimeout(() => { setTimeout(() => {
this.getShoppingcartList() this.getShoppingcartList()
}, 1.5 * 1000) }, 1.5 * 1000)
......
...@@ -164,6 +164,15 @@ ...@@ -164,6 +164,15 @@
background: var(--btnColor); background: var(--btnColor);
border-radius: var(--borderRadius); border-radius: var(--borderRadius);
font-weight: 500; font-weight: 500;
padding: 0 !important;
margin: 0 !important;
font-size: 28rpx;
&[disabled]:not([type]) {
background: #CCCED1 !important;
border-color: #CCCED1 !important;
color: #fff !important;
box-shadow: none;
}
} }
.goods-action .total { .goods-action .total {
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<text class="unit">¥</text>{{sum||0}} <text class="unit">¥</text>{{sum||0}}
</view> </view>
</view> </view>
<view class="btn text-center" bindtap="checkOut">结算({{count||0}})</view> <button class="btn text-center" bindtap="checkOut" disabled="{{count<1}}">结算({{count||0}})</button>
</view> </view>
</goods-action> </goods-action>
</block> </block>
\ No newline at end of file \ No newline at end of file
...@@ -16,6 +16,7 @@ Page({ ...@@ -16,6 +16,7 @@ Page({
} }
}, },
onLoad: function (options) { onLoad: function (options) {
console.log(options,'==========')
if (options.id) { if (options.id) {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: '编辑收货地址' title: '编辑收货地址'
...@@ -49,10 +50,6 @@ Page({ ...@@ -49,10 +50,6 @@ Page({
'userObj.areaId': ad_info.adcode 'userObj.areaId': ad_info.adcode
}) })
}, },
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) { },
/**获取当前位置 */ /**获取当前位置 */
getLocation() { getLocation() {
let { currentAddress } = this.data let { currentAddress } = this.data
......
...@@ -18,7 +18,9 @@ Page({ ...@@ -18,7 +18,9 @@ Page({
let url = '/packageMine/pages/order/detail/detail' let url = '/packageMine/pages/order/detail/detail'
// if (orderStatus > 5 && orderStatus != 14 && orderStatus != 13&&orderStatus != 15) url = 'afterSaleDetail' // if (orderStatus > 5 && orderStatus != 14 && orderStatus != 13&&orderStatus != 15) url = 'afterSaleDetail'
wx.p.router.go(url, item) wx.p.router.go(url, {
orderCode: item
})
// wx.navigateTo({ // wx.navigateTo({
// url: '/packageMine/pages/order/detail/detail?orderCode=S2112081509592138' // url: '/packageMine/pages/order/detail/detail?orderCode=S2112081509592138'
// }) // })
......
...@@ -34,16 +34,11 @@ Page({ ...@@ -34,16 +34,11 @@ Page({
3: "已收货", 3: "已收货",
}, },
}, },
onRoute(orderCode) {
if (Object.keys(orderCode).length !== 0) {
console.log(orderCode);
this.getOrderDetail(orderCode);
}
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
console.log(options,'=======')
if (options && options.orderCode) { if (options && options.orderCode) {
let orderCode = options.orderCode; let orderCode = options.orderCode;
this.getOrderDetail(orderCode); this.getOrderDetail(orderCode);
......
...@@ -107,7 +107,6 @@ page {} ...@@ -107,7 +107,6 @@ page {}
border-color: #CCCED1 !important; border-color: #CCCED1 !important;
color: #fff !important; color: #fff !important;
box-shadow: none; box-shadow: none;
} }
.wx-auth-button[disabled]:not([type])::after { .wx-auth-button[disabled]:not([type])::after {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!