Commit 39d1485a authored by beisir's avatar beisir

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

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