yuantianjiao 6 лет назад
Родитель
Сommit
4d4554b43a

Двоичные данные
src/common/icon/topImg.png Просмотреть файл


Двоичные данные
src/common/icon/topImgBlack.png Просмотреть файл


Двоичные данные
src/common/icon/topImgRed.jpg Просмотреть файл


+ 2
- 20
src/pages/user/App.vue Просмотреть файл

@@ -8,14 +8,11 @@
8 8
 import '../../common/css/reset.css'
9 9
 import { mapState, createNamespacedHelpers } from 'vuex'
10 10
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
11
-const { mapActions: mapIndexActions } = createNamespacedHelpers('index')
12
-const wx = require('weixin-js-sdk')
13
-import wxsdk from '@/util/share'
14 11
 export default {
15 12
   name: 'app',
16 13
   data () {
17 14
     return {
18
-      showPage: false
15
+      showPage: false 
19 16
     }
20 17
   },
21 18
   components: {},
@@ -32,25 +29,10 @@ export default {
32 29
       this.code = null
33 30
     }
34 31
     this.getUserInfo({ org: this.org, code: this.code }).then(() => {
35
-      let that = this
36
-      wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
37
-        title: '城的空间',
38
-        desc: '城的空间',
39
-        link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
40
-        thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/indexlogo.jpg?x-oss-process=style/wxicon`
41
-      }).then(() => {
42
-        wx.getLocation({
43
-          type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
44
-          success: function (res) {
45
-            that.setLocation({ latitude1: res.latitude, longitude1: res.longitude })
46
-            that.showPage = true
47
-          }
48
-        })
49
-      })
32
+      this.showPage = true
50 33
     })
51 34
   },
52 35
   methods: {
53
-    ...mapIndexActions(['setLocation']),
54 36
     ...actions(['getUserInfo'])
55 37
   }
56 38
 }

+ 7
- 5
src/pages/user/activeList/activeList.vue Просмотреть файл

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div class="content">
2
+  <div class="content mainPage">
3 3
     <div class="list" @click="toCustomizationList">
4 4
       <img :src="dz">
5 5
       <span>定制记录</span>
@@ -28,6 +28,8 @@ export default {
28 28
 .content {
29 29
   padding: 0 0 0 0.1rem;
30 30
   background: #fff;
31
+  height: 100%;
32
+  box-sizing: border-box;
31 33
   .list {
32 34
     width: 100%;
33 35
     height: 0.8rem;
@@ -49,11 +51,11 @@ export default {
49 51
       text-overflow: ellipsis;
50 52
       white-space: nowrap;
51 53
       font-size: 0.14rem;
52
-      color: rgba(50, 59, 69, 1);
54
+      color: #000;
53 55
     }
54
-    i{
55
-      color: rgba(50, 59, 69, 1);
56
-      padding-right: .1rem;
56
+    i {
57
+      color: #ddd;
58
+      padding-right: 0.1rem;
57 59
     }
58 60
   }
59 61
 }

+ 1
- 1
src/pages/user/bindMobile/page.scss Просмотреть файл

@@ -31,7 +31,7 @@
31 31
       border-radius:8px;
32 32
       padding: .2rem;
33 33
       box-sizing: border-box;
34
-      margin-top: 1.2rem;
34
+      margin-top: 130px;
35 35
       .title{
36 36
         font-size: .16rem;
37 37
         font-weight: bold;

+ 17
- 12
src/pages/user/calendar/calendar.vue Просмотреть файл

@@ -1,10 +1,10 @@
1 1
 <template>
2
-  <div style="padding-bottom:.6rem;">
2
+  <div class="mainPage">
3 3
     <div class="top">
4 4
       <img :src="topImg" alt>
5 5
     </div>
6 6
     <div class="middle">
7
-      <p>云台天境定制专属你的台历</p>
7
+      <p>云台天境 定制您的2019私人专属台历</p>
8 8
       <span>时间: 2018年12月12日-2018年12月19日</span>
9 9
       <span>地点: 江宁区云台山河路1号云台天境售楼处</span>
10 10
     </div>
@@ -18,9 +18,10 @@
18 18
       <div>*活动最终解释权归南京佳运城房地产开发有限公司所有</div>
19 19
     </div>
20 20
     <div class="btn">
21
-      <div v-if="state === 1" @click="toCheckModel">立即参与</div>
22
-      <div v-if="state === 2" class="disable">已参与</div>
23
-      <div v-if="state === 3" class="disable">活动已结束</div>
21
+      <div v-if="state === 1" class="disable">活动未开始</div>
22
+      <div v-if="state === 2" @click="toCheckModel">立即参与</div>
23
+      <div v-if="state === 3" class="disable">已参与</div>
24
+      <div v-if="state === 4" class="disable">活动已结束</div>
24 25
     </div>
25 26
   </div>
26 27
 </template>
@@ -30,13 +31,14 @@ import wxsdk from '../../../util/share'
30 31
 import { mapState, createNamespacedHelpers } from 'vuex'
31 32
 const { mapActions: mapMakingActions } = createNamespacedHelpers('making')
32 33
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
33
-import topImg from '@/common/icon/topImg.png'
34
+import topImg from '@/common/icon/topImgBlack.png'
34 35
 export default {
35 36
   data () {
36 37
     return {
37 38
       topImg,
38 39
       state: 1,
39
-      endTime: "2018/12/19 00:00:00"
40
+      startTime: "2018/12/12 00:00:00",
41
+      endTime: "2018/12/19 23:59:59"
40 42
     }
41 43
   },
42 44
   created () {
@@ -49,14 +51,17 @@ export default {
49 51
     this.getUserInfo({ org: this.org }).then(() => {
50 52
       this.getCalendarCustomer().then((res) => {
51 53
         if (res) {
52
-          this.state = 2
54
+          this.state = 3
53 55
         } else {
54
-          let timestamp = new Date(this.endTime).getTime()
56
+          let start = new Date(this.startTime).getTime()
57
+          let end = new Date(this.endTime).getTime()
55 58
           let now = new Date().getTime()
56
-          if (timestamp >= now) {
59
+          if (start <= now && end >= now) {
60
+            this.state = 2
61
+          } else if (start > now) {
57 62
             this.state = 1
58 63
           } else {
59
-            this.state = 3
64
+            this.state = 4
60 65
           }
61 66
         }
62 67
       })
@@ -111,7 +116,7 @@ export default {
111 116
   }
112 117
 }
113 118
 .bottom {
114
-  padding: 0.14rem 0.25rem;
119
+  padding: 0.14rem 0.25rem 0.6rem;
115 120
   p {
116 121
     font-size: 0.16rem;
117 122
     padding-bottom: 0.05rem;

+ 147
- 107
src/pages/user/calendar/making.vue Просмотреть файл

@@ -1,88 +1,96 @@
1 1
 <template>
2
-  <div style="background:#fff;">
3
-    <div v-if="isLoading || windowLoad" class="loading">
4
-      <img :src="loading" alt>
5
-      <span>{{msg}}</span>
6
-    </div>
7
-    <div class="cutBox" v-for="(item,index) in banner" :key="index">
8
-      <div class="cutDom" v-if="index === mainIndex-1">
9
-        <img :src="item.bgImg" class="cover">
10
-        <div :style="item.styleCut" v-if="!item.CustomerImg && item.defaultBg" class="cla">
11
-          <img :src="item.defaultBg">
12
-        </div>
13
-        <div :style="item.styleCut" v-if="item.CustomerImg" class="cla">
14
-          <img :src="item.CustomerImg">
2
+  <div style="background:#fff;" class="mainPage" id="main">
3
+    <div>
4
+      <div v-if="isLoading || windowLoad" class="loading">
5
+        <img :src="loading" alt>
6
+        <span>{{msg}}</span>
7
+      </div>
8
+      <div class="cutBox" v-for="(item,index) in banner" :key="index">
9
+        <div class="cutDom" v-if="index === mainIndex-1">
10
+          <img :src="item.bgImg" class="cover">
11
+          <div :style="item.styleCut" v-show="!item.CustomerImg && item.defaultBg" class="cla">
12
+            <img :src="item.defaultBg">
13
+          </div>
14
+          <div :style="item.styleCut" v-if="item.CustomerImg" class="cla">
15
+            <img :src="item.CustomerImg">
16
+          </div>
17
+          <img class="text-h" v-if="item.ImgName === '10月'" :src="textH">
18
+          <img class="text-l" v-if="item.ImgName === '4月' || item.ImgName === '7月'" :src="textL">
15 19
         </div>
16
-        <img class="text-h" v-if="item.ImgName === '10月'" :src="textH">
17
-        <img class="text-l" v-if="item.ImgName === '4月' || item.ImgName === '7月'" :src="textL">
18 20
       </div>
19
-    </div>
20
-    <div class="topBanner">
21
-      <swiper :options="swiperOption" ref="mySwiper">
22
-        <swiper-slide class="swiper-slide" v-for="(item,index) in banner" :key="index">
23
-          <div
24
-            class="item"
25
-            v-if="index === mainIndex-1 || index === mainIndex ||  index === mainIndex-2"
26
-          >
27
-            <div>
28
-              <img :src="item.bgImg" class="cover">
29
-              <img
30
-                :style="item.style"
31
-                v-if="!item.CustomerImg && item.defaultBg"
32
-                :src="item.defaultBg"
33
-              >
34
-              <img :src="item.CustomerImg" :style="item.style" v-if="item.CustomerImg">
35
-              <img class="text-h" v-if="item.ImgName === '10月'" :src="textH">
36
-              <img
37
-                class="text-l"
38
-                v-if="item.ImgName === '4月' || item.ImgName === '7月'"
39
-                :src="textL"
40
-              >
41
-              <div class="reload-img">
42
-                <van-uploader :after-read="onRead" v-show="mainIndex !== 1">
43
-                  <img :src="reloadImg">
44
-                </van-uploader>
21
+      <div class="topBanner">
22
+        <swiper :options="swiperOption" ref="mySwiper">
23
+          <swiper-slide class="swiper-slide" v-for="(item,index) in banner" :key="index">
24
+            <div
25
+              class="item"
26
+              v-if="index === mainIndex-1 || index === mainIndex ||  index === mainIndex-2"
27
+            >
28
+              <div>
29
+                <img :src="item.bgImg" class="cover">
30
+                <img
31
+                  :style="item.style"
32
+                  v-if="!item.CustomerImg && item.defaultBg"
33
+                  :src="item.defaultBg"
34
+                >
35
+                <img :src="item.CustomerImg" :style="item.style" v-if="item.CustomerImg">
36
+                <img class="text-h" v-if="item.ImgName === '10月'" :src="textH">
37
+                <img
38
+                  class="text-l"
39
+                  v-if="item.ImgName === '4月' || item.ImgName === '7月'"
40
+                  :src="textL"
41
+                >
42
+                <div class="reload-img">
43
+                  <van-uploader :after-read="onRead" v-show="mainIndex !== 1">
44
+                    <img :src="reloadImg">
45
+                  </van-uploader>
46
+                </div>
45 47
               </div>
46 48
             </div>
47
-          </div>
48
-        </swiper-slide>
49
-      </swiper>
50
-      <div class="swiper-button-next">
51
-        <i class="iconfont icon-you"></i>
49
+          </swiper-slide>
50
+        </swiper>
51
+        <div class="swiper-button-next">
52
+          <i class="iconfont icon-you"></i>
53
+        </div>
54
+        <div class="swiper-button-prev">
55
+          <i class="iconfont icon-left"></i>
56
+        </div>
57
+        <div class="swiper-pagination"></div>
52 58
       </div>
53
-      <div class="swiper-button-prev">
54
-        <i class="iconfont icon-left"></i>
59
+      <div class="meassage" v-if="mainIndex !== 1">备注:为了美观效果请上传{{size}}尺寸照片,未按尺寸会默认裁剪</div>
60
+      <div class="meassage" v-else>&nbsp;</div>
61
+      <div class="operation">
62
+        <div>
63
+          <van-uploader :after-read="onRead" v-show="mainIndex !== 1">
64
+            <img :src="uploadImg">
65
+            <p>自定义图片</p>
66
+          </van-uploader>
67
+        </div>
68
+        <div>
69
+          <img :src="reSet" v-show="mainIndex !== 1" @click="changeOld">
70
+          <p v-show="mainIndex !== 1">恢复默认</p>
71
+        </div>
55 72
       </div>
56
-      <div class="swiper-pagination"></div>
57
-    </div>
58
-    <div class="meassage" v-if="mainIndex !== 1">备注:为了美观效果请上传{{size}}尺寸照片,未按尺寸会默认裁剪</div>
59
-    <div class="meassage" v-else>&nbsp;</div>
60
-    <div class="operation">
61
-      <div>
62
-        <van-uploader :after-read="onRead" v-show="mainIndex !== 1">
63
-          <img :src="uploadImg">
64
-          <p>自定义图片</p>
65
-        </van-uploader>
73
+      <div class="email">
74
+        <span>邮箱</span>
75
+        <input
76
+          class="input"
77
+          type="text"
78
+          placeholder="接收电子版"
79
+          v-model="email"
80
+          style="border-radius:5px;background:rgba(245, 246, 250, 1);"
81
+        >
66 82
       </div>
67
-      <div>
68
-        <img :src="reSet" v-show="mainIndex !== 1" @click="changeOld">
69
-        <p v-show="mainIndex !== 1">恢复默认</p>
83
+      <div class="btn">
84
+        <div @click="pre">预览</div>
85
+        <div @click="showPop=true">确定</div>
70 86
       </div>
71
-    </div>
72
-    <div class="email">
73
-      <span>邮箱</span>
74
-      <van-field v-model="email" placeholder="接收电子版" style="border-radius:5px;"/>
75
-    </div>
76
-    <div class="btn">
77
-      <div @click="pre">预览</div>
78
-      <div @click="showPop=true">确定</div>
79
-    </div>
80
-    <div v-show="showPop" class="pop-box">
81
-      <div class="pop-content">
82
-        <div>确认定制此台历?</div>
83
-        <div>
84
-          <div @click="submit">确定</div>
85
-          <div @click="showPop=false">取消</div>
87
+      <div v-show="showPop" class="pop-box">
88
+        <div class="pop-content">
89
+          <div>确认定制此台历?</div>
90
+          <div>
91
+            <div @click="submit">确定</div>
92
+            <div @click="showPop=false">取消</div>
93
+          </div>
86 94
         </div>
87 95
       </div>
88 96
     </div>
@@ -138,8 +146,7 @@ export default {
138 146
             })
139 147
           }
140 148
         }
141
-      },
142
-      email: ''
149
+      }
143 150
     }
144 151
   },
145 152
   components: {
@@ -152,7 +159,8 @@ export default {
152 159
     },
153 160
     ...mapMakingState({
154 161
       bannerBlack: item => item.bannerBlack,
155
-      bannerRed: item => item.bannerRed
162
+      bannerRed: item => item.bannerRed,
163
+      Email: item => item.email
156 164
     }),
157 165
     size () {
158 166
       if (this.mainIndex === 2 || this.mainIndex === 5 || this.mainIndex === 8 || this.mainIndex === 11) {
@@ -160,6 +168,14 @@ export default {
160 168
       } else {
161 169
         return '竖'
162 170
       }
171
+    },
172
+    email: {
173
+      get () {
174
+        return this.Email
175
+      },
176
+      set (val) {
177
+        this.setEmail(val)
178
+      }
163 179
     }
164 180
   },
165 181
   created () {
@@ -170,27 +186,24 @@ export default {
170 186
     }
171 187
   },
172 188
   methods: {
173
-    ...mapMakingActions(['setBanner', 'calendar']),
189
+    ...mapMakingActions(['setBanner', 'calendar', 'setEmail']),
174 190
     upload (url) {
175 191
       this.banner[this.mainIndex - 1].CustomerImg = url
176 192
       this.setBanner({ type: this.$route.query.type, data: JSON.parse(JSON.stringify(this.banner)) }).then(() => {
177
-        this.$nextTick(() => {
178
-          this.calSize().then(() => {
179
-            let cutDoms = document.getElementsByClassName('cutDom')[0]
180
-            let that = this
181
-            cutDoms.onload = function () {
182
-              that.convert2canvas(cutDoms, that.mainIndex - 1).then(() => {
183
-                that.isLoading = false
184
-              }).catch(() => {
185
-                that.isLoading = false
186
-              })
187
-            }
193
+        this.calSize().then(() => {
194
+          let cutDoms = document.getElementsByClassName('cutDom')[0]
195
+          this.convert2canvas(cutDoms, this.mainIndex - 1).then(() => {
196
+            this.isLoading = false
197
+          }).catch(() => {
198
+            this.isLoading = false
188 199
           })
189 200
         })
190 201
       })
191 202
     },
192 203
     onRead (file) {
193 204
       this.isLoading = true
205
+      // this.banner[this.mainIndex - 1].CustomerImgShow = file.content
206
+      // this.setBanner({ type: this.$route.query.type, data: JSON.parse(JSON.stringify(this.banner)) })
194 207
       this.toolClass.upload(file).then((res) => {
195 208
         this.upload(res.result.url)
196 209
       }).catch(() => {
@@ -198,20 +211,21 @@ export default {
198 211
       })
199 212
     },
200 213
     changeOld () {
214
+      if (!this.banner[this.mainIndex - 1].CustomerImg) {
215
+        return
216
+      }
201 217
       this.isLoading = true
202 218
       this.banner[this.mainIndex - 1].CustomerImg = ''
219
+      // this.banner[this.mainIndex - 1].CustomerImgShow = ''
203 220
       this.setBanner({ type: this.$route.query.type, data: JSON.parse(JSON.stringify(this.banner)) }).then(() => {
204 221
         this.$nextTick(() => {
205 222
           this.calSize().then(() => {
206 223
             let cutDoms = document.getElementsByClassName('cutDom')[0]
207
-            const that = this
208
-            cutDoms.onload = function () {
209
-              that.convert2canvas(cutDoms, that.mainIndex - 1).then(() => {
210
-                that.isLoading = false
211
-              }).catch(() => {
212
-                that.isLoading = false
213
-              })
214
-            }
224
+            this.convert2canvas(cutDoms, this.mainIndex - 1).then(() => {
225
+              this.isLoading = false
226
+            }).catch(() => {
227
+              this.isLoading = false
228
+            })
215 229
           })
216 230
         })
217 231
       })
@@ -235,6 +249,7 @@ export default {
235 249
           curr.CustomerImg = curr.defaultNoUser
236 250
         }
237 251
         delete curr['defaultNoUser']
252
+        delete curr['CustomerImgShow']
238 253
       });
239 254
       let submitData = {
240 255
         ModelName: this.$route.query.type == 1 ? '黑色' : '红色',
@@ -335,24 +350,39 @@ export default {
335 350
     calSize () {
336 351
       return new Promise((resolve) => {
337 352
         let rotate = this.size
338
-        let dom = document.getElementsByClassName('cla')[0]
353
+        let dom = document.getElementsByClassName('cla')
354
+        if (dom.length < 2) {
355
+          resolve()
356
+          return
357
+        }
358
+        dom = dom[1]
359
+        let parentW = dom.offsetWidth
360
+        let parentH = dom.offsetHeight
339 361
         dom.children[0].onload = function () {
340 362
           let imgW = dom.children[0].naturalWidth
341 363
           let imgH = dom.children[0].naturalHeight
342 364
           if (rotate === '横') {
343 365
             if (imgW <= imgH) {
344
-              dom.children[0].style = 'width:100%;position:absolute;left:0;top:50%;transform:translateY(-50%);'
366
+              dom.children[0].style = 'width:100%;'
367
+              let Offset = -((dom.children[0].height - parentH) / 2)
368
+              dom.children[0].style = `width:100%;position:relative;top:${Offset}px;left:0`
345 369
               resolve()
346 370
             } else {
347
-              dom.children[0].style = 'height:100%;position:absolute;top:0;left:50%;transform:translateX(-50%);'
371
+              dom.children[0].style = 'height:100%;'
372
+              let Offset = -((dom.children[0].width - parentW) / 2)
373
+              dom.children[0].style = `height:100%;position:relative;left:${Offset}px;top:0`
348 374
               resolve()
349 375
             }
350 376
           } else {
351 377
             if (imgW >= imgH) {
352
-              dom.children[0].style = 'height:100%;position:absolute;top:0;left:50%;transform:translateX(-50%);'
378
+              dom.children[0].style = 'height:100%;'
379
+              let Offset = -((dom.children[0].width - parentW) / 2)
380
+              dom.children[0].style = `height:100%;position:relative;left:${Offset}px;top:0`
353 381
               resolve()
354 382
             } else {
355
-              dom.children[0].style = 'width:100%;position:absolute;left:0;top:50%;transform:translateY(-50%);'
383
+              dom.children[0].style = 'width:100%;'
384
+              let Offset = -((dom.children[0].height - parentH) / 2)
385
+              dom.children[0].style = `width:100%;position:relative;top:${Offset}px;left:0`
356 386
               resolve()
357 387
             }
358 388
           }
@@ -371,9 +401,19 @@ export default {
371 401
 
372 402
 
373 403
 <style lang="scss" scoped>
404
+.input {
405
+  border-radius: 5px;
406
+  background: rgb(245, 246, 250);
407
+  width: 100%;
408
+  height: 0.4rem;
409
+  padding-left: 0.1rem;
410
+}
411
+.mainPage {
412
+  position: fixed;
413
+  overflow-y: scroll;
414
+}
374 415
 .cla {
375 416
   overflow: hidden;
376
-  position: relative;
377 417
   z-index: 10;
378 418
 }
379 419
 .loading {
@@ -406,7 +446,7 @@ export default {
406 446
 .pop-box {
407 447
   width: 100%;
408 448
   height: 100%;
409
-  position: absolute;
449
+  position: fixed;
410 450
   left: 0;
411 451
   top: 0;
412 452
   display: flex;
@@ -564,9 +604,9 @@ export default {
564 604
   align-items: center;
565 605
   padding: 0.15rem 0.2rem 0.3rem;
566 606
   > div {
567
-    flex: 1;
568 607
     text-align: center;
569 608
     height: 0.68rem;
609
+    margin: 0 0.4rem;
570 610
     img {
571 611
       width: 0.68rem;
572 612
       height: 0.68rem;

+ 1
- 1
src/pages/user/courseList/index.vue Просмотреть файл

@@ -84,7 +84,7 @@ export default {
84 84
             id: item.CourseId,
85 85
             title: item.CourseName,
86 86
             img: item.CourseImg,
87
-            remark: this.toolClass.dateFormat(item.BeginDate, 'yyyy-MM-dd') + '-' + this.toolClass.dateFormat(item.EndDate, 'yyyy-MM-dd'),
87
+            remark: this.toolClass.dateFormat(item.BeginDate, 'yyyy.MM.dd') + '~' + this.toolClass.dateFormat(item.EndDate, 'MM.dd'),
88 88
             address: item.CaseAddress,
89 89
             tag: item.CourseTags,
90 90
             courseType: '团体课',

+ 14
- 5
src/pages/user/customization/customizationDetail.vue Просмотреть файл

@@ -1,7 +1,7 @@
1 1
 <template>
2
-  <div v-if="showPage">
2
+  <div class="mainPage" v-if="showPage">
3 3
     <div class="top">
4
-      <img :src="topImg">
4
+      <img :src="detail.ModelName === '黑色'?topImgBlack:topImgRed">
5 5
       <div>
6 6
         <div class="list">
7 7
           <img :src="detail.ModelName === '黑色'?cover:cover2">
@@ -39,7 +39,7 @@
39 39
       </div>
40 40
     </div>
41 41
     <div class="foot">
42
-      <div>联系我们: 400-2435 3756</div>
42
+      <div>联系我们: 025-86426666</div>
43 43
     </div>
44 44
   </div>
45 45
 </template>
@@ -47,13 +47,15 @@
47 47
 <script>
48 48
 import cover from '@/common/icon/heise.png'
49 49
 import cover2 from '@/common/icon/honhse.png'
50
-import topImg from '@/common/icon/topImg.png'
50
+import topImgRed from '@/common/icon/topImgRed.jpg'
51
+import topImgBlack from '@/common/icon/topImgBlack.png'
51 52
 import { createNamespacedHelpers } from 'vuex'
52 53
 const { mapState: mapCustomizationState, mapActions: mapCustomizationActions } = createNamespacedHelpers('customization')
53 54
 export default {
54 55
   data () {
55 56
     return {
56
-      topImg,
57
+      topImgRed,
58
+      topImgBlack,
57 59
       cover,
58 60
       cover2,
59 61
       showPage: false,
@@ -83,6 +85,12 @@ export default {
83 85
 </script>
84 86
 
85 87
 <style lang="scss" scoped>
88
+.mainPage {
89
+  overflow-y: scroll;
90
+  -webkit-overflow-scrolling: touch;
91
+  transform: translateZ(0);
92
+  -webkit-transform: translateZ(0);
93
+}
86 94
 .title {
87 95
   font-size: 0.16rem;
88 96
   padding: 0.2rem 0 0.1rem 0.25rem;
@@ -162,6 +170,7 @@ export default {
162 170
 .bottom {
163 171
   background: #fff;
164 172
   .pic-list {
173
+    justify-content: center;
165 174
     padding: 0.05rem;
166 175
     box-sizing: border-box;
167 176
     display: flex;

+ 4
- 3
src/pages/user/customization/customizationList.vue Просмотреть файл

@@ -1,11 +1,10 @@
1 1
 <template>
2
-  <div class="content" v-if="showPage">
2
+  <div class="content mainPage" v-if="showPage">
3 3
     <div
4 4
       class="list"
5 5
       v-for="(item,index) in list"
6 6
       :key="index"
7 7
       @click="toDetail(item.CustomerCalendarId)"
8
-      v-if="list.length>0"
9 8
     >
10 9
       <img :src="item.ModelName === '黑色'?cover:cover2">
11 10
       <div>
@@ -15,7 +14,7 @@
15 14
       </div>
16 15
       <span>{{item.MakeStatus === 'making' ? '制作中' : '制作完成'}}</span>
17 16
     </div>
18
-    <noMore v-else></noMore>
17
+    <noMore v-if="list.length === 0"></noMore>
19 18
   </div>
20 19
 </template>
21 20
 
@@ -39,6 +38,7 @@ export default {
39 38
   created () {
40 39
     this.getList().then(() => {
41 40
       this.showPage = true
41
+      console.log(this.list)
42 42
     })
43 43
   },
44 44
   computed: {
@@ -67,6 +67,7 @@ export default {
67 67
 <style lang="scss" scoped>
68 68
 .content {
69 69
   padding: 0.2rem 0.16rem;
70
+  box-sizing: border-box;
70 71
   .list {
71 72
     padding: 0.16rem 0.1rem;
72 73
     display: flex;

+ 56
- 25
src/pages/user/mainPage/indexPage/index.vue Просмотреть файл

@@ -46,10 +46,10 @@
46 46
                 :to="{ name:'majorProjects', query:{ id: item.CmsCaseId } }"
47 47
                 style="width:100%;height:100%;position:relative;"
48 48
               >
49
-                <img :src="item.CaseImageUrl" class="cover" alt>
49
+                <img :src="getImg(item.CmsCaseImgs)" class="cover" alt>
50 50
                 <span v-if="item.CaseId!='all'">
51 51
                   <i class="iconfont icon-dingwei"></i>
52
-                  距离{{parseInt(toolClass.getGreatCircleDistance(latitude1, longitude1, item.Coordinate.split(',')[0], item.Coordinate.split(',')[1]))}}米
52
+                  {{item.jl}}
53 53
                 </span>
54 54
               </router-link>
55 55
             </swiper-slide>
@@ -83,7 +83,7 @@
83 83
                 <div class="price">
84 84
                   <span>¥{{item.Price}}</span>
85 85
                 </div>
86
-                <span>{{`${toolClass.dateFormat(item.BeginDate,'yyyy-MM-dd')}~${toolClass.dateFormat(item.EndDate,'MM-dd')}`}}</span>
86
+                <span>{{`${toolClass.dateFormat(item.BeginDate,'yyyy.MM.dd')}~${toolClass.dateFormat(item.EndDate,'MM.dd')}`}}</span>
87 87
                 <span>{{item.CaseName}}</span>
88 88
               </router-link>
89 89
             </swiper-slide>
@@ -127,6 +127,8 @@ import { swiper, swiperSlide } from 'vue-awesome-swiper'
127 127
 import 'swiper/dist/css/swiper.css'
128 128
 import { mapState, createNamespacedHelpers } from 'vuex'
129 129
 const { mapState: mapIndexState, mapActions: mapIndexActions } = createNamespacedHelpers('index')
130
+const wx = require('weixin-js-sdk')
131
+import wxsdk from '@/util/share'
130 132
 export default {
131 133
   name: '',
132 134
   data () {
@@ -174,33 +176,33 @@ export default {
174 176
     swiperSlide
175 177
   },
176 178
   created () {
177
-    this.getIndexLocation({ orgid: this.orgid, issys: '0' }).then((res) => {
178
-      // this.data.fiveA = this.fiveA
179
-      this.locationId = 'index'
180
-      this.getIndexInfo({ orgid: this.orgid, locationid: this.locationId }).then((res) => {
181
-        this.newsList = this.cms
182
-        if (this.project !== undefined && this.project !== null) {
183
-          for (let i = 0; i < this.project.length; i++) {
184
-            if (this.project[i].CmsCaseImgs != null) {
185
-              for (let j = 0; j < this.project[i].CmsCaseImgs.length; j++) {
186
-                if (this.project[i].CmsCaseImgs[j].ImageType === 'cover') {
187
-                  this.project[i].CaseImageUrl = this.project[i].CmsCaseImgs[j].CaseImageUrl
188
-                }
189
-              }
190
-            }
191
-          }
179
+    let that = this
180
+    wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
181
+      title: '城的空间',
182
+      desc: '城的空间',
183
+      link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
184
+      thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/indexlogo.jpg?x-oss-process=style/wxicon`
185
+    }).then(() => {
186
+      wx.getLocation({
187
+        type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
188
+        success: function (res) {
189
+          that.setLocation({ latitude1: res.latitude, longitude1: res.longitude })
190
+          that.showPage = true
191
+          that.init()
192
+        },
193
+        cancel: function () {
194
+          that.showPage = true
195
+          that.init()
196
+        },
197
+        fail: function () {
198
+          that.showPage = true
199
+          that.init()
192 200
         }
193 201
       })
194
-      this.getCourseList({
195
-        pagesize: 10000,
196
-        page: 1
197
-      }).then(() => {
198
-        this.showPage = true
199
-      })
200 202
     })
201 203
   },
