jiazhipeng 4 months ago
parent
commit
f9376c099e
  1. 6
      pages.json
  2. 79
      subPackages/service/gate.vue

6
pages.json

@ -49,6 +49,12 @@
"navigationStyle": "custom"
}
},
{
"path": "service/gate",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "food/foodDetail",
"style": {

79
subPackages/service/gate.vue

@ -0,0 +1,79 @@
<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>
Loading…
Cancel
Save