浏览代码

bug修改

wangfei 6 年前
父节点
当前提交
a798f4a491

二进制
src/common/icon/Group 3@3x.png 查看文件


+ 11
- 0
src/components/caseTableItem/page.scss 查看文件

14
     z-index: 1;
14
     z-index: 1;
15
     opacity: .3;
15
     opacity: .3;
16
   }
16
   }
17
+  &>img{
18
+    display: inline-block;
19
+    position: absolute;
20
+    right: .1rem;
21
+    top: .05rem;
22
+    // font-size: .36rem;
23
+    width: .4rem;
24
+    height: .4rem;
25
+    z-index: 1;
26
+    color: rgba(255, 0, 0, .1);
27
+  }
17
   .itemNo{
28
   .itemNo{
18
     width: .44rem;
29
     width: .44rem;
19
     position: relative;
30
     position: relative;

+ 1
- 1
src/components/orderItem/index.vue 查看文件

17
             <span>¥{{data.price}}</span>
17
             <span>¥{{data.price}}</span>
18
           </div>
18
           </div>
19
         </div>
19
         </div>
20
-        <i class="iconfont icon-jian" @click="subtract" v-if="!data.spec.length && data.status === 1"></i>
20
+        <i class="iconfont icon-jian" :class="{'active': defaultNum > 0}" @click="subtract" v-if="!data.spec.length && data.status === 1"></i>
21
         <input v-if="!data.spec.length && data.status === 1" type="tel" @input="input" v-model="defaultNum">
21
         <input v-if="!data.spec.length && data.status === 1" type="tel" @input="input" v-model="defaultNum">
22
         <i class="iconfont icon-jia" :class="{'active': defaultNum > 0}" @click="add" v-if="!data.spec.length && data.status === 1"></i>
22
         <i class="iconfont icon-jia" :class="{'active': defaultNum > 0}" @click="add" v-if="!data.spec.length && data.status === 1"></i>
23
         <a v-if="data.spec.length && data.status === 1" @click="selectSpec">选规格</a>
23
         <a v-if="data.spec.length && data.status === 1" @click="selectSpec">选规格</a>

+ 1
- 1
src/components/orderListItem/index.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="orderListItem">
2
   <div class="orderListItem">
3
     <div class="title flex-h">
3
     <div class="title flex-h">
4
-      <div class="orange" v-if="returnStatus(data.MakeStatus) === '已下单'">
4
+      <div class="orange" v-if="returnStatus(data.MakeStatus) === '制作中'">
5
         <i class="iconfont icon-dengdai"></i><br>
5
         <i class="iconfont icon-dengdai"></i><br>
6
         <span>{{returnStatus(data.MakeStatus)}}</span>
6
         <span>{{returnStatus(data.MakeStatus)}}</span>
7
       </div>
7
       </div>

+ 12
- 10
src/pages/bodyCheck/index/index.vue 查看文件

5
       <div class="userInfo flex-h">
5
       <div class="userInfo flex-h">
6
         <div class="flex-item">
6
         <div class="flex-item">
7
           <span>{{user.Name}}</span>
7
           <span>{{user.Name}}</span>
8
-          <span>{{user.Sex=='0' ? '先生' : '女士'}}</span>
8
+          <!-- <span>{{user.Sex=='0' ? '先生' : '女士'}}</span> -->
9
         </div>
9
         </div>
10
         <div>
10
         <div>
11
           <span>体检时间</span>
11
           <span>体检时间</span>
40
 import { createNamespacedHelpers } from 'vuex'
40
 import { createNamespacedHelpers } from 'vuex'
41
 const { mapState: mapBodyCheckState, mapActions: mapBodyCheckActions } = createNamespacedHelpers('bodyCheck')
41
 const { mapState: mapBodyCheckState, mapActions: mapBodyCheckActions } = createNamespacedHelpers('bodyCheck')
42
 export default {
42
 export default {
43
-  data() {
43
+  data () {
44
     return {
44
     return {
45
       title,
45
       title,
46
       ishidden: true,
46
       ishidden: true,
54
       user: x => x.user
54
       user: x => x.user
55
     })
55
     })
56
   },
56
   },
57
-  methods:{
57
+  methods: {
58
     ...mapBodyCheckActions(['getBodyCheck']),
58
     ...mapBodyCheckActions(['getBodyCheck']),
59
-    linkTo(url){
60
-      window.location.href=url
59
+    linkTo (url) {
60
+      window.location.href = url
61
     },
61
     },
62
-    loaded() {
62
+    loaded () {
63
       var _that = this
63
       var _that = this
64
       setTimeout(() => {
64
       setTimeout(() => {
65
         // Indicator.close()
65
         // Indicator.close()
67
       }, 500)
67
       }, 500)
68
     },
68
     },
69
   },
69
   },
70
-  beforeMount() {
70
+  beforeMount () {
71
     // Indicator.open()
71
     // Indicator.open()
72
   },
72
   },
73
-  created() {
73
+  created () {
74
     this.getBodyCheck().then(() => {
74
     this.getBodyCheck().then(() => {
75
       this.showPage = true
75
       this.showPage = true
76
+    }).catch(() => {
77
+      this.showPage = true
76
     })
78
     })
77
   }
79
   }
78
 }
80
 }
79
 </script>
81
 </script>
80
 
82
 
81
 <style lang="scss" scoped>
83
 <style lang="scss" scoped>
82
-@import "page.scss";
84
+@import 'page.scss';
83
 
85
 
