Browse Source

fix issue

master
zmt 3 years ago
parent
commit
cbbca8f467
  1. 12
      nxTemp/apis/userAPI.js
  2. 2
      pages/event/event_list.vue
  3. 75
      pages/login/agreement.vue
  4. 8
      pages/login/login.vue

12
nxTemp/apis/userAPI.js

@ -138,4 +138,16 @@ export function msgGet(data) {
return http.post(`${config.baseUrl}/matchAssistant/msgCenter/get`,data);
}
/**
* @description: 隐私协议
* @param {*}
* // /config/get?key=
// UserRegistrationServiceAgreement 用户注册服务协议
// PrivacyPolicy 隐私政策
*/
export function configGet(data) {
return http.post(`${config.baseUrl}/config/get`,data,{
needLogin:false //未登录前操作取消登录验证
});
}

2
pages/event/event_list.vue

@ -36,7 +36,7 @@
</view>
<view class="load-finish" v-if="listLoadFinished">我是有底线的</view>
<view class="load-finish" v-if="listLoadFinished&&pageList.length>0">我是有底线的</view>
<no-data :txt="no_data_txt" v-if="pageList.length==0"></no-data>

75
pages/login/agreement.vue

@ -1,27 +1,62 @@
<template>
<view>
<web-view :webview-styles="webviewStyles" :src="articleurl"></web-view>
</view>
<view class="content">
<!-- <web-view :webview-styles="webviewStyles" :src="articleurl"></web-view> -->
<rich-text class="txt" :nodes="htmlData"></rich-text>
</view>
</template>
<script>
export default {
data() {
return {
articleurl: '',
webviewStyles: {
progress: {
color: '#FF7200'
}
}
};
},
onLoad(options) {
this.articleurl = 'http://www.baidu.com/';
}
}
import {
configGet
} from "@/nxTemp/apis/userAPI.js"
export default {
data() {
return {
articleurl: '',
htmlData: "",
webviewStyles: {
progress: {
color: '#FF7200'
}
}
};
},
onLoad(options) {
this.updateAgreement()
},
methods: {
updateAgreement() {
// UserRegistrationServiceAgreement
// PrivacyPolicy
configGet({
key: "UserRegistrationServiceAgreement"
}).then(res => {
this.htmlData = res
}).catch((e) => {
this.$tools.showNone(e.errMsg)
})
}
}
}
</script>
<style>
<style lang="less">
page{
background-color: white;
background: #FFFFFF;
padding: 20rpx;
}
.content{
width: 720rpx;
}
.txt {
font-size: 32rpx;
color: #1A1A1A;
font-weight: 400;
// text-indent: 64rpx;
line-height: 60rpx;
// p {
// text-indent: 1rem;
// }
}
</style>

8
pages/login/login.vue

@ -32,7 +32,9 @@
<view class="agreement-box flex_row flex_start">
<image @click="agreed=!agreed" class="a-icon" src="../../static/images/login/agreed_circle.png" mode="aspectFit" v-if="agreed"></image>
<image @click="agreed=!agreed" class="a-icon" src="../../static/images/login/agree_circle.png" mode="aspectFit" v-else></image>
我已同意<text @click="jumpAgreement()">隐私政策</text><text @click="jumpAgreement()">用户注册服务协议</text>
我已同意
<!-- <text @click="jumpAgreement()">隐私政策</text> -->
<text @click="jumpAgreement()">用户注册服务协议</text>
</view>
<view class="button-login" hover-class="button-hover" @tap="bindLogin()">
@ -53,7 +55,7 @@
<script>
//,page
import {
postLogin,postSendSMS,wechatGetPhoneNumberLogin
postLogin,postSendSMS,wechatGetPhoneNumberLogin,configGet
} from "@/nxTemp/apis/userAPI.js"
import {mapActions} from 'vuex'
export default {
@ -63,7 +65,7 @@
count:60,
code:"",
agreed:false,//
login: {//
login: {
mobile: '',//
ticket: '',//
verify_code:'',//

Loading…
Cancel
Save