作者 lihongjuan

1

... ... @@ -50,7 +50,7 @@
}
.real_goods_bottom {
padding: 16rpx 16rpx 28rpx 16rpx;
padding: 16rpx 32rpx 28rpx 32rpx;
box-sizing: border-box;
background: #fff;
}
... ...
... ... @@ -75,9 +75,12 @@ Page({
},
bindRegionChange(e) {
this.setData({
area: e.detail.value[0] + e.detail.value[1] + e.detail.value[2]
})
// this.setData({
// area: e.detail.value[0] + e.detail.value[1] + e.detail.value[2]
// })
this.setData({
area: e.detail.value[0] + ' ' + e.detail.value[1] + ' ' + e.detail.value[2]
})
},
// 设置默认地址
... ...
... ... @@ -185,7 +185,7 @@ image {
/* width: 686rpx;
height: 304rpx; */
width: 750rpx;
height: 260rpx;
height: 320rpx;
position: relative;
}
... ... @@ -234,7 +234,7 @@ image {
height: 88rpx;
width: 100%;
background: #fff;
padding: 0 40rpx 0 32rpx;
padding: 0 50rpx 0 42rpx;
box-sizing: border-box;
display: flex;
align-items: center;
... ... @@ -285,7 +285,7 @@ image {
.notice {
width: 100%;
padding: 10rpx 32rpx;
padding: 24rpx 32rpx;
box-sizing: border-box;
background: #fff;
display: flex;
... ... @@ -358,8 +358,8 @@ image {
}
.activeitem {
width: 140rpx;
height: 155rpx;
width: 215rpx;
height: 220rpx;
font-size: 0;
display: flex;
justify-content: center;
... ... @@ -396,7 +396,7 @@ image {
.actity {
width: 750rpx;
padding: 2rpx 30rpx;
padding: 8rpx 30rpx;
box-sizing: border-box;
background: #fff;
border-bottom: 16rpx solid #f5f5f5;
... ... @@ -466,13 +466,13 @@ image {
flex-direction: column;
justify-content: center;
align-items: center;
margin-right: 31rpx;
margin-right: 32rpx;
box-sizing: border-box;
}
.goodimg {
width: 63rpx;
height: 63rpx;
width:75rpx;
height: 75rpx;
font-size: 0;
border-radius: 10rpx;
}
... ... @@ -511,7 +511,7 @@ image {
.xianshi {
width: 750rpx;
padding: 10rpx 30rpx;
padding: 8rpx 30rpx;
box-sizing: border-box;
background: #fff;
border-bottom:16rpx solid #f5f5f5;
... ...
... ... @@ -40,7 +40,14 @@ Page({
},
//添加购物车
addshop() {
let that = this
let that = this;
if(that.data.info.sold==0){
wx.showToast({
title: '库存不足,不能加入购物车',
icon:"none"
})
return false
}
let url = app.interface.addshop
let params = {
num: that.data.num,
... ... @@ -59,7 +66,15 @@ Page({
},
// 立即购买
purchaseNow() {
let that = this
let that = this;
if (that.data.info.sold==0){
wx.showToast({
title: '库存不足,不能下单',
icon:'none'
})
return false
}
console.log(that.data.info)
let info = {
shop_id: that.data.info.id,
num: that.data.num
... ...
{
"navigationBarTitleText": "限时抢购"
"navigationBarTitleText": "限量特卖"
}
\ No newline at end of file
... ...
... ... @@ -14,11 +14,11 @@
<view class="empty" wx:if="{{xianshilist.length==0}}">暂无数据</view>
<view class="searchgood commnonpadding" wx:else>
<view class="searchgooditem flextwo boxsizing" wx:for="{{xianshilist}}" wx:key="">
<view class="searchgooditem flextwo boxsizing" wx:for="{{xianshilist}}" wx:key="" data-id="{{item.id}}" bindtap="{{item.sold==0?'':'look_more'}}">
<view class="gooditemleft">
<image src="{{item.images[0]}}" mode="widthFix"></image>
</view>
<view class="gooditemright ">
<view class="gooditemright " >
<view class="goodsouname morehidden">{{item.name}}</view>
<view class="miaogood flextwo">
... ... @@ -34,23 +34,15 @@
</view>
<view class="buynow buyactive" wx:if="{{status==1}}">未开始</view>
<view class="buynow buyactive" wx:if="{{status==2}}">已结束</view>
<view class="buynow" wx:if="{{status==3&&item.sold!=0}}" data-id="{{item.id}}" bindtap="{{item.sold==0?'':'look_more'}}">立即抢购</view>
<view class="buynow" wx:if="{{status==3&&item.sold!=0}}">立即抢购</view>
<view class="buynow" wx:if="{{status==3&&item.sold==0}}">已抢光</view>
</view>
<view class="miaojindu flextwo">
<view class="miaojinduleft">
<view class="miaojinnei" style="width:{{item.rob}}%"></view>
</view>
<view class="miaojinduright">已抢{{item.rob}}%</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
... ...