|
|
@@ -16,18 +16,18 @@
|
|
|
<view class="name"> {{ userInfo.merchantName || "" }}</view>
|
|
|
<view class="mark"> 三级代理 </view>
|
|
|
</view>
|
|
|
- <button
|
|
|
- id="sharekh"
|
|
|
- v-if="pageIndex == 0"
|
|
|
- class="user-wrap-right btn" open-type="share">
|
|
|
+<!-- <button id="sharekh" v-if="pageIndex == 0" class="user-wrap-right btn" open-type="share">-->
|
|
|
+<!-- <img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />-->
|
|
|
+<!-- </button>-->
|
|
|
+ <button v-if="pageIndex == 0" class="user-wrap-right btn" @tap="toProcedure">
|
|
|
<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />
|
|
|
</button>
|
|
|
- <button
|
|
|
- id="shareGhs"
|
|
|
- v-else
|
|
|
- class="user-wrap-right" open-type="share">
|
|
|
+ <navigator v-else class="user-wrap-right" :url="`/pagesClient/official/index?shopAdminId=${loginInfo.shopAdminId}`">
|
|
|
<img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" alt mode="widthFix" />
|
|
|
- </button>
|
|
|
+ </navigator>
|
|
|
+<!-- <button id="shareGhs" v-else class="user-wrap-right" open-type="share">-->
|
|
|
+<!-- <img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" alt mode="widthFix" />-->
|
|
|
+<!-- </button>-->
|
|
|
<!-- <image
|
|
|
v-if="pageIndex == 0"
|
|
|
class="btn"
|
|
|
@@ -86,7 +86,7 @@
|
|
|
<script>
|
|
|
import Tabs from "@/components/plugin/tabs";
|
|
|
import InviteItem from "./inviteItem";
|
|
|
-import { appyleListApi } from "@/api/invite/index";
|
|
|
+import { appyleListApi,getWeixinId } from "@/api/invite/index";
|
|
|
// import { getMerchantDetail } from "@/api/merchant/index";
|
|
|
import { list } from "@/mixins";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
@@ -153,6 +153,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
+ console.log(this.loginInfo.shopAdminId)
|
|
|
this.init();
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -171,6 +172,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
+ return
|
|
|
if (res.target.id === "shareGhs") {
|
|
|
return {
|
|
|
title: "更懂您的花卉宝",
|
|
|
@@ -192,6 +194,22 @@ export default {
|
|
|
mounted(){
|
|
|
},
|
|
|
methods: {
|
|
|
+ toProcedure(){
|
|
|
+ getWeixinId().then(res => {
|
|
|
+ uni.navigateToMiniProgram({
|
|
|
+ appId: res.data.hd.miniAppId,
|
|
|
+ path: 'pagesClient/official/index',
|
|
|
+ extraData: {
|
|
|
+ 'shopAdminId': this.loginInfo.shopAdminId
|
|
|
+ },
|
|
|
+ success(res) {
|
|
|
+ // 打开成功
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
// async initMerchant() {
|
|
|
// try {
|
|
|
// const { data } = await getMerchantDetail();
|