Commit 39d1485a authored by beisir's avatar beisir

feat:更改getToken方法传递小程序来源

parent 2d8d5a84
......@@ -38,7 +38,7 @@ export default {
confirmButtonText: '登录',
onConfirm: () => {
if (isWxMp) {
this.nativeBridge.getToken();
this.nativeBridge.getToken({ from: 'groupbuy' });
} else if (isApp) {
// native调用getToken
this.getToken();
......
......@@ -32,8 +32,8 @@ class Mp {
wx.miniProgram.postMessage({ data });
}
}
getToken(callback = () => {}) {
this.run({ event: 'getToken' }, callback, true);
getToken(data, callback = () => {}) {
this.run({ event: 'getToken', ...data }, callback, true);
}
closeBrowser() {
const { wx } = this;
......
......@@ -152,6 +152,7 @@ export default {
activated() {
this.showLoops = true;
this.$nextTick(() => {
console.log(this.$refs.swipeRota);
this.$refs.swipeRota && this.$refs.swipeRota.onSlidePrevChange();
});
},
......
......@@ -139,7 +139,7 @@ export default {
},
2: {
class: 'Ol__head-success',
message: '已成团,等待发货!',
message: '已成团',
footTxt: '退款将原路返还,请注意帐户变动'
},
3: {
......
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