zmt
3 years ago
4 changed files with 73 additions and 24 deletions
-
12nxTemp/apis/userAPI.js
-
2pages/event/event_list.vue
-
75pages/login/agreement.vue
-
8pages/login/login.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> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue