Переглянути джерело

[订单列表][修改]:[将门店列表封装成组件]

tags/河北版C.8.2.0^2
meo 5 роки тому
джерело
коміт
74b00dcbae
3 змінених файлів з 10 додано та 27 видалено
  1. +2
    -1
      pages/order/detail/index.json
  2. +2
    -12
      pages/order/detail/index.wxml
  3. +6
    -14
      pages/order/detail/index.wxss

+ 2
- 1
pages/order/detail/index.json Переглянути файл

@@ -1,5 +1,6 @@
{ {
"usingComponents": { "usingComponents": {
"navbar": "../../../components/navbar/navbar"
"navbar": "../../../components/navbar/navbar",
"store": "../../../components/store/index"
} }
} }

+ 2
- 12
pages/order/detail/index.wxml Переглянути файл

@@ -74,18 +74,8 @@
</view> </view>
</view> </view>
</view> </view>
<view class='classifShop'>
<view class="clearfix" bindtap='showDoorList'>
<text>适用门店</text>
</view>
<view wx:if="{{order.merchantVoList.length>=1}}" wx:for="{{order.merchantVoList}}" wx:key="{{index}}">
<view class='merchantVoList'>
<image bindtap='gotoDetail' data-id='{{item.id}}' class='merchantImgUrl' src='{{item.merchantImgUrl}}' mode='widthFix'></image>
<view bindtap='gotoDetail' data-id='{{item.id}}' class='merchantName'>{{item.merchantName}} {{item.buildingName}}{{item.floorName}}</view>
<image wx:if="{{item.linkLinePhone}}" bindtap='phone' data-merchantlinkphone='{{item.linkLinePhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix"></image>
</view>
</view>
</view>
<!-- 适用门店 -->
<store merchantVoList="{{order.merchantVoList}}"></store>
<!-- 待付款 显示立即购买的按钮 --> <!-- 待付款 显示立即购买的按钮 -->
<view wx:if="{{(order.orderStatus==0&&order.salePrice!=0)||(order.orderStatus==7&&order.salePrice!=0)}}" class="buy-view app-border-top"> <view wx:if="{{(order.orderStatus==0&&order.salePrice!=0)||(order.orderStatus==7&&order.salePrice!=0)}}" class="buy-view app-border-top">
<button bindtap='orderFunc' hover-class='active' data-couponChannelId="{{order.id}}" disabled='{{showButton}}' class='buy'>立即支付</button> <button bindtap='orderFunc' hover-class='active' data-couponChannelId="{{order.id}}" disabled='{{showButton}}' class='buy'>立即支付</button>


+ 6
- 14
pages/order/detail/index.wxss Переглянути файл

@@ -165,7 +165,7 @@ page {
width: 100%; width: 100%;
margin-top: 20rpx; margin-top: 20rpx;
} }
/*
.classifShop{ .classifShop{
background: #FFFFFF; background: #FFFFFF;
width: 100%; width: 100%;
@@ -185,7 +185,7 @@ page {
.classifShop >view:nth-child(1){ .classifShop >view:nth-child(1){
height: 88rpx!important; height: 88rpx!important;
line-height:94rpx; line-height:94rpx;
}
} */


.classif > view:nth-child(2),.classif > view:nth-child(3){ .classif > view:nth-child(2),.classif > view:nth-child(3){
position: relative; position: relative;
@@ -196,9 +196,6 @@ page {
padding-left: 5%; padding-left: 5%;
padding-right: 5%; padding-right: 5%;
/* border-bottom: 1rpx solid #eee; */ /* border-bottom: 1rpx solid #eee; */
}
.bianhao{
} }
.classif > view text:nth-child(2) { .classif > view text:nth-child(2) {
font-size: 28rpx; font-size: 28rpx;
@@ -213,10 +210,6 @@ page {
.classif > view:nth-child(1) { .classif > view:nth-child(1) {
display: block; display: block;
} }
.classif > view:nth-child(3) view text:nth-child(2) {
/* padding-left: 15rpx; */
}

.classif > view:nth-child(6) text:nth-child(2) { .classif > view:nth-child(6) text:nth-child(2) {
color: #666; color: #666;
} }
@@ -486,10 +479,9 @@ radio {
width: 100%; width: 100%;
height: 140rpx; height: 140rpx;
} }
/*
.merchantVoList { .merchantVoList {
width: 100%; width: 100%;
/* position: relative; */
} }


.merchantVoList .tel { .merchantVoList .tel {
@@ -498,7 +490,7 @@ radio {
float: right; float: right;
z-index: 10; z-index: 10;
margin-top: 30rpx; margin-top: 30rpx;
}
} */


.btns { .btns {
background: #00c0ff; background: #00c0ff;
@@ -510,13 +502,13 @@ radio {
line-height: 94rpx; line-height: 94rpx;
border-radius: 61rpx; border-radius: 61rpx;
} }
.merchantImgUrl{
/* .merchantImgUrl{
width: 90rpx; width: 90rpx;
float: left; float: left;
border-radius: 10rpx; border-radius: 10rpx;
z-index: 10; z-index: 10;
margin: 0 auto; margin: 0 auto;
}
} */
.support-tansfer{ .support-tansfer{
width: 690rpx; width: 690rpx;
border-radius: 50rpx; border-radius: 50rpx;


Завантаження…
Відмінити
Зберегти