APPbug反馈修改
This commit is contained in:
@@ -1,25 +1,53 @@
|
||||
<template>
|
||||
<Cn-page :loading='loading'>
|
||||
<view slot='body'>
|
||||
<view class='index'>
|
||||
隐私政策
|
||||
<Cn-page :loading="loading">
|
||||
<view slot="body">
|
||||
<view class="html-wrap">
|
||||
<view v-html="value"></view>
|
||||
</view>
|
||||
</view>
|
||||
</Cn-page>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { queryAppInfoByType } from '@/common/api/mine.js'
|
||||
export default {
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
loading: false
|
||||
showFlag: 0,
|
||||
pageNameFlag: 1,
|
||||
pageName: '用户协议',
|
||||
loading: true,
|
||||
value: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
methods: {},
|
||||
created() {
|
||||
let dictData = uni.getStorageSync(this.$cacheKey.dictData)
|
||||
dictData.forEach((item) => {
|
||||
if (item.code === 'appInformationType') {
|
||||
item.children.forEach((item2) => {
|
||||
if (item2.code === 'Personal_Infor_Protect') {
|
||||
queryAppInfoByType(item2.id).then((res) => {
|
||||
this.value = res.data.content
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
.index {
|
||||
|
||||
<style lang="scss">
|
||||
.html-wrap {
|
||||
width: 750rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 20rpx;
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<view class="name">{{ text }}</view>
|
||||
<view class="btn-wrap">
|
||||
<navigator open-type="navigateBack" hover-class="none" class="btn"> 返回 </navigator>
|
||||
<view class="btn ml20" @click="look"> 查看 </view>
|
||||
<!-- <view class="btn ml20" @click="look"> 查看 </view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
<view class="mine-nav-label">用户协议</view>
|
||||
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
||||
</view>
|
||||
<view class="mine-nav" @click="jump('policy')" >
|
||||
<view class="mine-nav-label">个人信息保护政策</view>
|
||||
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
||||
</view>
|
||||
<view class="mine-nav" @click="jump('system')">
|
||||
<view class="mine-nav-label">系统介绍</view>
|
||||
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
||||
@@ -72,7 +76,7 @@ export default {
|
||||
})
|
||||
break;
|
||||
case 'layout':
|
||||
uni.navigateTo({
|
||||
uni.reLaunch({
|
||||
url: `/pages/user/login`
|
||||
})
|
||||
break;
|
||||
|
||||
@@ -1,50 +1,56 @@
|
||||
<template>
|
||||
<view :loading="loading">
|
||||
<view class="mine">
|
||||
<view class="mine-nav" style="margin-top:20rpx;">
|
||||
<view class="mine-nav-label">终端消息</view>
|
||||
<view class="mine-nav" style="margin-top: 20rpx">
|
||||
<view class="mine-nav-label">稳态越限</view>
|
||||
<switch color="#376cf3" />
|
||||
</view>
|
||||
<view class="mine-nav" style="border-bottom: none; ">
|
||||
<view class="mine-nav-label">系统消息</view>
|
||||
<view class="mine-nav" style="border-bottom: none">
|
||||
<view class="mine-nav-label">暂态事件</view>
|
||||
<switch color="#376cf3" />
|
||||
</view>
|
||||
<view class="mine-nav" style="border-bottom: none">
|
||||
<view class="mine-nav-label">设备状态</view>
|
||||
<switch color="#376cf3" />
|
||||
</view>
|
||||
<view class="mine-nav" style="border-bottom: none">
|
||||
<view class="mine-nav-label">设备消息</view>
|
||||
<switch color="#376cf3" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
loading: false
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init () {
|
||||
},
|
||||
jump (type) {
|
||||
init() {},
|
||||
jump(type) {
|
||||
switch (type) {
|
||||
case 'changePwd':
|
||||
uni.navigateTo({
|
||||
url: `/pages/user/changePwd`
|
||||
url: `/pages/user/changePwd`,
|
||||
})
|
||||
break;
|
||||
break
|
||||
case 'changePhone':
|
||||
uni.navigateTo({
|
||||
url: `/pages/user/changePhone`
|
||||
url: `/pages/user/changePhone`,
|
||||
})
|
||||
break;
|
||||
break
|
||||
default:
|
||||
uni.navigateTo({
|
||||
url: `/pages/mine/${type}`
|
||||
url: `/pages/mine/${type}`,
|
||||
})
|
||||
break;
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
onLoad () {
|
||||
onLoad() {
|
||||
this.init()
|
||||
},
|
||||
}
|
||||
@@ -52,6 +58,11 @@ export default {
|
||||
|
||||
<style lang="scss">
|
||||
.mine {
|
||||
.title {
|
||||
padding: 0 20rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
.mine-header {
|
||||
padding: 200rpx 34rpx 34rpx;
|
||||
display: flex;
|
||||
@@ -78,7 +89,7 @@ export default {
|
||||
}
|
||||
|
||||
.mine-nav {
|
||||
padding: 34rpx;
|
||||
padding: 34rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: $uni-theme-white;
|
||||
@@ -100,4 +111,4 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user