doum
13 小时以前 2da6cac0a9bab5ce7ad04ac17f73d456732f907e
mini-program/pages/agreement-description/agreement-description.vue
@@ -1,10 +1,10 @@
<template>
   <view class="box">
      <view class="item">
      <view class="item" @click="jumpService(4)">
         <text>《用户服务协议》</text>
         <image src="/static/icon/ic_ar2@2x.png" mode="widthFix"></image>
      </view>
      <view class="item">
      <view class="item" @click="jumpService(5)">
         <text>《用户隐私协议》</text>
         <image src="/static/icon/ic_ar2@2x.png" mode="widthFix"></image>
      </view>
@@ -36,6 +36,24 @@
         return {
            show: false
         };
      },
      methods: {
         jumpService(flag) {
            uni.navigateTo({
               url: '/pagesA/pages/rich-text-page/rich-text-page?flag='+flag
            })
         },
         loginOut() {
            this.$u.api.logOff()
               .then(res => {
                  if (res.code === 200) {
                     this.$store.commit('clear')
                     uni.switchTab({
                        url: '/pages/index/index'
                     })
                  }
               })
         }
      }
   }
</script>