秒杀详情

main
fanfan 6 months ago
parent b6eac91c53
commit 81222ae5c2
  1. 7
      pages.json
  2. 23
      pages/activity/seckill.vue
  3. 6341
      pages/goods/city.vue
  4. 2250
      pages/goods/seckillDetail.vue
  5. 2
      pages/news/consult/about.vue
  6. 2
      pages/news1/jinqun.vue

@ -771,6 +771,13 @@
"navigationStyle": "custom" "navigationStyle": "custom"
// "navigationBarTitleText": "商品详情页" // "navigationBarTitleText": "商品详情页"
} }
},
{
"path": "seckillDetail",
"style": {
"navigationStyle": "custom"
// "navigationBarTitleText": "商品详情页"
}
} }
] ]
}, },

@ -32,7 +32,7 @@
</view> </view>
<view class="goodsList"> <view class="goodsList">
<view class="goodItem" v-for="(item,index) in goodsList" :key="index" <view class="goodItem" v-for="(item,index) in goodsList" :key="index"
@click="handleTargetGoods(item.goods_id)"> @click="handleTargetGoods(item.sharp_goods_id)">
<view class="itemImg"> <view class="itemImg">
<image :src="item.goods_image" mode="widthFix" class="goodsImg"></image> <image :src="item.goods_image" mode="widthFix" class="goodsImg"></image>
</view> </view>
@ -248,9 +248,13 @@
// //
handleTargetGoods(sharpGoodsId) { handleTargetGoods(sharpGoodsId) {
let count_down_time = new Date(this.tabbar[this.curTabIndex].count_down_time.replace(/-/g, '/')).getTime()-new Date().getTime() let count_down_time = new Date(this.tabbar[this.curTabIndex].count_down_time.replace(/-/g, '/'))
.getTime() - new Date().getTime()
uni.navigateTo({ uni.navigateTo({
url: '/pages/goods/detail?goodsId=' + sharpGoodsId+"&isSeckill="+true+'&isBuy='+count_down_time+'&seckillText='+(this.tabbar[this.curTabIndex].status == this.ActiveStatusEnum.STATE_BEGIN.value ? '结束' : '开始' ) url: '/pages/goods/seckillDetail?activeTimeId=' + this.getCurTabbarId() + '&sharpGoodsId=' + sharpGoodsId +
"&isSeckill=" + true + '&isBuy=' + count_down_time + '&seckillText=' + (this.tabbar[this
.curTabIndex].status == this.ActiveStatusEnum.STATE_BEGIN.value ? '结束' : '开始')
}) })
}, },
@ -298,9 +302,11 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.active { .active {
background-color: #A9A9A9; background-color: #A9A9A9;
} }
.title { .title {
width: 100%; width: 100%;
height: 500rpx; height: 500rpx;
@ -337,9 +343,11 @@
overflow: auto; overflow: auto;
bottom: 0; bottom: 0;
position: absolute; position: absolute;
.timeItem { .timeItem {
margin-bottom: 25rpx; margin-bottom: 25rpx;
padding: 0 0 0 20rpx; padding: 0 0 0 20rpx;
.num { .num {
width: 150rpx; width: 150rpx;
font-size: 40rpx; font-size: 40rpx;
@ -350,9 +358,11 @@
text-align: center; text-align: center;
margin-top: 10rpx; margin-top: 10rpx;
} }
.numselected { .numselected {
color: #ffffff; color: #ffffff;
} }
.desc { .desc {
width: 150rpx; width: 150rpx;
height: 40rpx; height: 40rpx;
@ -367,6 +377,7 @@
margin-top: 10rpx; margin-top: 10rpx;
text-align: center; text-align: center;
} }
.descselected { .descselected {
color: #FB3D27; color: #FB3D27;
background: #FFFFFF; background: #FFFFFF;
@ -428,6 +439,7 @@
.goodsList { .goodsList {
overflow: hidden; overflow: hidden;
.goodItem { .goodItem {
width: 686rpx; width: 686rpx;
height: 342rpx; height: 342rpx;
@ -438,10 +450,12 @@
padding: 48rpx 32rpx 36rpx 0; padding: 48rpx 32rpx 36rpx 0;
margin: 0 auto; margin: 0 auto;
margin-top: 22rpx; margin-top: 22rpx;
.itemImg { .itemImg {
width: 258rpx; width: 258rpx;
height: 258rpx; height: 258rpx;
margin-right: 10rpx; margin-right: 10rpx;
.goodsImg { .goodsImg {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -472,6 +486,7 @@
.info { .info {
display: flex; display: flex;
.price { .price {
height: 40rpx; height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
@ -490,6 +505,7 @@
background-image: url('https://www.royaum.com.cn/static/seckill/bottom.png'); background-image: url('https://www.royaum.com.cn/static/seckill/bottom.png');
background-size: 100% 100%; background-size: 100% 100%;
margin: 0 12rpx 0 14rpx; margin: 0 12rpx 0 14rpx;
.delText { .delText {
width: 132rpx; width: 132rpx;
text-align: center; text-align: center;
@ -536,6 +552,7 @@
font-weight: 500; font-weight: 500;
color: #FF423D; color: #FF423D;
margin-left: 26rpx; margin-left: 26rpx;
text { text {
font-size: 34rpx; font-size: 34rpx;
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -15,7 +15,7 @@
<view class="park-fd"> <view class="park-fd">
<!-- <image :src="cityInfo.wechat" show-menu-by-longpress='1'></image> --> <!-- <image :src="cityInfo.wechat" show-menu-by-longpress='1'></image> -->
<!-- --> <!-- -->
<image mode="widthFix" :src="cityInfo.wechat"></image> <image mode="widthFix" :src="cityInfo.wechat" show-menu-by-longpress='true'></image>
<view class="txt">长按识别二维码</view> <view class="txt">长按识别二维码</view>
<view class="txt">添加我的微信</view> <view class="txt">添加我的微信</view>
</view> </view>

@ -3,7 +3,7 @@
style="background-size: 100% 100%;text-align: center;"> style="background-size: 100% 100%;text-align: center;">
<view class="image-box"> <view class="image-box">
<!-- mode="heightFix" --> <!-- mode="heightFix" -->
<image :src="cityInfo.group_share_img" class="image" bindtap="clickImg"></image> <image :src="cityInfo.group_share_img" show-menu-by-longpress='true' class="image" bindtap="clickImg"></image>
</view> </view>
</view> </view>
</template> </template>

Loading…
Cancel
Save