84
-.bg-white{
86
+.bg-white {
85
   width: 100%;
87
   width: 100%;
86
   height: 100%;
88
   height: 100%;
87
   position: absolute;
89
   position: absolute;

+ 32
- 6
src/pages/sales/login/index.vue 查看文件

1
 <template>
1
 <template>
2
-  <div class="mainPage">
2
+  <div class="mainPage" v-if="showPage">
3
     <div class="mask">
3
     <div class="mask">
4
       <img :src="logo" class="logo" alt="">
4
       <img :src="logo" class="logo" alt="">
5
       <div class="centerLabel" style="width:100%;">
5
       <div class="centerLabel" style="width:100%;">
14
           <div class="sms" style="margin-top:.2rem;">
14
           <div class="sms" style="margin-top:.2rem;">
15
             <i class="iconfont icon-mima"></i>
15
             <i class="iconfont icon-mima"></i>
16
             <input type="number" maxlength="6" placeholder="验证码" v-model="postData.captcha">
16
             <input type="number" maxlength="6" placeholder="验证码" v-model="postData.captcha">
17
-            <div class="sand" v-if="seconds === 60" @click="sandMsg">发送验证码</div>
17
+            <div class="sand" v-if="seconds === 61" @click="sandMsg">发送验证码</div>
18
             <div class="sand" v-else>{{seconds}}后可重发</div>
18
             <div class="sand" v-else>{{seconds}}后可重发</div>
19
           </div>
19
           </div>
20
         </div>
20
         </div>
56
 import { createNamespacedHelpers } from 'vuex'
56
 import { createNamespacedHelpers } from 'vuex'
57
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
57
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
58
 const { mapActions: mapLoginActions } = createNamespacedHelpers('login')
58
 const { mapActions: mapLoginActions } = createNamespacedHelpers('login')
59
+const { mapState: mapUserState } = createNamespacedHelpers('userCenter')
59
 export default {
60
 export default {
60
   data () {
61
   data () {
61
     return {
62
     return {
62
       logo,
63
       logo,
64
+      showPage: false,
63
       showCase: false,
65
       showCase: false,
64
       showSales: false,
66
       showSales: false,
65
-      seconds: 60,
67
+      seconds: 61,
66
       postData: {
68
       postData: {
67
         phone: '',
69
         phone: '',
68
         captcha: ''
70
         captcha: ''
69
       }
71
       }
70
     }
72
     }
71
   },
73
   },
74
+  computed: {
75
+    ...mapUserState({
76
+      userInfo: x => x.userInfo
77
+    }),
78
+  },
72
   methods: {
79
   methods: {
73
     ...actions(['getCaptcha']),
80
     ...actions(['getCaptcha']),
74
     ...mapLoginActions(['submitData']),
81
     ...mapLoginActions(['submitData']),
77
         this.$toast('请先填写手机号')
84
         this.$toast('请先填写手机号')
78
         return
85
         return
79
       }
86
       }
87
+      let reg = /^1[0-9]{10}$/
88
+      if (!reg.test(this.postData.phone)) {
89
+        this.$toast('请填写正确的手机号')
90
+        return
91
+      }
80
       this.getCaptcha(this.postData.phone)
92
       this.getCaptcha(this.postData.phone)
93
+      this.seconds = 60
81
       this.runTime()
94
       this.runTime()
82
     },
95
     },
83
     runTime () {
96
     runTime () {
86
         if (this.seconds < 60 && this.seconds >= 1) {
99
         if (this.seconds < 60 && this.seconds >= 1) {
87
           this.runTime()
100
           this.runTime()
88
         } else if (this.seconds < 1) {
101
         } else if (this.seconds < 1) {
89
-          this.seconds = 59
102
+          this.seconds = 61
90
         }
103
         }
91
       }, 1000)
104
       }, 1000)
92
     },
105
     },
93
     getUrl (val) {
106
     getUrl (val) {
94
       var url = window.location.pathname
107
       var url = window.location.pathname
95
-      return url.replace('sales.html', 'user.html') + '#/' + val
108
+      return url.replace('sales.html', 'user.html') + '#/' + val + '?hideTabbar=1'
96
     },
109
     },
97
     submit () {
110
     submit () {
98
       if (!this.postData.captcha) {
111
       if (!this.postData.captcha) {
99
         this.$toast('请先获取验证码')
112
         this.$toast('请先获取验证码')
100
         return
113
         return
101
       }
114
       }
115
+      let reg = /^[0-9]{6}$/
116
+      if (!reg.test(this.postData.captcha)) {
117
+        this.$toast('验证码格式不正确')
118
+        return
119
+      }
102
       // console.log(this.postData)
120
       // console.log(this.postData)
103
       this.submitData(this.postData).then((res) => {
121
       this.submitData(this.postData).then((res) => {
104
         // this.$toast(res)
122
         // this.$toast(res)
105
         window.location.href = this.getUrl('mainPage/coffeeIndex')
123
         window.location.href = this.getUrl('mainPage/coffeeIndex')
106
       })
124
       })
107
     }
125
     }
126
+  },
127
+  created () {
128
+    if (this.userInfo.customer.MapUser) {
129
+      window.location.href = this.getUrl('mainPage/coffeeIndex')
130
+      return
131
+    } else {
132
+      this.showPage = true
133
+    }
108
   }
134
   }
109
 }
135
 }
110
 </script>
136
 </script>
111
 
137
 
112
 <style lang="scss" scoped>
138
 <style lang="scss" scoped>
113
-@import "page.scss";
139
+@import 'page.scss';
114
 </style>
140
 </style>

+ 1
- 1
src/pages/sales/login/page.scss 查看文件

50
           font-size: .18rem;
50
           font-size: .18rem;
51
         }
51
         }
52
         input{
52
         input{
53
-          flex: 1;
54
           height: 100%;
53
           height: 100%;
54
+          width: 1.4rem;
55
         }
55
         }
56
         .sand{
56
         .sand{
57
           padding: 0 .1rem;
57
           padding: 0 .1rem;

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

40
       link: `${window.location.origin}${window.location.pathname}/user.html#/mainPage/indexPage`,
40
       link: `${window.location.origin}${window.location.pathname}/user.html#/mainPage/indexPage`,
41
       thu_image: `${window.location.origin}${window.location.pathname}${logo}`
41
       thu_image: `${window.location.origin}${window.location.pathname}${logo}`
42
     })
42
     })
43
-    // 计算距离方法
44
-    console.log(this.toolClass.getGreatCircleDistance(117.225495, 39.133713, 117.225962, 39.132573))
45
   },
43
   },
