瀏覽代碼

【Mod】是否显示积分抽奖入口

liuxiangxin 2 月之前
父節點
當前提交
b3dd12e64d
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      pages/score/clockin.vue

+ 9 - 1
pages/score/clockin.vue

@@ -16,7 +16,7 @@
             <view class="wait_score">{{ scoreInfo.wait_score ? scoreInfo.wait_score : 0 }}</view>
           </view>
         </view>
-        <view class="right_box">
+        <view class="right_box" v-if="show_lottery">
           <navigator url="/pages/score/lottery" class="lottery_enter">
             <image class="lottery_img" src="https://mall.findit.ltd/uploads/images/default/lottery_record.png" mode=""></image>
             <view class="lottery_text">点我抽奖</view>
@@ -73,6 +73,7 @@ export default {
       listKey: 0,
       listLength: 0,
       active_id: 0,
+	  show_lottery:0,
     };
   },
   onLoad() {
@@ -129,6 +130,13 @@ export default {
         this.scoreInfo = re.data;
       }
     });
+	// 请求
+	this.$http.request('api/lottery_score/get_detail').then((re) => {
+	  // 成功结果
+	  if (re.code == 'success') {
+	    this.show_lottery = 1;
+	  }
+	});
   },
   methods: {
     _handleBack() {