添加用户协议

This commit is contained in:
zhangmanman
2021-09-28 11:30:55 +08:00
parent 386453cd14
commit b04e881294
3 changed files with 9 additions and 28 deletions

View File

@@ -158,22 +158,16 @@
var type = open.openType; var type = open.openType;
switch(type){ switch(type){
case 'switchTab': case 'switchTab':
uni.switchTab({ this.$Router.pushTab({name: open.path})
url: open.path
})
break; break;
case 'web': case 'web':
uni.navigateTo({ window.location.href = open.path
url: open.url
})
break; break;
case 'navigateTo': case 'navigateTo':
uni.navigateTo({ this.$Router.push({name: open.path})
url: open.path
})
break; break;
} }
}, }
} }
} }
</script> </script>

View File

@@ -280,24 +280,18 @@
}) })
}, },
// 能量任务跳转 // 能量跳转
JumpUrl(open, title) { JumpUrl(open, title) {
var type = open.openType; var type = open.openType;
switch(type){ switch(type){
case 'switchTab': case 'switchTab':
uni.switchTab({ this.$Router.pushTab({name: open.path})
url: open.path
})
break; break;
case 'web': case 'web':
uni.navigateTo({ window.location.href = open.path
url: open.url
})
break; break;
case 'navigateTo': case 'navigateTo':
uni.navigateTo({ this.$Router.push({name: open.path})
url: open.path
})
break; break;
} }
} }

View File

@@ -26,14 +26,7 @@
</view> </view>
</view> </view>
<!-- 用户登录注册协议 --> <!-- 用户登录注册协议 -->
<<<<<<< HEAD <view class="agreement">未注册的手机号验证后将自动创建账号登录即表示同意接收<view @click="$Router.push({name: 'vipAgree', params: {type : 'loginPrivacy'}})">用户隐私协议</view><view @click="$Router.push({name: 'vipAgree', params: {type : 'loginService'}})">用户服务协议</view></view>
<view class="agreement">未注册的手机号验证后将自动创建账号登录即表示同意接收<view @click="$Router.push({name: 'vipAgree', params: {type : 'loginPrivacy'}})">用户隐私协议</view><view @click="$Router.push({name: 'vipAgree', params: {type : 'loginService'}})">用户服务协议
</view>
=======
<view class="agreement">未注册的手机号验证后将自动创建账号登录即表示同意接收<navigator url="/pages/login/agreement?name=secret">用户隐私协议</navigator><navigator url="/pages/login/agreement?name=service">用户服务协议
</navigator>
>>>>>>> 1e1409f14e485939bb0a6d80e65119d65d4e6a1c
</view>
</view> </view>
</template> </template>