You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
5.3 KiB
112 lines
5.3 KiB
<!--pages/store/store.wxml-->
|
|
<view class="container">
|
|
<view class="storeTop">
|
|
<view class="storeTop_title">
|
|
<view class="storeTopLeft">
|
|
<image src="{{shop_logo}}" mode="" />
|
|
<view class="storeTopLeftText">
|
|
<view class="storeName">
|
|
{{ shop_name }}
|
|
<view class="is_open" wx:if="{{shop.is_open == 2}}">已关闭</view>
|
|
<view class="collectionBtn" bindtap="collStore">
|
|
<image src="{{collection_status == 0?mch_sc:mch_sch}}" mode="" />
|
|
</view>
|
|
</view>
|
|
<view class="storeSellNum">
|
|
{{ shop.quantity_on_sale }}在售商品 |
|
|
已售{{ shop.quantity_sold}}件 |
|
|
{{ shop.collection_num }}收藏
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="storeTop_bottom">
|
|
<view class="addressBox">
|
|
<image src="/images/icon_dz.png" mode="widthFix" style='width:48rpx;' />
|
|
<text>{{shop_info.sheng}}{{shop_info.shi}}{{shop_info.xian}}{{shop_info.address}}({{shop.distance}}km)</text>
|
|
</view>
|
|
<view class="seeStore" bindtap="navToStore">
|
|
查看门店信息
|
|
<image src="/images/blueRight.png" mode="" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="tab-view">
|
|
<view class="tab-item{{currentIndex==idx?'Active':''}}" wx:key="key" wx:for="{{navTab}}" wx:for-index="idx" wx:for-item="item" data-idx='{{idx}}' data-item='{{item}}' bindtap="switchTab">{{item.type}}
|
|
<view class="tab-line{{currentIndex==idx?'Active':''}}"></view>
|
|
<text class="tab-badge" hidden="{{item.num == 0}}">{{item.num}}</text>
|
|
</view>
|
|
</view>
|
|
<scroll-view class="list-table" scroll-y="true">
|
|
<block wx:if="{{type!=3}}">
|
|
<view class="list-cell" wx:for="{{goods_list}}" wx:key="index" data-info="{{item}}" bindtap="navToDetail">
|
|
<view class="goods_view">
|
|
<image class="goods_img" lazy-load src="{{item.imgurl}}" />
|
|
<view wx:if="{{item.status == 3}}" class="dowmPro">已失效</view>
|
|
<view wx:elif="{{item.stockNum == 0}}" class="dowmPro">已售罄</view>
|
|
</view>
|
|
<view class="overtitle">{{ item.product_title }}</view>
|
|
<view class="goods_mun">
|
|
<view class="goods_price">
|
|
<view class='price'>¥{{item.vip_yprice}}</view>
|
|
</view>
|
|
<image wx:if="{{item.is_open == 1}}" src="/images/goods_shopImg.png" catchtap="showAttribute" hover-stop-propagation='true' data-id="{{item.id}}" data-status="1"/>
|
|
<image wx:else src="" />
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<block wx:else>
|
|
<view class="list-label" wx:for="{{goods_list}}" wx:key="index" data-info="{{item}}" bindtap="navToList">
|
|
<view class="title">{{item.pname}}</view>
|
|
<image src="/images/x_right.png" />
|
|
</view>
|
|
</block>
|
|
</scroll-view>
|
|
<!--弹窗-->
|
|
<view class="drawer_screen" catchtouchmove="preventTouchMove" bindtap="setModalStatus" data-status="0" wx:if="{{showModalStatus}}"></view>
|
|
<view animation="{{animationData}}" class="drawer_attr_box" catchtouchmove="preventTouchMove" wx:if="{{showModalStatus}}">
|
|
<view class="close_icon" bindtap="setModalStatus" data-status="0">×</view>
|
|
<view class="drawer_attr_content">
|
|
<view class="text_center">
|
|
<image class="drawer_image" src="{{itemData.photo_x}}"></image>
|
|
</view>
|
|
<view class="mingcheng">
|
|
<view style="font-size:38rpx;color:#FB5657">¥ {{itemData.price_yh}}</view>
|
|
<view style="font-size:26rpx;color:#999">库存:{{itemData.num}}</view>
|
|
</view>
|
|
<view style='clear:both;'></view>
|
|
<view class="commodity_attr_list" catchtouchmove="preventTouchMove">
|
|
<!--每组属性-->
|
|
<scroll-view scroll-y="true" style="height:100%;">
|
|
<!-- 属性选择 -->
|
|
<view wx:for="{{attrList}}" wx:for-index="idx" wx:key="userInfoListId" class="outStyle">
|
|
<view class='outStyleText textStyle buttonPaddingStyle' style="padding-left:0">{{item.attrName}}</view>
|
|
<view class='typeStyle textStyle' style="margin-left:0;flex-wrap: wrap;">
|
|
<view wx:for="{{item.attr}}" data-item='{{item.attr[index]}}' data-index='{{index}}' data-idx='{{idx}}' wx:key="userInfoListId" bindtap="onChangeShowState" wx:for-item="items">
|
|
<view class="{{items.enable == true ?(items.select==true?'select':'normal') : 'bai'}} textStyle buttonPaddingStyle">
|
|
{{items.attributeValue}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 属性选择结束 -->
|
|
<view class="shu">
|
|
<text class="cun">购买数量</text>
|
|
<view class="dian">
|
|
<view class="stepper" catchtouchmove="preventTouchMove">
|
|
<!-- 减号 -->
|
|
<text class="normal" data-alpha-beta="0" bindtap="changeNum">-</text>
|
|
<!-- 数值 -->
|
|
<view class="nownum">{{buynum}}</view>
|
|
<!-- 加号 -->
|
|
<text class="normal" data-alpha-beta="1" bindtap="changeNum">+</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
<view class="footc" data-info="{{itemData}}" id="{{itemData}}" type="primary" bindtap="addShopCart"> 确定 </view>
|
|
</view>
|
|
</view>
|
|
<!--弹框结尾 -->
|
|
</view>
|