张延森 5 年之前
父節點
當前提交
b2d0d1e582
共有 5 個檔案被更改,包括 47 行新增35 行删除
  1. 二進制
      src/assets/topImg.jpg
  2. 1
    1
      src/store/main.js
  3. 25
    16
      src/views/supportDetail/supportDetail.vue
  4. 19
    16
      src/views/supportMain/supportMain.vue
  5. 2
    2
      vue.config.js

二進制
src/assets/topImg.jpg 查看文件


+ 1
- 1
src/store/main.js 查看文件

@@ -4,7 +4,7 @@ import api from '../util/api'
4 4
 export default {
5 5
   namespaced: true,
6 6
   state: {
7
-    gameid: '2',
7
+    gameid: '3',
8 8
     game: {},
9 9
     userInfo: {},
10 10
     recordInfo: {},

+ 25
- 16
src/views/supportDetail/supportDetail.vue 查看文件

@@ -14,7 +14,7 @@
14 14
               <p>
15 15
                 已有
16 16
                 <span class="marked">{{list.length}}</span> 位好友帮TA砍价了,共砍掉
17
-                <span class="marked">¥{{(list.length*12).toFixed(1)}}</span> 元
17
+                <span class="marked">¥{{(list.length*9.8).toFixed(1)}}</span> 元
18 18
               </p>
19 19
             </div>
20 20
           </div>
@@ -22,21 +22,21 @@
22 22
         <div class="self-end" v-if="status==4">
23 23
           <div>
24 24
             恭喜你!已砍至
25
-            <span>18.8</span>
25
+            <span>0</span>
26 26
             <span>元</span>
27 27
           </div>
28
-          <div>前往银城颐居·悦见山营销中心,现场支付18.8元</div>
29
-          <div>即可获得价值78.8元悦见山星级泳池体验机会1次</div>
28
+          <div>须至售楼处现场向员工展示小程序砍价成功页面(截图无效)</div>
29
+          <div>登记后即可领取礼品一份,每人仅限领取一份礼品</div>
30 30
         </div>
31 31
       </div>
32 32
       <div class="active" v-if="status<4">
33
-        <h2>悦见山恒温泳池好友助力砍价活动</h2>
33
+        <h2>云台天境知己潮赏节“一鹿有你”加湿器砍价活动</h2>
34 34
         <div class="price">
35
-          <span :class="{'off':status == 3}">砍后价:¥{{(78.8-list.length*12).toFixed(1)}}</span>
36
-          <span>最多砍至18.8元</span>
35
+          <span :class="{'off':status == 3}">砍后价:¥{{(98-list.length*9.8).toFixed(1)}}</span>
36
+          <span>最多砍至0元</span>
37 37
         </div>
38 38
         <div class="desc">
39
-          <span>原价78.8元, 悦见山亲情价¥18.8</span>
39
+          <span>原价98元, 云台天境亲情价¥0</span>
40 40
         </div>
41 41
       </div>
42 42
       <div class="list">
@@ -54,7 +54,7 @@
54 54
           </div>
55 55
           <div class="price">
56 56
             <span>已砍:</span>
57
-            <span>¥12</span>
57
+            <span>¥9.8</span>
58 58
           </div>
59 59
         </div>
60 60
       </div>
@@ -64,9 +64,7 @@
64 64
         <img :src="popBg">
65 65
         <div class="log1">
66 66
           <div>您已成功帮好友砍掉</div>
67
-          <div>
68
-            12
69
-            <span>元</span>
67
+          <div> 9.8 <span>元</span>
70 68
           </div>
71 69
           <img class="btn" :src="btn" @click="$router.push({name:'supportMain'})">
72 70
         </div>
@@ -74,7 +72,7 @@
74 72
     </div>
75 73
     <div class="other-end" v-if="status == 5">
76 74
       <div class="box">
77
-        <p>您的好友已砍价至18.8元,</p>
75
+        <p>您的好友已砍价至 0 元,</p>
78 76
         <p>感谢您的参与</p>
79 77
         <div @click="$router.push({name:'supportMain'})">我也要报名</div>
80 78
       </div>
@@ -89,6 +87,7 @@
89 87
     <div class="bottom" v-if="status < 4">
90 88
       <div :class="{'on':status < 3,'off':status == 3}" @click="support()">{{btnText}}</div>
91 89
     </div>
90
+    
92 91
   </div>
93 92
 </template>
94 93
 
@@ -206,10 +205,10 @@ export default {
206 205
       console.log('---share--link--->', link)
207 206
 
208 207
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
209
-        title: '热浪席卷盛夏,好友助力砍价',
210
-        desc: '悦见山星级泳池即将开放,18.8元抢鲜泳池体验+指定饮品~',
208
+        title: '云台“一鹿有你”,知己助力砍价',
209
+        desc: '云台“一鹿有你”,知己助力砍价',
211 210
         link: link,
212
-        thu_image: `http://spaceofcheng.oss-cn-beijing.aliyuncs.com/20190801kanjia.jpg?x-oss-process=style/wxicon`
211
+        thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20190823090446.jpg?x-oss-process=style/wxicon`
213 212
       }).then(() => {
214 213
         setTimeout(() => {
215 214
           this.checkStatus()
@@ -220,10 +219,20 @@ export default {
220 219
       if (this.status === 1) {
221 220
         this.$toast('微信右上角分享,让好友帮你助力哦!')
222 221
       } else if (this.status === 2) {
222
+        this.$toast.loading({
223
+          duration: 0,
224
+          forbidClick: true,
225
+          loadingType: 'spinner',
226
+        })
227
+
223 228
         this.setSupport({ customerid: this.userInfo.CustomerId, recordid: this.$route.params.recordid }).then(() => {
229
+          this.$toast.clear()
224 230
           this.getRecord(this.recordid).then(() => {
225 231
             this.showDailog = true
226 232
           })
233
+        }).catch((err) => {
234
+          window.console.error(err)
235
+          this.$toast.clear()
227 236
         })
228 237
       } else if (this.status === 3) {
229 238
         this.$toast('活动已结束')

+ 19
- 16
src/views/supportMain/supportMain.vue 查看文件

@@ -4,23 +4,26 @@
4 4
       <div class="top">
5 5
         <img :src="topImg">
6 6
         <div class="top-div">
7
-          <div style="font-size: .2rem">悦见山恒温泳池好友助力砍价活动</div>
8
-          <p><strong>使用兑换日期:</strong>2019年8月1日—8月31日</p>
9
-          <p><strong>地点:</strong>国家级江北新区•白马路10号</p>
10
-          <p>银城颐居•悦见山营销中心</p>
11
-          <p><strong>活动电话:</strong>025-8650 5555</p>
7
+          <div style="font-size: .2rem">云台天境知己潮赏节“一鹿有你”加湿器砍价活动</div>
8
+          <p><strong>兑换日期:</strong> 2019年8月24日-8月30日</p>
9
+          <p><strong>地点:</strong> 江宁区云台山河路1号</p>
10
+          <p>银城旭辉•云台天境营销中心</p>
11
+          <p><strong>活动电话:</strong>025-8642 6666</p>
12 12
         </div>
13 13
       </div>
14 14
       <div class="main">
15 15
         <h2>活动详情</h2>
16
-        <h3>悦见山恒温泳池好友助力砍价活动</h3>
17
-        <div><strong>原价:</strong>78.8元</div>
18
-        <div><strong>活动价:</strong>最低18.8元</div>
19
-        <div>共可邀请5位好友帮砍至18.8元,每位好友可帮砍12元。</div>
20
-        <h3 style="margin-top: 0.8em">套餐包含:</h3>
21
-        <div>悦见山星级泳池体验一次(限时2小时);</div>
22
-        <div>悦见山城的空间指定饮品一杯。</div>
23
-        <div><strong>Tips:</strong>提交后请提前一天电话预约,到场支付18.8元 ;每人仅可体验一次,需携带本人身份证兑换使用。</div>
16
+        <h3>云台天境知己潮赏节“一鹿有你”加湿器砍价活动</h3>
17
+        <div><strong>原价:</strong>98元</div>
18
+        <div><strong>活动价:</strong>最低 0 元</div>
19
+        <div>共可邀请 10 位好友帮砍至 0 元,每位好友可帮砍9.8元。</div>
20
+        <div>
21
+          <img style="width: 100%; margin-top: 1em" src="https://spaceofcheng.oss-cn-beijing.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20190823090449.png" alt="">
22
+        </div>
23
+        <h3 style="margin-top: 0.8em">兑换规则:</h3>
24
+        <div>须至售楼处现场向员工展示小程序砍价成功页面(截图无效)。</div>
25
+        <div>登记后即可领取礼品一份,每人仅限领取一份礼品。</div>
26
+        <div><strong>Tips:</strong>云台天境知己同行计划已火热开启,携好友同行到访即有更多惊喜等你!</div>
24 27
       </div>
25 28
     </div>
26 29
     <div class="bottom">
@@ -141,10 +144,10 @@ export default {
141 144
     share () {
142 145
       let link = `${window.location.origin}${window.location.pathname}#/`
143 146
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
144
-        title: '热浪席卷盛夏,好友助力砍价',
145
-        desc: '悦见山星级泳池即将开放,18.8元抢鲜泳池体验+指定饮品!',
147
+        title: '云台“一鹿有你”,知己助力砍价',
148
+        desc: '云台“一鹿有你”,知己助力砍价',
146 149
         link: link,
147
-        thu_image: `http://spaceofcheng.oss-cn-beijing.aliyuncs.com/20190801kanjia.jpg?x-oss-process=style/wxicon`
150
+        thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20190823090446.jpg?x-oss-process=style/wxicon`
148 151
       })
149 152
     },
150 153
     record () {

+ 2
- 2
vue.config.js 查看文件

@@ -6,8 +6,8 @@ module.exports = {
6 6
   devServer: {
7 7
     proxy: {
8 8
       '/api': {
9
-        // target: 'http://wechatconfigdev.ycjcjy.com',
10
-        target: 'http://192.168.0.62:8080', // wf
9
+        target: 'http://wechatconfigdev.ycjcjy.com',
10
+        // target: 'http://192.168.0.62:8080', // wf
11 11
         // target: 'http://192.168.0.102:8080', // hyq
12 12
         // target: 'http://192.168.0.11', // zys
13 13
         // target: 'http://dev.ycjcjy.com', // frp