瀏覽代碼

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/wechat into dev

wangfei 6 年之前
父節點
當前提交
d53b0c78e6

二進制
src/common/icon/bottomMsg.png 查看文件


+ 1
- 1
src/pages/user/App.vue 查看文件

1
 <template>
1
 <template>
2
   <div id="app" v-if="showPage">
2
   <div id="app" v-if="showPage">
3
-    <router-view ></router-view>
3
+    <router-view></router-view>
4
   </div>
4
   </div>
5
 </template>
5
 </template>
6
 
6
 

+ 2
- 0
src/pages/user/app.js 查看文件

8
 import Ajax from '../../util/ajax'
8
 import Ajax from '../../util/ajax'
9
 import api from '../../util/api'
9
 import api from '../../util/api'
10
 import toolClass from '../../util/util'
10
 import toolClass from '../../util/util'
11
+const Base64 = require('js-base64').Base64
11
 
12
 
12
 Vue.use(Vant)
13
 Vue.use(Vant)
13
 Vue.use(Vuex)
14
 Vue.use(Vuex)
14
 Vue.prototype.$api = api
15
 Vue.prototype.$api = api
15
 Vue.prototype.$ajax = Ajax
16
 Vue.prototype.$ajax = Ajax
17
+Vue.prototype.Base64 = Base64
16
 Vue.prototype.toolClass = toolClass
18
 Vue.prototype.toolClass = toolClass
17
 /* eslint-disable no-new */
19
 /* eslint-disable no-new */
18
 new Vue({
20
 new Vue({

+ 2
- 2
src/pages/user/bindMobile/page.scss 查看文件

82
         justify-content: space-between;
82
         justify-content: space-between;
83
         span{
83
         span{
84
           color: rgba(168,182,200,1);
84
           color: rgba(168,182,200,1);
85
+          white-space: nowrap;
85
         }
86
         }
86
         i{
87
         i{
87
           color: rgba(168,182,200,1);
88
           color: rgba(168,182,200,1);
88
-          padding-left: .14rem;
89
           font-size: .12rem;
89
           font-size: .12rem;
90
         }
90
         }
91
         div{
91
         div{
99
           padding: .1rem;
99
           padding: .1rem;
100
           box-sizing: border-box;
100
           box-sizing: border-box;
101
           span{
101
           span{
102
-            width: 70%;
102
+            width: 85%;
103
             overflow:hidden;
103
             overflow:hidden;
104
             text-overflow:ellipsis;
104
             text-overflow:ellipsis;
105
             white-space:nowrap;
105
             white-space:nowrap;

+ 1
- 1
src/pages/user/card/index.vue 查看文件

143
           })
143
           })
144
         }
144
         }
145
       } else {
145
       } else {
146
-        this.data[this.active].hasPic
146
+        this.data[this.active].hasPic = true
147
       }
147
       }
148
     })
148
     })
149
   },
149
   },

+ 19
- 10
src/pages/user/fiveA/index.vue 查看文件

83
     const _that = this
83
     const _that = this
84
     this.getLocationDetails().then(res => {
84
     this.getLocationDetails().then(res => {
85
       _that.locations = res
85
       _that.locations = res
86
+      let id = _that.$route.query.id
87
+      let index = 0
88
+      for (let i = 0; i < _that.locations.length; i++) {
89
+        if (_that.locations[i].LocationId === id) {
90
+          index = i
91
+        }
92
+      }
93
+      console.log(index)
94
+      _that.changeLocation(id, index)
86
     })
95
     })
87
   },
96
   },
88
   methods: {
97
   methods: {
94
     },
103
     },
