Преглед изворни кода

H5座位预定-登录页:用户协议、隐私政策

panyong пре 3 година
родитељ
комит
ab5838f3df

+ 8 - 2
htmldev/dashboard/src/login/index.vue

@@ -50,13 +50,13 @@
         <span
           class="value"
           v-for="(str, index) in '《用户协议》'"
-          :key="'b' + index">{{ str }}</span>
+          :key="'b' + index" @click="jumpAgreement">{{ str }}</span>
         <span
           class="label">与</span>
         <span
           class="value"
           v-for="(str, index) in '《隐私协议》'"
-          :key="'c' + index">{{ str }}</span>
+          :key="'c' + index" @click="jumpPrivacy">{{ str }}</span>
       </p>
     </div>
   </div>
@@ -90,6 +90,12 @@ export default {
     await this.$nextTick()
   },
   methods: {
+    jumpAgreement () {
+      location.href = '//tingbang-h5.codedreamit.com/agreement'
+    },
+    jumpPrivacy () {
+      location.href = '//tingbang-h5.codedreamit.com/privacy'
+    },
     funLimitLength () {
       const { phone, code } = this.postData
       this.postData.phone = phone.replace(/[^\d]/g, '').slice(0, 11)

+ 2 - 1
htmldev/dashboard/src/router/index.js

@@ -24,7 +24,8 @@ const routes = [
     component: _import('views/index/index'),
     meta: {
       isUseVanTabbar: true
-    }
+    },
+    redirect: '/place/list'
   },
   {
     path: '/login',

+ 3 - 2
htmldev/dashboard/src/views/place/list/index.vue

@@ -368,6 +368,7 @@ export default {
       }
     },
     onBridgeReady (data) {
+      const vm = this
       /* eslint-disable-next-line */
       WeixinJSBridge.invoke(
         'getBrandWCPayRequest',
@@ -384,8 +385,8 @@ export default {
           if (res.err_msg == 'get_brand_wcpay_request:ok') {
             // 使用以上方式判断前端返回,微信团队郑重提示:
             // res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
-            this.showPopup = false
-            this.$router.push({ name: 'PlaceReserve' })
+            vm.showPopup = false
+            vm.$router.push({ name: 'PlaceReserve' })
           } else {
             Toast.fail('支付失败!')
           }