Commit d7a0067d by 李伟康

修复

1 parent 4dddff07
......@@ -123,4 +123,11 @@ module.exports = {
...data
})
},
//取消付款
cancelPay(orderCode) {
return api.fetch('scrm.api.shopmall.weapp.order.cancelPay',{
orderCode
})
},
}
\ No newline at end of file
......@@ -70,13 +70,13 @@ Page({
orderCode: memberInfo.orderCode,
orderSource: 3
}
wx.$Track.setTrack(
{
...para,
type: '购买权益卡'
},
7
)
// wx.$Track.setTrack(
// {
// ...para,
// type: '购买权益卡'
// },
// 7
// )
wx.p.api.equityApi.buyMemberCard(para).then(res => {
wx.hideLoading()
this.handlePay(res)
......
......@@ -138,7 +138,7 @@ Page({
sum: sum,
expressFee,
goodsNumber,
money
money: money < 0 ? 0 : money
})
},
//获取最大优惠券
......@@ -363,11 +363,11 @@ Page({
payParams
}) => {
wx.hideLoading()
wx.$Track.setTrack({
goodsList
},
7
)
// wx.$Track.setTrack({
// goodsList
// },
// 7
// )
if (needPay) {
let params = {
nonceStr: payParams.nonceStr,
......
......@@ -171,12 +171,12 @@ Page({
}
wx.p.api.shopmallApi.delShoppingcart(para).then(res => {
wx.p.wxApi.showToast('删除成功')
wx.$Track.setTrack({
id,
type: '购物车移除商品'
},
7
)
// wx.$Track.setTrack({
// id,
// type: '购物车移除商品'
// },
// 7
// )
setTimeout(() => {
this.getShoppingcartList()
}, 1.5 * 1000)
......
......@@ -164,6 +164,15 @@
background: var(--btnColor);
border-radius: var(--borderRadius);
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 {
......
......@@ -68,7 +68,7 @@
<text class="unit">¥</text>{{sum||0}}
</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>
</goods-action>
</block>
\ No newline at end of file
......@@ -16,6 +16,7 @@ Page({
}
},
onLoad: function (options) {
console.log(options,'==========')
if (options.id) {
wx.setNavigationBarTitle({
title: '编辑收货地址'
......@@ -49,10 +50,6 @@ Page({
'userObj.areaId': ad_info.adcode
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) { },
/**获取当前位置 */
getLocation() {
let { currentAddress } = this.data
......
......@@ -18,7 +18,9 @@ Page({
let url = '/packageMine/pages/order/detail/detail'
// 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({
// url: '/packageMine/pages/order/detail/detail?orderCode=S2112081509592138'
// })
......
......@@ -34,16 +34,11 @@ Page({
3: "已收货",
},
},
onRoute(orderCode) {
if (Object.keys(orderCode).length !== 0) {
console.log(orderCode);
this.getOrderDetail(orderCode);
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options,'=======')
if (options && options.orderCode) {
let orderCode = options.orderCode;
this.getOrderDetail(orderCode);
......
......@@ -107,7 +107,6 @@ page {}
border-color: #CCCED1 !important;
color: #fff !important;
box-shadow: none;
}
.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!