This commit is contained in:
parent
6119af35df
commit
2ae9c80165
@ -1,5 +1,5 @@
|
|||||||
<style lang='scss'>
|
<style lang='scss'>
|
||||||
.custom-count-down {
|
.custom-count-down {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
color: #ff3232;
|
color: #ff3232;
|
||||||
@ -7,15 +7,15 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #ff404021;
|
background-color: #ff404021;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-count-down-colon {
|
.custom-count-down-colon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
color: #ff4040;
|
color: #ff4040;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cell-icon {
|
.cell-icon {
|
||||||
display: block;
|
display: block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
@ -23,7 +23,7 @@
|
|||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
background: url('https://img10.360buyimg.com/jmadvertisement/jfs/t1/71075/7/3762/1820/5d1f26d1E0d600b9e/a264c901943080ac.png') no-repeat;
|
background: url('https://img10.360buyimg.com/jmadvertisement/jfs/t1/71075/7/3762/1820/5d1f26d1E0d600b9e/a264c901943080ac.png') no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
@ -180,12 +180,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { useColPickerData, useModal } from '@/hooks'
|
import { useColPickerData, useModal } from '@/hooks'
|
||||||
import { defineComponent } from "vue";
|
import { defineComponent } from "vue";
|
||||||
import { CommonApi, UserApi } from "@/api";
|
import { CommonApi, UserApi } from "@/api";
|
||||||
const { colPickerData, findChildrenByCode } = useColPickerData()
|
const { colPickerData, findChildrenByCode } = useColPickerData()
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
totalPrice: 0,
|
totalPrice: 0,
|
||||||
server_user: {
|
server_user: {
|
||||||
@ -202,17 +202,17 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad (option) {
|
||||||
this.order_id = option.order_id;;
|
this.order_id = option.id;;
|
||||||
this.orderInfo.order_id = option.order_id;
|
this.orderInfo.order_id = option.id;
|
||||||
this.getOrderDetail()
|
this.getOrderDetail()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
close() {
|
close () {
|
||||||
this.propShowOrder = false;
|
this.propShowOrder = false;
|
||||||
},
|
},
|
||||||
// 微信支付
|
// 微信支付
|
||||||
payOrder(type) {
|
payOrder (type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
//支付订单
|
//支付订单
|
||||||
CommonApi.commonPost('/api/banquet/order/pay', { order_id: this.order_id }).catch((res) => {
|
CommonApi.commonPost('/api/banquet/order/pay', { order_id: this.order_id }).catch((res) => {
|
||||||
@ -245,11 +245,12 @@
|
|||||||
} else {
|
} else {
|
||||||
uni.$u.toast(res.msg);
|
uni.$u.toast(res.msg);
|
||||||
}
|
}
|
||||||
|
this.goBack ()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//宴席类型
|
//宴席类型
|
||||||
getBanquetType() {
|
getBanquetType () {
|
||||||
CommonApi.commonGet('/api/banquet/dishes/banquetType').catch((res) => {
|
CommonApi.commonGet('/api/banquet/dishes/banquetType').catch((res) => {
|
||||||
if (res.code === 1) {
|
if (res.code === 1) {
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
@ -263,7 +264,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// //购物车验证
|
// //购物车验证
|
||||||
getOrderDetail() {
|
getOrderDetail () {
|
||||||
CommonApi.commonGet('/api/banquet/order/detail', { order_id: this.order_id }).catch((res) => {
|
CommonApi.commonGet('/api/banquet/order/detail', { order_id: this.order_id }).catch((res) => {
|
||||||
if (res.code === 1) {
|
if (res.code === 1) {
|
||||||
this.matchedItems_sp = res.data.order_info;
|
this.matchedItems_sp = res.data.order_info;
|
||||||
@ -277,12 +278,23 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
//点击详情
|
//点击详情
|
||||||
cookDetail(id : number) {
|
cookDetail (id: number) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/banquet/cook/detail?id=${id}`
|
url: `/pages/banquet/cook/detail?id=${id}`
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
goBackHome () {
|
||||||
},
|
uni.switchTab({
|
||||||
|
// url: '/pages/index/index'
|
||||||
|
url: '/pages/tab/user/index'
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
// 返回上一级
|
||||||
|
goBack () {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1 // delta 表示返回的页面数,1 表示返回上一级
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<wd-card >
|
<wd-card >
|
||||||
<template #title>
|
<template #title>
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<view> 创建时间:{{ item.create_time }} </view>
|
<view class="font-size-28">创建时间:{{ item.create_time }} </view>
|
||||||
<text v-if="item.paid === 0">
|
<text v-if="item.paid === 0">
|
||||||
<wd-tag custom-class="space" mark>未付款</wd-tag>
|
<wd-tag custom-class="space" mark>未付款</wd-tag>
|
||||||
</text>
|
</text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user