|
@@ -7,61 +7,77 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="container">
|
|
<div class="container">
|
|
|
<nav-title>提交订单</nav-title>
|
|
<nav-title>提交订单</nav-title>
|
|
|
- <van-sticky>
|
|
|
|
|
- <div class="top">
|
|
|
|
|
- <img
|
|
|
|
|
- class="mytest"
|
|
|
|
|
- src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-02-16-02-06RPYZopsT.png"
|
|
|
|
|
- alt=""
|
|
|
|
|
- />
|
|
|
|
|
- <div class="box">
|
|
|
|
|
- <div class="tabs">
|
|
|
|
|
- <div
|
|
|
|
|
- class="tab"
|
|
|
|
|
- :class="{ active: item === active }"
|
|
|
|
|
- v-for="(item, index) in tabs"
|
|
|
|
|
- :key="index"
|
|
|
|
|
- @click="change(item)"
|
|
|
|
|
- >
|
|
|
|
|
- {{ item }}
|
|
|
|
|
- <div class="slip" :class="{ active: item === active }"></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- <van-sticky> -->
|
|
|
|
|
+ <div class="top">
|
|
|
|
|
+ <img
|
|
|
|
|
+ class="mytest"
|
|
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-02-16-02-06RPYZopsT.png"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
|
|
+ <div class="box">
|
|
|
|
|
+ <div class="tabs">
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="tab"
|
|
|
|
|
+ :class="{ active: item === active }"
|
|
|
|
|
+ v-for="(item, index) in tabs"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ @click="change(item)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ item }}
|
|
|
|
|
+ <div class="slip" :class="{ active: item === active }"></div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="address" @click.stop="navigateTo('/pages/chooseAddress')">
|
|
|
|
|
- <div>
|
|
|
|
|
- <div class="text">
|
|
|
|
|
- <img
|
|
|
|
|
- v-if="active == '外卖配送'"
|
|
|
|
|
- src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-03-16-00-50JDBrQbgB.png"
|
|
|
|
|
- alt=""
|
|
|
|
|
- />
|
|
|
|
|
- <div class="text1">江宁学院一食堂楼 益禾堂</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div v-if="userInfo">
|
|
|
|
|
- <div v-if="active == '外卖配送'" class="text2">
|
|
|
|
|
- {{ userInfo.nickname }} {{ userInfo.phone }}
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="address" @click.stop="navigateTo('/pages/chooseAddress')">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="text">
|
|
|
|
|
+ <img
|
|
|
|
|
+ v-if="active == '外卖配送'"
|
|
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-03-16-00-50JDBrQbgB.png"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
|
|
+ <div class="text1">江宁学院一食堂楼 益禾堂</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-if="userInfo">
|
|
|
|
|
+ <div v-if="active == '外卖配送'" class="text2">
|
|
|
|
|
+ {{ userInfo.nickname }} {{ userInfo.phone }}
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="active == '到店自取'" class="text2 text3">商家地址</div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
- <img
|
|
|
|
|
- v-if="active == '外卖配送'"
|
|
|
|
|
- class="imgBox1"
|
|
|
|
|
- src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-03-16-00-00LxfIfsLZ.png"
|
|
|
|
|
- alt=""
|
|
|
|
|
- />
|
|
|
|
|
- <img
|
|
|
|
|
- v-else
|
|
|
|
|
- class="imgBox2"
|
|
|
|
|
- src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-16-16-40-17lRmfLjlp.png"
|
|
|
|
|
- alt=""
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <div v-if="active == '到店自取'" class="text2 text3">商家地址</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <img
|
|
|
|
|
+ v-if="active == '外卖配送'"
|
|
|
|
|
+ class="imgBox1"
|
|
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-03-16-00-00LxfIfsLZ.png"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
|
|
+ <img
|
|
|
|
|
+ v-else
|
|
|
|
|
+ class="imgBox2"
|
|
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-16-16-40-17lRmfLjlp.png"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="border"></div>
|
|
|
|
|
+ <div class="time" @click="show = true">
|
|
|
|
|
+ <div class="text" v-if="active == '到店自取'">
|
|
|
|
|
+ <div class="text3">预留信息</div>
|
|
|
|
|
+ <div class="textCon">
|
|
|
|
|
+ <div class="text2">奶盖 18789898888</div>
|
|
|
|
|
+ <img
|
|
|
|
|
+ style="width:12px;height:24px"
|
|
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-03-16-00-00LxfIfsLZ.png"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="border"></div>
|
|
|
|
|
- <div class="time" @click="show = true">
|
|
|
|
|
- <div class="text1">{{ active == '外卖配送' ? '立即送出' : '自取时间' }}</div>
|
|
|
|
|
|
|
+ <div v-if="active == '到店自取'" class="quarantine"></div>
|
|
|
|
|
+ <div class="text1" v-if="active == '外卖配送'">立即送出</div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="text1 text4" v-if="active == '到店自取'">自取时间</div>
|
|
|
<div class="time1">
|
|
<div class="time1">
|
|
|
- <div class="text2">{{ active == '外卖配送' ? `预计${time}配送` : `预计${time}自取` }}</div>
|
|
|
|
|
|
|
+ <div class="text2">
|
|
|
|
|
+ {{ active == '外卖配送' ? `预计${time}配送` : `今天${time}自取` }}
|
|
|
|
|
+ </div>
|
|
|
<img
|
|
<img
|
|
|
src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-03-15-58-50tLAIsjgR.png"
|
|
src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-03-15-58-50tLAIsjgR.png"
|
|
|
alt=""
|
|
alt=""
|
|
@@ -70,7 +86,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </van-sticky>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- </van-sticky> -->
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
<div class="store">
|
|
<div class="store">
|
|
|
<div class="title">
|
|
<div class="title">
|
|
@@ -290,7 +307,7 @@ export default {
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- active: '外卖配送',
|
|
|
|
|
|
|
+ active: '到店自取',
|
|
|
tabs: ['外卖配送', '到店自取'],
|
|
tabs: ['外卖配送', '到店自取'],
|
|
|
takeout: [],
|
|
takeout: [],
|
|
|
list: {
|
|
list: {
|
|
@@ -393,9 +410,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
.box {
|
|
.box {
|
|
|
width: 351px;
|
|
width: 351px;
|
|
|
- height: 202px;
|
|
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
|
|
|
+ // margin-bottom: 16px;
|
|
|
.tabs {
|
|
.tabs {
|
|
|
padding: 16px 59px 0;
|
|
padding: 16px 59px 0;
|
|
|
color: #878787;
|
|
color: #878787;
|
|
@@ -452,20 +469,50 @@ export default {
|
|
|
.imgBox2 {
|
|
.imgBox2 {
|
|
|
width: 28px;
|
|
width: 28px;
|
|
|
height: 28px;
|
|
height: 28px;
|
|
|
|
|
+ margin-right: 6px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.border {
|
|
.border {
|
|
|
border-bottom: 1px solid @bg;
|
|
border-bottom: 1px solid @bg;
|
|
|
- margin: 16px 12px 20px;
|
|
|
|
|
|
|
+ margin: 16px 12px;
|
|
|
}
|
|
}
|
|
|
.time {
|
|
.time {
|
|
|
.flex();
|
|
.flex();
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
- margin: 0 12px 0 32px;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ padding-bottom: 16px;
|
|
|
|
|
+ .text {
|
|
|
|
|
+ padding-left: 12px;
|
|
|
|
|
+ .text3 {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ color: #000000;
|
|
|
|
|
+ line-height: 24px;
|
|
|
|
|
+ margin-bottom: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .textCon {
|
|
|
|
|
+ .flex();
|
|
|
|
|
+ .text2 {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ color: #000000;
|
|
|
|
|
+ line-height: 24px;
|
|
|
|
|
+ margin-right: 5px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .quarantine {
|
|
|
|
|
+ width: 1px;
|
|
|
|
|
+ height: 42px;
|
|
|
|
|
+ background: #f5f7fa;
|
|
|
|
|
+ // margin: 0 -13px;
|
|
|
|
|
+ }
|
|
|
.text1 {
|
|
.text1 {
|
|
|
.span();
|
|
.span();
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
|
|
+ margin-left: 30px;
|
|
|
|
|
+ &.text4 {
|
|
|
|
|
+ margin-left: 0;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.time1 {
|
|
.time1 {
|
|
|
.flex();
|
|
.flex();
|
|
@@ -479,6 +526,7 @@ export default {
|
|
|
img {
|
|
img {
|
|
|
width: 12px;
|
|
width: 12px;
|
|
|
height: 24px;
|
|
height: 24px;
|
|
|
|
|
+ margin-right: 12px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -487,7 +535,8 @@ export default {
|
|
|
width: 351px;
|
|
width: 351px;
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
|
- margin: 20px 0 0 12px;
|
|
|
|
|
|
|
+ // margin: 20px 0 0 12px;
|
|
|
|
|
+ margin-left: 12px;
|
|
|
padding: 16px 0;
|
|
padding: 16px 0;
|
|
|
.store {
|
|
.store {
|
|
|
.flex();
|
|
.flex();
|