kaiguan-zfb/page_fenbao/statulist/about/index.vue

152 lines
2.7 KiB
Vue
Raw Normal View History

2024-05-10 17:37:36 +08:00
<template>
<view class="page">
2024-09-14 18:00:46 +08:00
<u-navbar :title="tit" :border-bottom="false" :background="bgc" title-color='#fff' back-icon-color="#fff"
title-size='36' height='50'></u-navbar>
<view class="box">
<view class="title">
{{obj.title == undefined ? '' : obj.title}}
</view>
2024-05-11 13:33:17 +08:00
<view class="js" v-html="obj.content">
2024-05-10 17:37:36 +08:00
</view>
2024-09-14 18:00:46 +08:00
</view>
2024-05-10 17:37:36 +08:00
</view>
</template>
<script>
export default {
data() {
return {
2024-09-14 18:00:46 +08:00
obj: {},
2024-11-09 18:02:13 +08:00
tit: '',
bgc: {
backgroundColor: " #8883F0",
},
2024-05-10 17:37:36 +08:00
}
},
2024-07-17 17:59:51 +08:00
// 分享到好友(会话)
2024-09-14 18:00:46 +08:00
onShareAppMessage: function() {
return {
title: '创想物联',
path: '/pages/shouye/index'
}
},
// 分享到朋友圈
onShareTimeline: function() {
return {
title: '创想物联',
query: '',
path: '/pages/shouye/index'
}
},
onLoad(option) {
this.tit = option.tit
if (option.tit == '关于我们') {
this.getabout()
2024-09-28 18:10:03 +08:00
}else if(option.tit == '隐私政策'){
2024-09-14 18:00:46 +08:00
this.getabouts()
2024-09-28 18:10:03 +08:00
}else if(option.tit == '用户服务协议'){
this.getaboutss()
2024-09-14 18:00:46 +08:00
}
2024-05-11 13:33:17 +08:00
},
2024-05-10 17:37:36 +08:00
methods: {
2024-09-14 18:00:46 +08:00
getabout() {
let type = 'about'
this.$u.get(`/app/article/licence/${type}`).then((res) => {
if (res.code == 200) {
this.obj = res.data
}
})
},
2024-09-28 18:10:03 +08:00
// 隐私政策
2024-09-14 18:00:46 +08:00
getabouts() {
let type = 'privacy'
this.$u.get(`/app/article/licence/${type}`).then((res) => {
if (res.code == 200) {
this.obj = res.data
}
})
2024-09-28 18:10:03 +08:00
},
// 用户协议
getaboutss() {
let type = 'user'
this.$u.get(`/app/article/licence/${type}`).then((res) => {
if (res.code == 200) {
this.obj = res.data
}
})
2024-09-14 18:00:46 +08:00
}
2024-05-10 17:37:36 +08:00
}
}
</script>
<style lang="scss">
2024-09-14 18:00:46 +08:00
/deep/ .u-title {
2024-06-03 16:47:25 +08:00
padding-bottom: 22rpx;
2024-05-24 16:48:42 +08:00
}
2024-09-14 18:00:46 +08:00
/deep/ .u-icon__icon {
2024-06-03 16:47:25 +08:00
padding-bottom: 22rpx;
2024-05-24 16:48:42 +08:00
}
2024-09-14 18:00:46 +08:00
2024-05-10 17:37:36 +08:00
page {
background: linear-gradient(180deg, #8883F0 0%, rgba(255, 255, 255, 0) 100%);
}
.page {
width: 750rpx;
2024-07-12 18:13:59 +08:00
// position: fixed;
// top: 0;
// left: 0;
overflow: hidden;
2024-09-14 18:00:46 +08:00
.box {
2024-05-10 17:37:36 +08:00
width: 750rpx;
height: 1440rpx;
background: #F4F5F7;
border-radius: 0rpx 0rpx 0rpx 0rpx;
padding: 40rpx 34rpx;
box-sizing: border-box;
2024-07-12 18:13:59 +08:00
overflow: scroll;
2024-09-14 18:00:46 +08:00
.title {
2024-05-10 17:37:36 +08:00
font-weight: 600;
font-size: 36rpx;
color: #3D3D3D;
}
2024-09-14 18:00:46 +08:00
.tit {
2024-05-10 17:37:36 +08:00
font-weight: 600;
font-size: 36rpx;
color: #3D3D3D;
margin-top: 32rpx;
}
2024-09-14 18:00:46 +08:00
.nav_top {
2024-05-10 17:37:36 +08:00
width: 680rpx;
height: 322rpx;
background: #EEEEEE;
border-radius: 0rpx 0rpx 0rpx 0rpx;
margin: auto;
margin-top: 32rpx;
}
2024-09-14 18:00:46 +08:00
.js {
2024-05-10 17:37:36 +08:00
font-size: 28rpx;
color: #3D3D3D;
margin-top: 32rpx;
}
2024-09-14 18:00:46 +08:00
.nav_bom {
2024-05-10 17:37:36 +08:00
width: 680rpx;
height: 322rpx;
background: #EEEEEE;
border-radius: 0rpx 0rpx 0rpx 0rpx;
margin: auto;
margin-top: 32rpx;
}
}
}
</style>