95
     courseInfo (course) {
104
     courseInfo (course) {
96
       return {
105
       return {
97
-          id: course.CourseId,
98
-          title: course.CourseName,
99
-          img: course.CourseImg,
100
-          remark: course.Remark,
101
-          address: course.CaseAddress,
102
-          tag: course.CourseTags || [],
103
-          courseType: '',
104
-          defaultPrice: course.Price + '/节',
105
-          getWay: 'ticket'
106
-        }
106
+        id: course.CourseId,
107
+        title: course.CourseName,
108
+        img: course.CourseImg,
109
+        remark: course.Remark,
110
+        address: course.CaseAddress,
111
+        tag: course.CourseTags || [],
112
+        courseType: '',
113
+        defaultPrice: course.Price + '/节',
114
+        getWay: 'ticket'
115
+      }
107
     },
116
     },
108
     // returnCourseList (arr) { // 转换课程列表格式
117
     // returnCourseList (arr) { // 转换课程列表格式
109
     //   for (var n = 0; n < arr.length; n++) {
118
     //   for (var n = 0; n < arr.length; n++) {

+ 1
- 4
src/pages/user/lessonDetail/index.vue 查看文件

46
       </div>
46
       </div>
47
       <div class="qr-code" v-if="courseOrderDetail.IsDone === 0">
47
       <div class="qr-code" v-if="courseOrderDetail.IsDone === 0">
48
         <qrCode v-if="showQrCode" :msg="courseOrderDetail.QrCodeString"></qrCode>
48
         <qrCode v-if="showQrCode" :msg="courseOrderDetail.QrCodeString"></qrCode>
49
+        <div>{{courseOrderDetail.QrCodeString}}</div>
49
       </div>
50
       </div>
50
     </div>
51
     </div>
51
     <div class="useType">
52
     <div class="useType">
