Browse Source

商家详情页

master
tianyi 1 month ago
parent
commit
8a905a0899
  1. 156
      package1/group/groupBuyDetail.vue
  2. 521
      package1/group/groupBuySingle.vue
  3. 87
      package1/group/shopEvaluate.vue

156
package1/group/groupBuyDetail.vue

@ -1,11 +1,167 @@
<template> <template>
<!-- 拼团商家详情页 --> <!-- 拼团商家详情页 -->
<view class="page1">
<view class="title">
<view class="title-sreach">
<view class="back-btn" @tap="back" :style="{'top': menuButtonInfo.top +'px'}">
<uni-icons type="left" size="28"></uni-icons>
</view>
<view class="title-name" :style="{'padding-top': menuButtonInfo.top +'px'}">
商家详情
</view>
</view>
</view>
<view class="content">
<view class="box1" style="display: flex;">
<view class="left">
<view style="display: flex;">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/3721d2aa18ac4700aa7ac4dfeb272b09.png" alt="" style="width: 24px;height: 24px;"/>
<text style="height: 24px;line-height: 24px;font-size: 14px;font-weight: 700;margin-left: 5px;">竹仔园牛仔农庄(第六分店)</text>
</view>
<view style="line-height: 30px;height: 30px;color: #777;">
<uni-icons type="location" size="13"></uni-icons>
<text>北校区沁园春食堂3楼321窗口</text>
</view>
<view style="line-height: 30px;height: 30px;color: #777;">
<uni-icons type="loop" size="13"></uni-icons>
<text>周一到周日 10:50-21:00</text>
</view>
</view>
<view class="right">
<img @tap="makeCall('15533910775')" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png" alt="" style="width: 40px;height: 40px;position: absolute;top: 32px;right: 30px;"/>
</view>
</view>
<view class="box1">
<view style="display: flex;">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/86004fa6b60e477ea1622fc0bf4c99de.png" alt="" style="width: 24px;height: 24px;" />
<text style="height: 24px;line-height: 24px;font-size: 14px;font-weight: 700;margin-left: 5px;">商家承诺</text>
</view>
<view style="display: flex;margin-top: 10px;">
<img @tap="largeImg" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/5e54d31516264fd5b056d5d6b7009e40.png" alt="" style="width: 78px;height: 24px;margin-right: 20px;" />
<img @tap="largeImg" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/d9a6c7b6ebdd4fb09b1b681133752909.png" alt="" style="width: 78px;height: 24px;" />
</view>
</view>
<view class="box1">
<view style="display: flex;">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/00b1f011787c4549bbea650d95a4eb39.png" alt="" style="width: 24px;height: 24px;" />
<text style="height: 24px;line-height: 24px;font-size: 14px;font-weight: 700;margin-left: 5px;">商家公告</text>
</view>
<view style="color: #777;line-height: 24px;margin-top: 10px;">
公告这里是第三食堂美食top1好吃不贵欢迎下好吃不贵欢欢迎下单迎下单欢迎下单
</view>
</view>
</view>
<!-- 查看大图弹出层 -->
<uni-popup ref="imgPopup" background-color="#fff">
<view class="img-popup-content">
<img :src="bigImg" alt="" style="width: 100%;height: 100%;">
</view>
</uni-popup>
</view>
</template> </template>
<script> <script>
export default {
data() {
return {
menuButtonInfo: {},
isPintuan:true,
bigImg:''
}
},
components: {
},
onLoad() {
},
onShow() {
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
},
methods: {
//
largeImg(img) {
this.bigImg = 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/00b1f011787c4549bbea650d95a4eb39.png'
this.$refs.imgPopup.open()
},
//
makeCall() {
uni.makePhoneCall({
phoneNumber: '15533910775'
});
},
back() {
uni.navigateBack()
}
}
}
</script> </script>
<style lang="scss"> <style lang="scss">
page {
width: 100%;
height: 100%;
font-size: 24rpx;
background: #F5F8F5;
color: #00231C;
}
.page1 {
width: 100%;
height: 100%;
font-size: 24rpx;
position: relative;
}
.title{
background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/8bc15960c2dc40268e295d6dd23aecce.png') no-repeat;
width: 100%;
height: 54%;
}
.content{
position: absolute;
top: 100px;
width: 95%;
margin-left: 2.5%;
}
.title-sreach{
width: 100%;
display: flex;
height: 200rpx;
position: relative;
}
.back-btn{
position: absolute;
bottom: 0;
left: 0;
}
.title-name{
padding-top: 55px;
font-size: 36rpx;
font-weight: 700;
flex: 1;
text-align: center;
}
.box1{
width: 95%;
margin: 0 auto 10px;
background: #fff;
border-radius: 10px;
padding: 10px;
}
.left{
width: 60%;
}
.right{
width: 40%;
height: 80px;
}
.img-popup-content {
width: 500rpx;
height: 500rpx;
}
</style> </style>

