Commit 2e757813 authored by jiangjiantao's avatar jiangjiantao

bugfixd

parent 3e2adca3
......@@ -35,19 +35,12 @@ Page({
if (res.action == ACTION_GOODS) {
//商品信息同步
let viewGoodsInfo = res.data
if(viewGoodsInfo.goods == null || viewGoodsInfo.goods.length == 0){
my.redirectTo({
url: "/pages/home/home"
});
}else{
//空列表就回到首页
context.setData({
goods: viewGoodsInfo.goods,
totalPrice: viewGoodsInfo.totalPrice,
totalQuantity: viewGoodsInfo.totalQuantity,
totalDisc: viewGoodsInfo.totalDisc,
})
}
} else if (res.action == ACTION_GO_BALANCE) {
//去结算页面
......
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