65
 export default {
66
 export default {
66
   data () {
67
   data () {
67
     return {
68
     return {
68
-      msg: {
69
-        course_type: 800,
70
-        orderNo: '342897789334'
71
-      },
72
       useType: '未使用',
69
       useType: '未使用',
73
       used,
70
       used,
74
       failure,
71
       failure,

+ 6
- 1
src/pages/user/lessonDetail/page.scss 查看文件

66
   }
66
   }
67
   .useType{
67
   .useType{
68
     position: absolute;
68
     position: absolute;
69
-    top: 2.5rem;
69
+    top: 3.3rem;
70
     right: .5rem;
70
     right: .5rem;
71
     width: .76rem;
71
     width: .76rem;
72
     height: .76rem;
72
     height: .76rem;
75
     font-size: .12rem;
75
     font-size: .12rem;
76
     color: #FC6243 !important;
76
     color: #FC6243 !important;
77
   }
77
   }
78
+  .qr-code{
79
+    div{
80
+      text-align: center;
81
+    }
82
+  }
78
 }
83
 }

+ 1
- 1
src/pages/user/mainPage/coffeeIndex/index.vue 查看文件

482
           title: '城的空间',
482
           title: '城的空间',
483
           desc: '城的空间',
483
           desc: '城的空间',
484
           link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
484
           link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
485
-          thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg`
485
+          thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg?x-oss-process=style/wxicon`
486
         }).then(() => {
486
         }).then(() => {
487
           wx.getLocation({
487
           wx.getLocation({
488
             type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
488
             type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'

+ 1
- 1
src/pages/user/mainPage/userCenter/index.vue 查看文件

117
       let userid = this.userInfo.customer.CustomerId
117
       let userid = this.userInfo.customer.CustomerId
118
       let num = Math.floor(Math.random() * 10 + 1) * 100 + Math.floor(Math.random() * 10 + 1) * 10 + Math.floor(Math.random() * 10 + 1)
118
       let num = Math.floor(Math.random() * 10 + 1) * 100 + Math.floor(Math.random() * 10 + 1) * 10 + Math.floor(Math.random() * 10 + 1)
119
       num = num >= 1000 ? 999 : num
119
       num = num >= 1000 ? 999 : num
120
-      userid = parseInt(`${userid}${num}`) ^ 97
120
+      userid = `${userid}${num}`
121
       window.location.href = `${window.location.origin}/game/luckdraw/#/lotteryList?from=${userid}`
121
       window.location.href = `${window.location.origin}/game/luckdraw/#/lotteryList?from=${userid}`
122
     }
122
     }
123
   }
123
   }

+ 1
- 1
src/pages/user/majorProjectsDetail/index.vue 查看文件

186
         title: '城的空间',
186
         title: '城的空间',
187
         desc: '城的空间',
187
         desc: '城的空间',
188
         link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
188
         link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
189
-        thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg`
189
+        thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg?x-oss-process=style/wxicon`
190
       }).then(() => {
190
       }).then(() => {
191
         let result = this.courseDetail.CaseInfo.Coordinate.split(",")
191
         let result = this.courseDetail.CaseInfo.Coordinate.split(",")
192
         let latitude = parseFloat(result[0])
192
         let latitude = parseFloat(result[0])

+ 1
- 0
src/pages/user/placeOrder/index.vue 查看文件

303
         detail: JSON.stringify(this.postData.detail),
303
         detail: JSON.stringify(this.postData.detail),
304
         coupon: JSON.stringify(this.postData.coupon)
304
         coupon: JSON.stringify(this.postData.coupon)
305
       }).then((res) => {
305
       }).then((res) => {
306
+        this.showCalcMenu = false
306
         this.showSuccessPopup = true
307
         this.showSuccessPopup = true
307
         // this.$dialog.alert({
308
         // this.$dialog.alert({
308
         //   message: '下单成功!',
309
         //   message: '下单成功!',

+ 3
- 3
src/pages/user/placeOrder/page.scss 查看文件

244
     position: fixed;
244
     position: fixed;
245
     top: 0;
245
     top: 0;
246
     left: 0;
246
     left: 0;
247
-    z-index: 999;
248
-    background: rgba(0, 0, 0, .05);
247
+    z-index: 2;
248
+    background: rgba(0, 0, 0, .35);
249
     >div{
249
     >div{
250
       position: absolute;
250
       position: absolute;
251
       top: 50%;
251
       top: 50%;
262
       align-items: center;
262
       align-items: center;
263
       padding: .2rem;
263
       padding: .2rem;
264
       i{
264
       i{
265
-        color: #fc6243;
265
+        color: #000;
266
         font-size: .36rem;
266
         font-size: .36rem;
267
         margin-bottom: .2rem;
267
         margin-bottom: .2rem;
268
       }
268
       }

+ 19
- 5
src/pages/user/placeOrderDetail/index.vue 查看文件

65
         <a @click="sureSelectCoupon">确定</a>
65
         <a @click="sureSelectCoupon">确定</a>
66
       </div>
66
       </div>
67
     </div>
67
     </div>
68
+    <div class="successPopup" v-if="showSuccessPopup">
69
+      <div>
70
+        <i class="iconfont icon-gou"></i>
71
+        <div class="text">出单成功</div>
72
+        <div class="back" @click="popBack">返回等待</div>
73
+      </div>
74
+    </div>
68
   </div>
75
   </div>
69
 </template>
76
 </template>
70
 
77
 
81
       showSelectCouponLayer: false,
88
       showSelectCouponLayer: false,
82
       getCouponOff: false,
89
       getCouponOff: false,
83
       couponList: [], // 优惠券列表
90
       couponList: [], // 优惠券列表
91
+      showSuccessPopup: false,
84
       postData: {
92
       postData: {
85
         info: {
93
         info: {
86
           CaseId: decodeURI(_self.$route.query.caseid),
94
           CaseId: decodeURI(_self.$route.query.caseid),
225
         detail: JSON.stringify(this.postData.detail),
233
         detail: JSON.stringify(this.postData.detail),
226
         customercouponid: this.postData.customercouponid
234
         customercouponid: this.postData.customercouponid
227
       }).then((res) => {
235
       }).then((res) => {
228
-        this.$dialog.alert({
229
-          message: '下单成功!'
230
-        }).then(() => {
231
-          window.history.go(-2)
232
-        })
236
+        this.showSuccessPopup = true
237
+        // this.$dialog.alert({
238
+        //   message: '下单成功!'
239
+        // }).then(() => {
240
+        //   window.history.go(-2)
241
+        // })
233
       })
242
       })
234
     },
243
     },
244
+    
245
+    popBack () {
246
+      this.showSuccessPopup = false
247
+      window.history.go(-2)
248
+    },
235
     cancel () {
249
     cancel () {
236
       window.history.go(-1)
250
       window.history.go(-1)
237
     },
251
     },

+ 3
- 3
src/pages/user/placeOrderDetail/page.scss 查看文件

305
     position: fixed;
305
     position: fixed;
306
     top: 0;
306
     top: 0;
307
     left: 0;
307
     left: 0;
308
-    z-index: 999;
309
-    background: rgba(0, 0, 0, .05);
308
+    z-index: 2;
309
+    background: rgba(0, 0, 0, .35);
310
     >div{
310
     >div{
311
       position: absolute;
311
       position: absolute;
312
       top: 50%;
312
       top: 50%;
323
       align-items: center;
323
       align-items: center;
324
       padding: .2rem;
324
       padding: .2rem;
325
       i{
325
       i{
326
-        color: #fc6243;
326
+        color: #000;
327
         font-size: .36rem;
327
         font-size: .36rem;
328
         margin-bottom: .2rem;
328
         margin-bottom: .2rem;
329
       }
329
       }

+ 10
- 3
src/pages/user/placeOrderForCourse/index.vue 查看文件

28
                     <span>时间描述</span>
28
                     <span>时间描述</span>
29
                   </div>
29
                   </div>
30
                 </div>
30
                 </div>
31
-                <span v-if="courseTimeList.length">{{returnCourseTime(courseTimeList[0].BeginDate,courseTimeList[0].EndDate)}}</span>
31
+                <!-- <span v-if="courseTimeList.length">{{returnCourseTime(courseTimeList[0].BeginDate,courseTimeList[0].EndDate)}}</span> -->
32
+                <span v-if="courseTimeList.length">{{toolClass.dateFormat(courseTimeList[0].BeginDate,'yyyy-MM-dd') + ' ~ ' + toolClass.dateFormat(courseTimeList[0].EndDate, 'yyyy-MM-dd')}}</span>
32
               </li>
33
               </li>
33
               <li class="flex-h">
34
               <li class="flex-h">
34
                 <div class="flex-item">
35
                 <div class="flex-item">
182
               })
183
               })
