Commit 40e148e7 authored by jiangjiantao's avatar jiangjiantao

bugfix

parent 1a230bcb
......@@ -3,7 +3,7 @@ import { Page } from '../../utils/scan';
import {API_SCAN} from '../../const/apiurl'
import {API_USE_COUPON} from '../../const/apiurl'
import { ACTION_GOODS } from '../../const/actioncmd'
import { ACTION_REQUEST_GOOD_INFO } from '../../const/actioncmd'
Page({
data: {
......@@ -32,7 +32,7 @@ Page({
console.info(`onBuddyMessage success: ${JSON.stringify(res)}`);
if (res.action == ACTION_GOODS) {
//商品信息同步
let viewGoodsInfo = res.data.viewGoodsInfo
let viewGoodsInfo = res.data
if(viewGoodsInfo.goods == null || viewGoodsInfo.goods.length == 0){
my.redirectTo({
url: "/pages/home/home"
......
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