108 lines
5.9 KiB
Plaintext
108 lines
5.9 KiB
Plaintext
<import src="/utils/wxParse/wxParse.wxml"></import>
|
|
<view class="page" style="{{isIpx?'padding-bottom:168rpx':''}}">
|
|
<view class="groupstime" wx:if="{{count_down&&data.tuan_first_order.success==0}}">剩余 {{time[0]}}天{{time[1]}}小时{{time[2]}}分{{time[3]}}秒</view>
|
|
<view class="groupstime" wx:if="{{!count_down||data.tuan_first_order.success==-1}}">拼团已结束</view>
|
|
<view class="groupstime" wx:if="{{data.tuan_first_order.success==1}}">拼团已成功</view>
|
|
<view class="goodsinfo flex">
|
|
<image src="{{data.goods.thumb}}"></image>
|
|
<view class="inner flex1">
|
|
<view class="title">{{data.goods.title}}</view>
|
|
<view>
|
|
<text class="person">{{data.tuan_first_order.is_ladder==1?'阶梯团':data.tuan_first_order.groupnum+'人团'}}</text>
|
|
</view>
|
|
<view class="price">¥{{data.tuan_first_order.goods_price}}/{{data.goods.goodsnum}}{{data.goods.units}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="join">
|
|
<view class="inner">
|
|
<view class="num" wx:if="{{data.tuan_first_order.success==0}}">已有{{data.nn}}人参与,还差<text>{{data.n}}</text>人拼团成功</view>
|
|
<view class="flex person-group">
|
|
<view class="persons {{idx==0?'active':''}}" wx:for="{{data.orders}}" wx:for-index="idx">
|
|
<image src="{{item.avatar}}"></image>
|
|
</view>
|
|
<view class="persons" wx:for="{{data.arr}}" wx:for-index="idx">
|
|
<image src="/static/images/noface.png"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="process">
|
|
<text class="icox icox-1"></text>下单开团/参团 <text class="line">-----------</text>
|
|
<text class="icox icox-2"></text>邀请好友参团 <text class="line">-----------</text>
|
|
<text class="icox icox-3"></text>人满拼团成功
|
|
</view>
|
|
<view class="fui-cell-group" style="margin-top:0">
|
|
<view class="title">
|
|
<view class="fui-tab fui-tab-danger" id="tab">
|
|
<view bindtap="goodsTab" class="item {{showtab=='groups'?'active':''}}" data-tap="groups">拼团详情</view>
|
|
<view bindtap="goodsTab" class="item {{showtab=='info'?'active':''}}" data-tap="info">商品详情</view>
|
|
</view>
|
|
</view>
|
|
<view class="tabcontent">
|
|
<view wx:if="{{showtab=='groups'}}">
|
|
<view class="fui-cell" wx:for="{{data.orders}}">
|
|
<view class="fui-cell-label">
|
|
<image src="{{item.avatar}}"></image>
|
|
</view>
|
|
<view class="fui-cell-info">
|
|
{{item.nickname}}
|
|
</view>
|
|
<view class="fui-cell-remark noremark danger">
|
|
{{item.createtime}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{showtab=='info'}}">
|
|
<view class="wxParse">
|
|
<template is="wxParse" data="{{wxParseData:wxParseData.nodes}}"></template>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view bindtap="close" class="layer" wx:if="{{layershow}}"></view>
|
|
<view class="fui-modal goods-picker in goodslist" wx:if="{{options}}">
|
|
<view class="option-picker">
|
|
<view class="option-picker-inner">
|
|
<view class="fui-list">
|
|
<view class="fui-list-media">
|
|
<image class="thumb" src="{{optiondata.thumb||data.goods.thumb}}"></image>
|
|
</view>
|
|
<view class="fui-list-inner">
|
|
<view class="subtitle">{{optiondata.title||data.goods.title}}</view>
|
|
<view class="price">¥{{optiondata.price||data.goods.groupsprice}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="option-picker-options">
|
|
<view class="option-picker-cell option spec">
|
|
<block wx:for="{{spec}}" wx:for-index="specindex" wx:for-item="items">
|
|
<view class="title">{{items.title}}</view>
|
|
<view class="select">
|
|
<view bindtap="specsTap" class="btn btn-default btn-sm nav spec-item {{options.status=='active'?'btn-danger':''}}" data-id="{{options.id}}" data-idx="{{index}}" data-specindex="{{specindex}}" data-spedid="{{options.specid}}" wx:for="{{items.item}}" wx:for-item="options">{{options.title}}</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="fui-navbar">
|
|
<view bindtap="buy" class="btn btn-danger block"> {{optiondata.stock<=0?'库存不足':'确定'}}</view>
|
|
</view>
|
|
</view>
|
|
<view bindtap="close" class="icox icox-guanbi-copy" style="color:#fff;text-align:center;font-size:60rpx;margin-top:30rpx;"></view>
|
|
</view>
|
|
<view class="detailbtn-group flex {{iphonexnavbar}}">
|
|
<navigator class="back" hoverClass="none" openType="reLaunch" url="../index/index">
|
|
<view class="icox icox-homepage"></view>
|
|
<view>拼团首页</view>
|
|
</navigator>
|
|
<view class="detailbtn flex1" style="{{data.myorder.success==0?'background:#ff5555':'background:#ccc'}}">
|
|
<text wx:if="{{!count_down||data.tuan_first_order.success==-1}}">拼团已结束</text>
|
|
<text wx:if="{{data.tuan_first_order.success==1}}">拼团已成功</text>
|
|
<button openType="share" wx:if="{{data.tuan_first_order.success==0&&data.myorder}}">
|
|
快邀请好友参团
|
|
</button>
|
|
<button bindtap="tuxedobuy" wx:if="{{data.tuan_first_order.success==0&&!data.myorder}}">我要参团</button>
|
|
</view>
|
|
</view>
|
|
<view class="{{isIpx?'fui-iphonex-button':''}}"></view>
|
|
</view>
|