116 lines
3.6 KiB
Plaintext
116 lines
3.6 KiB
Plaintext
<!--packageE/community_buying/buying_details/buying_details.wxml-->
|
|
|
|
<import src="../../../wxParse/wxParse.wxml" />
|
|
<view class="countdown">
|
|
<block wx:if="{{detailData.group_status!=2}}">
|
|
<view>距离活动<text wx:if="{{detailData.group_status==0}}">开始</text><text wx:if="{{detailData.group_status==1}}">结束</text>还剩</view>
|
|
<van-count-down use-slot time="{{ time }}" bind:change="onChangeTime">
|
|
<view class="bottom_time">
|
|
<text class="radius-box">{{ timeData.days }}</text>
|
|
<text class="text">天</text>
|
|
<text class="radius-box">{{ timeData.hours }}</text>
|
|
<text class="text">:</text>
|
|
<text class="radius-box">{{ timeData.minutes }}</text>
|
|
<text class="text">:</text>
|
|
<text class="radius-box">{{ timeData.seconds }}</text>
|
|
</view>
|
|
</van-count-down>
|
|
</block>
|
|
<block wx:else>
|
|
<view>活动已结束</view>
|
|
</block>
|
|
</view>
|
|
|
|
|
|
<view class="goods-list">
|
|
<view class="h2">
|
|
<text>商品</text>
|
|
<text>是否参加</text>
|
|
</view>
|
|
<view class="good-child" wx:for="{{goods}}" wx:key="id">
|
|
<view class="good-img">
|
|
<image src="{{item.thumb}}"></image>
|
|
</view>
|
|
<view class="good-info">
|
|
<view class="good-title">{{item.title}}</view>
|
|
<view class="goods-purchased">
|
|
<text class="iconfont icon-fontclass-qian"></text>
|
|
<text class="text">利润 ¥{{item.priceBonus}}</text>
|
|
<text class="iconfont icon-fontclass-kucun"></text>
|
|
<text class="text">库存{{item.stock}}件</text>
|
|
|
|
</view>
|
|
<view class="good-buy">
|
|
<view class="good-price">
|
|
<!-- {{ $i18n.t('money') }} -->
|
|
{{language['money']}}
|
|
<view class="price">{{item.price}}</view>
|
|
</view>
|
|
<view class="select">
|
|
<van-switch
|
|
bind:change="onChangeSwitch"
|
|
size="18px"
|
|
data-index="{{index}}"
|
|
data-goods_id="{{item.goods_id}}"
|
|
checked="{{ item.checked }}"
|
|
active-color="#f14e4e"
|
|
inactive-color="#999999"
|
|
/>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<van-share-sheet show="{{ shareShow }}" bind:select="onSelectShare" options="{{ shareOptions }}" bind:close="onCloseShare" />
|
|
<buying-qrcode isshow="{{posterShow}}" buyingid="{{buyingid}}" deliverid="{{deliver_id}}" ></buying-qrcode>
|
|
|
|
<view class="bottomContainer">
|
|
<view class="seat"></view>
|
|
<view class="wrapper">
|
|
<view class="item" bindtap="setExplainFlag">
|
|
<text class="iconfont icon-fontclass-huodongshuoming"></text>
|
|
<text class="name">活动说明</text>
|
|
</view>
|
|
<view class="item" bindtap="gotoBuyingOrder">
|
|
<text class="iconfont icon-fontclass-dingdanguanli"></text>
|
|
<text class="name">订单管理</text>
|
|
</view>
|
|
<view class="item" bindtap="gotoBuyingData">
|
|
<text class="iconfont icon-fontclass-shuju"></text>
|
|
<text class="name">数据</text>
|
|
</view>
|
|
<view class="item" bindtap="openShareShow">
|
|
<text class="iconfont icon-fontclass-fenxiang"></text>
|
|
<text class="name">分享</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<van-popup show="{{ explainFlag }}" custom-style="background:transparent;">
|
|
<view class="explainWrapper">
|
|
<view class="explainTextWrapper">
|
|
<view class="explainTextTitle">说明</view>
|
|
<view class="explainTextContent">
|
|
<view class="notice-main">
|
|
<!-- <rich-text nodes="{{detailData.description}}"></rich-text> -->
|
|
<block wx:if="{{article.nodes}}">
|
|
<template is="wxParse" data="{{wxParseData:article.nodes}}" />
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<icon bindtap="setExplainFlag" class="close iconfont icon-adsystem_icon_cancle"></icon>
|
|
</view>
|
|
</van-popup>
|