Przeglądaj źródła

[拼团详情样式修改]

tags/河北版C.8.1.01
刘晖 5 lat temu
rodzic
commit
b58cf83131
3 zmienionych plików z 27 dodań i 38 usunięć
  1. +2
    -1
      pages/spellDetail/index.js
  2. +18
    -33
      pages/spellDetail/index.wxml
  3. +7
    -4
      pages/spellGroup/mySpellGroup/index.js

+ 2
- 1
pages/spellDetail/index.js Wyświetl plik

@@ -213,8 +213,9 @@ Page({
showAlert: true showAlert: true
}) })
} }
console.log(data,3333333333333)
that.setData({ that.setData({
data: res.data
data: data
}) })
}); });
}, },


+ 18
- 33
pages/spellDetail/index.wxml Wyświetl plik

@@ -30,18 +30,6 @@


<!-- 拼团状态-拼团中,拼团成功 --> <!-- 拼团状态-拼团中,拼团成功 -->
<view class='status' wx:if="{{isMyself==true}}" style='margin-top:30rpx;'> <view class='status' wx:if="{{isMyself==true}}" style='margin-top:30rpx;'>
<!-- <view class='status-top'>
<view class='p-status'>{{data.statustext}}</view>
<view class='p-text' wx:if='{{data.status==10}}'>结束</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{sec}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>:</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{min}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>:</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{hour}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>天</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{day}}</view>
<view class='p-text' wx:if='{{data.status==10}}'>剩余</view>
</view> -->
<view class='status-center' style='{{"width:"+(120*data.userList.length>634?634:120*data.userList.length)+"rpx;"+"margin:0 auto;"}}'> <view class='status-center' style='{{"width:"+(120*data.userList.length>634?634:120*data.userList.length)+"rpx;"+"margin:0 auto;"}}'>
<view class='status-lists'> <view class='status-lists'>
<view class='tuanzhang touxiangitems' wx:for="{{data.userList}}" wx:key="{{index}}"> <view class='tuanzhang touxiangitems' wx:for="{{data.userList}}" wx:key="{{index}}">
@@ -55,30 +43,27 @@
? ?
</view> </view>
</view> </view>
<!-- <view class='tuanzhang touxiangitems'>
<view class='touxiang'>
<image src='{{spellBg}}'></image>
</view>
</view>
<view class='tuanzhang touxiangitems'>
<view class='no-touxiang'>
?
</view>
</view> -->
</view>
<view class='status-top'>
<view class='p-text' wx:if='{{data.status==10}}'>结束</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{sec}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>:</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{min}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>:</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{hour}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>天</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{day}}</view>
<view class='p-text' wx:if='{{data.status==10}}'>剩余</view>
</view> </view>
<!-- <view class='need' >还差 <text class='needNum'>{{data.remainPeople}}人</text>拼团成功,赶快邀人!</view> --> <!-- <view class='need' >还差 <text class='needNum'>{{data.remainPeople}}人</text>拼团成功,赶快邀人!</view> -->
</view> </view>
<view class='status-top' style="width:332rpx;margin:0 auto;">
<view class='p-text' wx:if='{{data.status==10}}'>结束</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{sec}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>:</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{min}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>:</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{hour}}</view>
<view class='p-mao' wx:if='{{data.status==10}}'>天</view>
<view class='p-time' wx:if='{{data.status==10}}'>{{day}}</view>
<view class='p-text' wx:if='{{data.status==10}}'>剩余</view>
</view>
<view class='status-top'>
<view>
<view>还差</view>
<view>1</view>
<view>拼团成功,赶快邀人</view>
</view>
</view>
<view class='status-bottom'> <view class='status-bottom'>
<view class='position-icon'> <view class='position-icon'>
<image src='{{position}}'></image> <image src='{{position}}'></image>


+ 7
- 4
pages/spellGroup/mySpellGroup/index.js Wyświetl plik

@@ -44,6 +44,7 @@ Page({
queueData: null, queueData: null,
zIndex: 11, zIndex: 11,
display: "none", display: "none",
orderGroupId:''
}, },


/** /**
@@ -124,7 +125,8 @@ Page({
this.setData({ this.setData({
canBuyIf: false, canBuyIf: false,
formId: e.detail.formId, formId: e.detail.formId,
queueData: null
queueData: null,
orderGroupId:''
}) })
that.getQuestions(); that.getQuestions();
}, },
@@ -351,7 +353,8 @@ Page({
let that = this; let that = this;
that.setData({ that.setData({
canSpell: false, canSpell: false,
formId: e.detail.formId
formId: e.detail.formId,
orderGroupId:0
}) })
that.getQuestions(0); that.getQuestions(0);
}, },
@@ -502,8 +505,8 @@ Page({
* 拼团订单 * 拼团订单
*/ */
let that = this; let that = this;
if (orderGroupId == 0) {
data.orderGroupId = orderGroupId,
if (this.data.orderGroupId == 0) {
data.orderGroupId = this.data.orderGroupId,
that.setData({ that.setData({
isFromSpell:true isFromSpell:true
}) })


Ładowanie…
Anuluj
Zapisz