Pārlūkot izejas kodu

fx:拼团修改

qianxinyu 3 mēneši atpakaļ
vecāks
revīzija
d91341f246
2 mainītis faili ar 17 papildinājumiem un 13 dzēšanām
  1. 13 9
      components/FollowPopup/FollowPopup.vue
  2. 4 4
      pages/coupon/active.vue

+ 13 - 9
components/FollowPopup/FollowPopup.vue

@@ -2,16 +2,11 @@
   <view class="add_follow">
     <view class="close_area"><button class="close_btn" @click="closePopup">关闭</button></view>
     <view class="info_alter">
-      <text v-show="follow_linkurl">{{ clickTitle }}</text>
-      <text v-show="!follow_linkurl">{{ longTapTitle }}</text>
+      <text v-show="userInfo.follow_linkurl">{{ clickTitle }}</text>
+      <text v-show="!userInfo.follow_linkurl">{{ longTapTitle }}</text>
     </view>
-    <view v-if="!picUrl" class="qr_code_area" @click="followLinkurl">
-      <image :src="followQrcode" class="qr_code" mode="" show-menu-by-longpress> </image>
-    </view>
-    <view v-if="picUrl">
-      <view class="qr_code_area" @click="followLinkurl">
-        <image :src="picUrl" class="qr_code" mode="" show-menu-by-longpress> </image>
-      </view>
+    <view class="qr_code_area" @click="followLinkurl">
+      <image :src="userInfo.followQrcode" class="qr_code" mode="" show-menu-by-longpress> </image>
     </view>
   </view>
 </template>
@@ -41,6 +36,15 @@ export default {
       default: "",
     },
   },
+  onLoad() {
+    // 判断数据
+    this.$http.request("api/custom/get_info").then((callback) => {
+      if (callback.code == "success") {
+        // 赋值
+        this.userInfo = callback.data;
+      }
+    });
+  },
   data() {
     return {
       follow_linkurl: this.$checkAccess.getFollowLinkUrl(),

+ 4 - 4
pages/coupon/active.vue

@@ -184,10 +184,10 @@ export default {
       // 获取对应的数据
       let couponId = this.activeInfo.coupon_list[index].coupon_id;
 
-      if (this.userInfo?.have_follow !== 1 && !this.work_userid && !this.kailin_uid) {
-        this.$refs.addFollow.open("center");
-        return;
-      }
+      // if (this.userInfo?.have_follow !== 1 && !this.work_userid && !this.kailin_uid) {
+      //   this.$refs.addFollow.open("center");
+      //   return;
+      // }
 
       // 如果不能参与
       if (!this.activeInfo.allow_join) {