You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shangmenanmo/user/pages/protocol.vue

72 lines
1.5 KiB

5 months ago
<template>
<view class="user-pages-protocol fill-base" v-if="isLoad">
<view class="pd-lg f-paragraph">
<parser :html="detail.login_protocol" @linkpress="linkpress" show-with-animation lazy-load>加载中...
</parser>
</view>
<view class="space-footer"></view>
</view>
</template>
<script>
import {
mapState,
mapActions,
mapMutations
} from "vuex"
import parser from "@/components/jyf-Parser/index"
export default {
components: {
parser
},
data() {
return {
options: {},
isLoad: false,
detail: {}
}
},
computed: mapState({
primaryColor: state => state.config.configInfo.primaryColor,
subColor: state => state.config.configInfo.subColor,
configInfo: state => state.config.configInfo,
userInfo: state => state.user.userInfo,
loginPage: state => state.user.loginPage,
}),
onLoad(options) {
this.options = options
this.$util.showLoading()
this.initIndex()
},
methods: {
...mapActions(['getConfigInfo', 'getUserInfo']),
...mapMutations(['updateUserItem']),
async initIndex(refresh = false) {
let data = await this.$api.base.getConfig()
this.detail = data
this.$util.setNavigationBarColor({
bg: this.primaryColor
})
this.$util.hideAll()
this.isLoad = true
},
initRefresh() {
this.initIndex(true)
},
linkpress(res) {
console.log("linkpress", res);
// #ifdef APP-PLUS
this.$util.goUrl({
url: res.href,
openType: 'web'
})
// #endif
}
}
}
</script>
<style lang="scss">
</style>