许成详 6 years ago
parent
commit
53914a1265

+ 1
- 11
src/pages/user/App.vue View File

6
 
6
 
7
 <script>
7
 <script>
8
 import '../../common/css/reset.css'
8
 import '../../common/css/reset.css'
9
-import logo from '../../common/icon/indexlogo.jpg'
10
-import wxsdk from '../../util/share'
11
 import { mapState, createNamespacedHelpers } from 'vuex'
9
 import { mapState, createNamespacedHelpers } from 'vuex'
12
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
10
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
13
 export default {
11
 export default {
14
   name: 'app',
12
   name: 'app',
15
   data () {
13
   data () {
16
     return {
14
     return {
17
-      showPage: true,
18
-      logo
15
+      showPage: true
19
     }
16
     }
20
   },
17
   },
21
   components: {},
18
   components: {},
34
     // this.getUserInfo({ org: this.org, code: this.code }).then(() => {
31
     // this.getUserInfo({ org: this.org, code: this.code }).then(() => {
35
     //   this.showPage = true
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
   methods: {
35
   methods: {
46
     ...actions(['getUserInfo'])
36
     ...actions(['getUserInfo'])

+ 1
- 1
src/pages/user/bindMobile/bindMobile.vue View File

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

+ 4
- 1
src/pages/user/majorProjects/index.vue View File

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

+ 10
- 3
src/pages/user/rush/index.vue View File

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: 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
     },
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>