46
   methods: {
44
   methods: {
47
     ...actions(['getUserInfo'])
45
     ...actions(['getUserInfo'])

+ 7
- 7
src/pages/user/bindMobile/bindMobile.vue 查看文件

25
         <div class="sms">
25
         <div class="sms">
26
           <i class="iconfont icon-mima"></i>
26
           <i class="iconfont icon-mima"></i>
27
           <input type="number" maxlength="6" placeholder="验证码" v-model="postData.captcha">
27
           <input type="number" maxlength="6" placeholder="验证码" v-model="postData.captcha">
28
-          <div class="sand" v-if="seconds === 60" @click="sandMsg">发送验证码</div>
28
+          <div class="sand" v-if="seconds === 61" @click="sandMsg">发送验证码</div>
29
           <div class="sand" v-else>{{seconds}}后可重发</div>
29
           <div class="sand" v-else>{{seconds}}后可重发</div>
30
         </div>
30
         </div>
31
 
31
 
75
       columnsS: [],
75
       columnsS: [],
76
       caseName: '选择案场',
76
       caseName: '选择案场',
77
       salesName: '选择销售',
77
       salesName: '选择销售',
78
-      seconds: 60,
78
+      seconds: 61,
79
       postData: {
79
       postData: {
80
         phone: '',
80
         phone: '',
81
         case: '',
81
         case: '',
142
         return
142
         return
143
       }
143
       }
144
       this.getCaptcha(this.postData.phone)
144
       this.getCaptcha(this.postData.phone)
145
+      this.seconds = 60
145
       this.runTime()
146
       this.runTime()
146
     },
147
     },
147
     runTime () {
148
     runTime () {
150
         if (this.seconds < 60 && this.seconds >= 1) {
151
         if (this.seconds < 60 && this.seconds >= 1) {
151
           this.runTime()
152
           this.runTime()
152
         } else if (this.seconds < 1) {
153
         } else if (this.seconds < 1) {
153
-          this.seconds = 60
154
+          this.seconds = 61
154
         }
155
         }
155
       }, 1000)
156
       }, 1000)
156
     },
157
     },
157
     submit () {
158
     submit () {
158
-      var _that = this
159
       if (!this.postData.captcha) {
159
       if (!this.postData.captcha) {
160
         this.$toast('请先获取验证码')
160
         this.$toast('请先获取验证码')
161
         return
161
         return
173
         if (this.$route.query.isLottery) {
173
         if (this.$route.query.isLottery) {
174
           setTimeout(() => {
174
           setTimeout(() => {
175
             const from = this.$route.query.luckshare ? `#/from/${this.$route.query.luckshare}` : ''
175
             const from = this.$route.query.luckshare ? `#/from/${this.$route.query.luckshare}` : ''
176
-            window.location.href = `${window.location.origin}/c-v2/game/luckdraw/${from}`
176
+            window.location.href = `${window.location.origin}/game/luckdraw/${from}`
177
           }, 2000)
177
           }, 2000)
178
         } else {
178
         } else {
179
-          setTimeout(function () {
180
-            // _that.$router.push({name: 'userCenter'})
179
+          setTimeout(() => {
180
+            // this.$router.push({name: 'userCenter'})
181
             window.history.go(-1)
181
             window.history.go(-1)
182
           }, 300)
182
           }, 300)
183
         }
183
         }

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

140
       this.getList('change')
140
       this.getList('change')
141
     },
141
     },
142
     toUse (item) {
142
     toUse (item) {
143
-      // console.log(item)
143
+      console.log(item)
144
+      this.$router.push({ name: 'lessonDetail', query: {id: item.CustomerCourseId} })
145
+      // this.$router.push({ name: 'lessonOrder' })
144
     },
146
     },
145
     getList (param) {
147
     getList (param) {
146
       if (this.active === 0) {
148
       if (this.active === 0) {

+ 12
- 24
src/pages/user/coupons/index.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="mainPage">
2
   <div class="mainPage">
3
-    <scroll ref='scroll' :isloading='isloading' class='wrapper' :data='list' :pullUpLoad='pullUpLoadObj' :startY='parseInt(startY)' @pullingUp='getList'>
4
-      <div class="box">
5
-        <router-link tag="div" v-for="(item,index) in list" :key='index' :to="{name: 'couponsDetail', query: {id: item.customercouponid}}">
6
-          <discounts @toUse='toUse' :data='item'></discounts>
7
-        </router-link>
8
-        <noMore v-if="hasPic"></noMore>
9
-      </div>
10
-    </scroll>
3
+    <div class="box">
4
+      <discounts @toUse='toUse' :data='item' @toDetail="toDetail"></discounts>
5
+      <noMore v-if="hasPic"></noMore>
6
+    </div>
11
   </div>
7
   </div>
12
 </template>
8
 </template>
13
 
9
 
46
     noMore,
42
     noMore,
47
     discounts
43
     discounts
48
   },
44
   },
49
-  computed: {
50
-    pullUpLoadObj: function () {
51
-      return this.pullUpLoad
52
-        ? {
53
-          threshold: parseInt(this.pullUpLoadThreshold),
54
-          txt: {
55
-            more: this.pullUpLoadMoreTxt,
56
-            noMore: this.pullUpLoadNoMoreTxt
57
-          }
58
-        }
59
-        : false
60
-    }
61
-  },
62
   created () {
45
   created () {
63
     this.getCouponList().then((res) => {
46
     this.getCouponList().then((res) => {
64
       // console.log(JSON.stringify(res))
47
       // console.log(JSON.stringify(res))
84
       this.active = index
67
       this.active = index
85
     },
68
     },
86
     toUse (item) {
69
     toUse (item) {
87
-      // console.log(item)
70
+      console.log(item)
71
+      if (item.Coupon.Targets.length > 1) {
72
+        this.$router.push({ name: 'indexPage' })
73
+      } else {
74
+        this.$router.push({ name: 'majorProjectsDetail', query: { id: item.TargetId } })
75
+      }
88
     },
76
     },
89
-    getList () {
90
-      // console.log(111)
77
+    toDetail (item) {
78
+      this.$router.push({ name: 'couponsDetail', query: { id: item.customercouponid } })
91
     }
79
     }
92
   }
80
   }
93
 }
81
 }

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

24
             </ul>
24
             </ul>
25
             <span v-if="fiveANoData" style="width:100%;line-height:.3rem;display:block;text-align:center;color:#ccc;margin-bottom:.1rem;">暂无数据</span>
25
             <span v-if="fiveANoData" style="width:100%;line-height:.3rem;display:block;text-align:center;color:#ccc;margin-bottom:.1rem;">暂无数据</span>
26
           </div>
26
           </div>
27
-          <router-link :to="{name:'',query:{}}" class="more" v-if="!fiveANoData">查看更多</router-link>
27
+          <router-link :to="{name:'',query:{}}" class="more">查看更多</router-link>
28
           <div style="width:100%;height:.1rem;background:#f8f8f8;margin:0 auto;"></div>
28
           <div style="width:100%;height:.1rem;background:#f8f8f8;margin:0 auto;"></div>
29
           <h5>资讯</h5>
29
           <h5>资讯</h5>
30
           <div class="newsList flex-h">
30
           <div class="newsList flex-h">
163
       // console.log(item)
163
       // console.log(item)
164
       item.ForwardType = item.ForwardType || ''
164
       item.ForwardType = item.ForwardType || ''
165
       if (item.ForwardType === 'url') {
165
       if (item.ForwardType === 'url') {
166
-        window.location.href = '//' + item.ForwardUrl
166
+        window.location.href = item.ForwardUrl
167
       } else if (item.ForwardType === 'course') {
167
       } else if (item.ForwardType === 'course') {
168
         this.$router.push({ name: '', query: { id: item.ForwardResourceId } }) // 此处去课程详情
168
         this.$router.push({ name: '', query: { id: item.ForwardResourceId } }) // 此处去课程详情
169
       } else {
169
       } else {
170
-        window.location.href = '//' + item.InfoUrl
170
+        window.location.href = item.InfoUrl
171
       }
171
       }
172
     }
172
     }
173
   }
173
   }

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

