盐都小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.4 KiB

4 months ago
<template>
<view class="bg">
<view class="text" v-html="formateRichText(content)"></view>
<view style="width: 1rpx;height: 170rpx;"></view>
<view class="bottom-cntainer">
<view class="btn" @click="submit()">同意</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
content:'',
park_code: '',
arm_code: '',
};
},
onLoad(options){
this.park_code = options.park_code
this.arm_code = options.arm_code
this.getArticle()
},
methods: {
getArticle () {
this.Post({
id:10309
},'/api/article/getArticleById').then(res => {
uni.setNavigationBarTitle({
title:res.data.title
})
this.content = res.data.content
})
},
submit () {
this.Post({
park_code: this.park_code,
arm_code: this.arm_code,
agree_status: 1,
}, "/api/parking/raiseCar").then(res=>{
})
}
}
}
</script>
<style lang="scss">
.text{
padding: 20rpx;
}
.bottom-cntainer{
width: 100%;
height: 166rpx;
background: #ffffff;
box-shadow: 0rpx -3rpx 9rpx 1rpx rgba(227, 229, 232, 0.5);
display: flex;
position: fixed;
bottom: 0;
padding: 20rpx 20rpx;
align-items: center;
justify-content: center;
}
.btn{
width: 594rpx;
height: 88rpx;
margin: 0 auto;
background: #F84A56;
border-radius: 43rpx;
text-align: center;
line-height: 88rpx;
font-size: 36rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
}
</style>