|
@@ -13,10 +13,10 @@
|
|
|
<view class="home">
|
|
|
<view class="count">共{{ e.goodsTotal }}个</view>
|
|
|
<scroll-view scroll-x class="navscroll"> <!-- 设置滚动条方向为横向 -->
|
|
|
- <view style="width: 108rpx;height: 108rpx; margin-right: 20rpx; padding: 0;" class="item"
|
|
|
- v-for="item in e.goodsImage">
|
|
|
+ <view style="width: 108rpx;height: 108rpx; margin-right: 20rpx; padding: 0;" class="item"
|
|
|
+ v-for="(image, i2) in e.goodsImage" :key="i2">
|
|
|
<!-- 通过for循环生成view -->
|
|
|
- <image style="width: 108rpx;height: 108rpx;" :src="item" mode="scaleToFill" />
|
|
|
+ <image style="width: 108rpx;height: 108rpx;" :src="image" mode="scaleToFill" />
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
@@ -52,7 +52,7 @@
|
|
|
<text class="yellow">截止倒计时</text>
|
|
|
<!-- <text class="red2">02时25分19秒</text> -->
|
|
|
<!-- <uni-countdown :show-day="false" :hour="e.h" :minute="e.m" :second="e.s"></uni-countdown> -->
|
|
|
- <u-count-down :timestamp="e.seconds" :show-days="false"></u-count-down>
|
|
|
+ <u-count-down :time="e.seconds * 1000" format="HH:mm:ss"></u-count-down>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="self-pickup-point">
|
|
@@ -192,12 +192,14 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getHistoryGroupon() {
|
|
|
+ let longitude = uni.getStorageSync('user_longitude');
|
|
|
+ let latitude = uni.getStorageSync('user_latitude');
|
|
|
let that = this;
|
|
|
historyGroupon({
|
|
|
current: 1,
|
|
|
size: 1,
|
|
|
- longitude: that.positionInfo.longitude,
|
|
|
- latitude: that.positionInfo.latitude
|
|
|
+ longitude: longitude,
|
|
|
+ latitude: latitude
|
|
|
}).then(res => {
|
|
|
|
|
|
that.grouponData = res.data.records;
|