fix: 增加测试代码
This commit is contained in:
parent
554fdf712c
commit
9abc7ec143
12
index.html
12
index.html
|
@ -220,6 +220,16 @@
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
testGoToPack(token) {
|
||||
let bm_gold_obj = {
|
||||
token,
|
||||
settlement_data: {
|
||||
is_settlement: true,
|
||||
settlement_type: 2,
|
||||
}
|
||||
}
|
||||
sessionStorage.setItem("bm_auth", JSON.stringify(bm_gold_obj));
|
||||
},
|
||||
// 判断是否是包码 跳转对应的包码页面 ****
|
||||
goToPackKey(data) {
|
||||
// 第一步:判断是否为包码
|
||||
|
@ -289,7 +299,9 @@
|
|||
this.openDialog('正在加载商品...');
|
||||
localStorage.setItem('entryLink', window.location.href);//存储起始页链接
|
||||
|
||||
|
||||
// 判断是否是包码逻辑
|
||||
testGoToPack(res.data.token); // 只用测试!!!!!!!!!
|
||||
if (res.data.settlement_data) {
|
||||
self.goToPackKey({ token: res.data.token, settlement_data: res.data.settlement_data });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue