master
chen 2021-09-08 08:46:00 +08:00
parent a5f42a925e
commit 80abec2e57
25 changed files with 36 additions and 24 deletions

View File

@ -16,6 +16,9 @@
<view @tap="diaoq" class="margin-y20 textc bottoj">加入购物车</view>
<view @tap="diaoq" class="textc bottol">立即购买</view>
</view>
<view v-if="user_type=='personal'" class="disac">
<view @tap="diaoq" class="textc bottol">点击查看</view>
</view>
</view>
<!-- 底部弹框 -->
<view @touchmove.stop.prevent="moveHandle" v-if="isBtn" class="posiall zIn5" style="background-color: rgba(0,0,0,.6);">
@ -40,7 +43,7 @@
style="background-color: #f3f3f3;border-radius: 30rpx;min-width: 60rpx;text-align: center;max-width: 100%;"><view class="clips1">{{item.title}}</view></view>
</view>
<view class="borbot margin-x20 margin-s30"></view>
<view class="disba">
<view v-if="user_type!='personal'" class="disba">
<view class="width100">数量</view>
<view class="disac" style="justify-content:flex-end;">
<!-- 递减 -->
@ -55,7 +58,7 @@
</view>
</view>
</view>
<view class="disbcac padding-sx40">
<view v-if="user_type!='personal'" class="disbcac padding-sx40">
<view @tap="addGowc" class="bold padding-sx20 padding-zy40 colorf78 margin-y10" style="font-size: 30rpx;border: 1rpx solid #FF7800;border-radius: 60rpx;width: 30%;text-align: center;">加入购物车</view>
<view @tap="buy" class="bold padding-sx20 padding-zy40 colorb margin-z20" style="font-size: 30rpx;background-color: #ff7800;border-radius: 60rpx;width: 30%;text-align: center;">立即购买</view>
</view>

View File

@ -7,8 +7,11 @@
<view class="disba width100 margin-sx10">
<view class="disac fon24 colorf78">
<view><text class="fon36 bold">{{item.price}}</text>.00</view>
<view v-if="user_type=='personal'" class="flexs radius16 colorb fon24 margin-z10" style="background-color: #4cc474;line-height: 30rpx;height: 30rpx;">
<view style="transform: scale(0.7);">全国零售</view>
</view>
<view class="flexs radius16 colorb fon24 margin-z10" style="background-color: #4cc474;line-height: 30rpx;height: 30rpx;">
<view style="transform: scale(0.7);margin-top: -1rpx;">放心购</view>
<view style="transform: scale(0.7);">放心购</view>
</view>
</view>
<image v-if="user_type!='personal'" @tap="addChe(item.id)" class="pche" src="/static/img/public/gouwcar.png"></image>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -183,6 +183,9 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
var _default2 =
{
props: {

View File

@ -1 +1 @@
<view><view class="bacb disba padding20 posi-bzy" style="border-top:1rpx solid #eeeeee;"><view class="disba" style="width:24%;"><view data-event-opts="{{[['tap',[['goHome',['$event']]]]]}}" class="discc margin-z20" bindtap="__e"><image class="bottosimg" src="/static/img/public/home.png" mode></image><view class="fon24 bottoc">首页</view></view><view data-event-opts="{{[['tap',[['goKef',['$event']]]]]}}" class="discc posir" bindtap="__e"><image class="bottokimg" src="/static/img/public/xkef.png" mode></image><view class="fon24 bottoc">客服</view><block wx:if="{{showKf}}"><button class="fon24 bottoc posia" style="opacity:0;" open-type="contact" bindcontact="huik">客服</button></block></view></view><block wx:if="{{user_type!='personal'}}"><view class="disac"><view data-event-opts="{{[['tap',[['diaoq',['$event']]]]]}}" class="margin-y20 textc bottoj" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['diaoq',['$event']]]]]}}" class="textc bottol" bindtap="__e">立即购买</view></view></block></view><block wx:if="{{isBtn}}"><view data-event-opts="{{[['touchmove',[['moveHandle',['$event']]]]]}}" class="posiall zIn5" style="background-color:rgba(0,0,0,.6);" catchtouchmove="__e"><view class="posi-bzy padding20" style="border-top-left-radius:30rpx;border-top-right-radius:30rpx;background-color:#FFFFFF;z-index:6;"><view class="margin-s20 dis"><image class="flexs" style="width:201rpx;height:201rpx;border-radius:10rpx;" src="{{srcImg}}"></image><view class="margin-z20 width100"><view class="colorf6 fon24 bold">¥<text class="fon28">{{detail.sku_list[sku_index].cur_price/100}}</text>.0</view><view class="fon28 color33">{{detail.name}}</view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" style="flex-shrink:0;width:38rpx;height:38rpx;border-radius:100%;background-color:rgba(0,0,0,.15);position:relative;display:flex;justify-content:center;align-items:center;top:-10rpx;" bindtap="__e"><view style="width:2rpx;height:20rpx;background-color:#666666;position:absolute;transform:rotate(45deg);"></view><view style="width:2rpx;height:20rpx;background-color:#666666;position:absolute;transform:rotate(-45deg);"></view></view></view><view class="bold color33 margin-s30" style="font-size:30rpx;">规格选择</view><view class="disac flw"><block wx:for="{{guigArr}}" wx:for-item="item" wx:for-index="indexg" wx:key="indexg"><view data-event-opts="{{[['tap',[['chooseguig',['$0',indexg],[[['guigArr','',indexg,'id']]]]]]]}}" class="{{['fon24','margin-s20','margin-y10','padding-sx10','padding-zy30',guigCurrent==indexg?'guigactive':'guigmo']}}" style="background-color:#f3f3f3;border-radius:30rpx;min-width:60rpx;text-align:center;max-width:100%;" bindtap="__e"><view class="clips1">{{item.title}}</view></view></block></view><view class="borbot margin-x20 margin-s30"></view><view class="disba"><view class="width100">数量</view><view class="disac" style="justify-content:flex-end;"><view data-event-opts="{{[['tap',[['delEvent',[0]]]]]}}" class="disbcac padding-sx30" bindtap="__e"><image class="margin-y20" style="width:18rpx;height:4rpx;" src="../static/img/product/del.png"></image></view><input style="width:40%;background-color:#F5F5F5;text-align:center;padding:4rpx 0;border-radius:4rpx;" type="text" disabled="{{true}}" data-event-opts="{{[['input',[['__set_model',['','num','$event',[]]]]]]}}" value="{{num}}" bindinput="__e"/><view data-event-opts="{{[['tap',[['addEvent',[1]]]]]}}" class="disbcac padding-sx30" bindtap="__e"><image class="margin-zy20" style="width:18rpx;height:18rpx;" src="../static/img/product/add.png"></image></view></view></view><view class="disbcac padding-sx40"><view data-event-opts="{{[['tap',[['addGowc',['$event']]]]]}}" class="bold padding-sx20 padding-zy40 colorf78 margin-y10" style="font-size:30rpx;border:1rpx solid #FF7800;border-radius:60rpx;width:30%;text-align:center;" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['buy',['$event']]]]]}}" class="bold padding-sx20 padding-zy40 colorb margin-z20" style="font-size:30rpx;background-color:#ff7800;border-radius:60rpx;width:30%;text-align:center;" bindtap="__e">立即购买</view></view></view></view></block></view>
<view><view class="bacb disba padding20 posi-bzy" style="border-top:1rpx solid #eeeeee;"><view class="disba" style="width:24%;"><view data-event-opts="{{[['tap',[['goHome',['$event']]]]]}}" class="discc margin-z20" bindtap="__e"><image class="bottosimg" src="/static/img/public/home.png" mode></image><view class="fon24 bottoc">首页</view></view><view data-event-opts="{{[['tap',[['goKef',['$event']]]]]}}" class="discc posir" bindtap="__e"><image class="bottokimg" src="/static/img/public/xkef.png" mode></image><view class="fon24 bottoc">客服</view><block wx:if="{{showKf}}"><button class="fon24 bottoc posia" style="opacity:0;" open-type="contact" bindcontact="huik">客服</button></block></view></view><block wx:if="{{user_type!='personal'}}"><view class="disac"><view data-event-opts="{{[['tap',[['diaoq',['$event']]]]]}}" class="margin-y20 textc bottoj" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['diaoq',['$event']]]]]}}" class="textc bottol" bindtap="__e">立即购买</view></view></block><block wx:if="{{user_type=='personal'}}"><view class="disac"><view data-event-opts="{{[['tap',[['diaoq',['$event']]]]]}}" class="textc bottol" bindtap="__e">点击查看</view></view></block></view><block wx:if="{{isBtn}}"><view data-event-opts="{{[['touchmove',[['moveHandle',['$event']]]]]}}" class="posiall zIn5" style="background-color:rgba(0,0,0,.6);" catchtouchmove="__e"><view class="posi-bzy padding20" style="border-top-left-radius:30rpx;border-top-right-radius:30rpx;background-color:#FFFFFF;z-index:6;"><view class="margin-s20 dis"><image class="flexs" style="width:201rpx;height:201rpx;border-radius:10rpx;" src="{{srcImg}}"></image><view class="margin-z20 width100"><view class="colorf6 fon24 bold">¥<text class="fon28">{{detail.sku_list[sku_index].cur_price/100}}</text>.0</view><view class="fon28 color33">{{detail.name}}</view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" style="flex-shrink:0;width:38rpx;height:38rpx;border-radius:100%;background-color:rgba(0,0,0,.15);position:relative;display:flex;justify-content:center;align-items:center;top:-10rpx;" bindtap="__e"><view style="width:2rpx;height:20rpx;background-color:#666666;position:absolute;transform:rotate(45deg);"></view><view style="width:2rpx;height:20rpx;background-color:#666666;position:absolute;transform:rotate(-45deg);"></view></view></view><view class="bold color33 margin-s30" style="font-size:30rpx;">规格选择</view><view class="disac flw"><block wx:for="{{guigArr}}" wx:for-item="item" wx:for-index="indexg" wx:key="indexg"><view data-event-opts="{{[['tap',[['chooseguig',['$0',indexg],[[['guigArr','',indexg,'id']]]]]]]}}" class="{{['fon24','margin-s20','margin-y10','padding-sx10','padding-zy30',guigCurrent==indexg?'guigactive':'guigmo']}}" style="background-color:#f3f3f3;border-radius:30rpx;min-width:60rpx;text-align:center;max-width:100%;" bindtap="__e"><view class="clips1">{{item.title}}</view></view></block></view><view class="borbot margin-x20 margin-s30"></view><block wx:if="{{user_type!='personal'}}"><view class="disba"><view class="width100">数量</view><view class="disac" style="justify-content:flex-end;"><view data-event-opts="{{[['tap',[['delEvent',[0]]]]]}}" class="disbcac padding-sx30" bindtap="__e"><image class="margin-y20" style="width:18rpx;height:4rpx;" src="../static/img/product/del.png"></image></view><input style="width:40%;background-color:#F5F5F5;text-align:center;padding:4rpx 0;border-radius:4rpx;" type="text" disabled="{{true}}" data-event-opts="{{[['input',[['__set_model',['','num','$event',[]]]]]]}}" value="{{num}}" bindinput="__e"/><view data-event-opts="{{[['tap',[['addEvent',[1]]]]]}}" class="disbcac padding-sx30" bindtap="__e"><image class="margin-zy20" style="width:18rpx;height:18rpx;" src="../static/img/product/add.png"></image></view></view></view></block><block wx:if="{{user_type!='personal'}}"><view class="disbcac padding-sx40"><view data-event-opts="{{[['tap',[['addGowc',['$event']]]]]}}" class="bold padding-sx20 padding-zy40 colorf78 margin-y10" style="font-size:30rpx;border:1rpx solid #FF7800;border-radius:60rpx;width:30%;text-align:center;" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['buy',['$event']]]]]}}" class="bold padding-sx20 padding-zy40 colorb margin-z20" style="font-size:30rpx;background-color:#ff7800;border-radius:60rpx;width:30%;text-align:center;" bindtap="__e">立即购买</view></view></block></view></view></block></view>

View File

@ -132,6 +132,9 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
var _default2 =
{
props: {

View File

@ -1 +1 @@
<view class="padding-zy20 disba flw"><block wx:for="{{dataList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{dataList.length!=0}}"><view class="discc radius10 padding20 margin-x20" style="background-color:#FFFFFF;width:43%;box-shadow:0 0 30rpx rgba(0,0,0,0.1);"><image class="pimg radius10 margin-s10" src="{{item.src}}" mode="aspectFill" data-event-opts="{{[['tap',[['goDetail',['$0'],[[['dataList','',index,'spu_id']]]]]]]}}" bindtap="__e"></image><view class="clips2 margin-s10 width100" style="font-size:27rpx;height:68rpx;text-align:left;">{{item.title}}</view><view class="disba width100 margin-sx10"><view class="disac fon24 colorf78"><view>¥<text class="fon36 bold">{{item.price}}</text>.00</view><view class="flexs radius16 colorb fon24 margin-z10" style="background-color:#4cc474;line-height:30rpx;height:30rpx;"><view style="transform:scale(0.7);margin-top:-1rpx;">放心购</view></view></view><block wx:if="{{user_type!='personal'}}"><image class="pche" src="/static/img/public/gouwcar.png" data-event-opts="{{[['tap',[['addChe',['$0'],[[['dataList','',index,'id']]]]]]]}}" bindtap="__e"></image></block></view></view></block></block><block wx:if="{{dataList.length==0}}"><view class="kongk width100 text-center">空空如也</view></block></view>
<view class="padding-zy20 disba flw"><block wx:for="{{dataList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{dataList.length!=0}}"><view class="discc radius10 padding20 margin-x20" style="background-color:#FFFFFF;width:43%;box-shadow:0 0 30rpx rgba(0,0,0,0.1);"><image class="pimg radius10 margin-s10" src="{{item.src}}" mode="aspectFill" data-event-opts="{{[['tap',[['goDetail',['$0'],[[['dataList','',index,'spu_id']]]]]]]}}" bindtap="__e"></image><view class="clips2 margin-s10 width100" style="font-size:27rpx;height:68rpx;text-align:left;">{{item.title}}</view><view class="disba width100 margin-sx10"><view class="disac fon24 colorf78"><view>¥<text class="fon36 bold">{{item.price}}</text>.00</view><block wx:if="{{user_type=='personal'}}"><view class="flexs radius16 colorb fon24 margin-z10" style="background-color:#4cc474;line-height:30rpx;height:30rpx;"><view style="transform:scale(0.7);">全国零售</view></view></block><view class="flexs radius16 colorb fon24 margin-z10" style="background-color:#4cc474;line-height:30rpx;height:30rpx;"><view style="transform:scale(0.7);">放心购</view></view></view><block wx:if="{{user_type!='personal'}}"><image class="pche" src="/static/img/public/gouwcar.png" data-event-opts="{{[['tap',[['addChe',['$0'],[[['dataList','',index,'id']]]]]]]}}" bindtap="__e"></image></block></view></view></block></block><block wx:if="{{dataList.length==0}}"><view class="kongk width100 text-center">空空如也</view></block></view>