Commit efdb8520 authored by jiangjiantao's avatar jiangjiantao

bugfix

parent a083e71d
...@@ -339,6 +339,7 @@ ...@@ -339,6 +339,7 @@
font-weight: 400; font-weight: 400;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
line-height: 18rpx; line-height: 18rpx;
margin-left: 15rpx;
} }
/* 付款金额 */ /* 付款金额 */
...@@ -348,6 +349,7 @@ ...@@ -348,6 +349,7 @@
font-family: AlibabaPuHuiTiB; font-family: AlibabaPuHuiTiB;
color: rgba(0, 122, 255, 1); color: rgba(0, 122, 255, 1);
line-height: 49px; line-height: 49px;
margin-left: 15rpx;
} }
/* 去付款 */ /* 去付款 */
......
...@@ -235,6 +235,25 @@ Page({ ...@@ -235,6 +235,25 @@ Page({
}, },
//回到首页
goHome(){
let context = this;
my.ix.sendBuddyMessage({
target: getApp().globalData.frontScreenAppId,
data: {
action: ACTION_GO_HOME,
data: null
},
success: (res) => {
context.goPage('home');
console.log("通知前屏回到首页 成功 ===》" + JSON.stringify(res));
},
fail: (res) => {
console.log("通知前屏回到首页 失败 ===》 " + JSON.stringify(res));
},
});
},
onShareAppMessage() { onShareAppMessage() {
// 返回自定义分享信息 // 返回自定义分享信息
return { return {
...@@ -578,6 +597,18 @@ Page({ ...@@ -578,6 +597,18 @@ Page({
//跳转到结算等待页 //跳转到结算等待页
goPay(e) { goPay(e) {
//购物车不能为空
if(this.data.goods.length == 0){
my.showToast({
type: 'fail',
content: '请扫描商品',
duration: 3000,
success: () => {
},
});
return
}
var commonRequest = { var commonRequest = {
action: ACTION_GO_BALANCE, action: ACTION_GO_BALANCE,
data: "" data: ""
...@@ -661,7 +692,7 @@ Page({ ...@@ -661,7 +692,7 @@ Page({
}, },
//使用券 //使用券
useCoupon(e) { useCoupon(e) {
this.setData({ couponUseing: true }) // this.setData({ couponUseing: true })
}, },
//发送退款金额.以分为单位 //发送退款金额.以分为单位
......
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