| | |
| | | <view class="box_list_item_val">{{ info.carNos }}</view> |
| | | </view> |
| | | </view> |
| | | <view class="footer"> |
| | | <u-button |
| | | text="取消预约" |
| | | size="mini" |
| | | v-if="[0,1,2,5].includes(info.status)" |
| | | @click="cancelShow = true" /> |
| | | </view> |
| | | <u-popup :show="show" mode="center" @close="close"> |
| | | <view class="qrocde"> |
| | | <canvas class="qrcode_img" canvas-id="img1"></canvas> |
| | | </view> |
| | | </u-popup> |
| | | <!-- 取消预约弹窗 --> |
| | | <u-modal |
| | | :show="cancelShow" |
| | | :showCancelButton="true" |
| | | title="系统提示" |
| | | content='确定取消当前预约吗?' |
| | | @cancel="cancelShow = false" |
| | | @confirm="cancel" /> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | id: null, |
| | | info: {}, |
| | | show: false, |
| | | detail: '' |
| | | detail: '', |
| | | cancelShow: false |
| | | } |
| | | }, |
| | | onBackPress(options) { |
| | |
| | | onLoad(option) { |
| | | uni.setStorageSync('ywinfo',{}) |
| | | this.detail = option.detail || '' |
| | | this.id = option.id |
| | | this.getDetail(option.id) |
| | | // visitorSubDetail({ id: option.id }) |
| | | // .then(res => { |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | // 取消预约 |
| | | cancel() { |
| | | visitsCancel(this.id).then(res => { |
| | | this.getDetail(this.id) |
| | | }) |
| | | }, |
| | | close() { |
| | | this.show = false |
| | | }, |
| | |
| | | <style lang="scss" scoped> |
| | | .box { |
| | | width: 100%; |
| | | .footer { |
| | | position: fixed; |
| | | left: 0; |
| | | bottom: 0; |
| | | width: 100%; |
| | | height: 100rpx; |
| | | text-align: right; |
| | | background-color: #ffffff; |
| | | padding-bottom: calc(30rpx + env(safe-area-inset-bottom)); |
| | | } |
| | | .qrocde { |
| | | width: 300rpx; |
| | | height: 300rpx; |