Commit f25fa410 by 张卓

Merge branch 'product_dev' of http://code.mayi888.com/chengmo/mayi-mp-shop into product_dev

parents 3473488f a1386757
...@@ -272,7 +272,6 @@ export default { ...@@ -272,7 +272,6 @@ export default {
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数 // var query = options.query.dentistId; // 参数二维码传递过来的场景参数
} }
console.log("url", this.link + this.page + this.params); console.log("url", this.link + this.page + this.params);
this.getSpokesman();
this.init(); this.init();
}, },
onShow() { onShow() {
...@@ -408,15 +407,8 @@ export default { ...@@ -408,15 +407,8 @@ export default {
onUnload() { onUnload() {
console.log("卸载----------------", this.options); console.log("卸载----------------", this.options);
}, },
onShareAppMessage(res) { async onShareAppMessage(res) {
console.log(res) await this.getSpokesman();
console.log(
this.shareShopName,
"share",
res.webViewUrl,
"0000",
this.shareLogoUrl
);
let url = '' let url = ''
console.log(this.newWindowHref + 'this.newWindowHref') console.log(this.newWindowHref + 'this.newWindowHref')
//分享路径 //分享路径
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
console.log('wxPay',res.data) console.log('wxPay',res.data)
payData.success = res => { payData.success = res => {
console.log("支付成功", res, this.options); console.log("支付成功", res, this.options);
this.message = "支付成功";
const orderSn = this.options.orderSn; const orderSn = this.options.orderSn;
let vm = this let vm = this
...@@ -110,6 +110,7 @@ export default { ...@@ -110,6 +110,7 @@ export default {
console.log("message success response: ", res); console.log("message success response: ", res);
}, },
fail(res) { fail(res) {
fn(vm)
console.log("message fail response: ", res) console.log("message fail response: ", res)
} }
}) })
...@@ -125,7 +126,7 @@ export default { ...@@ -125,7 +126,7 @@ export default {
console.error("subscribeMessage-err", err); console.error("subscribeMessage-err", err);
} }
function fn(_this){ function fn(_this){
_this.message = "支付成功"; // _this.message = "支付成功";
if(!_this.options_isCard){ if(!_this.options_isCard){
let query; let query;
if(_this.batchNumber){ if(_this.batchNumber){
......
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