|
|
@@ -81,28 +81,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</van-sticky>
|
|
|
- <div class="conTent">
|
|
|
- <div
|
|
|
- @click="navigateTo('/pages/merchantorders')"
|
|
|
- class="merchantroCon"
|
|
|
- v-for="(item, index) in merchantorLists"
|
|
|
- :key="index"
|
|
|
- >
|
|
|
- <img :src="item.image" alt="" />
|
|
|
- <div>
|
|
|
- <div class="text">
|
|
|
- <div class="text1">{{ item.name }}</div>
|
|
|
- <div class="btn">营业中</div>
|
|
|
- </div>
|
|
|
- <div class="text2">起送20元 免配费 20分钟 1km</div>
|
|
|
- <div class="text3">蛋黄派 曲奇饼干</div>
|
|
|
- <div class="bottom">
|
|
|
- <div class="text2">月销{{ item.num }}</div>
|
|
|
- <img
|
|
|
- class="imgBox"
|
|
|
- src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-01-17-35-13FNlQpGNP.png"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ <div class="conTent" v-for="(item, index) in merchantorLists" :key="index">
|
|
|
+ <div v-if="lock" class="dele">不喜欢</div>
|
|
|
+ <div v-if="lock" class="conTent2"></div>
|
|
|
+ <div class="box">
|
|
|
+ <div @longtap="longTap" @touchend="touchend" @click="tap" class="merchantroCon">
|
|
|
+ <img :src="item.image" alt="" />
|
|
|
+ <div>
|
|
|
+ <div class="text">
|
|
|
+ <div class="text1">{{ item.name }}</div>
|
|
|
+ <div class="btn">营业中</div>
|
|
|
+ </div>
|
|
|
+ <div class="text2">起送20元 免配费 20分钟 1km</div>
|
|
|
+ <div class="text3">蛋黄派 曲奇饼干</div>
|
|
|
+ <div class="bottom">
|
|
|
+ <div class="text2">月销{{ item.num }}</div>
|
|
|
+ <img
|
|
|
+ class="imgBox"
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-01-17-35-13FNlQpGNP.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -118,6 +117,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
swiperCurrent: 0,
|
|
|
+ lock: false,
|
|
|
banners: ['https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-08-10-17-40-54wLiqaRNi.png'],
|
|
|
merchantorLists: [
|
|
|
{
|
|
|
@@ -136,6 +136,25 @@ export default {
|
|
|
},
|
|
|
swiperChange(e) {
|
|
|
this.swiperCurrent = e.detail.current;
|
|
|
+ },
|
|
|
+ tap() {
|
|
|
+ //检查锁
|
|
|
+ if (this.lock) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.navigateTo('/pages/merchantorders');
|
|
|
+ },
|
|
|
+ touchend() {
|
|
|
+ if (this.lock) {
|
|
|
+ //开锁
|
|
|
+ setTimeout(() => {
|
|
|
+ this.lock = false;
|
|
|
+ }, 100);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ longTap() {
|
|
|
+ //锁住
|
|
|
+ this.lock = true;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -271,61 +290,91 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.conTent {
|
|
|
- padding: 12px;
|
|
|
- margin: 27px 16px 0 16px;
|
|
|
- border-radius: 8px;
|
|
|
- box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
|
|
|
- .merchantroCon {
|
|
|
- .flex();
|
|
|
- img {
|
|
|
- width: 116px;
|
|
|
- height: 116px;
|
|
|
- border-radius: 8px;
|
|
|
- margin-right: 10px;
|
|
|
- }
|
|
|
- .text {
|
|
|
+ position: relative;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ .conTent2 {
|
|
|
+ width: 91.6%;
|
|
|
+ height: 100%;
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
|
+ border-radius: 8px;
|
|
|
+ margin-left: 16px;
|
|
|
+ position: absolute;
|
|
|
+ }
|
|
|
+ .dele {
|
|
|
+ width: 62px;
|
|
|
+ height: 62px;
|
|
|
+ background: #f5f7fa;
|
|
|
+ border-radius: 50%;
|
|
|
+ line-height: 62px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #159eff;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 20;
|
|
|
+ top: 30%;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ margin: 0 auto;
|
|
|
+ }
|
|
|
+ .box {
|
|
|
+ padding: 12px;
|
|
|
+ margin: 27px 16px 0 16px;
|
|
|
+ border-radius: 8px;
|
|
|
+ box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
|
|
|
+ .merchantroCon {
|
|
|
.flex();
|
|
|
- justify-content: space-between;
|
|
|
- .text1 {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- color: #000000;
|
|
|
- line-height: 24px;
|
|
|
+ img {
|
|
|
+ width: 116px;
|
|
|
+ height: 116px;
|
|
|
+ border-radius: 8px;
|
|
|
+ margin-right: 10px;
|
|
|
}
|
|
|
- .btn {
|
|
|
- width: 51px;
|
|
|
- height: 20px;
|
|
|
- background: #d3edff;
|
|
|
- border-radius: 2px;
|
|
|
- text-align: center;
|
|
|
+ .text {
|
|
|
+ .flex();
|
|
|
+ justify-content: space-between;
|
|
|
+ .text1 {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ .btn {
|
|
|
+ width: 51px;
|
|
|
+ height: 20px;
|
|
|
+ background: #d3edff;
|
|
|
+ border-radius: 2px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: @prim;
|
|
|
+ line-height: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .text2 {
|
|
|
+ .text12();
|
|
|
+ margin: 2px 0 6px;
|
|
|
+ }
|
|
|
+ .text3 {
|
|
|
font-size: 13px;
|
|
|
font-weight: 400;
|
|
|
color: @prim;
|
|
|
line-height: 20px;
|
|
|
}
|
|
|
- }
|
|
|
- .text2 {
|
|
|
- .text12();
|
|
|
- margin: 2px 0 6px;
|
|
|
- }
|
|
|
- .text3 {
|
|
|
- font-size: 13px;
|
|
|
- font-weight: 400;
|
|
|
- color: @prim;
|
|
|
- line-height: 20px;
|
|
|
- }
|
|
|
- .bottom {
|
|
|
- .flex();
|
|
|
- justify-content: space-between;
|
|
|
- width: 100%;
|
|
|
- .text2 {
|
|
|
- .text12();
|
|
|
- margin-top: 6px;
|
|
|
- }
|
|
|
- .imgBox {
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- margin: 0;
|
|
|
+ .bottom {
|
|
|
+ .flex();
|
|
|
+ justify-content: space-between;
|
|
|
+ width: 100%;
|
|
|
+ .text2 {
|
|
|
+ .text12();
|
|
|
+ margin-top: 6px;
|
|
|
+ }
|
|
|
+ .imgBox {
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|