| xqd
@@ -3,19 +3,24 @@
|
|
|
<view v-html="content"></view>
|
|
|
<view style="height: 200rpx;"></view>
|
|
|
<view class="login-btn-box">
|
|
|
- <button class="main-center cross-center login-btn" :style="{'opacity':readUserAgreement?'1':'0.39'}" v-if="content" @click="login">
|
|
|
+ <button class="main-center cross-center login-btn" :style="{'opacity':readUserAgreement?'1':'0.39'}"
|
|
|
+ v-if="content" @click="login">
|
|
|
<image style="width: 40rpx;height: 40rpx;margin-right: 10rpx;"
|
|
|
- src="https://t17.9026.com/web/statics/image/index/wxlogin.png" mode=""></image>立即登录
|
|
|
+ src="https://t17.9026.com/web/statics/image/index/wxlogin.png" mode=""></image>同意
|
|
|
</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {mapState,mapMutations} from 'vuex'
|
|
|
+ import {
|
|
|
+ mapState,
|
|
|
+ mapMutations
|
|
|
+ } from 'vuex'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ url:'',
|
|
|
content: `<p>欢迎您使用腾讯企点软件及服务!
|
|
|
|
|
|
为使用腾讯企点软件(以下统称“本软件”)及服务,您应当阅读并遵守《腾讯企点软件许可及服务协议》(以下简称“本协议”),以及《腾讯服务协议》(链接地址:http://www.qq.com/contract.shtml,若链接地址变更的,则以变更后的链接地址所对应的内容为准;其他链接地址变更的情形,均适用前述约定)、《QQ软件许可及服务协议》、《QQ号码规则》(链接地址:http://zc.qq.com/chs/agreement1_chs.html)以及专项规则等。请您务必审慎阅读、充分理解各条款内容,特别是免除或者限制责任的条款,以及开通或使用某项服务的单独协议,并选择接受或不接受。限制、免责条款可能以加粗形式提示您注意。
|
| xqd
@@ -70,35 +75,38 @@
|
|
|
</p>`
|
|
|
};
|
|
|
},
|
|
|
- computed:{
|
|
|
+ computed: {
|
|
|
...mapState({
|
|
|
- readUserAgreement:state=>state.user.readUserAgreement
|
|
|
+ readUserAgreement: state => state.user.readUserAgreement
|
|
|
})
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
this.$store.commit('user/readUserAgreement', true);
|
|
|
},
|
|
|
+ onLoad(option) {
|
|
|
+ this.url=option.url
|
|
|
+ },
|
|
|
methods: {
|
|
|
login(e) {
|
|
|
- if(!this.readUserAgreement){
|
|
|
+ if (!this.readUserAgreement) {
|
|
|
uni.showToast({
|
|
|
- title:'请阅读完用户隐私协议再登录',
|
|
|
- icon:'none'
|
|
|
+ title: '请阅读完用户隐私协议再登录',
|
|
|
+ icon: 'none'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- this.$store.commit("user/showLoginModal", false);
|
|
|
- // #ifdef MP-TOUTIAO
|
|
|
- this.getUserInfo(e);
|
|
|
- // #endif
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- this.$user.getUserProfile(e).then(res => {
|
|
|
- console.log(res)
|
|
|
- this.getUserInfo(res);
|
|
|
- }).catch(res => {
|
|
|
- console.log(res)
|
|
|
- })
|
|
|
- // #endif
|
|
|
+ uni.navigateBack()
|
|
|
+ // // #ifdef MP-TOUTIAO
|
|
|
+ // this.getUserInfo(e);
|
|
|
+ // // #endif
|
|
|
+ // // #ifdef MP-WEIXIN
|
|
|
+ // this.$user.getUserProfile(e).then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // this.getUserInfo(res);
|
|
|
+ // }).catch(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // })
|
|
|
+ // // #endif
|
|
|
},
|
|
|
getUserInfo(e) {
|
|
|
// #ifdef H5
|
| xqd
@@ -126,14 +134,15 @@
|
|
|
url: '/pages/registered/sign'
|
|
|
});
|
|
|
}
|
|
|
- // #endif
|
|
|
+ // #endif
|
|
|
// #ifdef MP
|
|
|
this.$store.commit('user/showLoginModal', false);
|
|
|
const resolve = this.$user.getUserInfoResolve;
|
|
|
const reject = this.$user.getUserInfoReject;
|
|
|
this.$event.on(this.$const.EVENT_USER_LOGIN, true).then(() => {
|
|
|
this.$jump({
|
|
|
- open_type: 'reload'
|
|
|
+ open_type: 'redirect',
|
|
|
+ url:this.url
|
|
|
})
|
|
|
});
|
|
|
// #ifdef MP-WEIXIN
|
| xqd
@@ -148,7 +157,7 @@
|
|
|
// #ifdef MP-ALIPAY
|
|
|
my.getOpenUserInfo({
|
|
|
success(openUserInfo) {
|
|
|
- const response = JSON.parse(openUserInfo.response);
|
|
|
+ const response = JSON.parse(openUserInfo.response);
|
|
|
e.detail = {
|
|
|
rawData: JSON.stringify(response.response),
|
|
|
encryptedData: '',
|