|
@@ -11,8 +11,9 @@
|
|
<view class="home">
|
|
<view class="home">
|
|
<view class="count">共{{ e.goodsTotal }}个</view>
|
|
<view class="count">共{{ e.goodsTotal }}个</view>
|
|
<scroll-view scroll-x class="navscroll"> <!-- 设置滚动条方向为横向 -->
|
|
<scroll-view scroll-x class="navscroll"> <!-- 设置滚动条方向为横向 -->
|
|
- <view style="width: 108rpx;height: 108rpx; margin-right: 20rpx; padding: 0; display: inline-block;" class="item"
|
|
|
|
- v-for="item in e.goodsImage">
|
|
|
|
|
|
+ <view
|
|
|
|
+ style="width: 108rpx;height: 108rpx; margin-right: 20rpx; padding: 0; display: inline-block;"
|
|
|
|
+ class="item" v-for="item in e.goodsImage">
|
|
<!-- 通过for循环生成view -->
|
|
<!-- 通过for循环生成view -->
|
|
<image style="width: 108rpx;height: 108rpx;" :src="item" mode="scaleToFill" />
|
|
<image style="width: 108rpx;height: 108rpx;" :src="item" mode="scaleToFill" />
|
|
</view>
|
|
</view>
|
|
@@ -59,10 +60,10 @@
|
|
</view>
|
|
</view>
|
|
<view class="a-m">
|
|
<view class="a-m">
|
|
<view class="am1">
|
|
<view class="am1">
|
|
- <view class="am1-1">{{e.selfTake.name}}
|
|
|
|
|
|
+ <view class="am1-1">{{ e.selfTake.name }}
|
|
</view>
|
|
</view>
|
|
<view class="am1-2">
|
|
<view class="am1-2">
|
|
- 距您{{e.selfTake.distanceDesc}}
|
|
|
|
|
|
+ 距您{{ e.selfTake.distanceDesc }}
|
|
<image src="http://www.gzzzyd.com/groupon/order_details/距离@2x.png" mode="scaleToFill" />
|
|
<image src="http://www.gzzzyd.com/groupon/order_details/距离@2x.png" mode="scaleToFill" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -83,7 +84,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="btn-area" v-if="currentId == 0">
|
|
<view class="btn-area" v-if="currentId == 0">
|
|
- <button class="share">
|
|
|
|
|
|
+ <button class="share" open-type="share" :data-groupon="e">
|
|
<image src="http://www.gzzzyd.com/groupon/home_slices/分享@2x.png" mode="scaleToFill" />
|
|
<image src="http://www.gzzzyd.com/groupon/home_slices/分享@2x.png" mode="scaleToFill" />
|
|
<text>分享有礼</text>
|
|
<text>分享有礼</text>
|
|
</button>
|
|
</button>
|
|
@@ -108,9 +109,9 @@ export default {
|
|
},
|
|
},
|
|
name: 'promotionList',
|
|
name: 'promotionList',
|
|
props: {
|
|
props: {
|
|
- grouponData:{
|
|
|
|
- type:Array,
|
|
|
|
- default(){
|
|
|
|
|
|
+ grouponData: {
|
|
|
|
+ type: Array,
|
|
|
|
+ default() {
|
|
return []
|
|
return []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -136,7 +137,7 @@ export default {
|
|
},
|
|
},
|
|
currentId: {
|
|
currentId: {
|
|
type: String | Number,
|
|
type: String | Number,
|
|
- default(){
|
|
|
|
|
|
+ default() {
|
|
return 0
|
|
return 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -144,7 +145,7 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
|
|
|
|
},
|
|
},
|
|
- data () {
|
|
|
|
|
|
+ data() {
|
|
return {
|
|
return {
|
|
timestamp: 86400,
|
|
timestamp: 86400,
|
|
navigationList2: [],
|
|
navigationList2: [],
|
|
@@ -166,11 +167,11 @@ export default {
|
|
loadTitle: this.$t(`加载更多`), //提示语
|
|
loadTitle: this.$t(`加载更多`), //提示语
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created () {
|
|
|
|
|
|
+ created() {
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- goToDetail(item){
|
|
|
|
|
|
+ goToDetail(item) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: `/pages/groupbuying_details/index?id=${item.id}&selfTakeId=${item.selfTake.id}&organizerUserId=${item.organizerUserId}`
|
|
url: `/pages/groupbuying_details/index?id=${item.id}&selfTakeId=${item.selfTake.id}&organizerUserId=${item.organizerUserId}`
|
|
})
|
|
})
|
|
@@ -180,11 +181,12 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
-.list-box{
|
|
|
|
|
|
+.list-box {
|
|
background: white;
|
|
background: white;
|
|
|
|
|
|
padding-bottom: 20px;
|
|
padding-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.index-product-wrapper {
|
|
.index-product-wrapper {
|
|
|
|
|
|
&.on {
|
|
&.on {
|
|
@@ -317,7 +319,7 @@ export default {
|
|
.countdown-l {
|
|
.countdown-l {
|
|
flex: 1;
|
|
flex: 1;
|
|
display: flex;
|
|
display: flex;
|
|
- align-items: center;
|
|
|
|
|
|
+ align-items: center;
|
|
}
|
|
}
|
|
|
|
|
|
.countdown-r {
|
|
.countdown-r {
|
|
@@ -345,13 +347,14 @@ export default {
|
|
vertical-align: super;
|
|
vertical-align: super;
|
|
}
|
|
}
|
|
|
|
|
|
-/deep/.yellow,.u-count-down {
|
|
|
|
- font-size: 24rpx ;
|
|
|
|
- font-weight: 400 ;
|
|
|
|
- color: #FF9600 ;
|
|
|
|
- line-height: 80rpx ;
|
|
|
|
- margin: 0 10rpx ;
|
|
|
|
- vertical-align: super ;
|
|
|
|
|
|
+ /deep/.yellow,
|
|
|
|
+ .u-count-down {
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ color: #FF9600;
|
|
|
|
+ line-height: 80rpx;
|
|
|
|
+ margin: 0 10rpx;
|
|
|
|
+ vertical-align: super;
|
|
}
|
|
}
|
|
|
|
|
|
image {
|
|
image {
|
|
@@ -381,10 +384,11 @@ export default {
|
|
margin: 20rpx 0;
|
|
margin: 20rpx 0;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- image{
|
|
|
|
- width: 36rpx;
|
|
|
|
- height: 36rpx;
|
|
|
|
- vertical-align: middle;
|
|
|
|
|
|
+
|
|
|
|
+ image {
|
|
|
|
+ width: 36rpx;
|
|
|
|
+ height: 36rpx;
|
|
|
|
+ vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -404,6 +408,7 @@ export default {
|
|
padding: 0 30rpx;
|
|
padding: 0 30rpx;
|
|
padding-bottom: 20rpx;
|
|
padding-bottom: 20rpx;
|
|
min-height: 60rpx;
|
|
min-height: 60rpx;
|
|
|
|
+
|
|
.am1 {
|
|
.am1 {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -500,7 +505,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
button {
|
|
button {
|
|
- flex:1;
|
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
|
text-align: center;
|
|
text-align: center;
|
|
margin: auto;
|
|
margin: auto;
|