183
             } else {
184
             } else {
184
               for (var a = 0; a < res[n].Coupon.Targets.length; a++) {
185
               for (var a = 0; a < res[n].Coupon.Targets.length; a++) {
185
-                if (res[n].Coupon.Targets[a].TargetId === id && nowDate < new Date(res[n].EndDate).getTime() && res[n].CaseId === caseid) {
186
+                if (res[n].Coupon.Targets[a].TargetId === id && nowDate > new Date(res[n].StartDate).getTime() && nowDate < new Date(res[n].EndDate).getTime() && res[n].CaseId === caseid) {
186
                   this.couponList.push({
187
                   this.couponList.push({
187
                     title: res[n].Coupon.CouponName,
188
                     title: res[n].Coupon.CouponName,
188
                     desc: res[n].Coupon.Share.UseInstruction,
189
                     desc: res[n].Coupon.Share.UseInstruction,
250
       }).then((res) => {
251
       }).then((res) => {
251
         // console.log(JSON.stringify(res))
252
         // console.log(JSON.stringify(res))
252
         this.$dialog.alert({
253
         this.$dialog.alert({
253
-          message: '下单成功!'
254
+          title: '下单成功!'
254
         }).then(() => {
255
         }).then(() => {
255
           // this.$router.push({name: 'majorProjects'})
256
           // this.$router.push({name: 'majorProjects'})
256
           window.history.go(-2)
257
           window.history.go(-2)
292
 <style lang="scss" scoped>
293
 <style lang="scss" scoped>
293
 @import 'page.scss';
294
 @import 'page.scss';
294
 </style>
295
 </style>
296
+
297
+<style lang="scss">
298
+.van-dialog{
299
+  width: 60% !important;
300
+}
301
+</style>

+ 2
- 2
src/pages/user/receive/index.vue 查看文件

136
     sdk (info) {
136
     sdk (info) {
137
       let logo, title
137
       let logo, title
138
       if (this.$route.query.type === 'card') {
138
       if (this.$route.query.type === 'card') {
139
-        logo = this.data.Images[0].CardImageUrl
139
+        logo = this.data.Images[0].CardImageUrl + '?x-oss-process=style/wxicon'
140
         title = this.data.CardName
140
         title = this.data.CardName
141
       } else {
141
       } else {
142
-        logo = this.data.Images[0].CouponImageUrl
142
+        logo = this.data.Images[0].CouponImageUrl + '?x-oss-process=style/wxicon'
143
         title = this.data.CouponName
143
         title = this.data.CouponName
144
       }
144
       }
145
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
145
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {

+ 3
- 12
src/pages/user/receiveChannel/index.vue 查看文件

15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
16
       <div class="title" v-else>{{data.CouponName}}</div>
16
       <div class="title" v-else>{{data.CouponName}}</div>
17
       <!-- <div class="video" v-if='video'> -->
17
       <!-- <div class="video" v-if='video'> -->
18
-        <video :src="data.VideoUrl" height="100%"
19
-          style="object-fit:fill" 
20
-          webkit-playsinline="true" 
21
-          x-webkit-airplay="true" 
22
-          playsinline="true" 
23
-          x5-video-player-type="h5"
24
-          x5-video-orientation="h5" 
25
-          x5-video-player-fullscreen="true"
26
-          preload="auto" 
27
-        ></video>
18
+        <video :src="data.VideoUrl" height="100%" width="100%" preload="auto" ></video>
28
       <!-- </div> -->
19
       <!-- </div> -->
29
       <div class="text">
20
       <div class="text">
30
         <div>
21
         <div>
146
     sdk (info) {
137
     sdk (info) {
147
       let logo, title
138
       let logo, title
148
       if (this.$route.query.type === 'card') {
139
       if (this.$route.query.type === 'card') {
149
-        logo = this.data.Images[0].CardImageUrl
140
+        logo = this.data.Images[0].CardImageUrl + '?x-oss-process=style/wxicon'
150
         title = this.data.CardName
141
         title = this.data.CardName
151
       } else {
142
       } else {
152
-        logo = this.data.Images[0].CouponImageUrl
143
+        logo = this.data.Images[0].CouponImageUrl + '?x-oss-process=style/wxicon'
153
         title = this.data.CouponName
144
         title = this.data.CouponName
154
       }
145
       }
155
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
146
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {

+ 1
- 1
src/util/ajax.js 查看文件

5
 import { Toast } from '../../node_modules/vant';
5
 import { Toast } from '../../node_modules/vant';
6
 
6
 
7
 const token = function (headers) {
7
 const token = function (headers) {
8
-  let JWT
8
+  let JWT = ''
9
   if (headers) {
9
   if (headers) {
10
     localStorage.setItem('JWT', headers.authorization)
10
     localStorage.setItem('JWT', headers.authorization)
11
     JWT = headers.authorization
11
     JWT = headers.authorization

+ 2
- 2
src/util/api.js 查看文件

1
-const baseUrl = '/api-v2'
2
-// const baseUrl = '/api'
1
+// const baseUrl = '/api-v2'
2
+const baseUrl = '/api'
3
 const wechat = '/wechat/:org'
3
 const wechat = '/wechat/:org'
4
 const guest = '/guest/:org'
4
 const guest = '/guest/:org'
5
 
5