基本完-开关
This commit is contained in:
parent
781a3b5372
commit
90c70ceb64
|
@ -113,7 +113,7 @@
|
||||||
<view class="tongyi" v-if="deviceobj.suitList != null">
|
<view class="tongyi" v-if="deviceobj.suitList != null">
|
||||||
<u-checkbox-group>
|
<u-checkbox-group>
|
||||||
<u-checkbox v-model="checked" @change="checkboxChange" active-color="#8883F0 ">我已同意
|
<u-checkbox v-model="checked" @change="checkboxChange" active-color="#8883F0 ">我已同意
|
||||||
</u-checkbox><text>《用户服务协议》</text>
|
</u-checkbox><text @click="btnyinsi">《用户服务协议》</text>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
<view class="zf" @click="btnzhifu" v-if="zhifuflag">
|
<view class="zf" @click="btnzhifu" v-if="zhifuflag">
|
||||||
立即支付
|
立即支付
|
||||||
|
@ -333,6 +333,13 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 用户服务协议
|
||||||
|
btnyinsi(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/page_fenbao/statulist/about/index?tit=' + '用户服务协议'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
gettrue() {
|
gettrue() {
|
||||||
this.$u.get("/app/device/isBind?deviceNo=" + this.id).then((res) => {
|
this.$u.get("/app/device/isBind?deviceNo=" + this.id).then((res) => {
|
||||||
if (res.data == 0 || res.data == 1) {
|
if (res.data == 0 || res.data == 1) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="关于我们" :border-bottom="false" :background="bgc" title-color='#fff' back-icon-color="#fff" title-size='36'
|
<u-navbar :title="tit" :border-bottom="false" :background="bgc" title-color='#fff' back-icon-color="#fff"
|
||||||
height='50'></u-navbar>
|
title-size='36' height='50'></u-navbar>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
{{obj.title == undefined ? '' : obj.title}}
|
{{obj.title == undefined ? '' : obj.title}}
|
||||||
|
@ -9,10 +9,6 @@
|
||||||
|
|
||||||
<view class="js" v-html="obj.content">
|
<view class="js" v-html="obj.content">
|
||||||
</view>
|
</view>
|
||||||
<!--
|
|
||||||
<view class="nav_bom">
|
|
||||||
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -21,7 +17,8 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
obj:{}
|
obj: {},
|
||||||
|
tit: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 分享到好友(会话)
|
// 分享到好友(会话)
|
||||||
|
@ -40,10 +37,16 @@
|
||||||
path: '/pages/shouye/index'
|
path: '/pages/shouye/index'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(option) {
|
||||||
|
this.tit = option.tit
|
||||||
|
if (option.tit == '关于我们') {
|
||||||
this.getabout()
|
this.getabout()
|
||||||
|
}else{
|
||||||
|
this.getabouts()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
getabout() {
|
getabout() {
|
||||||
let type = 'about'
|
let type = 'about'
|
||||||
this.$u.get(`/app/article/licence/${type}`).then((res) => {
|
this.$u.get(`/app/article/licence/${type}`).then((res) => {
|
||||||
|
@ -51,6 +54,15 @@
|
||||||
this.obj = res.data
|
this.obj = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
// 用户隐私协议
|
||||||
|
getabouts() {
|
||||||
|
let type = 'privacy'
|
||||||
|
this.$u.get(`/app/article/licence/${type}`).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.obj = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,9 +72,11 @@
|
||||||
/deep/ .u-title {
|
/deep/ .u-title {
|
||||||
padding-bottom: 22rpx;
|
padding-bottom: 22rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .u-icon__icon {
|
/deep/ .u-icon__icon {
|
||||||
padding-bottom: 22rpx;
|
padding-bottom: 22rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
page {
|
page {
|
||||||
background: linear-gradient(180deg, #8883F0 0%, rgba(255, 255, 255, 0) 100%);
|
background: linear-gradient(180deg, #8883F0 0%, rgba(255, 255, 255, 0) 100%);
|
||||||
}
|
}
|
||||||
|
@ -73,6 +87,7 @@
|
||||||
// top: 0;
|
// top: 0;
|
||||||
// left: 0;
|
// left: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 1440rpx;
|
height: 1440rpx;
|
||||||
|
@ -81,17 +96,20 @@
|
||||||
padding: 40rpx 34rpx;
|
padding: 40rpx 34rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tit {
|
.tit {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav_top {
|
.nav_top {
|
||||||
width: 680rpx;
|
width: 680rpx;
|
||||||
height: 322rpx;
|
height: 322rpx;
|
||||||
|
@ -100,11 +118,13 @@
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.js {
|
.js {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav_bom {
|
.nav_bom {
|
||||||
width: 680rpx;
|
width: 680rpx;
|
||||||
height: 322rpx;
|
height: 322rpx;
|
||||||
|
|
|
@ -444,7 +444,7 @@
|
||||||
})
|
})
|
||||||
} else if (num == 3) {
|
} else if (num == 3) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/page_fenbao/statulist/about/index'
|
url: '/page_fenbao/statulist/about/index?tit=' + '关于我们'
|
||||||
})
|
})
|
||||||
} else if (num == 1) {
|
} else if (num == 1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user