Browse Source

拼团状态详情页面合并修改

tags/富茂链客4.1.0
刘晖 6 years ago
parent
commit
03bd205c4d
4 changed files with 70 additions and 3 deletions
  1. +1
    -1
      app.json
  2. +1
    -1
      pages/spellDetail/index.js
  3. +51
    -1
      pages/spellDetail/index.wxml
  4. +17
    -0
      pages/spellDetail/index.wxss

+ 1
- 1
app.json View File

@@ -1,8 +1,8 @@
{
"pages": [
"pages/spellTimeout/index",
"pages/index/index",
"pages/spellDetail/index",
"pages/spellTimeout/index",
"pages/spellGroup/mySpellGroup/index",
"pages/spellGroup/spellGroup",
"pages/complete/index",


+ 1
- 1
pages/spellDetail/index.js View File

@@ -101,7 +101,7 @@ Page({
}).then(res => {
console.log(res,555555555)
let data=res.data;
data.status=that.changeSatus(data.status);
data.statustext=that.changeSatus(data.status);
that.countdown(data.expiredDate);
data.salePrice = (data.salePrice/100).toFixed(2)
that.setData({


+ 51
- 1
pages/spellDetail/index.wxml View File

@@ -1,8 +1,9 @@
<!--pages/spellDetail/index.wxml-->
<view class='container'>
<!-- 拼团状态-拼团中,拼团成功 -->
<view class='status'>
<view class='status-top'>
<view class='p-status'>{{data.status}}</view>
<view class='p-status'>{{data.statustext}}</view>
<view class='p-text'>结束</view>
<view class='p-time'>{{sec}}</view>
<view class='p-mao'>:</view>
@@ -40,6 +41,8 @@
<view class='position'>广场地址:{{data.addr}}</view>
</view>
</view>

<!-- 拼团产品详情 -->
<view class='detail'>
<view class='detail-top'>
<view class='detail-top01'>
@@ -60,6 +63,53 @@
<view class='b-name'>实付款</view>
</view>
</view>

<!-- 拼团状态-除拼团失败,拼团超时 -->
<view class='status' wx:if='{{data.statustext==11||data.statustext==12||data.statustext==13}}' style='padding:0;overflow:hidden;margin-top:30rpx;'>
<view class='status-top'>
<view class='p-status' style='text-align:center;width:100%;'>好友的拼团已完成</view>
</view>
<view class='status-center'>
<view class='status-lists'>
<view class='tuanzhang touxiangitems'>
<view class='touxiang'>
<image src='{{spellBg}}'></image>
</view>
<view class='tuan-icon'>
<image src='{{tuanzhang}}'></image>
</view>
</view>
<view class='tuanzhang touxiangitems'>
<view class='touxiang'>
<image src='{{spellBg}}'></image>
</view>
</view>
<view class='tuanzhang touxiangitems'>
<view class='touxiang'>
<image src='{{spellBg}}'></image>
</view>
</view>
<view class='tuanzhang touxiangitems'>
<view class='touxiang'>
<image src='{{spellBg}}'></image>
</view>
</view>
</view>
</view>
<!-- 按钮 -->
<view class='button'>
<button>发起拼团</button>
<button>更多拼团商品</button>
</view>
<view class='status-bottom' style='background:rgba(254,243,232,1);padding:0 20rpx;box-sizing:border-box;'>
<view class='position-icon'>
<image src='{{position}}'></image>
</view>
<view class='position'>广场地址:北京市朝阳区东三环中路123号</view>
</view>
</view>

<!-- 拼团订单信息 -->
<view class='order'>
<view class='order-list'>
<view class='order-title'>订单编号:</view>


+ 17
- 0
pages/spellDetail/index.wxss View File

@@ -274,4 +274,21 @@ page {

.user-motto::after {
border: none;
}
.button button:nth-of-type(1){
width:520rpx;
height:95rpx;
margin: 30rpx auto 38rpx;
background:linear-gradient(90deg,rgba(248,85,45,1) 0%,rgba(241,60,66,1) 0%,rgba(248,86,46,1) 100%);
border-radius:47rpx;
color: #fff;
}
.button button:nth-of-type(2){
width:520rpx;
height:95rpx;
background:rgba(255,255,255,1);
border:1rpx solid rgba(190,190,190,1);
border-radius:47rpx;
color:#333333;
margin-bottom: 50rpx;
}

Loading…
Cancel
Save