521
package1/group/groupBuySingle.vue

@ -39,8 +39,8 @@
</view> </view>
</view> </view>
<view class="shop-content-bottom"> <view class="shop-content-bottom">
<view class="shop-deal"> <view class="shop-deal" @tap.stop="goDetail('shopEvaluate')" style="color: #777;">
已拼<text style="color: red;font-weight: 700;"> 12 </text> 店铺评价<uni-icons type="right" size="12"></uni-icons>
</view> </view>
<view class="shop-deal1"> <view class="shop-deal1">
月售 <text> 100+</text> 月售 <text> 100+</text>
@ -91,7 +91,7 @@
alt="" alt=""
style="width:30rpx;height:30rpx;position: absolute;top: 0;left: 0;background-size: 100%;" /> style="width:30rpx;height:30rpx;position: absolute;top: 0;left: 0;background-size: 100%;" />
</view> </view>
<view class="goods-content" @tap="goDetail('shopDetail')"> <view class="goods-content" @tap="goDetail('goodsDetail')">
<view class="goods-name"> <view class="goods-name">
牛仔农庄(医专店) 牛仔农庄(医专店)
</view> </view>
@ -121,105 +121,11 @@
</view> </view>
</view> </view>
<view class="goods-bottom"> <view class="goods-bottom">
<view class="goods-btn" <view class="goods-btn" @tap="openPopup('pintuan',1)"
style="background: rgba(166, 255, 234, 0.3);margin-right: 6%;border: 1px solid rgba(166, 255, 234, 0.5);"> style="background: rgba(166, 255, 234, 0.3);margin-right: 6%;border: 1px solid rgba(166, 255, 234, 0.5);">
直接购买 直接购买
</view> </view>
<view class="goods-btn"> <view class="goods-btn" @tap="openPopup('pintuan',0)">
拼团购买15.00
</view>
</view>
</view>
<view class="goods-member">
<view class="goods-top">
<view class="goods-img">
<img src="/static/images/img/shangpintu.png" alt="">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png"
alt=""
style="width:30rpx;height:30rpx;position: absolute;top: 0;left: 0;background-size: 100%;" />
</view>
<view class="goods-content" @tap="goDetail('shopDetail')">
<view class="goods-name">
牛仔农庄(医专店)
</view>
<view class="goods-content-center">
<view class="goods-deal1">
月售 <text> 100+</text>
</view>
<view class="goods-tag">
<view class="pintuan-right-img">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/94f91382e76c4f289d53fbf858e8732b.png"
alt="" />
<view class="weipincheng">+</view>
</view>
<view class="pintuan-right-cha">
<text style="color: red;">1</text>拼成
</view>
</view>
</view>
<view class="goods-content-bottom">
<view style="font-size: 28rpx;line-height: 54rpx;margin-right: 20rpx;">
90.00
</view>
<view class="pintuan-left-price">
拼团<text style="color: red;">59.90</text>
</view>
</view>
</view>
</view>
<view class="goods-bottom">
<view class="goods-btn"
style="background: rgba(166, 255, 234, 0.3);margin-right: 6%;border: 1px solid rgba(166, 255, 234, 0.5);">
直接购买
</view>
<view class="goods-btn">
拼团购买15.00
</view>
</view>
</view>
<view class="goods-member">
<view class="goods-top">
<view class="goods-img">
<img src="/static/images/img/shangpintu.png" alt="">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png"
alt=""
style="width:30rpx;height:30rpx;position: absolute;top: 0;left: 0;background-size: 100%;" />
</view>
<view class="goods-content" @tap="goDetail('shopDetail')">
<view class="goods-name">
牛仔农庄(医专店)
</view>
<view class="goods-content-center">
<view class="goods-deal1">
月售 <text> 100+</text>
</view>
<view class="goods-tag">
<view class="pintuan-right-img">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/94f91382e76c4f289d53fbf858e8732b.png"
alt="" />
<view class="weipincheng">+</view>
</view>
<view class="pintuan-right-cha">
<text style="color: red;">1</text>拼成
</view>
</view>
</view>
<view class="goods-content-bottom">
<view style="font-size: 28rpx;line-height: 54rpx;margin-right: 20rpx;">
90.00
</view>
<view class="pintuan-left-price">
拼团<text style="color: red;">59.90</text>
</view>
</view>
</view>
</view>
<view class="goods-bottom">
<view class="goods-btn"
style="background: rgba(166, 255, 234, 0.3);margin-right: 6%;border: 1px solid rgba(166, 255, 234, 0.5);">
直接购买
</view>
<view class="goods-btn">
拼团购买15.00 拼团购买15.00
</view> </view>
</view> </view>
@ -250,6 +156,67 @@
<view class="car-title"> <view class="car-title">
已加购商品3 已加购商品3
</view> </view>
<view class="goods-top" style="padding: 0;">
<view class="goods-img">
<img src="/static/images/img/shangpintu.png" alt="">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png"
alt=""
style="width:30rpx;height:30rpx;position: absolute;top: 0;left: 0;background-size: 100%;" />
</view>
<view class="goods-content">
<view class="goods-name">
牛仔农庄(医专店)
</view>
<view class="goods-content-center">
<view class="goods-deal1">
月售 <text> 100+</text>
</view>
</view>
<view class="goods-content-bottom">
<view style="font-size: 28rpx;line-height: 54rpx;margin-right: 20rpx;flex: 1;">
90.00
</view>
<view class="pintuan-left-price">
拼团<text style="color: red;">59.90</text>
</view>
<view class="goods-num">
<view class="num-plus" style="background: #999;color: #fff;">
-
</view>
<view class="num">
1
</view>
<view class="num-plus">
+
</view>
</view>
</view>
</view>
</view>
<view style="width: 100%;height: 160rpx;"></view>
<view class="bottom" style="padding-bottom: 10px;">
<view class="bottom-left">
<view style="width: 60rpx;height: 80rpx;margin-top: 10rpx;" @tap="openPopup('car')">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/60db52398a65459e9541881c926986a4.png" alt="" />
</view>
<view class="bottom-price" style="line-height: 24px;">
<view>18.00</view>
<view style="font-size: 12px;color: #777;">打包费1</view>
</view>
</view>
<view class="bottom-right">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/d93d893296ed46ea99cfd0e8e2835eaa.png" alt="" />
</view>
</view>
</view>
</uni-popup>
<!-- 拼团和选规格弹窗 -->
<uni-popup ref="pintuanPopup" background-color="#fff">
<view class="car-content">
<view class="car-close" @tap="$refs.carPopup.close()">
<uni-icons type="close" size="30" color="#fff"></uni-icons>
</view>
<view class="goods-top"> <view class="goods-top">
<view class="goods-img"> <view class="goods-img">
<img src="/static/images/img/shangpintu.png" alt=""> <img src="/static/images/img/shangpintu.png" alt="">
@ -257,7 +224,7 @@
alt="" alt=""
style="width:30rpx;height:30rpx;position: absolute;top: 0;left: 0;background-size: 100%;" /> style="width:30rpx;height:30rpx;position: absolute;top: 0;left: 0;background-size: 100%;" />
</view> </view>
<view class="goods-content" @tap="goDetail('shopDetail')"> <view class="goods-content">
<view class="goods-name"> <view class="goods-name">
牛仔农庄(医专店) 牛仔农庄(医专店)
</view> </view>
@ -273,19 +240,147 @@
<view class="pintuan-left-price"> <view class="pintuan-left-price">
拼团<text style="color: red;">59.90</text> 拼团<text style="color: red;">59.90</text>
</view> </view>
<view class="goods-tag"> </view>
<view class="pintuan-right-img"> </view>
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/94f91382e76c4f289d53fbf858e8732b.png" </view>
alt="" /> <view class="goods-spec">
<view class="weipincheng">+</view> <view class="spec1">
<view class="spec11">
选择食材1
</view>
<view class="spec22" >
<view class="spec222">
炸鸡块
</view>
<view class="spec-check">
炸鸡块
</view>
</view>
</view>
<view class="spec1">
<view class="spec11">
选择食材2
</view>
<view class="spec22">
<view class="spec222">
炸鸡块
</view>
<view class="spec222">
炸鸡块
</view>
</view>
</view>
</view>
<view class="spec11">
成团选择
</view>
<view class="goods-team">
<view class="team1">
<view class="team11">
16.00
</view>
<view class="team11">
二人团
</view>
</view>
<view class="team-check">
<view class="team11">
15.00
</view>
<view class="team11">
三人团
</view>
</view>
</view>
<view class="spec11">
他们都在拼
</view>
<view class="">
<view class="goods-center">
<view class="list-right">
<view class="list-right-img">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/94f91382e76c4f289d53fbf858e8732b.png"
alt="" />
<view class="list-weipincheng">+</view>
</view>
<view class="list-right-cha">
<view class="cha11">
二人拼
</view>
<view class="">
<text style="color: red;">1</text>拼成
</view>
</view>
<view class="list-right-price">
15.00
</view>
</view>
<view class="list-btn">
拼团
</view>
</view>
<view class="goods-center">
<view class="list-right">
<view class="list-right-img">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/94f91382e76c4f289d53fbf858e8732b.png"
alt="" />
<view class="list-weipincheng">+</view>
</view>
<view class="list-right-cha">
<view class="cha11">
三人拼
</view>
<view class="">
<text style="color: red;">1</text>拼成
</view>
</view>
<view class="list-right-price">
15.00
</view>
</view>
<view class="list-btn">
拼团
</view>
</view>
<view class="goods-center">
<view class="list-right">
<view class="list-right-img">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/94f91382e76c4f289d53fbf858e8732b.png"
alt="" />
<view class="list-weipincheng">+</view>
</view>
<view class="list-right-cha">
<view class="cha11">
三人拼
</view> </view>
<view class="pintuan-right-cha"> <view class="">
<text style="color: red;">1</text>拼成 <text style="color: red;">1</text>拼成
</view> </view>
</view> </view>
<view class="list-right-price">
15.00
</view>
</view>
<view class="list-btn">
拼团
</view> </view>
</view> </view>
</view> </view>
<view style="width: 100%;height: 160rpx;"></view>
<view class="bottom" style="padding-bottom: 10px;height: 80px;">
<view v-if="isPintuan" class="pintuan1">
<view class="pintuan2" style="border-bottom-left-radius: 50px;border-top-left-radius: 50px;">
面对面团
</view>
<view class="pintuan2" style="background: rgba(0, 35, 28, 1);border-bottom-right-radius: 50px;border-top-right-radius: 50px;color: rgba(166, 255, 234, 1);">
拼团购买15.00
</view>
</view>
<view v-else class="pintuan0">
直接购买
</view>
</view>
</view> </view>
</uni-popup> </uni-popup>
</view> </view>
@ -295,7 +390,8 @@
export default { export default {
data() { data() {
return { return {
menuButtonInfo: {} menuButtonInfo: {},
isPintuan:true,
} }
}, },
components: { components: {
@ -308,16 +404,31 @@
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
}, },
methods: { methods: {
openPopup(type){ openPopup(type,index){
if(type == 'car'){ if(type == 'car'){
this.$refs.carPopup.open('bottom') this.$refs.carPopup.open('bottom')
}else if(type == 'pintuan'){
if(index == 0){
this.isPintuan = true
}else{
this.isPintuan = false
}
this.$refs.pintuanPopup.open('bottom')
} }
}, },
goDetail(type) { goDetail(type) {
if (type == 'shopDetail') { if (type == 'goodsDetail') {
uni.navigateTo({ uni.navigateTo({
url: '/package1/goods/goodsDetail' url: '/package1/goods/goodsDetail'
}) })
}else if(type == 'shopDetail'){
uni.navigateTo({
url: '/package1/group/groupBuyDetail'
})
}else if(type == 'shopEvaluate'){
uni.navigateTo({
url: '/package1/group/shopEvaluate'
})
} }
}, },
back() { back() {
@ -544,7 +655,7 @@
} }
.goods-top { .goods-top {
padding: 20rpx; padding: 20rpx 0;
display: flex; display: flex;
} }
@ -639,6 +750,7 @@
display: flex; display: flex;
background: #fff; background: #fff;
z-index: 98; z-index: 98;
box-shadow: 0 -5px 5px rgba(0, 0, 0, 0.3);
} }
.bottom-left { .bottom-left {
@ -688,6 +800,10 @@
position: relative; position: relative;
height: 600px; height: 600px;
width: 100%; width: 100%;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
padding: 10px;
overflow: scroll;
} }
.car-close{ .car-close{
@ -700,10 +816,191 @@
.car-title{ .car-title{
height: 48px; height: 48px;
line-height: 48px; line-height: 30px;
width: 95%;
margin: 0 auto; margin: 0 auto;
font-size: 14px; font-size: 14px;
font-weight: 700; font-weight: 700;
} }
.num-plus{
width: 28px;
height: 28px;
font-size: 18px;
text-align: center;
font-weight: 700;
line-height: 24px;
border-radius: 5px;
background: rgba(0, 35, 28, 1);
color: rgba(166, 255, 234, 1);
}
.num{
width: 40px;
height: 28px;
text-align: center;
line-height: 28px;
font-size: 14px;
}
.goods-num{
display: flex;
height: 28px;
flex: 1;
margin-left: 20px;
}
.pintuan0{
width: 90%;
height: 50px;
border-radius: 50px;
background: linear-gradient(90deg, rgba(227, 255, 150, 1), rgba(166, 255, 234, 1));
text-align: center;
font-size: 13px;
font-weight: 700;
line-height: 50px;
margin: auto;
}
.pintuan1{
width: 90%;
height: 50px;
line-height: 50px;
display: flex;
text-align: center;
margin: auto;
font-size: 13px;
font-weight: 700;
}
.pintuan2{
flex: 1;
background: linear-gradient(90deg, rgba(227, 255, 150, 1), rgba(166, 255, 234, 1));
}
.spec11{
height: 48px;
line-height: 48px;
font-size: 14px;
font-weight: 700;
}
.spec222{
display: inline-block;
padding: 0 10px;
background: #eee;
color: #777;
height: 36px;
line-height: 36px;
text-align: center;
border-radius: 10px;
margin-right: 10px;
}
.spec-check{
display: inline-block;
padding: 0 10px;
background: rgba(166, 255, 234, 1);
height: 36px;
line-height: 36px;
text-align: center;
border-radius: 10px;
margin-right: 10px;
}
.team1{
width: 77px;
height: 83px;
background: #eee;
border-radius: 10px;
font-size: 13px;
text-align: center;
line-height: 30px;
float: left;
margin-right: 20px;
}
.team-check{
width: 77px;
height: 83px;
background: rgba(166, 255, 234, 1);
border-radius: 10px;
font-size: 13px;
text-align: center;
line-height: 30px;
float: left;
margin-right: 20px;
}
.team11{
margin-top: 10px;
}
.goods-team{
width: 100%;
min-height: 90px;
}
.list-right {
display: flex;
width: 100%;
padding: 15px 0 15px 15px;
flex: 1;
}
.list-right-img {
height: 40px;
display: flex;
img {
width: 40px;
height: 40px;
z-index: 98;
background-size: 100%;
}
}
.list-weipincheng {
width: 40px;
height: 40px;
background: #a6ffea;
border-radius: 40px;
text-align: center;
font-size: 28rpx;
font-weight: 700;
margin-left: -6rpx;
z-index: 97;
line-height: 40px;
}
.goods-center {
width: 100%;
margin: 0 auto 10px;
background: #f5f8f5;
height: 70px;
border-radius: 10px;
overflow: hidden;
display: flex;
}
.list-right-cha {
margin-left: 10px;
}
.list-right-price{
flex: 1;
text-align: right;
line-height: 40px;
color: red;
font-size: 14px;
font-weight: 700;
}
.list-btn {
background: linear-gradient(90deg, #e3ff96, #a6ffea);
width: 130rpx;
text-align: center;
font-size: 28rpx;
font-weight: 600;
border-radius: 30px;
height: 30px;
line-height: 30px;
margin: 20px;
}
.cha11{
font-size: 11px;
background: rgba(255, 57, 57, 0.2);
color: red;
display: inline-block;
padding: 3px;
border-radius: 5px;
margin-bottom: 5px;
}
</style> </style>

87
package1/group/shopEvaluate.vue

@ -0,0 +1,87 @@
<template>
<view class="page1">
<view class="title">
<view class="title-sreach">
<view class="back-btn" @tap="back" :style="{'top': menuButtonInfo.top +'px'}">
<uni-icons type="left" size="28"></uni-icons>
</view>
<view class="title-name" :style="{'padding-top': menuButtonInfo.top +'px'}">
商家评价
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
menuButtonInfo: {},
isPintuan:true,
bigImg:''
}
},
components: {
},
onLoad() {
},
onShow() {
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
},
methods: {
//
largeImg(img) {
this.bigImg = 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/00b1f011787c4549bbea650d95a4eb39.png'
this.$refs.imgPopup.open()
},
back() {
uni.navigateBack()
}
}
}
</script>
<style lang="scss">
page {
width: 100%;
height: 100%;
font-size: 24rpx;
background: #F5F8F5;
color: #00231C;
}
.page1 {
width: 100%;
height: 100%;
font-size: 24rpx;
position: relative;
}
.title{
background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/8bc15960c2dc40268e295d6dd23aecce.png') no-repeat;
width: 100%;
height: 54%;
}
.title-sreach{
width: 100%;
display: flex;
height: 200rpx;
position: relative;
}
.back-btn{
position: absolute;
bottom: 0;
left: 0;
}
.title-name{
padding-top: 55px;
font-size: 36rpx;
font-weight: 700;
flex: 1;
text-align: center;
}
</style>
Loading…
Cancel
Save