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.
1 lines
6.4 KiB
1 lines
6.4 KiB
<view><addtip vue-id="8dd740cc-1" tip="{{tip}}" duration="{{duration}}" bind:__l="__l"></addtip><view class="kf"><button class="kfbt" open-type="contact"><image style="width:100rpx;height:100rpx;" src="http://m2.chinause.cn/mini/baixmini/img/kefubt.png"></image></button></view><view class="top"><view data-event-opts="{{[['tap',[['toSearch']]]]}}" class="input-box" bindtap="__e"><input placeholder="请输入商品名称" placeholder-style="color:#c0c0c0;" disabled="disabled"/><cjl-icon vue-id="8dd740cc-2" bind:__l="__l" vue-slots="{{['default']}}"></cjl-icon></view></view><swiper class="card-swiper" indicator-dots="{{false}}" circular="{{true}}" autoplay="{{true}}" interval="3000" duration="500" previous-margin="30px" next-margin="30px" data-event-opts="{{[['change',[['cardSwiper',['$event']]]]]}}" bindchange="__e"><block wx:for="{{banner}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="{{[cardCur==index?'cur':'']}}"><view data-event-opts="{{[['tap',[['topcate',['$0'],[[['banner','',index,'url']]]]]]]}}" class="swiper-item" bindtap="__e"><hyp-image vue-id="{{'8dd740cc-3-'+index}}" cname="image" realSrc="{{item.images}}" bind:__l="__l"></hyp-image></view></swiper-item></block></swiper><view class="type"><block wx:for="{{typeList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['toCategory',['$0'],[[['typeList','id',item.id,'id']]]]]]]}}" class="item" bindtap="__e"><hyp-image vue-id="{{'8dd740cc-4-'+__i0__}}" cname="image" realSrc="{{item.images}}" bind:__l="__l"></hyp-image><text class="fltext">{{item.fenlmc}}</text></view></block></view><view><uni-notice-bar vue-id="8dd740cc-5" show-icon="true" speed="8" scrollable="true" single="true" color="{{color}}" backgroundColor="{{backcolor}}" text="{{text}}" data-event-opts="{{[['^click',[['getMore']]]]}}" bind:click="__e" bind:__l="__l"></uni-notice-bar></view><view class="tjgoodlist"><view class="title"><image src="../../static/img/loveicon.png"></image><text>推荐商品</text><image src="../../static/img/loveicon.png"></image></view><block wx:for="{{tjproductList}}" wx:for-item="product" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['tjproductList','id',product.id]]]]]]]}}" class="tj_list" bindtap="__e"><view class="tjleft"><image src="{{product.img}}"></image></view><view class="tjright"><view>{{product.mc+" "+product.gg+product.dw}}</view><view data-event-opts="{{[['tap',[['changemiaosstyle',[index]]]]]}}" class="{{[product.miaosstyle]}}" catchtap="__e">{{''+product.miaos+''}}</view><view><text>{{"¥"+product.price}}</text><text style="margin:0 18rpx;">{{"库存"+product.kcnum}}</text></view><view><text class="sdtext">{{product.sdtext}}</text><text class="sellnum">{{"售量 "+product.sellnum}}</text></view><view class="tjroot"><view data-event-opts="{{[['tap',[['toFavorite',['$0',index,0],[[['tjproductList','id',product.id,'id']]]]]]]}}" class="{{['p-b-btn',(product.iscollect)?'active':'']}}" catchtap="__e"><text class="yticon icon-shoucang"></text></view><block wx:if="{{product.kcnum==0}}"><view class="nosell"><text>已售罄</text></view></block><block wx:if="{{product.kcnum}}"><view class="number"><block wx:if="{{product.inputnum}}"><view data-event-opts="{{[['tap',[['sub',['$0'],[[['tjproductList','id',product.id,'id']]]]]]]}}" class="sub" catchtap="__e"><view class="jian">-</view></view></block><block wx:if="{{product.inputnum}}"><view data-event-opts="{{[['tap',[['discard',['$event']]]]]}}" class="input" catchtap="__e"><input type="number" data-event-opts="{{[['input',[['__set_model',['$0','inputnum','$event',[]],[[['tjproductList','id',product.id]]]],['inputchange',['$0','$1','$2'],[[['tjproductList','id',product.id,'inputnum']],[['tjproductList','id',product.id,'id']],[['tjproductList','id',product.id,'kcnum']]]]]]]}}" value="{{product.inputnum}}" bindinput="__e"/></view></block><view data-event-opts="{{[['tap',[['add',['$0',0],[[['tjproductList','id',product.id,'id']]]]]]]}}" class="add" catchtap="__e"><view class="jia"><image src="../../static/img/addicon.png"></image></view></view></view></block></view></view></view></block></view><block wx:if="{{productList!=''}}"><view class="goods-list"><view class="title"><image src="../../static/img/loveicon.png"></image><text>猜你喜欢</text><image src="../../static/img/loveicon.png"></image></view><view class="product-list"><block wx:for="{{productList}}" wx:for-item="product" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['productList','id',product.id]]]]]]]}}" class="product" bindtap="__e"><image src="{{product.img}}"></image><view class="name">{{product.mc+" "+product.gg}}</view><view data-event-opts="{{[['tap',[['changemiaosstyle',[index]]]]]}}" class="{{[product.miaosstyle]}}" catchtap="__e">{{''+product.miaos+''}}</view><view style="margin-left:15rpx;"><text class="sdtext">{{product.sdtext}}</text><text class="sellnum">{{"售量 "+product.sellnum}}</text></view><view class="info"><view class="price">{{"¥"+product.price+product.dw}}</view><view class="slogan">{{"库存 "+product.kcnum}}</view></view><block wx:if="{{product.kcnum==0}}"><view class="nosell"><text>已售罄</text></view></block><block wx:if="{{product.kcnum}}"><view class="number"><view data-event-opts="{{[['tap',[['toFavorite',['$0',index,1],[[['productList','id',product.id,'id']]]]]]]}}" class="{{['p-b-btn',(product.iscollect)?'active':'']}}" catchtap="__e"><text class="yticon icon-shoucang" style="margin-right:15rpx;"></text></view><block wx:if="{{product.inputnum}}"><view data-event-opts="{{[['tap',[['sub',['$0'],[[['productList','id',product.id,'id']]]]]]]}}" class="sub" catchtap="__e"><view class="jian">-</view></view></block><block wx:if="{{product.inputnum}}"><view data-event-opts="{{[['tap',[['discard',['$event']]]]]}}" class="input" catchtap="__e"><input type="number" data-event-opts="{{[['input',[['__set_model',['$0','inputnum','$event',[]],[[['productList','id',product.id]]]],['inputchange',['$0','$1','$2'],[[['productList','id',product.id,'inputnum']],[['productList','id',product.id,'id']],[['productList','id',product.id,'kcnum']]]]]]]}}" value="{{product.inputnum}}" bindinput="__e"/></view></block><view data-event-opts="{{[['tap',[['add',['$0',1],[[['productList','id',product.id,'id']]]]]]]}}" class="add" catchtap="__e"><view class="jia"><image src="../../static/img/addicon.png"></image></view></view></view></block></view></block></view></view></block></view>
|