402 lines
23 KiB
Plaintext
402 lines
23 KiB
Plaintext
<ep-navBar title="拼团商品详情" background='linear-gradient(100deg, #ff758c 0%, #ff7eb3 100%)' back="{{true}}" iconTheme='white' color='#fff' bindback="handlerGobackClick"/>
|
||
<movable-area>
|
||
<view class='goods-wrapper'>
|
||
<view class='ui-mask' bindtap='share_handler' hidden='{{is_share_html}}'></view>
|
||
<view class="model-services show" hidden='{{is_share_html}}'>
|
||
<view class="model-services-title">分享</view>
|
||
<view class="model-services-content">
|
||
<view class="service-list">
|
||
<view class="service-item">
|
||
<button open-type="share" class='none_btn' plain="true">
|
||
<text class="iconfont icon-weixin2 service-icon"></text>
|
||
<view class="cube-text">
|
||
<text>好友</text>
|
||
</view>
|
||
</button>
|
||
</view>
|
||
<view class="service-item" bindtap='get_share_img'>
|
||
<text class="iconfont icon-pengyouquan service-icon"></text>
|
||
<view class="cube-text">
|
||
<text>海报</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="spuInfoImg" style='height:{{imageSize.imageHeight}}px;background: url("/eaterplanet_ecommerce/images/index-comming-goods-bitmap.png");background-size: 100% 100%;'>
|
||
<view wx:if="{{goods.label_info && goods.label_info.type==0}}" class='item-tag'>
|
||
<image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
|
||
<view class='tag-name {{goods.label_info.len==2?"two-word":""}}'>{{goods.label_info.tagcontent}}</view>
|
||
</view>
|
||
<view wx:if="{{goods.label_info && goods.label_info.type==1}}" class='item-tag' style='background:url({{goods.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
|
||
<text class="current" wx:if="{{fmShow==true}}">{{goodsIndex}}/{{goods_image_length}}</text>
|
||
<swiper bindchange="scrollImagesChange" duration="300" style='height:{{imageSize.imageHeight}}px' interval="5000" circular>
|
||
<swiper-item wx:for="{{goods_image}}" wx:key="id">
|
||
<block wx:if="{{goods.video!=''&&goods.video!=null}}">
|
||
<image wx:if="{{index!=0}}" src="{{item.image}}" mode="widthFix" bindload="imageLoad" lazy-load="true" bindtap='previewImg' data-idx="{{index}}"></image>
|
||
<view class='video-wrap' wx:else>
|
||
<view wx:if="{{fmShow==true}}">
|
||
<view class='btn_view centerboth' wx:if="{{item.video==''}}"></view>
|
||
<view class='btn_view centerboth' wx:else bindtap='btnPlay'><image src='../../images/play.png'></image></view>
|
||
<image src="{{item.image}}" mode="widthFix" bindload="imageLoad" lazy-load="true" bindtap='previewImg' data-idx="{{index}}"></image>
|
||
</view>
|
||
<video class='swiper-video' wx:if="{{fmShow==false}}" id="myVideo" src="{{goods.video}}" bindended="videEnd"></video>
|
||
</view>
|
||
</block>
|
||
<image wx:else src="{{item.image}}" mode="widthFix" bindload="imageLoad" lazy-load="true" bindtap='previewImg' data-idx="{{index}}"></image>
|
||
</swiper-item>
|
||
</swiper>
|
||
</view>
|
||
<view wx:if="{{fmShow==false}}" class='end-play' bindtap='endPlay'><text class='btn'>退出播放</text></view>
|
||
<view class="spuInfo" style='z-index: {{fmShow==false?-1:2}}'>
|
||
<view class="spuPrice">
|
||
<image class='spuPriceBg' src='{{goods_details_price_bg?goods_details_price_bg:"../../images/shareBottomBg.png"}}'></image>
|
||
<view class="price">
|
||
¥
|
||
<text class="salePrice">{{goods.price_front}}</text>.{{goods.price_after}}
|
||
<text class="storePrice">¥{{goods.productprice}}</text>
|
||
<text class="pin-type">{{pin_info.pin_count}}人团</text>
|
||
</view>
|
||
<view class="time">
|
||
<text wx:if="{{goods.over_type == 1}}">距结束</text>
|
||
<text class="endAct" wx:if="{{goods.over_type == 0}}">距开始</text>
|
||
<text class="endAct" wx:if="{{goods.over_type == 2}}">结束时间</text>
|
||
<text class="endAct" wx:if="{{goods.over_type == 2}}">{{goods.end_date}}</text>
|
||
<view class="countdown-class i-count-down" wx:else>
|
||
<em wx:if="{{endtime.days > 0}}">{{endtime.days}}天</em>
|
||
<span class="item-class">{{endtime.hours}}</span>:
|
||
<span class="item-class">{{endtime.minutes}}</span>:
|
||
<span class="item-class">{{endtime.seconds}}</span>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="spuDetailInfo">
|
||
<view class="spuName">{{goods.goodsname}}</view>
|
||
<view class="saleNum">
|
||
<text class="purTit">销量</text>
|
||
<view class="stock">已售
|
||
<text class="remaining"> {{goods.seller_count}} </text>{{goods_sale_unit}},仅剩
|
||
<text class="remaining"> {{goods.total}} </text>{{goods_sale_unit}}</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 已开团 -->
|
||
<view class="pinRecords buyRecords" wx:if="{{pinListCount&&pintuan_close_stranger!=1}}">
|
||
<navigator class="moreBuyer" hoverClass="none" url="/eaterplanet_ecommerce/pages/goods/buyRecords?id={{goods_id}}">
|
||
<view class="title">
|
||
<view><text class="red">{{pinListCount}}</text>人正在拼团,可直接参与</view>
|
||
<!-- <view class="buyNum">查看更多<text class="iconfont icon-youjiantou"></text></view> -->
|
||
</view>
|
||
</navigator>
|
||
<view class="pinList">
|
||
<view class="pinList-item" wx:for="{{pinList}}" wx:key="id">
|
||
<view class="pinList-item-l">
|
||
<image class="avatar" src="{{item.avatar}}"></image><text class="iconfont icon-jiaru"></text>
|
||
</view>
|
||
<view class="pinList-item-m">
|
||
<view class="num">还差<text>{{item.re_need_count}}人</text>成团</view>
|
||
<view class="time">
|
||
<i-count-down showDay="{{true}}" target="{{item.seconds}}">
|
||
<span class="count-down-text">仅剩</span>
|
||
</i-count-down>
|
||
</view>
|
||
</view>
|
||
<view class="pinList-item-r" bindtap="goLink" data-link="/eaterplanet_ecommerce/moduleA/pin/share?id={{item.order_id}}">去参团</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 返利拼团 -->
|
||
<view class="pinRecords buyRecords" wx:if="{{pin_info.is_pintuan_rebate==1}}">
|
||
<view class="pinIntro" bindtap="goLink" data-link="/eaterplanet_ecommerce/pages/user/rule?type=pintuanRebate">
|
||
<view class="i-flex i-flex-spb pinIntro-top">
|
||
<view class="pinIntro-title">拼团玩法</view>
|
||
<view class="">查看规则<text class="iconfont icon-youjiantou"></text></view>
|
||
</view>
|
||
<view class="i-flex i-flex-spb pinIntro-bot">
|
||
<view class="rule-item">
|
||
<view class="step">1</view>
|
||
<view class="p">支付开团</view>
|
||
<view class="p">参团</view>
|
||
</view>
|
||
<view class="rule-item">
|
||
<view class="step">2</view>
|
||
<view class="p">邀请用户</view>
|
||
<view class="p">参团</view>
|
||
</view>
|
||
<view class="rule-item">
|
||
<view class="step">3</view>
|
||
<view class="p">拼团成功中</view>
|
||
<view class="p">奖人员发货</view>
|
||
</view>
|
||
<view class="rule-item">
|
||
<view class="step">4</view>
|
||
<view class="p">未中奖人员退</view>
|
||
<view class="p">款发放奖励</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- 普通拼团 -->
|
||
<view class="pinRecords buyRecords" wx:else>
|
||
<view class="pinIntro" bindtap="goLink" data-link="/eaterplanet_ecommerce/pages/user/rule?type=pintuan">
|
||
<view class="i-flex i-flex-spb pinIntro-top">
|
||
<view class="pinIntro-title">拼团玩法</view>
|
||
<view class="">查看规则<text class="iconfont icon-youjiantou"></text></view>
|
||
</view>
|
||
<view class="i-flex i-flex-spb pinIntro-bot">
|
||
<view class="rule-item">
|
||
<view class="step">1</view>
|
||
<view class="p">支付开团</view>
|
||
<view class="p">参团</view>
|
||
</view>
|
||
<view class="rule-item">
|
||
<view class="step">2</view>
|
||
<view class="p">邀请用户</view>
|
||
<view class="p">参团</view>
|
||
</view>
|
||
<view class="rule-item">
|
||
<view class="step">3</view>
|
||
<view class="p">拼团成功</view>
|
||
<view class="p">按时送达</view>
|
||
</view>
|
||
<view class="rule-item">
|
||
<view class="step">4</view>
|
||
<view class="p">逾期未成</view>
|
||
<view class="p">团退款</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 弹窗广告 -->
|
||
<advimg pos="1" />
|
||
|
||
<!-- 评价 -->
|
||
<view wx:if="{{order_comment_count > 0 && is_show_comment_list == 1}}">
|
||
<view class="straightInLive">
|
||
<view class="title">
|
||
商品评价
|
||
<text class="commentsNum">({{order_comment_count}})</text>
|
||
</view>
|
||
<view class="comments" wx:for="{{comment_list}}" wx:key="comment_id">
|
||
<view class='comment-user'>
|
||
<image src='{{item.avatar}}'></image>
|
||
<text>{{item.user_name}}</text>
|
||
</view>
|
||
<view bindtap="bindOpen" class="commentsCon {{item.isOpen&&item.showOpen?'doubleHidden':''}}" data-idx="{{index}}">{{item.content}}</view>
|
||
<view class="commentsOpen" wx:if="{{item.showOpen}}">
|
||
<text bindtap="bindOpen" data-idx="{{index}}">{{item.isOpen?'展开':'收起'}}</text>
|
||
<image class="commentsOpenImg down" src="../../images/commentsOpen.png"></image>
|
||
</view>
|
||
<view class="allImg" wx:if="{{item.images.length > 0}}">
|
||
<view class="commentsImg" wx:for="{{item.images}}" wx:for-index="idx" wx:for-item="imgItem" wx:key="idx">
|
||
<image src='{{imgItem}}' class='goodsImg img-class' style='width:75px;height:75px;'></image>
|
||
</view>
|
||
</view>
|
||
<navigator class="checkComments" hoverClass="none" url="/eaterplanet_ecommerce/pages/goods/comment?id={{item.goods_id}}">查看全部评论</navigator>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 详情 -->
|
||
<view class="spuDetail">
|
||
<image class="goodsDetailTitleImg" src="../../images/goodsDetailTitle.png"></image>
|
||
<view class="warmPrompt">
|
||
<view class="wxParse">
|
||
<parser html="{{goods.description}}" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="service">
|
||
<view class="detailLogo">
|
||
<text></text>
|
||
<image wx:if="{{goods_details_middle_image}}" mode='widthFix' class="detailLogoImg" src="{{goods_details_middle_image}}"></image>
|
||
<text></text>
|
||
</view>
|
||
<view class="instructions" wx:if="{{!noIns}}">
|
||
<view class="wxParse">
|
||
<parser html="{{instructions}}" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<navigator url='/eaterplanet_ecommerce/pages/goods/industrial' class='cell' wx:if="{{goods_industrial_switch==1&&goods_industrial}}">
|
||
<view class='cell-left'>
|
||
<image class='cell-icon' mode='widthFix' src='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCABLAEsDASIAAhEBAxEB/8QAHQAAAgIDAQEBAAAAAAAAAAAABgcECAIDBQEACf/EADcQAAEDAwIDBwEGBQUAAAAAAAECAwQABRESIQYxQQcTFCJRYXGBMkJSkbHBFSNyodEWQ4Lh8P/EABsBAAMAAwEBAAAAAAAAAAAAAAUGBwIDBAAB/8QAMREAAQMCBAMHBAEFAAAAAAAAAQIDEQAEBQYSITFBcVFhgZGhscETItHhFDJCUmLw/9oADAMBAAIRAxEAPwC5dfEivulCPHnFqeG2C8tVuZYSB30mZK7tDKlHCQUpBUonBwB6VpffQwjWs7VtZZW8sIQJJrpXfiJq3zTE/ht0lqCQSqLG1pGehVkAH/IoS4p7SWbSyoyl22yJ6LuMpK3v+LDRKifYkVXbtw48j8Uz4UW1zXpTETvHHpegtCQ85pB0IzkISlKQM78/kiNhsCpbfjJpWzGxq1DCSoepJ5D3pWucWfUTpVA6CfmqbYZFZbs0XeIr0T/bB1d0b8T2EdaYnGHbH4q7IXboRujSVYfkXJOlTqPwNNpOGE9cjKsgZph8Dds0GUy2ym6MlfLwd3c7p4eyJAGhwf1AH1pJwYlleYmKhWiVNZjsalOsxi4lB1JGdSufPp68scoTtotFzjrctThbeQPMjJwD11JO4HuM0NRcONr1oUQe389vjRm4wjBX2gyppbYTtqO/H/IcvCPKrfx+PohZC3rPdEZGcsoQ+g/CkKOaLIchEmM1IbzodQFpyN8EZFfntGem2W6tOALZfivJcCNRA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EkE+URwiOHhTB4Osbcq8NLS1iDAOoeinPujcb/iP0pkjlSj7OuNLyLrFsk6Ch6O8rQ2plASts7kqI6j15Y503BuBVeyk3bosB9EyZ+7aN/+4UgY21cNXOl7s23nasJLDchlTTqQpCuYoZunDz4BVGWH0fgXsf8ABorrE8qJYngtniQAfTuOBGxHjQ1l9bRlJpPcQWeTGU+n+HrjLdT3aHUNbE88ZHrQ40hTcEw1sBt4EjvCeoBPz0NWErSWGe9Dnct68/a0jP50ovZAaUqW3iB3ifkUdYzEttGlSJ8ars/DnzHy4wmZ7hMZR5deXWpsXvG1IVIaWsNp7vQ4koOd9xnnn9qsFWt9ttwAONoWM8lDP61m7kJtSNIeM9P3XQrNClgJLYgd/wCqSPDFrkyZrr3h1GO95Q2E5B/Kiz/SlwlJS2xFahNn7SlYTgfA3z+VMNtKUJCUJCQOgGBWYrbZ5EtW1annCruGw+T61wXOOvOr1pEUO8KcH22wuGUjVImqTpU+5zAPMJHQHH/dEWKyrw86dba2atmw20mEjlQh59x9ZW4ZNf/Z'></image>
|
||
<text>工商资质</text>
|
||
</view>
|
||
<image class='icon-right' src='../../images/rightArrowImg.png'></image>
|
||
</navigator>
|
||
<image class="sloganImg" src="{{index_bottom_image?index_bottom_image:'../../images/icon-index-slogan.png'}}"></image>
|
||
</view>
|
||
<view class="i-fixed-bottom" style="{{'bottom: ' + bottomBarHeight}}">
|
||
<!--底部按钮begin-->
|
||
|
||
<view class="goods-bottom-bar">
|
||
<view class="leftBtn">
|
||
<navigator hoverClass="none" openType="switchTab" url="/eaterplanet_ecommerce/pages/index/index">
|
||
<view class="bar-item back-to-index">
|
||
<image class="icon" src="../../images/icon-tab-index1.png"></image>
|
||
|
||
</view>
|
||
</navigator>
|
||
</view>
|
||
|
||
<view class="goodsStatus" wx:if="{{goods.over_type == 0}}">即将开抢</view>
|
||
<view class="goodsStatus" wx:elif="{{goods.total<=0}}">已抢光</view>
|
||
<view class="goodsStatus" wx:elif="{{goods.total > 0 && goods.over_type ==2}}">已结束</view>
|
||
<view class="goodsStatus" wx:elif="{{goods.grounding != 1}}">已下架</view>
|
||
<view class="goodsStatus" wx:elif="{{is_comunity_rest == 1}}">团长休息中</view>
|
||
<view class="gobuy" wx:else>
|
||
<block wx:if="{{pin_info.is_zero_open==1}}">
|
||
<label class="balanceBtn" for="formId">
|
||
<view bindtap="balance" class="bar-item balance" style='background: {{goodsdetails_addcart_bg_color}}' data-type="pintuan" data-zero="1">
|
||
<view class="bar-item-name">一键开团</view>
|
||
</view>
|
||
</label>
|
||
<form bindsubmit="submit" reportSubmit="true">
|
||
<button hidden formType="submit" id="formId"></button>
|
||
</form>
|
||
<label class="balanceBtn" for="formId">
|
||
<view bindtap="zeroTuanSub" class="bar-item balance" style='background: {{goodsdetails_buy_bg_color}}' data-type="pintuan">
|
||
<view class="bar-item-name">邀请开团</view>
|
||
</view>
|
||
</label>
|
||
</block>
|
||
<block wx:else>
|
||
<label class="balanceBtn" for="formId">
|
||
<view bindtap="balance" class="bar-item balance" style='background: {{goodsdetails_addcart_bg_color}}' data-type="pindan">
|
||
<view class="bar-item-price">¥{{pin_info.danprice}}</view>
|
||
<view class="bar-item-name">单独购买</view>
|
||
</view>
|
||
</label>
|
||
<form bindsubmit="submit" reportSubmit="true">
|
||
<button hidden formType="submit" id="formId"></button>
|
||
</form>
|
||
<label class="balanceBtn" for="formId">
|
||
<view bindtap="preBalance" class="bar-item balance" style='background: {{goodsdetails_buy_bg_color}}' data-type="pintuan">
|
||
<view class="bar-item-price">¥{{pin_info.pin_price}}</view>
|
||
<view class="bar-item-name">一键开团</view>
|
||
</view>
|
||
</label>
|
||
</block>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!--底部按钮end-->
|
||
|
||
<view class="mask" bindtap='closeSku' hidden="{{!visible}}"></view>
|
||
<!---规格选择begin-->
|
||
<view bind:cancel="close" class='sku-content' scrollUp="{{true}}" hidden="{{!visible}}">
|
||
<view class="sku-card">
|
||
<view bindtap="closeSku" class="close">
|
||
<image src="../../images/icon-sku-close.png"></image>
|
||
</view>
|
||
<view class="sku-header">
|
||
<image src='{{cur_sku_arr.skuImage}}' style="width:80px;height:80px;" class='sku-img'></image>
|
||
<view class="sku-desc">
|
||
<view class="sku-title">
|
||
<span>{{cur_sku_arr.spuName}}</span>
|
||
</view>
|
||
<view class="sku-price">
|
||
<view class="sale-price" wx:if="{{buy_type=='pindan'}}">
|
||
¥ <span>{{cur_sku_arr.actPrice[0]}}</span>.{{cur_sku_arr.actPrice[1]}}
|
||
</view>
|
||
<view class="sale-price" wx:if="{{buy_type=='pintuan'}}">
|
||
¥ <span>{{cur_sku_arr.pinprice[0]}}</span>.{{cur_sku_arr.pinprice[1]}}
|
||
</view>
|
||
<view class="market-price">¥{{cur_sku_arr.marketPrice[0]}}.{{cur_sku_arr.marketPrice[1]}}</view>
|
||
</view>
|
||
<view class="sku-switch-on" wx:if="{{cur_sku_arr.spec}}">已选择:{{cur_sku_arr.spec}}</view>
|
||
</view>
|
||
</view>
|
||
<view class="sku-spec" wx:for="{{skuList.list}}" wx:key="id">
|
||
<view class="title">{{item.name}}</view>
|
||
<view class="spec-list">
|
||
<span bindtap="selectSku" class="{{idx==sku[index]['idx']?'on':''}}" data-disabled="{{item.canBuyNum-value<0}}" data-type="{{index}}_{{idx}}_{{value.option_value_id}}_{{value.name}}" wx:for-index="idx" wx:key="idx" data-idx="{{idx}}" wx:for="{{item.option_value}}"
|
||
wx:for-item="value" style="{{idx==sku[index]['idx']?'color:'+skin.color+';border-color:'+skin.color:''}}">{{value.name}}</span>
|
||
</view>
|
||
</view>
|
||
<view class="sku-num-content">
|
||
<view class="title">数量</view>
|
||
<view class="i-class i-input-number i-input-number-size-{{size}}">
|
||
<view bindtap="setNum" data-type="decrease" class="i-input-number-minus {{value<=min?'i-input-number-disabled':''}}">
|
||
<image src="../../images/icon-input-reduce.png"></image>
|
||
</view>
|
||
<input bindblur="handleBlur" bindfocus="handleFocus" class="i-input-number-text {{min>=max?'i-input-number-disabled':''}}" disabled="true" type="number" value="{{sku_val}}"></input>
|
||
<view bindtap="setNum" data-type="add" class="i-input-number-plus {{value>=max?'i-input-number-disabled':''}}">
|
||
<image src="../../images/icon-input-add.png"></image>
|
||
</view>
|
||
</view>
|
||
<view class="msg" wx:if="{{skuList[current].isLimit}}">
|
||
<span wx:if="{{skuList[current].limitMemberNum>-1}}">每人限{{skuList[current].limitMemberNum}}单</span>
|
||
<span wx:if="{{skuList[current].limitOrderNum>-1}}">每单限{{skuList[current].limitOrderNum}}份</span>
|
||
<span></span>
|
||
</view>
|
||
<view class="even-num" wx:elif="{{!skuList[current].isLimit&&skuList[current].canBuyNum-value<=10&&skuList[current].canBuyNum-value>-1}}">还可以购买 {{skuList[current].canBuyNum-value}} 件</view>
|
||
</view>
|
||
<form bindsubmit="gocarfrom" report-submit="true">
|
||
<button formType="submit" class="sku-confirm" disabled='{{cur_sku_arr.stock==0 ? true : false}}'>
|
||
<view>{{cur_sku_arr.stock==0?"已抢光":"确定"}}</view>
|
||
</button>
|
||
</form>
|
||
</view>
|
||
</view>
|
||
<!---规格选择end-->
|
||
</view>
|
||
<view class="fixed-aside">
|
||
|
||
<movable-view y="950rpx" direction="vertical" bindtap="share_handler" class="fixed-share" >
|
||
<text class="iconfont icon-fenxiang"></text>
|
||
<view>分享</view>
|
||
|
||
</movable-view>
|
||
|
||
<movable-view y="1040rpx" direction="vertical">
|
||
<button class="fixed-service" openType="contact" wx:if="{{isShowContactBtn==1}}">
|
||
<text class="iconfont icon-kefu"></text>
|
||
<view>客服</view>
|
||
</button>
|
||
</movable-view>
|
||
|
||
<movable-view y="1040rpx" direction="vertical" bindtap="backTop" class="fixed-top" hidden="{{!isSticky}}" wx:if="{{ishow_index_gotop==1}}">
|
||
<text class="iconfont icon-fanhuidingbu"></text>
|
||
<view>顶部</view>
|
||
|
||
</movable-view>
|
||
</view>
|
||
<i-order-notify i-class="order-notify" wx:if="{{order_notify_switch==1}}" stopNotify="{{stopNotify}}" />
|
||
<i-new-auth needAuth="{{needAuth&&showAuthModal}}" bind:authSuccess="authSuccess" bind:cancel="authModal" needPosition="{{needPosition}}"></i-new-auth>
|
||
<!-- 新分享形式 Start -->
|
||
<view class='share-modal' bindtap='closeShareModal' hidden='{{hideModal}}'>
|
||
<view class='share-modal-content'>
|
||
<view class='share-modal-img'>
|
||
<image mode='widthFix' src='{{shareImgUrl}}'></image>
|
||
</view>
|
||
<view class="share-modal-btn-list">
|
||
<view class="share-modal-btn-item">
|
||
<button open-type="share" class='none_btn' plain="true">
|
||
<text class="iconfont icon-weixin1 btn-icon"></text>
|
||
<view class="btn-text">
|
||
<text>分享好友</text>
|
||
</view>
|
||
</button>
|
||
</view>
|
||
<view class="share-modal-btn-item" catchtap='saveThumb'>
|
||
<text class="iconfont icon-zhaopian btn-icon"></text>
|
||
<view class="btn-text">
|
||
<text>保存相册</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 团长切换 -->
|
||
<i-change-community wx:if="{{showChangeCommunity}}" visible="{{showChangeCommunity}}" changeCommunity="{{changeCommunity}}" community="{{community}}" bind:changeComunity="confrimChangeCommunity" canChange="{{hide_community_change_btn==0}}" groupInfo="{{groupInfo}}"></i-change-community>
|
||
<canvas canvasId="myCanvas" class="canvas-img" style="width: {{canvasWidth}}px;height: {{canvasHeight}}px;"></canvas>
|
||
|
||
<i-vip-modal visible="{{showVipModal}}" imgUrl="{{pop_vipmember_buyimage}}" />
|
||
</movable-area>
|