202 204
   methods: {
203
-    ...mapIndexActions(['getIndexLocation', 'getIndexInfo', 'getCourseList']),
205
+    ...mapIndexActions(['getIndexLocation', 'getIndexInfo', 'getCourseList', 'setLocation']),
204 206
     jump (item) {
205 207
       item.ForwardType = item.ForwardType || ''
206 208
       if (item.ForwardType === 'url') {
@@ -218,6 +220,35 @@ export default {
218 220
         window.location.href = item.InfoUrl
219 221
         return
220 222
       }
223
+    },
224
+    getImg (list) {
225
+      return list.filter(item => item.ImageType === 'cover')[0].CaseImageUrl
226
+    },
227
+    init () {
228
+      this.getIndexLocation({ orgid: this.orgid, issys: '0' }).then((res) => {
229
+        // this.data.fiveA = this.fiveA
230
+        this.locationId = 'index'
231
+        this.getIndexInfo({ orgid: this.orgid, locationid: this.locationId }).then((res) => {
232
+          this.newsList = this.cms
233
+          if (this.project !== undefined && this.project !== null) {
234
+            for (let i = 0; i < this.project.length; i++) {
235
+              if (this.project[i].CmsCaseImgs != null) {
236
+                for (let j = 0; j < this.project[i].CmsCaseImgs.length; j++) {
237
+                  if (this.project[i].CmsCaseImgs[j].ImageType === 'cover') {
238
+                    this.project[i].CaseImageUrl = this.project[i].CmsCaseImgs[j].CaseImageUrl
239
+                  }
240
+                }
241
+              }
242
+            }
243
+          }
244
+        })
245
+        this.getCourseList({
246
+          pagesize: 10000,
247
+          page: 1
248
+        }).then(() => {
249
+          this.showPage = true
250
+        })
251
+      })
221 252
     }
222 253
   }
223 254
 }

