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
 
24
 
25
         <div class="mobile">
25
         <div class="mobile">
26
           <i class="iconfont icon-zhanghu"></i>
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
         </div>
28
         </div>
29
 
29
 
30
         <div class="sms">
30
         <div class="sms">

+ 10
- 3
src/pages/user/rush/index.vue 查看文件

25
         <img v-else src="" width="100%" height="100%">
25
         <img v-else src="" width="100%" height="100%">
26
       </div> -->
26
       </div> -->
27
       <pre class="rule" v-html="detail.FlashBuyInfo"></pre>
27
       <pre class="rule" v-html="detail.FlashBuyInfo"></pre>
28
-      <div class="scope-of-time">
28
+      <!-- <div class="scope-of-time">
29
         <div>活动时间</div>
29
         <div>活动时间</div>
30
         <div>{{toolClass.dateFormat(detail.StartDate)}} ~ {{toolClass.dateFormat(detail.EndDate)}}</div>
30
         <div>{{toolClass.dateFormat(detail.StartDate)}} ~ {{toolClass.dateFormat(detail.EndDate)}}</div>
31
-      </div>
31
+      </div> -->
32
     </div>
32
     </div>
33
     <div class="sign-in" v-if="timeStatus !== 2 && detail.AttendantType === 'no' && !used" @click="signIn">立即注册</div>
33
     <div class="sign-in" v-if="timeStatus !== 2 && detail.AttendantType === 'no' && !used" @click="signIn">立即注册</div>
34
     <div class="submit">
34
     <div class="submit">
47
 </template>
47
 </template>
48
 
48
 
49
 <script>
49
 <script>
50
+import wxsdk from '../../../util/share'
50
 import logo from '../../../common/icon/qrCode.jpg'
51
 import logo from '../../../common/icon/qrCode.jpg'
51
 import { mapState, createNamespacedHelpers } from 'vuex'
52
 import { mapState, createNamespacedHelpers } from 'vuex'
52
 const { mapState: mapRushState, mapActions: mapRushActions } = createNamespacedHelpers('rush')
53
 const { mapState: mapRushState, mapActions: mapRushActions } = createNamespacedHelpers('rush')
88
         let start = new Date(this.detail.StartDate).getTime()
89
         let start = new Date(this.detail.StartDate).getTime()
89
         let end = new Date(this.detail.EndDate).getTime()
90
         let end = new Date(this.detail.EndDate).getTime()
90
         this.timing(start, end)
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
     },
164
     },
158
     signIn () {
165
     signIn () {
159
       this.$router.push({ name: 'bindMobile' })
166
       this.$router.push({ name: 'bindMobile' })
160
-    }
167
+    },
161
   }
168
   }
162
 }
169
 }
163
 </script>
170
 </script>