186
       topCaseInfoData: {
186
       topCaseInfoData: {
187
         caseName: '',
187
         caseName: '',
188
         caseId: '',
188
         caseId: '',
189
-        ShowSelect: true,
189
+        ShowSelect: false,
190
       },
190
       },
191
       caseInfo: {
191
       caseInfo: {
192
         value: '',
192
         value: '',
233
     }
233
     }
234
   },
234
   },
235
   computed: {
235
   computed: {
236
-    pullUpLoadObj: function () {
237
-      return this.pullUpLoad
238
-        ? {
239
-          threshold: parseInt(this.pullUpLoadThreshold),
240
-          txt: {
241
-            more: this.pullUpLoadMoreTxt,
242
-            noMore: this.pullUpLoadNoMoreTxt
243
-          }
244
-        }
245
-        : false
246
-    },
247
     ...mapState({
236
     ...mapState({
248
       userInfo: x => x.userCenter.userInfo,
237
       userInfo: x => x.userCenter.userInfo,
249
       CaseList: x => x.app.CaseList,
238
       CaseList: x => x.app.CaseList,
329
           this.cardTotalCount = count.toFixed(2)
318
           this.cardTotalCount = count.toFixed(2)
330
         })
319
         })
331
       })
320
       })
321
+    } else {
322
+
332
     }
323
     }
333
     this.getCaseList().then((res) => {
324
     this.getCaseList().then((res) => {
334
       this.locationMapping()
325
       this.locationMapping()
430
     },
421
     },
431
     locationMapping () {
422
     locationMapping () {
432
       let that = this
423
       let that = this
433
-      // wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
434
-      //   title: '城的空间',
435
-      //   desc: '城的空间',
436
-      //   link: `${window.location.origin}${window.location.pathname}/user.html#/mainPage/indexPage`,
437
-      //   thu_image: `${window.location.origin}${window.location.pathname}${logo}`
438
-      // }).then(() => {
439
-      //   wx.getLocation({
440
-      //     type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
441
-      //     success: function (res) {
442
-      //       let latitude1 = res.latitude // 纬度,浮点数,范围为90 ~ -90
443
-      //       let longitude1 = res.longitude // 经度,浮点数,范围为180 ~ -180。
444
-      //       for (let i = 0; i < that.CaseList.length; i++) {
445
-      //         let result = that.CaseList[i].Coordinate.split(",")
446
-      //         let latitude2 = parseFloat(result[0])
447
-      //         let longitude2 = parseFloat(result[1])
448
-      //         if (that.toolClass.getGreatCircleDistance(latitude1, longitude1, latitude2, longitude2) < 500) {
449
-      //           that.topCaseInfoData.caseName = that.CaseList[i].CaseName
450
-      //           that.topCaseInfoData.caseId = that.CaseList[i].CaseId
451
-      //           that.getCaseTableList({
452
-      //             caseid: that.topCaseInfoData.caseId
453
-      //           })
454
-      //           that.getCaseTotal({
455
-      //             caseid: that.topCaseInfoData.caseId
456
-      //           })
457
-      //         }
458
-      //       }
459
-      //       if (!that.topCaseInfoData.caseId || !that.topCaseInfoData.caseName){
460
-      //         that.topCaseInfoData.caseName = '当前位置无案场'
461
-      //       }
462
-      //     }
463
-      //   })
464
-      // })
465
       that.topCaseInfoData.caseName = that.CaseList[0].CaseName
424
       that.topCaseInfoData.caseName = that.CaseList[0].CaseName
466
       that.topCaseInfoData.caseId = that.CaseList[0].CaseId
425
       that.topCaseInfoData.caseId = that.CaseList[0].CaseId
467
       that.getCaseTableList({
426
       that.getCaseTableList({
468
         caseid: that.topCaseInfoData.caseId
427
         caseid: that.topCaseInfoData.caseId
469
       })
428
       })
470
-      that.getCaseTotal({
471
-        caseid: that.topCaseInfoData.caseId
429
+      if (this.userInfo.customer.MapUser !== '') {
430
+        that.getCaseTotal({
431
+          caseid: that.topCaseInfoData.caseId
432
+        })
433
+      }
434
+      wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
435
+        title: '城的空间',
436
+        desc: '城的空间',
437
+        link: `${window.location.origin}${window.location.pathname}/user.html#/mainPage/indexPage`,
438
+        thu_image: `${window.location.origin}${window.location.pathname}${logo}`
439
+      }).then(() => {
440
+        wx.getLocation({
441
+          type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
442
+          success: function (res) {
443
+            let latitude1 = res.latitude // 纬度,浮点数,范围为90 ~ -90
444
+            let longitude1 = res.longitude // 经度,浮点数,范围为180 ~ -180。
445
+            for (let i = 0; i < that.CaseList.length; i++) {
446
+              let result = that.CaseList[i].Coordinate.split(",")
447
+              let latitude2 = parseFloat(result[0])
448
+              let longitude2 = parseFloat(result[1])
449
+              if (that.toolClass.getGreatCircleDistance(latitude1, longitude1, latitude2, longitude2) < 500) {
450
+                that.topCaseInfoData.caseName = that.CaseList[i].CaseName
451
+                that.topCaseInfoData.caseId = that.CaseList[i].CaseId
452
+                that.getCaseTableList({
453
+                  caseid: that.topCaseInfoData.caseId
454
+                })
455
+                if (this.userInfo.customer.MapUser !== '') {
456
+                  that.getCaseTotal({
457
+                    caseid: that.topCaseInfoData.caseId
458
+                  })
459
+                }
460
+              }
461
+            }
462
+            if (!that.topCaseInfoData.caseId || !that.topCaseInfoData.caseName) {
463
+              that.topCaseInfoData.caseName = '当前位置无案场'
464
+            }
465
+          }
466
+        })
472
       })
467
       })
473
     },
468
     },
