| @@ -13,6 +13,7 @@ Page({ | |||||
| spellBg: imgurl.spellBg.url, | spellBg: imgurl.spellBg.url, | ||||
| position: imgurl.position.url, | position: imgurl.position.url, | ||||
| close03: imgurl.close03.url, | close03: imgurl.close03.url, | ||||
| home: imgurl.home.url, | |||||
| paramData: null, | paramData: null, | ||||
| data: null, | data: null, | ||||
| clock: "00", | clock: "00", | ||||
| @@ -30,6 +31,11 @@ Page({ | |||||
| url: `/pages/spellGroup/mySpellGroup/index?couponId=${data.couponId}&couponChannelId=${data.couponChannelId}`, | url: `/pages/spellGroup/mySpellGroup/index?couponId=${data.couponId}&couponChannelId=${data.couponChannelId}`, | ||||
| }) | }) | ||||
| }, | }, | ||||
| gotoIndex(){ | |||||
| wx.reLaunch({ | |||||
| url: '/pages/index/index', | |||||
| }) | |||||
| }, | |||||
| gotoshare() { | gotoshare() { | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: `/pages/spellGroup/mySpellGroup/index?orderId=${this.data.paramData.orderId}&couponId=${this.data.paramData.couponId}&orderGroupId=${this.data.paramData.orderGroupId}&couponChannelId=${this.data.paramData.couponChannelId}`, | url: `/pages/spellGroup/mySpellGroup/index?orderId=${this.data.paramData.orderId}&couponId=${this.data.paramData.couponId}&orderGroupId=${this.data.paramData.orderGroupId}&couponChannelId=${this.data.paramData.couponChannelId}`, | ||||
| @@ -1,7 +1,32 @@ | |||||
| <!--pages/spellDetail/index.wxml--> | <!--pages/spellDetail/index.wxml--> | ||||
| <view class='container'> | <view class='container'> | ||||
| <!-- 拼团产品详情 --> | |||||
| <view class='detail'> | |||||
| <view class='return-index' bindtap='gotoIndex'> | |||||
| <image src='{{home}}'></image> | |||||
| </view> | |||||
| <view class='detail-top'> | |||||
| <view class='detail-top01'> | |||||
| <image src='{{data.coverImg}}'></image> | |||||
| </view> | |||||
| <view class='detail-top02'> | |||||
| <view class='title'>{{data.title}}</view> | |||||
| <view class='des'>{{data.subTitle}}</view> | |||||
| </view> | |||||
| <view class='detail-top03'> | |||||
| <view class='detail-p-price'>{{data.salePrice}}元</view> | |||||
| <view class='detail-p-name'>拼团价</view> | |||||
| </view> | |||||
| </view> | |||||
| <view class='detail-bottom' wx:if="{{isMyself==true}}"> | |||||
| <view class='b-unit'>元</view> | |||||
| <view class='b-price'>{{data.salePrice}}</view> | |||||
| <view class='b-name'>实付款</view> | |||||
| </view> | |||||
| </view> | |||||
| <!-- 拼团状态-拼团中,拼团成功 --> | <!-- 拼团状态-拼团中,拼团成功 --> | ||||
| <view class='status' wx:if="{{isMyself==true}}"> | |||||
| <view class='status' wx:if="{{isMyself==true}}" style='margin-top:30rpx;'> | |||||
| <view class='status-top'> | <view class='status-top'> | ||||
| <view class='p-status'>{{data.statustext}}</view> | <view class='p-status'>{{data.statustext}}</view> | ||||
| <view class='p-text' wx:if='{{data.status==10}}'>结束</view> | <view class='p-text' wx:if='{{data.status==10}}'>结束</view> | ||||
| @@ -45,28 +70,6 @@ | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <!-- 拼团产品详情 --> | |||||
| <view class='detail'> | |||||
| <view class='detail-top'> | |||||
| <view class='detail-top01'> | |||||
| <image src='{{data.coverImg}}'></image> | |||||
| </view> | |||||
| <view class='detail-top02'> | |||||
| <view class='title'>{{data.title}}</view> | |||||
| <view class='des'>{{data.subTitle}}</view> | |||||
| </view> | |||||
| <view class='detail-top03'> | |||||
| <view class='detail-p-price'>{{data.salePrice}}元</view> | |||||
| <view class='detail-p-name'>拼团价</view> | |||||
| </view> | |||||
| </view> | |||||
| <view class='detail-bottom' wx:if="{{isMyself==true}}"> | |||||
| <view class='b-unit'>元</view> | |||||
| <view class='b-price'>{{data.salePrice}}</view> | |||||
| <view class='b-name'>实付款</view> | |||||
| </view> | |||||
| </view> | |||||
| <!-- 拼团状态-除拼团失败,拼团超时 wx:if='{{data.status!=10&&!isMyself}}'--> | <!-- 拼团状态-除拼团失败,拼团超时 wx:if='{{data.status!=10&&!isMyself}}'--> | ||||
| <view class='status' wx:if='{{data.status!=10&&!isMyself}}' style='padding:0;overflow:hidden;margin-top:30rpx;'> | <view class='status' wx:if='{{data.status!=10&&!isMyself}}' style='padding:0;overflow:hidden;margin-top:30rpx;'> | ||||
| <view class='status-top' style='margin:0 20rpx;width:650rpx;box-sizing:border-box;'> | <view class='status-top' style='margin:0 20rpx;width:650rpx;box-sizing:border-box;'> | ||||
| @@ -137,6 +137,7 @@ page { | |||||
| line-height: 72rpx; | line-height: 72rpx; | ||||
| } | } | ||||
| .detail{ | .detail{ | ||||
| position: relative; | |||||
| width: 690rpx; | width: 690rpx; | ||||
| padding:0 28rpx; | padding:0 28rpx; | ||||
| margin: 30rpx auto 0; | margin: 30rpx auto 0; | ||||
| @@ -144,6 +145,18 @@ page { | |||||
| background:rgba(255,255,255,1); | background:rgba(255,255,255,1); | ||||
| border-radius:15rpx; | border-radius:15rpx; | ||||
| } | } | ||||
| .return-index{ | |||||
| position: absolute; | |||||
| right: 30rpx; | |||||
| top: 30rpx; | |||||
| width: 50rpx; | |||||
| height: 50rpx; | |||||
| } | |||||
| .return-index image{ | |||||
| display: block; | |||||
| width: 50rpx; | |||||
| height: 50rpx; | |||||
| } | |||||
| .detail-top{ | .detail-top{ | ||||
| width: 100%; | width: 100%; | ||||
| height: auto; | height: auto; | ||||
| @@ -34,7 +34,8 @@ Page({ | |||||
| that.setData({ | that.setData({ | ||||
| flag: "spellList", | flag: "spellList", | ||||
| spellList: true, | spellList: true, | ||||
| myspellList: false | |||||
| myspellList: false, | |||||
| lists: null | |||||
| }) | }) | ||||
| }, | }, | ||||
| //切换拼团列表 | //切换拼团列表 | ||||
| @@ -73,7 +74,8 @@ Page({ | |||||
| this.setData({ | this.setData({ | ||||
| flag: "myspellList", | flag: "myspellList", | ||||
| page: 1, | page: 1, | ||||
| allow_load: true | |||||
| allow_load: true, | |||||
| lists:null | |||||
| }) | }) | ||||
| this.getList(1, "myspellList") | this.getList(1, "myspellList") | ||||
| }, | }, | ||||
| @@ -1,10 +1,10 @@ | |||||
| <view class='content-box'> | <view class='content-box'> | ||||
| <view class='top'> | |||||
| <view class='top' wx:if='{{flag=="spellList"}}'> | |||||
| <view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false"> | <view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false"> | ||||
| <c-banner wx:key="unique" list="{{list}}" /> | <c-banner wx:key="unique" list="{{list}}" /> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class='content'> | |||||
| <view class='content' style='{{"margin-top:"+(flag=="spellList"?"320rpx":0)}}'> | |||||
| <view class='sepll-list' wx:if='{{flag=="spellList"}}' wx:for="{{lists}}" wx:key="{{index}}" data-couponId='{{item.couponId}}' data-id='{{item.id}}' bindtap='invite'> | <view class='sepll-list' wx:if='{{flag=="spellList"}}' wx:for="{{lists}}" wx:key="{{index}}" data-couponId='{{item.couponId}}' data-id='{{item.id}}' bindtap='invite'> | ||||
| <view class='spell-left'> | <view class='spell-left'> | ||||
| <image src='{{item.coverImg}}'></image> | <image src='{{item.coverImg}}'></image> | ||||