Files
h5-uniapp/pages/my/aboutUs/authorization.vue
T

49 lines
874 B
Vue

<template>
<view :style="'background-color: '+theme.bg+';color: '+theme.text" style="padding: 0;">
<myNav :title="i18n.newWord.mytitle7"></myNav>
<view class="width-100b padding-30" v-html="shouquan_text">
</view>
</view>
</template>
<script>
export default {
data() {
return {
shouquan_text:'',
theme: '',
}
},
computed: {
i18n() {
return this.$t('message');
},
},
onLoad() {
this.getInfo()
},
onShow() {
if (uni.getStorageSync("theme") == "dark") {
this.theme = this.$store.state.darkTheme
} else {
this.theme = this.$store.state.lightTheme
}
},
methods: {
getInfo(){
this.post('/publics/new_common_data').then(res => {
console.log('文案说明',res)
if(res.code == 1){
this.shouquan_text = res.data.shouquan_text
}
})
}
}
}
</script>
<style>
</style>