+ 46
- 4
src/pages/user/majorProjectsList/index.vue Просмотреть файл

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div class="mainPage">
2
+  <div class="mainPage" v-if="showPage">
3 3
     <div class="flex-h">
4 4
       <div class="flex-item">
5 5
         <div>
@@ -12,7 +12,7 @@
12 12
               :to="{ name:'majorProjects', query:{ id: item.CmsCaseId } }"
13 13
             >
14 14
               <a class="img">
15
-                <img :src="item.CmsCaseImgs[0].CaseImageUrl" class="cover" alt>
15
+                <img :src="getImg(item.CmsCaseImgs)" class="cover" alt>
16 16
               </a>
17 17
               <router-link
18 18
                 tag="div"
@@ -33,17 +33,59 @@
33 33
 </template>
34 34
 
35 35
 <script>
36
-import { mapState } from 'vuex'
36
+import { mapState, createNamespacedHelpers } from 'vuex'
37
+const { mapActions: mapIndexActions } = createNamespacedHelpers('index')
38
+const wx = require('weixin-js-sdk')
39
+import wxsdk from '@/util/share'
37 40
 export default {
38 41
   name: '',
39 42
   data () {
40 43
     return {
44
+      showPage: false
41 45
     }
42 46
   },
43 47
   computed: {
44 48
     ...mapState({
45
-      project: x => x.index.project
49
+      project: x => x.index.project,
50
+      orgid: x => x.app.orgId
46 51
     })
52
+  },
53
+  created () {
54
+    let that = this
55
+    wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
56
+      title: '城的空间',
57
+      desc: '城的空间',
58
+      link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
59
+      thu_image: `https://spaceofcheng.oss-cn-beijing.aliyuncs.com/indexlogo.jpg?x-oss-process=style/wxicon`
60
+    }).then(() => {
61
+      wx.getLocation({
62
+        type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
63
+        success: function (res) {
64
+          that.setLocation({ latitude1: res.latitude, longitude1: res.longitude })
65
+          that.showPage = true
66
+          that.init()
67
+        },
68
+        cancel: function () {
69
+          that.showPage = true
70
+          that.init()
71
+        },
72
+        fail: function () {
73
+          that.showPage = true
74
+          that.init()
75
+        }
76
+      })
77
+    })
78
+  },
79
+  methods: {
80
+    ...mapIndexActions(['getProjectList', 'setLocation']),
81
+    getImg (list) {
82
+      return list.filter(item => item.ImageType === 'cover')[0].CaseImageUrl
83
+    },
84
+    init () {
85
+      this.getProjectList({ orgid: this.orgid, locationid: 'index' }).then(() => {
86
+        this.showPage = true
87
+      })
88
+    }
47 89
   }
