yuantianjiao 6 년 전
부모
커밋
d12d678ead
2개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 1
    1
      src/pages/user/bindMobile/bindMobile.vue
  2. 10
    3
      src/pages/user/rush/index.vue

+ 1
- 1
src/pages/user/bindMobile/bindMobile.vue 파일 보기

@@ -24,7 +24,7 @@
24 24
 
25 25
         <div class="mobile">
26 26
           <i class="iconfont icon-zhanghu"></i>
27
-          <input type="tel" placeholder="推荐码" v-model="postData.recommendCode">
27
+          <input type="tel" placeholder="推荐码 (非必填)" v-model="postData.recommendCode">
28 28
         </div>
29 29
 
30 30
         <div class="sms">

+ 10
- 3
src/pages/user/rush/index.vue 파일 보기

@@ -25,10 +25,10 @@
25 25
         <img v-else src="" width="100%" height="100%">
26 26
       </div> -->
27 27
       <pre class="rule" v-html="detail.FlashBuyInfo"></pre>
28
-      <div class="scope-of-time">
28
+      <!-- <div class="scope-of-time">
29 29
         <div>活动时间</div>
30 30
         <div>{{toolClass.dateFormat(detail.StartDate)}} ~ {{toolClass.dateFormat(detail.EndDate)}}</div>
31
-      </div>
31
+      </div> -->
32 32
     </div>
33 33
     <div class="sign-in" v-if="timeStatus !== 2 && detail.AttendantType === 'no' && !used" @click="signIn">立即注册</div>
34 34
     <div class="submit">
@@ -47,6 +47,7 @@
47 47
 </template>
48 48
 
49 49
 <script>
50
+import wxsdk from '../../../util/share'
50 51
 import logo from '../../../common/icon/qrCode.jpg'
51 52
 import { mapState, createNamespacedHelpers } from 'vuex'
52 53
 const { mapState: mapRushState, mapActions: mapRushActions } = createNamespacedHelpers('rush')
@@ -88,6 +89,12 @@ export default {
88 89
         let start = new Date(this.detail.StartDate).getTime()
89 90
         let end = new Date(this.detail.EndDate).getTime()
90 91
         this.timing(start, end)
92
+        wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
93
+          title: this.detail.FlashBuyName,
94
+          desc: '限时抢购中,名额有限,速来参与~',
95
+          link: `${window.location.origin}${window.location.pathname}#/rush/?flashBuyId=${this.$route.query.flashBuyId}`,
96
+          thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/indexlogo.jpg?x-oss-process=style/wxicon`
97
+        })
91 98
       })
92 99
     })
93 100
   },
@@ -157,7 +164,7 @@ export default {
157 164
     },
158 165
     signIn () {
159 166
       this.$router.push({ name: 'bindMobile' })
160
-    }
167
+    },
161 168
   }
162 169
 }
163 170
 </script>