474
     beforeClose (action, done) {
469
     beforeClose (action, done) {

+ 9
- 4
src/pages/user/mainPage/index.vue 查看文件

5
         <router-view></router-view>
5
         <router-view></router-view>
6
       </div>
6
       </div>
7
     </div>
7
     </div>
8
-    <nav class="flex-h" v-if="!userInfo.customer.MapUser">
9
-      <router-link :to="{name:item.pathName,query:{}}" class="flex-item" active-class="active" v-for="(item, index) in tabBar" :key="index">
8
+    <nav class="flex-h">
9
+      <router-link :to="{name:item.pathName,query:{}}" v-if="showTabBar" class="flex-item" active-class="active" v-for="(item, index) in tabBar" :key="index">
10
         <div>
10
         <div>
11
           <img v-if="index==0" class="centerLabel" src="../../../common/icon/tabBar-icon-1.png" alt="">
11
           <img v-if="index==0" class="centerLabel" src="../../../common/icon/tabBar-icon-1.png" alt="">
12
           <img v-if="index==1" class="centerLabel" src="../../../common/icon/tabBar-icon-2.png" alt="">
12
           <img v-if="index==1" class="centerLabel" src="../../../common/icon/tabBar-icon-2.png" alt="">
33
       }, {
33
       }, {
34
         pathName: 'userCenter',
34
         pathName: 'userCenter',
35
         name: '会员'
35
         name: '会员'
36
-      }]
36
+      }],
37
+      showTabBar: false
37
     }
38
     }
38
   },
39
   },
39
   computed: {
40
   computed: {
45
 
46
 
46
   },
47
   },
47
   created () {
48
   created () {
48
-
49
+    console.log(this.$route.query)
50
+    console.log(this.userInfo)
51
+    if (!this.userInfo.customer.MapUser || !this.$route.query.hideTabbar) {
52
+      this.showTabBar = true
53
+    }
49
   },
54
   },
50
   methods: {
55
   methods: {
51
 
56
 

+ 2
- 6
src/pages/user/mainPage/indexPage/index.vue 查看文件

124
     swiperSlide,
124
     swiperSlide,
125
   },
125
   },
