|
|
@@ -17,6 +17,7 @@
|
|
|
</view>
|
|
|
<button
|
|
|
v-if="userInfo.isOpen === 0"
|
|
|
+ id="0"
|
|
|
class="invite-bt" open-type="share">
|
|
|
邀请开店
|
|
|
</button>
|
|
|
@@ -51,9 +52,11 @@
|
|
|
<view>
|
|
|
{{userInfo.userName}} {{userInfo.mobile}}
|
|
|
<button
|
|
|
+ id="1"
|
|
|
@click="pageTo({
|
|
|
url:'/pagesClient/member/bind'
|
|
|
})"
|
|
|
+ open-type="share"
|
|
|
class="admin-button-com default">
|
|
|
关联微信
|
|
|
</button>
|
|
|
@@ -157,6 +160,25 @@ export default {
|
|
|
// ...mapGetters({ levelData: "getLevel" })
|
|
|
},
|
|
|
onLoad() {},
|
|
|
+ onShareAppMessage(res) {
|
|
|
+ if (res.target.id === "0") {
|
|
|
+ return {
|
|
|
+ title: "更懂您的花卉宝",
|
|
|
+ desc: "",
|
|
|
+ imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
|
|
|
+ pagePath: "pagesClient/official/index?introMerchantId=" + this.userInfo.id
|
|
|
+ }
|
|
|
+ } else if (res.target.id === "1") {
|
|
|
+ return {
|
|
|
+ title: "关联微信",
|
|
|
+ desc: "",
|
|
|
+ imgUrl: "",
|
|
|
+ pagePath: "pagesClient/member/bind"
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {};
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
async remindChangeFn(e){
|
|
|
this.form.debt = e.detail.value ? 1 : 0;
|
|
|
@@ -188,13 +210,13 @@ export default {
|
|
|
this.orderData[0].value = this.userInfo.debtAmount
|
|
|
this.orderData[1].value = this.userInfo.buyNum
|
|
|
this.orderData[2].value = this.userInfo.buyAmount
|
|
|
- let params = {
|
|
|
- title: "更懂您的花卉宝",
|
|
|
- desc: "",
|
|
|
- imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
|
|
|
- pagePath: "pagesClient/official/index?introMerchantId=" + res.data.id
|
|
|
- };
|
|
|
- this.jweixinFn(params);
|
|
|
+ // let params = {
|
|
|
+ // title: "更懂您的花卉宝",
|
|
|
+ // desc: "",
|
|
|
+ // imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
|
|
|
+ // pagePath: "pagesClient/official/index?introMerchantId=" + res.data.id
|
|
|
+ // };
|
|
|
+ // this.jweixinFn(params);
|
|
|
});
|
|
|
},
|
|
|
// operate ===========================
|