8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
@@ -7,9 +7,10 @@
|
||||
<view class="btn codeLogin" @click="clickCodeLogin()">使用短信验证登录</view>
|
||||
<view class="agreeProtocolC fixed flexCenter">
|
||||
<view class="agreeC" @click="clickAgree()">
|
||||
<image class="icon" src="" mode="widthFix"></image>
|
||||
<image v-if="isAgree" class="icon" src="/static/icon/login/select_s.png" mode="widthFix"></image>
|
||||
<image v-else class="icon" src="/static/icon/login/select.png" mode="widthFix"></image>
|
||||
</view>
|
||||
阅读并同意我们的<text class="protocol" @click="clickProtocol()">《用户服务协议》</text>和<text class="protocol"@click="clickProtocol()">《隐私政策》</text>
|
||||
阅读并同意我们的<text class="protocol" @click="clickProtocol(2)">《用户服务协议》</text>和<text class="protocol"@click="clickProtocol(3)">《隐私政策》</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -21,7 +22,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
contentTop:''
|
||||
contentTop:'',
|
||||
isAgree:false
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -33,12 +35,36 @@
|
||||
*/
|
||||
clickOneClickLogin()
|
||||
{
|
||||
if(!this.isAgree)
|
||||
{
|
||||
uni.showToast({
|
||||
title:'请阅读并同意我们的《用户服务协议》和《隐私政策》',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.login({
|
||||
provider:'weixin',
|
||||
success(res) {
|
||||
console.log(res.code)
|
||||
let param = {code:res.code,isJson:1}
|
||||
loginByWx(param).then(res=>{
|
||||
|
||||
if(res.code==200)
|
||||
{
|
||||
uni.showToast({
|
||||
title:res.message,
|
||||
})
|
||||
uni.setStorageSync('token',res.data.token)
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
url:'/pages/index/index'
|
||||
})
|
||||
}, 1000);
|
||||
}else
|
||||
uni.showToast({
|
||||
title:res.message,
|
||||
icon:"none"
|
||||
})
|
||||
}).catch(error=>{
|
||||
|
||||
})
|
||||
@@ -63,14 +89,16 @@
|
||||
*/
|
||||
clickAgree()
|
||||
{
|
||||
|
||||
this.isAgree = !this.isAgree
|
||||
},
|
||||
/**
|
||||
* 点击查看协议
|
||||
*/
|
||||
clickProtocol()
|
||||
clickProtocol(type)
|
||||
{
|
||||
|
||||
uni.navigateTo({
|
||||
url:'/pages/mine/web/web?type='+type
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,6 +151,7 @@
|
||||
padding: 14rpx;
|
||||
.icon
|
||||
{
|
||||
display: block;
|
||||
width: 28rpx;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user