126
   created () {
126
   created () {
127
-    if (this.userInfo.customer.MapUser) {
128
-      this.$router.push({ name: 'coffeeIndex' })
129
-      return
130
-    }
131
     this.getIndexLocation({ orgid: this.orgid, issys: '0' }).then((res) => {
127
     this.getIndexLocation({ orgid: this.orgid, issys: '0' }).then((res) => {
132
       this.data.fiveA = this.fiveA
128
       this.data.fiveA = this.fiveA
133
       this.locationId = 'index'
129
       this.locationId = 'index'
153
     jump (item) {
149
     jump (item) {
154
       item.ForwardType = item.ForwardType || ''
150
       item.ForwardType = item.ForwardType || ''
155
       if (item.ForwardType === 'url') {
151
       if (item.ForwardType === 'url') {
156
-        window.location.href = '//' + item.ForwardUrl
152
+        window.location.href = item.ForwardUrl
157
       } else if (item.ForwardType === 'course') {
153
       } else if (item.ForwardType === 'course') {
158
         this.$router.push({ name: '', query: { id: item.ForwardResourceId } }) // 此处去课程详情
154
         this.$router.push({ name: '', query: { id: item.ForwardResourceId } }) // 此处去课程详情
159
       } else {
155
       } else {
160
-        window.location.href = '//' + item.InfoUrl
156
+        window.location.href = item.InfoUrl
161
       }
157
       }
162
     }
158
     }
163
   }
159
   }

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

1
 <template>
1
 <template>
2
   <div class="mainPage">
2
   <div class="mainPage">
3
     <div class="loading" v-if="isLoading">
3
     <div class="loading" v-if="isLoading">
4
-      <div @click="bindMobile">请绑定手机号</div>
4
+      <!-- <div @click="bindMobile">请绑定手机号</div> -->
5
     </div>
5
     </div>
6
     <div v-else>
6
     <div v-else>
7
       <div class="userTop_view" >
7
       <div class="userTop_view" >
14
         </div>
14
         </div>
15
         <div class="uesr-info">
15
         <div class="uesr-info">
16
           <div class="user-name">{{user.Name}}</div>
16
           <div class="user-name">{{user.Name}}</div>
17
-          <div class="mobile">{{user.Phone}}</div>
17
+          <div class="mobile" v-if="user.Phone">{{user.Phone}}</div>
18
+          <div class="mobile" v-else @click="bindMobile">绑定手机号</div>
18
         </div>
19
         </div>
19
       </div>
20
       </div>
20
       <div class="vip-privilege flex-h">
21
       <div class="vip-privilege flex-h">
86
   },
87
   },
87
   mounted () {
88
   mounted () {
88
     this.getUserInfo({ org: this.org }).then(() => {
89
     this.getUserInfo({ org: this.org }).then(() => {
89
-      if (this.userInfo != 406) {
90
+      if (this.userInfo) {
90
         this.user = this.userInfo.customer
91
         this.user = this.userInfo.customer
91
         this.AccountInfo = JSON.parse(this.user.AccountInfo)
92
         this.AccountInfo = JSON.parse(this.user.AccountInfo)
92
         this.headimgurl = this.AccountInfo.headimgurl
93
         this.headimgurl = this.AccountInfo.headimgurl
124
       let num = Math.floor(Math.random() * 10 + 1) * 100 + Math.floor(Math.random() * 10 + 1) * 10 + Math.floor(Math.random() * 10 + 1)
125
       let num = Math.floor(Math.random() * 10 + 1) * 100 + Math.floor(Math.random() * 10 + 1) * 10 + Math.floor(Math.random() * 10 + 1)
125
       num = num >= 1000 ? 999 : num
126
       num = num >= 1000 ? 999 : num
126
       userid = parseInt(`${userid}${num}`) ^ 97
127
       userid = parseInt(`${userid}${num}`) ^ 97
127
-      window.location.href = `${window.location.origin}/c-v2/game/luckdraw/#/lotteryList?from=${userid}`
128
+      window.location.href = `${window.location.origin}/game/luckdraw/#/lotteryList?from=${userid}`
128
     }
129
     }
129
   }
130
   }
130
 }
131
 }

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

14
       <div class="flex-item">
14
       <div class="flex-item">
15
         <div v-for="(item,index) in courseList" :key="index">
15
         <div v-for="(item,index) in courseList" :key="index">
16
           <span>{{item.month+1}}月</span>
16
           <span>{{item.month+1}}月</span>
17
-          <ul>
17
+          <ul class="items">
18
             <router-link tag="li" v-for="(subItem,subIndex) in item.list" :key="subIndex" :to="{name: 'majorProjectsDetail', query: {id: subItem.id}}" class="flex-h">
18
             <router-link tag="li" v-for="(subItem,subIndex) in item.list" :key="subIndex" :to="{name: 'majorProjectsDetail', query: {id: subItem.id}}" class="flex-h">
19
               <div class="flex-item">
19
               <div class="flex-item">
20
                 <div>
20
                 <div>
27
         <div class="cutLine"></div>
27
         <div class="cutLine"></div>
28
         <div>
28
         <div>
29
           <span>关注我们</span>
29
           <span>关注我们</span>
30
-          <ul>
30
+          <ul class="items">
31
             <li class="flex-h">
31
             <li class="flex-h">
32
               <div class="bottom flex-item flex-h">
32
               <div class="bottom flex-item flex-h">
33
                 <div class="flex-item flex-h">
33
                 <div class="flex-item flex-h">

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

26
       }
26
       }
27
     }
27
     }
28
   }
28
   }
29
+  .items{
30
+    width: 3.33rem;
31
+  }
29
   p{
32
   p{
30
     width: 100%;
33
     width: 100%;
31
     box-sizing: border-box;
34
     box-sizing: border-box;

+ 7
- 9
src/pages/user/placeOrder/index.vue 查看文件

20
           </div>
20
           </div>
21
         </div>
21
         </div>
22
         <a @click="reback">返回选择桌号</a>
22
         <a @click="reback">返回选择桌号</a>
23
-        <!-- <router-link :to="{name: 'coffeeIndex', query: {}}">返回选择桌号</router-link> -->
24
       </div>
23
       </div>
25
       <div class="content flex-item flex-h">
24
       <div class="content flex-item flex-h">
26
         <div class="slideMenus">
25
         <div class="slideMenus">
67
           <!-- <i class="iconfont" :class="{'icon-jiantou-up': !showCalcMenu,'icon-jiantou-down': showCalcMenu}" @click="showCalcMenu = true"></i> -->
66
           <!-- <i class="iconfont" :class="{'icon-jiantou-up': !showCalcMenu,'icon-jiantou-down': showCalcMenu}" @click="showCalcMenu = true"></i> -->
68
         </div>
67
         </div>
69
       </div>
68
       </div>
70
-      <!-- <router-link :to="{name: 'placeOrderDetail', query: {info: JSON.stringify(settlementList), caseid: encodeURI(caseId), areaid: encodeURI(areaId), areaname: encodeURI(areaName), areaid: encodeURI(areaId), tableid: encodeURI(tableId), tableno: encodeURI(tableNo)}}">下单</router-link> -->
71
       <a @click="toPlaceOrder">下单</a>
69
       <a @click="toPlaceOrder">下单</a>
72
     </div>
70
     </div>
73
     <orderPopup :show="showPopup" :data="currentSpec" @closePopup="closePopup" @returnData="calcMenus"></orderPopup>
71
     <orderPopup :show="showPopup" :data="currentSpec" @closePopup="closePopup" @returnData="calcMenus"></orderPopup>
208
           this.$router.push({ name: 'placeOrderDetail', query: { info: JSON.stringify(this.selGoods), caseid: encodeURI(this.caseId), areaid: encodeURI(this.areaId), areaname: encodeURI(this.areaName), areaid: encodeURI(this.areaId), tableid: encodeURI(this.tableId), tableno: encodeURI(this.tableNo) } })
206
           this.$router.push({ name: 'placeOrderDetail', query: { info: JSON.stringify(this.selGoods), caseid: encodeURI(this.caseId), areaid: encodeURI(this.areaId), areaname: encodeURI(this.areaName), areaid: encodeURI(this.areaId), tableid: encodeURI(this.tableId), tableno: encodeURI(this.tableNo) } })
209
         } else {
207
         } else {
210
           this.showCalcMenu = true
208
           this.showCalcMenu = true
211
-        } 
209
+        }
212
       } else {
210
       } else {
213
         this.$toast('您还没有选择商品哦~')
211
         this.$toast('您还没有选择商品哦~')
214
       }
212
       }
261
         title: '提示',
