Commit aaec373e authored by gaodapeng's avatar gaodapeng

增加会员相关

parent 3162c845
......@@ -7,6 +7,9 @@ export const ACTION_REPRINT = "ACTION_REPRINT";
//商品信息
export const ACTION_GOODS = "ACTION_GOODS";
//会员登录
export const ACTION_MEMBER = "ACTION_MEMBER";
//去结算页面
export const ACTION_GO_BALANCE = "ACTION_GO_BALANCE";
......
......@@ -3,6 +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_MEMBER } from '../../const/actioncmd'
import { ACTION_REQUEST_GOOD_INFO } from '../../const/actioncmd'
import { ACTION_GO_BALANCE } from '../../const/actioncmd'
import { ACTION_GO_HOME } from '../../const/actioncmd'
......@@ -42,7 +43,12 @@ Page({
totalDisc: viewGoodsInfo.totalDisc,
})
} else if (res.action == ACTION_GO_BALANCE) {
} else if (res.action == ACTION_MEMBER) {
context.setData({
memberPhone: res.data
})
}
else if (res.action == ACTION_GO_BALANCE) {
//去结算页面
context.goBalance();
} else if (res.action == ACTION_REQUEST_GOOD_INFO) {
......
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