许成详 преди 6 години
родител
ревизия
53914a1265
променени са 4 файла, в които са добавени 16 реда и са изтрити 16 реда
  1. 1
    11
      src/pages/user/App.vue
  2. 1
    1
      src/pages/user/bindMobile/bindMobile.vue
  3. 4
    1
      src/pages/user/majorProjects/index.vue
  4. 10
    3
      src/pages/user/rush/index.vue

+ 1
- 11
src/pages/user/App.vue Целия файл

@@ -6,16 +6,13 @@
6 6
 
7 7
 <script>
8 8
 import '../../common/css/reset.css'
9
-import logo from '../../common/icon/indexlogo.jpg'
10
-import wxsdk from '../../util/share'
11 9
 import { mapState, createNamespacedHelpers } from 'vuex'
12 10
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
13 11
 export default {
14 12
   name: 'app',
15 13
   data () {
16 14
     return {
17
-      showPage: true,
18
-      logo
15
+      showPage: true
19 16
     }
20 17
   },
21 18
   components: {},
@@ -34,13 +31,6 @@ export default {
34 31
     // this.getUserInfo({ org: this.org, code: this.code }).then(() => {
35 32
     //   this.showPage = true
36 33
     // })
37
-    
38
-    // wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
39
-    //   title: '城的空间',
40
-    //   desc: '城的空间',
41
-    //   link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
42
-    //   thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg`
43
-    // })
44 34
   },
45 35
   methods: {
46 36
     ...actions(['getUserInfo'])

+ 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">

+ 4
- 1
src/pages/user/majorProjects/index.vue Целия файл

@@ -7,7 +7,7 @@
7 7
             <img :src='item.CaseImageUrl' class="cover" alt="">
8 8
           </swiper-slide>
9 9
         </swiper> -->
10
-        <img :src="projectInfo.CmsCaseImgs[0].CaseImageUrl" alt="">
10
+        <img :src="cover" alt="" class="cover">
11 11
       </div>
12 12
     </div>
13 13
     <p>{{projectInfo.DetailContent}}</p>
@@ -69,6 +69,7 @@ export default {
69 69
       },
70 70
       courseList: [], // 课程列表
71 71
       initList: [],
72
+      cover:''
72 73
     }
73 74
   },
74 75
   computed: {
@@ -141,6 +142,8 @@ export default {
141 142
             endDate: new Date(res.Courses[n].EndDate).getTime(),
142 143
           })
143 144
         }
145
+        this.cover = res.CmsCaseImgs.filter(item => item.ImageType === 'detail')[0].CaseImageUrl
146
+        console.log(this.cover)
144 147
         console.log(aArr)
145 148
         this.initList = aArr
146 149
         this.calcArr()

+ 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: res.flashBuy.ActivityTitle || this.detail.FlashBuyName,
94
+          desc: res.flashBuy.ShareContent || '限时抢购中,名额有限,速来参与~',
95
+          link: `${window.location.origin}${window.location.pathname}#/rush/?flashBuyId=${this.$route.query.flashBuyId}`,
96
+          thu_image: res.flashBuy.ShareImg || `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>