259
         title: '提示',
262
         message: '返回页面将清空当前选择的商品,确定要返回吗?'
260
         message: '返回页面将清空当前选择的商品,确定要返回吗?'
263
       }).then(() => {
261
       }).then(() => {
264
-        this.$router.push({ name: 'coffeeIndex' })
262
+        // this.$router.push({ name: 'coffeeIndex' })
263
+        window.history.go(-1)
265
       })
264
       })
266
     },
265
     },
267
     placeOrder () { // 下单
266
     placeOrder () { // 下单
268
-      // this.$router.push({ name: 'orderList', query: {} })
269
       this.postData.info.OrgId = this.orgId
267
       this.postData.info.OrgId = this.orgId
270
       this.postData.info.UserId = this.userInfo.CustomerId
268
       this.postData.info.UserId = this.userInfo.CustomerId
271
       this.postData.info.UserName = this.userInfo.customer.CustomerName
269
       this.postData.info.UserName = this.userInfo.customer.CustomerName
281
           SpecId: orderInfo[n].spec,
279
           SpecId: orderInfo[n].spec,
282
           SpecName: orderInfo[n].specname,
280
           SpecName: orderInfo[n].specname,
283
           Number: orderInfo[n].num - 0,
281
           Number: orderInfo[n].num - 0,
284
-          Price: String(orderInfo[n].price-0),
282
+          Price: String(orderInfo[n].price - 0),
285
         })
283
         })
286
-        amount += (orderInfo[n].price-0) * orderInfo[n].num
287
-        num += orderInfo[n].num-0
284
+        amount += (orderInfo[n].price - 0) * orderInfo[n].num
285
+        num += orderInfo[n].num - 0
288
       }
286
       }
289
       this.postData.info.Amount = String(amount)
287
       this.postData.info.Amount = String(amount)
290
       this.postData.info.OrdersNum = num
288
       this.postData.info.OrdersNum = num
297
         this.$dialog.alert({
295
         this.$dialog.alert({
298
           message: '下单成功!'
296
           message: '下单成功!'
299
         }).then(() => {
297
         }).then(() => {
300
-          this.$router.push({name: 'orderList'})
298
+          this.$router.push({ name: 'orderList' })
301
         })
299
         })
302
       })
300
       })
303
     },
301
     },

+ 11
- 8
src/pages/user/placeOrderForCourse/index.vue 查看文件

48
               </li>
48
               </li>
49
             </ul>
49
             </ul>
50
             <div class="selectTicket">
50
             <div class="selectTicket">
51
-              <div class="flex-h" @click="showLayer = true">
51
+              <div class="flex-h" @click="couponList.length ? showLayer = true : showLayer = false">
52
                 <div class="flex-item">
52
                 <div class="flex-item">
53
                   <div>
53
                   <div>
54
                     <span>优惠信息</span>
54
                     <span>优惠信息</span>
55
                   </div>
55
                   </div>
56
                 </div>
56
                 </div>
57
                 <span>{{postData.customercouponid == '' ? '暂未选择优惠券' : '已选择优惠券'}}</span>
57
                 <span>{{postData.customercouponid == '' ? '暂未选择优惠券' : '已选择优惠券'}}</span>
58
-                <i class="iconfont icon-jiantou-right"></i>
58
+                <i class="iconfont icon-jiantou-right" v-if="couponList.length"></i>
59
               </div>
59
               </div>
60
               <div class="flex-h">
60
               <div class="flex-h">
61
                 <div class="flex-item">
61
                 <div class="flex-item">
78
               </div>
78
               </div>
79
             </div>
79
             </div>
80
             <div class="protocol">
80
             <div class="protocol">
81
-              <div>1、协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容</div>
82
-              <div>2、协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容</div>
83
-              <div>3、协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容</div>
84
-              <div>4、协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容</div>
85
-              <div>5、协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容协议内容</div>
81
+              <div>1. 甲方具有为乙方更换教练的权利及责任。(当甲方为乙方安排的教练因故离职或乙方认 为甲方的教练无法胜任对其的指导工作时,甲方应为乙方另行安排教练)。</div>
82
+              <div>2. 甲方必须保证乙方享有与教练一对多的指导,甲方教练上课中出现违规时乙方有权投诉。</div>
83
+              <div>3. 乙方承诺其身体状况已被医疗机构确认良好,适宜接受本协议约定的训练课程,即身体 状况完全正常,不存在运动风险及潜在运动风险。如若隐瞒,出现后果由乙方自负。</div>
84
+              <div>4. 乙方承诺其身体状况完全符合使用甲方器械以及完成课程内容的条件和能力。若因乙方 未提供既往病史或谎报病史而引起的运动伤害,后果由乙方自负。</div>
86
             </div>
85
             </div>
87
           </div>
86
           </div>
88
         </div>
87
         </div>
131
     return {
130
     return {
132
       couponList: [],
131
       couponList: [],
133
       getCouponOff: false,
132
       getCouponOff: false,
134
-      agreementOff: false, // 是否同意协议
133
+      agreementOff: true, // 是否同意协议
135
       courseTimeList: [],
134
       courseTimeList: [],
136
       postData: {
135
       postData: {
137
         CouponId: '',
136
         CouponId: '',
178
               select: false,
177
               select: false,
179
             })
178
             })
