yuantianjiao 6 years ago
parent
commit
4d4554b43a

BIN
src/common/icon/topImg.png View File


BIN
src/common/icon/topImgBlack.png View File


BIN
src/common/icon/topImgRed.jpg View File


+ 2
- 20
src/pages/user/App.vue View File

8
 import '../../common/css/reset.css'
8
 import '../../common/css/reset.css'
9
 import { mapState, createNamespacedHelpers } from 'vuex'
9
 import { mapState, createNamespacedHelpers } from 'vuex'
10
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
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
 export default {
11
 export default {
15
   name: 'app',
12
   name: 'app',
16
   data () {
13
   data () {
17
     return {
14
     return {
18
-      showPage: false
15
+      showPage: false 
19
     }
16
     }
20
   },
17
   },
21
   components: {},
18
   components: {},
32
       this.code = null
29
       this.code = null
33
     }
30
     }
34
     this.getUserInfo({ org: this.org, code: this.code }).then(() => {
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
   methods: {
35
   methods: {
53
-    ...mapIndexActions(['setLocation']),
54
     ...actions(['getUserInfo'])
36
     ...actions(['getUserInfo'])
55
   }
37
   }
56
 }
38
 }

+ 7
- 5
src/pages/user/activeList/activeList.vue View File

1
 <template>
1
 <template>
2
-  <div class="content">
2
+  <div class="content mainPage">
3
     <div class="list" @click="toCustomizationList">
3
     <div class="list" @click="toCustomizationList">
4
       <img :src="dz">
4
       <img :src="dz">
5
       <span>定制记录</span>
5
       <span>定制记录</span>
28
 .content {
28
 .content {
29
   padding: 0 0 0 0.1rem;
29
   padding: 0 0 0 0.1rem;
30
   background: #fff;
30
   background: #fff;
31
+  height: 100%;
32
+  box-sizing: border-box;
31
   .list {
33
   .list {
32
     width: 100%;
34
     width: 100%;
33
     height: 0.8rem;
35
     height: 0.8rem;
49
       text-overflow: ellipsis;
51
       text-overflow: ellipsis;
50
       white-space: nowrap;
52
       white-space: nowrap;
51
       font-size: 0.14rem;
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 View File

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

+ 17
- 12
src/pages/user/calendar/calendar.vue View File

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

+ 147
- 107
src/pages/user/calendar/making.vue View File

1
 <template>
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
         </div>
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
       </div>
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
               </div>
47
               </div>
46
             </div>
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
       </div>
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
       </div>
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
       </div>
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
       </div>
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
         </div>
94
         </div>
87
       </div>
95
       </div>
88
     </div>
96
     </div>
138
             })
146
             })
139
           }
147
           }
140
         }
148
         }
141
-      },
142
-      email: ''
149
+      }
143
     }
150
     }
144
   },
151
   },
145
   components: {
152
   components: {
152
     },
159
     },
153
     ...mapMakingState({
160
     ...mapMakingState({
154
       bannerBlack: item => item.bannerBlack,
161
       bannerBlack: item => item.bannerBlack,
155
-      bannerRed: item => item.bannerRed
162
+      bannerRed: item => item.bannerRed,
163
+      Email: item => item.email
156
     }),
164
     }),
