|
|
import detailModel from '../../../models/product/detail';
|
|
|
import formatImage from '../../../utils/formatImage';
|
|
|
import config from '../../../common/config';
|
|
|
import common from '../../../models/common';
|
|
|
import Yas from '../../../common/yas';
|
|
|
|
|
|
import {
|
...
|
...
|
@@ -12,7 +11,7 @@ import { |
|
|
stringify
|
|
|
} from '../../../vendors/query-stringify';
|
|
|
import wx from '../../../utils/wx';
|
|
|
|
|
|
import commonService from '../../../models/common.js'
|
|
|
let app = getApp();
|
|
|
let router = global.router;
|
|
|
let yas;
|
...
|
...
|
@@ -140,6 +139,7 @@ Page(Object.assign({ |
|
|
image_src: '../../../static/images/share_wxpeng@2x.png'
|
|
|
}]
|
|
|
},
|
|
|
isFollow: false
|
|
|
},
|
|
|
onLoad: function(query) {
|
|
|
let limitProductCode = query.limitProductCode ? query.limitProductCode : '';
|
...
|
...
|
@@ -545,13 +545,6 @@ Page(Object.assign({ |
|
|
return;
|
|
|
}
|
|
|
|
|
|
common.addWechatFormId({
|
|
|
formId: e.detail.formId,
|
|
|
uid: this.data.uid,
|
|
|
miniapp_type: app.getMiniappType(),
|
|
|
openId: app.getOpenID()
|
|
|
});
|
|
|
|
|
|
this.share();
|
|
|
},
|
|
|
assistAction() {
|
...
|
...
|
@@ -710,6 +703,21 @@ Page(Object.assign({ |
|
|
}
|
|
|
});
|
|
|
},
|
|
|
toFollow() {
|
|
|
let that = this
|
|
|
if(this.data.isFollow) {
|
|
|
return
|
|
|
}
|
|
|
let tmplIds = ['WhCBCAO2ci_gSrDSzpMExhYAdnhlF0aqgr2YWzJG4EM','3KKWG1j-1ui2wE19aLcpCVSoKTsbWpnlmPIBLesHJqs'];
|
|
|
commonService.postTmplId({
|
|
|
tmplIds
|
|
|
}).then(res => {
|
|
|
that.setData({
|
|
|
isFollow: true
|
|
|
})
|
|
|
})
|
|
|
|
|
|
},
|
|
|
assistCancel() {
|
|
|
this.reload();
|
|
|
},
|
...
|
...
|
|