180
           } else {
179
           } else {
180
+            console.log(res[n].Coupon.Targets[a].TargetId)
181
+            console.log(new Date(res[n].StartDate).getTime())
182
+            console.log(nowDate)
183
+            console.log(new Date(res[n].EndDate).getTime())
181
             for (var a = 0; a < res[n].Coupon.Targets.length; a++) {
184
             for (var a = 0; a < res[n].Coupon.Targets.length; a++) {
182
               if (res[n].Coupon.Targets[a].TargetId === id && nowDate >= new Date(res[n].StartDate).getTime() && nowDate < new Date(res[n].EndDate).getTime()) {
185
               if (res[n].Coupon.Targets[a].TargetId === id && nowDate >= new Date(res[n].StartDate).getTime() && nowDate < new Date(res[n].EndDate).getTime()) {
183
                 this.couponList.push({
186
                 this.couponList.push({

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

144
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
144
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
145
         title: '领取卡券',
145
         title: '领取卡券',
146
         desc: info,
146
         desc: info,
147
-        link: `${window.location.origin}${window.location.pathname}/user.html#/receiveShared/${this.$route.query.id}/${this.$route.query.salesid}/${this.$route.query.type}/receive`,
147
+        link: `${window.location.origin}${window.location.pathname}#/receiveShared/${this.$route.query.id}/${this.$route.query.salesid}/${this.$route.query.type}/receive`,
148
         thu_image: `${window.location.origin}${window.location.pathname}${logo}`
148
         thu_image: `${window.location.origin}${window.location.pathname}${logo}`
149
       })
149
       })
150
     }
150
     }

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

135
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
135
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
136
         title: '领取卡券',
136
         title: '领取卡券',
137
         desc: info,
137
         desc: info,
138
-        link: `${window.location.origin}${window.location.pathname}/user.html#/receiveChannelShared/${this.$route.query.id}/${this.$route.query.type}/receive`,
138
+        link: `${window.location.origin}${window.location.pathname}#/receiveChannelShared/${this.$route.query.id}/${this.$route.query.type}/receive`,
139
         thu_image: `${window.location.origin}${window.location.pathname}${logo}`
139
         thu_image: `${window.location.origin}${window.location.pathname}${logo}`
140
       })
140
       })
141
     }
141
     }

+ 3
- 3
src/store/bodyCheck/index.js 查看文件

9
     mainInfo: {}
9
     mainInfo: {}
10
   },
10
   },
11
   mutations: {
11
   mutations: {
12
-    updateState(state, payload) {
12
+    updateState (state, payload) {
13
       state.result = payload.Message
13
       state.result = payload.Message
14
       state.user = payload.UserInfo
14
       state.user = payload.UserInfo
15
       state.mainInfo = payload.Info[0]
15
       state.mainInfo = payload.Info[0]
16
     }
16
     }
17
   },
17
   },
18
   actions: {
18
   actions: {
19
-    getBodyCheck (context, data) {
20
-      return new Promise((resolve) => {
19
+    getBodyCheck (context) {
20
+      return new Promise((resolve, reject) => {
21
         Ajax({
21
         Ajax({
22
           ...api.bodyCheck.bodyCheck
22
           ...api.bodyCheck.bodyCheck
23
         }).then(res => {
23
         }).then(res => {

+ 3
- 3
src/store/fiveA/fiveA.js 查看文件

116
     },
116
     },
117
     getFiveAInfo (context, data) {
117
     getFiveAInfo (context, data) {
118
       // console.log(data)
118
       // console.log(data)
119
-      http.getBanner(data).then((res) => {
120
-        context.commit('setBanner', res)
121
-      })
119
+      // http.getBanner(data).then((res) => {
120
+      //   context.commit('setBanner', res)
121
+      // })
122
       // http.getList(data).then((res) => {
122
       // http.getList(data).then((res) => {
123
       //   context.commit('setList', res)
123
       //   context.commit('setList', res)
124
       // })
124
       // })

+ 5
- 1
src/store/index/index.js 查看文件

100
       state.fiveA = data
100
       state.fiveA = data
101
     },
101
     },
102
     setMessage (state, data) { // 获取首页消息
102
     setMessage (state, data) { // 获取首页消息
103
-      state.message = data
103
+      if (data.length > 3) {
104
+        state.message = data.slice(0,3)
105
+      } else {
106
+        state.message = data
107
+      }
104
     },
108
     },
105
     setProject (state, data) { // 获取项目专题
109
     setProject (state, data) { // 获取项目专题
106
       state.project = data
110
       state.project = data

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

2
 const baseUrl = '/api'
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
-const common = '/common/:org'
6
 
5
 
7
 const $api = {
6
 const $api = {
8
   index: { // 首页
7
   index: { // 首页

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

41
     let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${wechatConfig.redirect_uri}&response_type=${wechatConfig.response_type}&scope=${wechatConfig.scope}&state=${wechatConfig.state}#wechat_redirect`
41
     let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${wechatConfig.redirect_uri}&response_type=${wechatConfig.response_type}&scope=${wechatConfig.scope}&state=${wechatConfig.state}#wechat_redirect`
42
     window.location.href = url
42
     window.location.href = url
43
   },
43
   },
44
+
44
   /**
45
   /**
45
    * caculate the great circle distance
46
    * caculate the great circle distance
46
    * 经纬度计算距离
47
    * 经纬度计算距离
47
-   * @param {Object} lat1 纬度1
48
-   * @param {Object} lng1 精度1
49
-   * @param {Object} lat2 纬度2
50
-   * @param {Object} lng2 精度2
51
    */
48
    */
52
-
53
   getGreatCircleDistance: (lat1, lng1, lat2, lng2) => {
49
   getGreatCircleDistance: (lat1, lng1, lat2, lng2) => {
54
     if (lat1 === lat2 && lng1 === lng2) {
50
     if (lat1 === lat2 && lng1 === lng2) {
55
       return 0
51
       return 0
63
     var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)))
59
     var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)))
64
     s = s * EARTH_RADIUS
60
     s = s * EARTH_RADIUS
65
     s = Math.round(s * 10000) / 10000.0
61
     s = Math.round(s * 10000) / 10000.0
62
+    console.log(s)
66
     return s
63
     return s
67
   }
64
   }
68
 }
65
 }

+ 0
- 2
vue.config.js 查看文件

20
   productionSourceMap: true,
20
   productionSourceMap: true,
21
   chainWebpack: config => config.plugins.delete('named-chunks'),
21
   chainWebpack: config => config.plugins.delete('named-chunks'),
22
   devServer: {
22
   devServer: {
23
-    // publicPath: '/c-v2/',
24
     proxy: {
23
     proxy: {
25
-      // '/api-v2': {
26
       '/api': {
24
       '/api': {
27
         // target: 'https://dp.huiju360.com.cn/hj_operations',
25
         // target: 'https://dp.huiju360.com.cn/hj_operations',
28
         target: 'http://192.168.0.62:8080', // wf
26
         target: 'http://192.168.0.62:8080', // wf