157
     size () {
165
     size () {
158
       if (this.mainIndex === 2 || this.mainIndex === 5 || this.mainIndex === 8 || this.mainIndex === 11) {
166
       if (this.mainIndex === 2 || this.mainIndex === 5 || this.mainIndex === 8 || this.mainIndex === 11) {
160
       } else {
168
       } else {
161
         return '竖'
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
   created () {
181
   created () {
170
     }
186
     }
171
   },
187
   },
172
   methods: {
188
   methods: {
173
-    ...mapMakingActions(['setBanner', 'calendar']),
189
+    ...mapMakingActions(['setBanner', 'calendar', 'setEmail']),
174
     upload (url) {
190
     upload (url) {
175
       this.banner[this.mainIndex - 1].CustomerImg = url
191
       this.banner[this.mainIndex - 1].CustomerImg = url
176
       this.setBanner({ type: this.$route.query.type, data: JSON.parse(JSON.stringify(this.banner)) }).then(() => {
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
     onRead (file) {
203
     onRead (file) {
193
       this.isLoading = true
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
       this.toolClass.upload(file).then((res) => {
207
       this.toolClass.upload(file).then((res) => {
195
         this.upload(res.result.url)
208
         this.upload(res.result.url)
196
       }).catch(() => {
209
       }).catch(() => {
198
       })
211
       })
199
     },
212
     },
200
     changeOld () {
213
     changeOld () {
214
+      if (!this.banner[this.mainIndex - 1].CustomerImg) {
215
+        return
216
+      }
201
       this.isLoading = true
217
       this.isLoading = true
202
       this.banner[this.mainIndex - 1].CustomerImg = ''
218
       this.banner[this.mainIndex - 1].CustomerImg = ''
219
+      // this.banner[this.mainIndex - 1].CustomerImgShow = ''
203
       this.setBanner({ type: this.$route.query.type, data: JSON.parse(JSON.stringify(this.banner)) }).then(() => {
220
       this.setBanner({ type: this.$route.query.type, data: JSON.parse(JSON.stringify(this.banner)) }).then(() => {
204
         this.$nextTick(() => {
221
         this.$nextTick(() => {
205
           this.calSize().then(() => {
222
           this.calSize().then(() => {
206
             let cutDoms = document.getElementsByClassName('cutDom')[0]
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
           curr.CustomerImg = curr.defaultNoUser
249
           curr.CustomerImg = curr.defaultNoUser
236
         }
250
         }
237
         delete curr['defaultNoUser']
251
         delete curr['defaultNoUser']
252
+        delete curr['CustomerImgShow']
238
       });
253
       });
239
       let submitData = {
254
       let submitData = {
240
         ModelName: this.$route.query.type == 1 ? '黑色' : '红色',
255
         ModelName: this.$route.query.type == 1 ? '黑色' : '红色',
335
     calSize () {
350
     calSize () {
336
       return new Promise((resolve) => {
351
       return new Promise((resolve) => {
337
         let rotate = this.size
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
         dom.children[0].onload = function () {
361
         dom.children[0].onload = function () {
340
           let imgW = dom.children[0].naturalWidth
362
           let imgW = dom.children[0].naturalWidth
341
           let imgH = dom.children[0].naturalHeight
363
           let imgH = dom.children[0].naturalHeight
342
           if (rotate === '横') {
364
           if (rotate === '横') {
343
             if (imgW <= imgH) {
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
               resolve()
369
               resolve()
346
             } else {
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
               resolve()
374
               resolve()
349
             }
375
             }
350
           } else {
376
           } else {
351
             if (imgW >= imgH) {
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
               resolve()
381
               resolve()
354
             } else {
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
               resolve()
386
               resolve()
357
             }
387
             }
358
           }
388
           }
371
 
401
 
372
 
402
 
373
 <style lang="scss" scoped>
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
 .cla {
415
 .cla {
375
   overflow: hidden;
416
   overflow: hidden;
376
-  position: relative;
377
   z-index: 10;
417
   z-index: 10;
378
 }
418
 }
379
 .loading {
419
 .loading {
406
 .pop-box {
446
 .pop-box {
407
   width: 100%;
447
   width: 100%;
408
   height: 100%;
448
   height: 100%;
409
-  position: absolute;
449
+  position: fixed;
410
   left: 0;
450
   left: 0;
411
   top: 0;
451
   top: 0;
412
   display: flex;
452
   display: flex;
564
   align-items: center;
604
   align-items: center;
565
   padding: 0.15rem 0.2rem 0.3rem;
605
   padding: 0.15rem 0.2rem 0.3rem;
566
   > div {
606
   > div {
567
-    flex: 1;
568
     text-align: center;
607
     text-align: center;
569
     height: 0.68rem;
608
     height: 0.68rem;
609
+    margin: 0 0.4rem;
570
     img {
610
     img {
571
       width: 0.68rem;
611
       width: 0.68rem;
572
       height: 0.68rem;
612
       height: 0.68rem;

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

84
             id: item.CourseId,
84
             id: item.CourseId,
85
             title: item.CourseName,
85
             title: item.CourseName,
86
             img: item.CourseImg,
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
             address: item.CaseAddress,
88
             address: item.CaseAddress,
89
             tag: item.CourseTags,
89
             tag: item.CourseTags,
90
             courseType: '团体课',
90
             courseType: '团体课',

+ 14
- 5
src/pages/user/customization/customizationDetail.vue View File

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

+ 4
- 3
src/pages/user/customization/customizationList.vue View File

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

+ 56
- 25
src/pages/user/mainPage/indexPage/index.vue View File

46
                 :to="{ name:'majorProjects', query:{ id: item.CmsCaseId } }"
46
                 :to="{ name:'majorProjects', query:{ id: item.CmsCaseId } }"
47
                 style="width:100%;height:100%;position:relative;"
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
                 <span v-if="item.CaseId!='all'">
50
                 <span v-if="item.CaseId!='all'">
51
                   <i class="iconfont icon-dingwei"></i>
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
                 </span>
53
                 </span>
54
               </router-link>
54
               </router-link>
55
             </swiper-slide>
55
             </swiper-slide>
83
                 <div class="price">
83
                 <div class="price">
84
                   <span>¥{{item.Price}}</span>
84
                   <span>¥{{item.Price}}</span>
85
                 </div>
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
                 <span>{{item.CaseName}}</span>
87
                 <span>{{item.CaseName}}</span>
88
               </router-link>
88
               </router-link>
89
             </swiper-slide>
89
             </swiper-slide>
127
 import 'swiper/dist/css/swiper.css'
127
 import 'swiper/dist/css/swiper.css'
128
 import { mapState, createNamespacedHelpers } from 'vuex'
128
 import { mapState, createNamespacedHelpers } from 'vuex'
129
 const { mapState: mapIndexState, mapActions: mapIndexActions } = createNamespacedHelpers('index')
129
 const { mapState: mapIndexState, mapActions: mapIndexActions } = createNamespacedHelpers('index')
130
+const wx = require('weixin-js-sdk')
131
+import wxsdk from '@/util/share'
130
 export default {
132
 export default {
131
   name: '',
133
   name: '',
132
   data () {
134
   data () {
174
     swiperSlide
176
     swiperSlide
175
   },
177
   },
176
   created () {
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
   methods: {
204
   methods: {
203
-    ...mapIndexActions(['getIndexLocation', 'getIndexInfo', 'getCourseList']),
205
+    ...mapIndexActions(['getIndexLocation', 'getIndexInfo', 'getCourseList', 'setLocation']),
204
     jump (item) {
206
     jump (item) {
205
       item.ForwardType = item.ForwardType || ''
207
       item.ForwardType = item.ForwardType || ''
206
       if (item.ForwardType === 'url') {
208
       if (item.ForwardType === 'url') {
218
         window.location.href = item.InfoUrl
220
         window.location.href = item.InfoUrl
219
         return
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 View File

1
 <template>
1
 <template>
2
-  <div class="mainPage">
2
+  <div class="mainPage" v-if="showPage">
3
     <div class="flex-h">
3
     <div class="flex-h">
4
       <div class="flex-item">
4
       <div class="flex-item">
5
         <div>
5
         <div>
12
               :to="{ name:'majorProjects', query:{ id: item.CmsCaseId } }"
12
               :to="{ name:'majorProjects', query:{ id: item.CmsCaseId } }"
13
             >
13
             >
14
               <a class="img">
14
               <a class="img">
15
-                <img :src="item.CmsCaseImgs[0].CaseImageUrl" class="cover" alt>
15
+                <img :src="getImg(item.CmsCaseImgs)" class="cover" alt>
16
               </a>
16
               </a>
17
               <router-link
17
               <router-link
18
                 tag="div"
18
                 tag="div"
33
 </template>
33
 </template>
34
 
34
 
35
 <script>
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
 export default {
40
 export default {
38
   name: '',
41
   name: '',
39
   data () {
42
   data () {
40
     return {
43
     return {
44
+      showPage: false
41
     }
45
     }
42
   },
46
   },
43
   computed: {
47
   computed: {
44
     ...mapState({
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
 </script>
91
 </script>

+ 2
- 2
src/pages/user/majorProjectsList/page.scss View File

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

+ 26
- 18
src/store/index/index.js View File

114
       }
114
       }
115
     },
115
     },
116
     setProject (state, data) { // 获取项目专题
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
         data.forEach((item) => {
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
     setCms (state, data) { // 获取cms
147
     setCms (state, data) { // 获取cms
140
       data = data || []
148
       data = data || []

+ 34
- 0
src/store/making/index.js View File

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