chore(样式调整): 所有页面统一使用<view :style="themeColor"> 这种方式

This commit is contained in:
2025-12-31 11:14:49 +08:00
parent 921e8b79b1
commit 7a28bb7f7a
102 changed files with 3558 additions and 3632 deletions

View File

@@ -1,55 +1,54 @@
<template>
<page-meta :page-style="themeColor"></page-meta>
<view style="padding: 20rpx;">
<rich-text :nodes="content"></rich-text>
</view>
</template>
<script>
import htmlParser from '@/common/js/html-parser';
export default {
components: {
},
data() {
return {
content:'',
type:'',
uniacid:0
};
},
onLoad(option) {
this.type = option.type
this.uniacid = option.uniacid?option.uniacid:0
this.isIphoneX = this.$util.uniappIsIPhoneX()
this.getcontent()
},
onShow() {
},
methods: {
getcontent() {
// privacy content
var data = {
type:this.type
}
if(this.uniacid > 0) data.uniacid = this.uniacid
this.$api.sendRequest({
url: '/api/config/agreement',
data:data,
success: res => {
console.log(res.data.title)
uni.setNavigationBarTitle({
title:res.data.title
})
this.content = res.data.content
}
});
}
}
};
</script>
<style lang="scss">
<template>
<view style="padding: 20rpx;" :style="themeColor">
<rich-text :nodes="content"></rich-text>
</view>
</template>
<script>
import htmlParser from '@/common/js/html-parser';
export default {
components: {
},
data() {
return {
content:'',
type:'',
uniacid:0
};
},
onLoad(option) {
this.type = option.type
this.uniacid = option.uniacid?option.uniacid:0
this.isIphoneX = this.$util.uniappIsIPhoneX()
this.getcontent()
},
onShow() {
},
methods: {
getcontent() {
// privacy content
var data = {
type:this.type
}
if(this.uniacid > 0) data.uniacid = this.uniacid
this.$api.sendRequest({
url: '/api/config/agreement',
data:data,
success: res => {
console.log(res.data.title)
uni.setNavigationBarTitle({
title:res.data.title
})
this.content = res.data.content
}
});
}
}
};
</script>
<style lang="scss">
</style>