协议增加我已知晓

This commit is contained in:
2024-12-16 10:18:09 +08:00
parent 5372daf2a7
commit b4542559ae
2 changed files with 47 additions and 11 deletions

View File

@@ -1,21 +1,27 @@
<template> <template>
<view style="font-size: 14px;line-height: 26px;padding: 32upx;" class="home1"> <view style="font-size: 14px;line-height: 26px;padding: 32upx;" class="home1 ">
<view style="font-size: 28upx;" v-html="content"></view> <view style="font-size: 28upx;" v-html="content"></view>
<view class="btn-box u-flex u-row-center">
<view class="btn" @click="back">我已知晓</view>
</view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
content:'' content: ''
} }
}, },
onLoad() { onLoad() {
this.getGuize(); this.getGuize();
}, },
methods: { methods: {
getGuize(){ back(){
uni.navigateBack()
},
getGuize() {
this.$u.get('app/common/type/155').then(res => { this.$u.get('app/common/type/155').then(res => {
this.content = res.data.value this.content = res.data.value
}); });
@@ -24,7 +30,19 @@
} }
</script> </script>
<style> <style scoped>
.btn {
width: 100%;
height: 42px;
line-height: 42px;
border-radius: 30px;
background: #ff7581;
color: #ffffff;
text-align: center;
}
.btn-box{
padding: 30rpx 230rpx;
}
page { page {
/* background: #1c1b20; */ /* background: #1c1b20; */
} }

View File

@@ -1,6 +1,9 @@
<template> <template>
<view style="line-height: 26px;padding: 32upx;" class="home1"> <view style="line-height: 26px;padding: 32upx;" class="home1 ">
<view style="font-size: 28upx;" v-html="content"></view> <view style="font-size: 28upx;" v-html="content"></view>
<view class="btn-box u-flex u-row-center">
<view class="btn" @click="back">我已知晓</view>
</view>
</view> </view>
</template> </template>
@@ -15,6 +18,9 @@
this.getGuize(); this.getGuize();
}, },
methods: { methods: {
back(){
uni.navigateBack()
},
getGuize(){ getGuize(){
// this.$Request.getT('/agreement/find?id=1').then(res =>{ // this.$Request.getT('/agreement/find?id=1').then(res =>{
// if(res.status === 0){ // if(res.status === 0){
@@ -30,7 +36,19 @@
} }
</script> </script>
<style> <style scoped>
.btn {
width: 100%;
height: 42px;
line-height: 42px;
border-radius: 30px;
background: #ff7581;
color: #ffffff;
text-align: center;
}
.btn-box{
padding: 30rpx 230rpx;
}
page{ page{
/* background: #1c1b20; */ /* background: #1c1b20; */
} }