|
@@ -42,8 +42,29 @@
|
|
|
show-word-limit
|
|
|
type="textarea"
|
|
|
/>
|
|
|
- <el-divider />
|
|
|
- <div class="mb-4">
|
|
|
+ <div class="flex justify-between items-center mt-2">
|
|
|
+ <div
|
|
|
+ class="flex-1 h-12 border rounded-md flex items-center justify-center cursor-pointer relative mr-2"
|
|
|
+ :class="{'border-primary text-primary bg-[#EDEFFF]': params.diningMethods === 1}"
|
|
|
+ @click="params.diningMethods = 1"
|
|
|
+ >
|
|
|
+ <span>店内就餐</span>
|
|
|
+ <el-icon v-if="params.diningMethods === 1" class="absolute right-0 bottom-0 text-primary" style="font-size: 16px;">
|
|
|
+ <Check />
|
|
|
+ </el-icon>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="flex-1 h-12 border rounded-md flex items-center justify-center cursor-pointer relative ml-2"
|
|
|
+ :class="{'border-primary text-primary bg-[#EDEFFF]': params.diningMethods === 2}"
|
|
|
+ @click="params.diningMethods = 2"
|
|
|
+ >
|
|
|
+ <span>打包外带</span>
|
|
|
+ <el-icon v-if="params.diningMethods === 2" class="absolute right-0 bottom-0 text-primary" style="font-size: 16px;">
|
|
|
+ <Check />
|
|
|
+ </el-icon>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mb-4" style="margin-top: 5px;">
|
|
|
<div class="flex items-center">
|
|
|
<el-input
|
|
|
v-model="data.phone"
|
|
@@ -276,7 +297,8 @@ const params = reactive({
|
|
|
number: '', //订单id
|
|
|
userId: '', //用户id
|
|
|
couponId: '', //优惠券id
|
|
|
- couponAmount: '-'
|
|
|
+ couponAmount: '-',
|
|
|
+ diningMethods: 1, // 就餐方式:1店内就餐 2打包外带
|
|
|
})
|
|
|
const submit = () => {
|
|
|
//出单
|