index.wxml 7.1 KB

12345
  1. <app-layout vue-id="01cbde00-1" class="data-v-1ca3adf6" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{friendModel}}"><cover-view class="friend-box data-v-1ca3adf6"><cover-view class="info main-center cross-center dir-top-nowrap data-v-1ca3adf6"><cover-view class="dir-left-nowrap cross-center data-v-1ca3adf6"><cover-image class="icon data-v-1ca3adf6" src="/static/image/icon/friend-v.png"></cover-image><cover-view class="text data-v-1ca3adf6">文本已复制到剪贴板</cover-view></cover-view><cover-view class="dir-left-nowrap cross-center data-v-1ca3adf6" style="margin-top:30rpx;"><cover-image class="icon data-v-1ca3adf6" src="/static/image/icon/friend-v.png"></cover-image><block wx:if="{{is_video}}"><cover-view class="text data-v-1ca3adf6">视频已保存到相册</cover-view></block><block wx:else><cover-view class="text data-v-1ca3adf6">图片已保存到相册</cover-view></block></cover-view></cover-view></cover-view></block><view class="data-v-1ca3adf6"><text class="opacity-hide data-v-1ca3adf6" id="opacity-hide">第一行
  2. 第二行
  3. 第三行
  4. 第四行
  5. 第五行</text><view class="fixed data-v-1ca3adf6"><view class="share-head-margin data-v-1ca3adf6"><view class="share-head dir-left-nowrap data-v-1ca3adf6"><view data-event-opts="{{[['tap',[['tabChange',['goods']]]]]}}" class="{{['box-grow-1 main-center cross-center data-v-1ca3adf6','goods',tab==='goods'?tab+'-active':'']}}" bindtap="__e">商品</view><view data-event-opts="{{[['tap',[['tabChange',['dynamic']]]]]}}" class="{{['box-grow-1 main-center cross-center data-v-1ca3adf6','dynamic',tab==='dynamic'?tab+'-active':'']}}" bindtap="__e">动态</view></view></view><block wx:if="{{tab==='goods'}}"><view class="share-center dir-left-nowrap data-v-1ca3adf6"><view class="dir-left-nowrap cross-center value data-v-1ca3adf6"><view data-event-opts="{{[['tap',[['sortChange',[sort===1?2:1]]]]]}}" class="{{['data-v-1ca3adf6',sort===1||sort===2?'active':'']}}" bindtap="__e">最新商品</view><block wx:if="{{sort===1}}"><icon class="sort-plus data-v-1ca3adf6"></icon></block><block wx:else><block wx:if="{{sort===2}}"><icon class="sort-less data-v-1ca3adf6"></icon></block><block wx:else><icon class="sort-default data-v-1ca3adf6"></icon></block></block></view><view class="dir-left-nowrap cross-center value data-v-1ca3adf6"><view data-event-opts="{{[['tap',[['sortChange',[sort===3?4:3]]]]]}}" class="{{['data-v-1ca3adf6',sort===3||sort===4?'active':'']}}" bindtap="__e">最新素材</view><block wx:if="{{sort===3}}"><icon class="sort-plus data-v-1ca3adf6"></icon></block><block wx:else><block wx:if="{{sort===4}}"><icon class="sort-less data-v-1ca3adf6"></icon></block><block wx:else><icon class="sort-default data-v-1ca3adf6"></icon></block></block></view><view class="dir-left-nowrap cross-center value data-v-1ca3adf6"><view data-event-opts="{{[['tap',[['sortChange',[sort===5?6:5]]]]]}}" class="{{['data-v-1ca3adf6',sort===5||sort===6?'active':'']}}" bindtap="__e">销量</view><block wx:if="{{sort===5}}"><icon class="sort-plus data-v-1ca3adf6"></icon></block><block wx:else><block wx:if="{{sort===6}}"><icon class="sort-less data-v-1ca3adf6"></icon></block><block wx:else><icon class="sort-default data-v-1ca3adf6"></icon></block></block></view></view></block></view><view class="{{['data-v-1ca3adf6',tab+'-margin']}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="share-goods data-v-1ca3adf6"><block wx:if="{{item.$orig.is_top}}"><view class="goods-top dir-left-nowrap data-v-1ca3adf6"><icon class="top box-grow-0 data-v-1ca3adf6"></icon><view class="data-v-1ca3adf6">置顶</view></view></block><view class="goods-head dir-left-nowrap data-v-1ca3adf6"><view class="dir-top-nowrap data-v-1ca3adf6"><view class="t-omit goods-name data-v-1ca3adf6">{{item.$orig.mall_name}}</view><view class="goods-time data-v-1ca3adf6">{{item.$orig.format_time}}</view></view><block wx:if="{{tab==='goods'}}"><view data-event-opts="{{[['tap',[['navDetail',['$0'],[[['list','',index]]]]]]]}}" class="goods-detail main-center box-grow-0 cross-center data-v-1ca3adf6" bindtap="__e">商品详情</view></block></view><view class="goods-text data-v-1ca3adf6"><text class="opacity-hide data-v-1ca3adf6" space="nbsp" id="{{'all_hide_text_'+index}}">{{item.$orig.share_text}}</text><text class="{{['share-text data-v-1ca3adf6',(item.g0===-1)?'limit':'']}}" space="nbsp">{{item.$orig.share_text}}</text><block wx:if="{{item.$orig.is_all_btn}}"><view data-event-opts="{{[['tap',[['showText',[index]]]]]}}" class="all data-v-1ca3adf6" bindtap="__e"><block wx:if="{{item.g1===-1}}"><block class="data-v-1ca3adf6">全文</block></block><block wx:else><block class="data-v-1ca3adf6">收起</block></block></view></block></view><block wx:if="{{item.$orig.goods_id===0&&item.$orig.material_video_url}}"><view class="goods-video data-v-1ca3adf6"><video src="{{item.$orig.material_video_url}}" show-mute-btn="{{true}}" poster="{{item.$orig.material_cover_url}}" class="data-v-1ca3adf6"></video></view></block><block wx:else><view class="goods-image dir-left-wrap data-v-1ca3adf6"><block wx:for="{{item.$orig.share_pic}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="data-v-1ca3adf6"><image src="{{item1.pic_url}}" lazy-load="{{true}}" data-event-opts="{{[['tap',[['previewImage',['$0',index1],[[['list','',index,'share_pic']]]]]]]}}" bindtap="__e" class="data-v-1ca3adf6"></image></view></block></view></block><view class="goods-set cross-center dir-left-nowrap data-v-1ca3adf6"><view data-event-opts="{{[['tap',[['copyText',['$0'],[[['list','',index]]]]]]]}}" class="box-grow-0 data-v-1ca3adf6" bindtap="__e">复制文本</view><block wx:if="{{item.$orig.goods_id===0&&item.$orig.material_video_url}}"><view data-event-opts="{{[['tap',[['saveImage',['$0'],[[['list','',index]]]]]]]}}" class="box-grow-0 margin data-v-1ca3adf6" bindtap="__e">下载视频</view></block><block wx:else><view data-event-opts="{{[['tap',[['saveImage',['$0'],[[['list','',index]]]]]]]}}" class="box-grow-0 margin data-v-1ca3adf6" bindtap="__e">保存图片</view></block><view data-event-opts="{{[['tap',[['setPoster',['$0'],[[['list','',index]]]]]]]}}" class="box-grow-0 data-v-1ca3adf6" bindtap="__e">生成海报</view><view class="line data-v-1ca3adf6"></view><view class="box-grow-0 data-v-1ca3adf6">分享到</view><image data-event-opts="{{[['tap',[['batchCopy',['$0'],[[['list','',index]]]]]]]}}" class="friend box-grow-0 data-v-1ca3adf6" bindtap="__e"></image><app-jump-button vue-id="{{('01cbde00-2-'+index)+','+('01cbde00-1')}}" open_type="share" class="data-v-1ca3adf6" bind:__l="__l" vue-slots="{{['default']}}"><image data-event-opts="{{[['tap',[['shareCard',['$0'],[[['list','',index]]]]]]]}}" class="card data-v-1ca3adf6" bindtap="__e"></image></app-jump-button></view></view></block></view><view class="{{['box data-v-1ca3adf6',(posterShow)?'app-show-hidden':'']}}"><app-goods-preview-poster vue-id="{{('01cbde00-3')+','+('01cbde00-1')}}" url="{{posterUrl}}" value="{{posterShow}}" data-event-opts="{{[['^close',[['e0']]],['^input',[['__set_model',['','posterShow','$event',[]]]]]]}}" bind:close="__e" bind:input="__e" class="data-v-1ca3adf6" bind:__l="__l"></app-goods-preview-poster></view></view></app-layout>