48 90
 }
49 91
 </script>

+ 2
- 2
src/pages/user/majorProjectsList/page.scss Просмотреть файл

@@ -37,10 +37,10 @@
37 37
                   width: 100%;
38 38
                   display: block;
39 39
                   line-height: .2rem;
40
-                  font-size: .14rem;
40
+                  font-size: .15rem;
41 41
                   font-weight: bolder;
42 42
                   &:nth-child(2){
43
-                    font-size: .12rem;
43
+                    font-size: .13rem;
44 44
                     color: #999;
45 45
                     font-weight: normal;
46 46
                   }

+ 26
- 18
src/store/index/index.js Просмотреть файл

@@ -114,27 +114,35 @@ export default {
114 114
       }
115 115
     },
116 116
     setProject (state, data) { // 获取项目专题
117
-      data = data || []
118
-      let arr = []
119
-      let dataNew = []
120
-      data.forEach((item) => {
121
-        if (item.Coordinate) {
122
-          item.jl = parseInt(toolClass.getGreatCircleDistance(state.latitude1, state.longitude1, item.Coordinate.split(',')[0], item.Coordinate.split(',')[1]))
123
-          arr.push(parseInt(toolClass.getGreatCircleDistance(state.latitude1, state.longitude1, item.Coordinate.split(',')[0], item.Coordinate.split(',')[1])))
124
-        } else {
125
-          item.jl = 400000000
126
-          arr.push(400000000)
127
-        }
128
-      })
129
-      arr.sort((a, b) => { return a - b })
130
-      arr.forEach((curr) => {
117
+      if (state.latitude1 === 0 && state.longitude1 === 0) {
118
+        data.forEach((item) => {
119
+          item.jl = '未获取到当前定位'
120
+        })
121
+        state.project = data
122
+      } else {
123
+        data = data || []
124
+        let arr = []
125
+        let dataNew = []
131 126
         data.forEach((item) => {
132
-          if (curr === item.jl) {
133
-            dataNew.push(item)
127
+          if (item.Coordinate) {
128
+            item.jl = parseInt(toolClass.getGreatCircleDistance(state.latitude1, state.longitude1, item.Coordinate.split(',')[0], item.Coordinate.split(',')[1]))
129
+            arr.push({ jl: item.jl, CmsCaseId: item.CmsCaseId })
130
+          } else {
131
+            item.jl = 400000000
132
+            arr.push({ jl: item.jl, CmsCaseId: item.CmsCaseId })
134 133
           }
135 134
         })
136
-      })
137
-      state.project = dataNew
135
+        arr.sort((a, b) => { return a.jl - b.jl })
136
+        arr.forEach((curr) => {
137
+          data.forEach((item) => {
138
+            if (curr.CmsCaseId === item.CmsCaseId && item.jl === curr.jl) {
139
+              item.jl = `距离${item.jl}米`
140
+              dataNew.push(item)
141
+            }
142
+          })
143
+        })
144
+        state.project = dataNew
145
+      }
138 146
     },
139 147
     setCms (state, data) { // 获取cms
140 148
       data = data || []

+ 34
- 0
src/store/making/index.js Просмотреть файл

@@ -59,6 +59,7 @@ export default {
59 59
         defaultBg: b1,
60 60
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/96917dcd-ed9f-446b-b54d-d2160416cf1a-20181205094151.jpg',
61 61
         CustomerImg: '',
62
+        CustomerImgShow: '',
62 63
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b1.jpg',
63 64
         ImgName: '1月',
64 65
         Sort: 2,
@@ -70,6 +71,7 @@ export default {
70 71
         defaultBg: b2,
71 72
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/dd3e0c2d-5ea4-47d5-84b7-c1259ddf9cf1-20181205094235.jpg',
72 73
         CustomerImg: '',
74
+        CustomerImgShow: '',
73 75
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b2.jpg',
74 76
         ImgName: '2月',
75 77
         Sort: 3,
@@ -81,6 +83,7 @@ export default {
81 83
         defaultBg: b3,
82 84
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/3a24c0c3-694f-4af2-aa09-0287eb0110fd-20181205094257.jpg',
83 85
         CustomerImg: '',
86
+        CustomerImgShow: '',
84 87
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b3.jpg',
85 88
         ImgName: '3月',
86 89
         Sort: 4,
@@ -92,6 +95,7 @@ export default {
92 95
         defaultBg: b4,
93 96
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/b387debc-dc6b-4864-8d26-ce41c2702f1a-20181205094322.jpg',
94 97
         CustomerImg: '',
98
+        CustomerImgShow: '',
95 99
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b4.jpg',
96 100
         ImgName: '4月',
97 101
         Sort: 5,
@@ -103,6 +107,7 @@ export default {
103 107
         defaultBg: b5,
104 108
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/c5b51b42-078d-414b-8cb8-5b5daf6e5463-20181205094344.jpg',
105 109
         CustomerImg: '',
110
+        CustomerImgShow: '',
106 111
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b5.jpg',
107 112
         ImgName: '5月',
108 113
         Sort: 6,
@@ -114,6 +119,7 @@ export default {
114 119
         defaultBg: b6,
115 120
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/8b6a3cb2-23d2-4993-b84b-308e9b302cda-20181205094359.jpg',
116 121
         CustomerImg: '',
122
+        CustomerImgShow: '',
117 123
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b6.jpg',
118 124
         ImgName: '6月',
119 125
         Sort: 7,
@@ -125,6 +131,7 @@ export default {
125 131
         defaultBg: b7,
126 132
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/11a72196-3ca1-4759-88c3-6b4317928857-20181205094421.jpg',
127 133
         CustomerImg: '',
134
+        CustomerImgShow: '',
128 135
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b7.jpg',
129 136
         ImgName: '7月',
130 137
         Sort: 8,
@@ -136,6 +143,7 @@ export default {
136 143
         defaultBg: b8,
137 144
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/0d563fa7-7a5c-46fe-bddc-dbb9cdfba160-20181205094436.jpg',
138 145
         CustomerImg: '',
146
+        CustomerImgShow: '',
139 147
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b8.jpg',
140 148
         ImgName: '8月',
141 149
         Sort: 9,
@@ -147,6 +155,7 @@ export default {
147 155
         defaultBg: b9,
148 156
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/44f83cc7-f57b-472d-b65b-84b5b10babc7-20181205094453.jpg',
149 157
         CustomerImg: '',
158
+        CustomerImgShow: '',
150 159
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b9.jpg',
151 160
         ImgName: '9月',
152 161
         Sort: 10,
@@ -158,6 +167,7 @@ export default {
158 167
         defaultBg: b10,
159 168
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/6cf9a507-87c2-47f9-ad15-990032ecdaac-20181205094510.jpg',
160 169
         CustomerImg: '',
170
+        CustomerImgShow: '',
161 171
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b10.jpg',
162 172
         ImgName: '10月',
163 173
         Sort: 11,
@@ -169,6 +179,7 @@ export default {
169 179
         defaultBg: b11,
170 180
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/2e8d2090-c528-4f37-8964-201a638e17ed-20181205094529.jpg',
171 181
         CustomerImg: '',
182
+        CustomerImgShow: '',
172 183
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b11.jpg',
173 184
         ImgName: '11月',
174 185
         Sort: 12,
@@ -180,6 +191,7 @@ export default {
180 191
         defaultBg: b12,
181 192
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/e36c0bd2-5a48-42f0-86c6-99a56bb27210-20181205094545.jpg',
182 193
         CustomerImg: '',
194
+        CustomerImgShow: '',
183 195
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b12.jpg',
184 196
         ImgName: '12月',
185 197
         Sort: 13,
@@ -193,6 +205,7 @@ export default {
193 205
         defaultBg: '',
194 206
         CalendarImg: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/coverRed.jpg',
195 207
         CustomerImg: '',
208
+        CustomerImgShow: '',
196 209
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/coverRed.jpg',
197 210
         ImgName: '封面',
198 211
         Sort: 1,
@@ -203,6 +216,7 @@ export default {
203 216
         defaultBg: b1,
204 217
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/de1214b4-2984-4d42-b224-66ea4f199b83-20181205094956.jpg',
205 218
         CustomerImg: '',
219
+        CustomerImgShow: '',
206 220
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b1.jpg',
207 221
         ImgName: '1月',
208 222
         Sort: 2,
@@ -214,6 +228,7 @@ export default {
214 228
         defaultBg: b2,
215 229
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/c5d961ed-6a8e-401a-b371-19e3c7be070a-20181205095012.jpg',
216 230
         CustomerImg: '',
231
+        CustomerImgShow: '',
217 232
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b2.jpg',
218 233
         ImgName: '2月',
219 234
         Sort: 3,
@@ -225,6 +240,7 @@ export default {
225 240
         defaultBg: b3,
226 241
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/390afecc-e7f9-4643-beaf-e696de93f2bf-20181205095032.jpg',
227 242
         CustomerImg: '',
243
+        CustomerImgShow: '',
228 244
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b3.jpg',
229 245
         ImgName: '3月',
230 246
         Sort: 4,
@@ -236,6 +252,7 @@ export default {
236 252
         defaultBg: b4,
237 253
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/52015d95-f4a3-44bc-9650-79750c3a8a55-20181205095057.jpg',
238 254
         CustomerImg: '',
255
+        CustomerImgShow: '',
239 256
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b4.jpg',
240 257
         ImgName: '4月',
241 258
         Sort: 5,
@@ -247,6 +264,7 @@ export default {
247 264
         defaultBg: b5,
248 265
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/2ea3e866-151b-4a38-8899-778113672e4b-20181205095118.jpg',
249 266
         CustomerImg: '',
267
+        CustomerImgShow: '',
250 268
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b5.jpg',
251 269
         ImgName: '5月',
252 270
         Sort: 6,
@@ -258,6 +276,7 @@ export default {
258 276
         defaultBg: b6,
259 277
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/23c4e345-addf-40cd-b383-658f2a998367-20181205095139.jpg',
260 278
         CustomerImg: '',
279
+        CustomerImgShow: '',
261 280
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b6.jpg',
262 281
         ImgName: '6月',
263 282
         Sort: 7,
@@ -269,6 +288,7 @@ export default {
269 288
         defaultBg: b7,
270 289
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/f686a7cd-b7d1-4501-aaad-177c10377618-20181205095200.jpg',
271 290
         CustomerImg: '',
291
+        CustomerImgShow: '',
272 292
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b7.jpg',
273 293
         ImgName: '7月',
274 294
         Sort: 8,
@@ -280,6 +300,7 @@ export default {
280 300
         defaultBg: b8,
281 301
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/04d53ced-f552-4986-8f53-8ddc52f2ea9f-20181205095229.jpg',
282 302
         CustomerImg: '',
303
+        CustomerImgShow: '',
283 304
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b8.jpg',
284 305
         ImgName: '8月',
285 306
         Sort: 9,
@@ -291,6 +312,7 @@ export default {
291 312
         defaultBg: b9,
292 313
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/e8c6cf08-9036-4e50-9c2f-4ebc5d79f4d5-20181205095248.jpg',
293 314
         CustomerImg: '',
315
+        CustomerImgShow: '',
294 316
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b9.jpg',
295 317
         ImgName: '9月',
296 318
         Sort: 10,
@@ -302,6 +324,7 @@ export default {
302 324
         defaultBg: b10,
303 325
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/2c5cceb6-f418-4e49-bba6-bbd9f36eec2c-20181205095306.jpg',
304 326
         CustomerImg: '',
327
+        CustomerImgShow: '',
305 328
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b10.jpg',
306 329
         ImgName: '10月',
307 330
         Sort: 11,
@@ -313,6 +336,7 @@ export default {
313 336
         defaultBg: b11,
314 337
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/e471c47e-2142-47e1-ad26-abe87af7b168-20181205095320.jpg',
315 338
         CustomerImg: '',
339
+        CustomerImgShow: '',
316 340
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b11.jpg',
317 341
         ImgName: '11月',
318 342
         Sort: 12,
@@ -324,6 +348,7 @@ export default {
324 348
         defaultBg: b12,
325 349
         CalendarImg: 'http://spaceofcheng.oss-cn-beijing.aliyuncs.com/0592e7b4-f7c5-44dd-a557-e20b282e60ca-20181205095342.jpg',
326 350
         CustomerImg: '',
351
+        CustomerImgShow: '',
327 352
         defaultNoUser: 'https://spaceofcheng.oss-cn-beijing.aliyuncs.com/calendar/b12.jpg',
328 353
         ImgName: '12月',
329 354
         Sort: 13,
@@ -343,6 +368,9 @@ export default {
343 368
     },
344 369
     upDateWindowLoad (state, data) {
345 370
       state.windowLoad = data
371
+    },
372
+    upDateEmail (state, data) {
373
+      state.email = data
346 374
     }
347 375
   },
348 376
   actions: {
@@ -352,6 +380,12 @@ export default {
352 380
         resolve()
353 381
       })
354 382
     },
383
+    setEmail (context, data) {
384
+      return new Promise((resolve) => {
385
+        context.commit('upDateEmail', data)
386
+        resolve()
387
+      })
388
+    },
355 389
     calendar (context, data) {
356 390
       return new Promise((resolve, reject) => {
357 391
         Ajax({