Commit c057b604 by zhangxw

售后众筹ui改版

1 parent e51fb371
import Api from '~/packageCrowdFunding/api' import Api from '~/packageCrowdFunding/api'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({ Component({
options: { options: {
styleIsolation: 'apply-shared', styleIsolation: 'apply-shared',
...@@ -28,6 +28,7 @@ Component({ ...@@ -28,6 +28,7 @@ Component({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
IMG_URL,
showRemark: false, showRemark: false,
userInfo: {}, userInfo: {},
inputValue: '', inputValue: '',
...@@ -92,18 +93,18 @@ Component({ ...@@ -92,18 +93,18 @@ Component({
type: 'price' type: 'price'
}, },
{ {
label: '订金支付时间', label: '订金支付',
key: 'payedDateStr' key: 'payedDateStr'
}, },
{ {
label: '订单编号', label: '订单编号',
key: 'subOrderCode' key: 'subOrderCode'
}, },
{ // {
label: '尾款金额', // label: '尾款金额',
key: 'tailPayment', // key: 'tailPayment',
type: 'price' // type: 'price'
} // }
], ],
list: [], list: [],
isToBottom: false, isToBottom: false,
......
...@@ -69,15 +69,15 @@ ...@@ -69,15 +69,15 @@
<view class="header-cust"> <view class="header-cust">
<view class="cust-name">{{item.customerName}}</view> <view class="cust-name">{{item.customerName}}</view>
<view class="cust-phone">{{item.customerPhone}}</view> <view class="cust-phone">{{item.customerPhone}}</view>
<image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="1" src="/packageCrowdFunding/images/copy-text.png" mode=""/> <image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="1" src="{{IMG_URL}}copy_icon_gapy.png" mode=""/>
</view> </view>
<view class="header-status"> <view class="header-status">
<view wx:if="{{ item.tailOrderStatus =='1'}}"> <!-- <view wx:if="{{ item.tailOrderStatus =='1'}}">
<span class="green-txt">{{orderStatusObj[item.tailOrderStatus]}}</span> <span class="green-txt">{{orderStatusObj[item.tailOrderStatus]}}</span>
<span class="header-price">¥{{filter.priceFilter(item.supplementOrderFlag == 1 ? (item.crowdFundingPrice) : (item.tailPayment || 0))}}</span> <span class="header-price">¥{{filter.priceFilter(item.supplementOrderFlag == 1 ? (item.crowdFundingPrice) : (item.tailPayment || 0))}}</span>
</view> </view> -->
<view wx:else class="{{item.tailOrderStatus == '2' ? 'red-txt' : (item.tailOrderStatus == '4' || item.tailOrderStatus == '5' ? 'blue-txt' : '') }}"> <view class="{{item.tailOrderStatus == '0' ? 'orange-text' : item.tailOrderStatus == '1' ? 'green-txt' : item.tailOrderStatus == '2' ? 'red-txt' : (item.tailOrderStatus == '4' || item.tailOrderStatus == '5' ? 'blue-txt' : '') }}">
{{orderStatusObj[item.tailOrderStatus] || '--'}} {{orderStatusObj[item.tailOrderStatus] || '--'}}
</view> </view>
</view> </view>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<block wx:else> <block wx:else>
<view wx:if="{{i.key == 'subOrderCode'}}" class="ordercode-class"> <view wx:if="{{i.key == 'subOrderCode'}}" class="ordercode-class">
{{item[i.key] || ''}} {{item[i.key] || ''}}
<image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="2" src="/packageCrowdFunding/images/copy-text.png" mode=""/> <image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="2" src="{{IMG_URL}}copy_icon_gapy.png" mode=""/>
</view> </view>
<view wx:else> <view wx:else>
{{item[i.key] || ''}} {{item[i.key] || ''}}
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</block> </block>
</block> </block>
<view class="order" wx:if="{{item.tailOrderStatus == 1}}"> <view class="order" wx:if="{{item.tailOrderStatus == 1}}">
<view class="order-label">尾款支付时间 </view> <view class="order-label">尾款支付</view>
<view class="order-value"> <view class="order-value">
<block>{{item['tailPayedDateStr']}}</block> <block>{{item['tailPayedDateStr']}}</block>
</view> </view>
...@@ -130,7 +130,13 @@ ...@@ -130,7 +130,13 @@
<!-- footer --> <!-- footer -->
<!-- 超管isSuper/商户号类型 userType 2(员工号)账号不可操作 --> <!-- 超管isSuper/商户号类型 userType 2(员工号)账号不可操作 -->
<view class="item-footer" wx:if="{{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2}}"> <view class="item-footer">
<view class="order_price">
<view class="price_label">尾款金额</view>
<view class="order_price_text"><text style="font-size: 28rpx;">¥</text>{{filter.priceFilter(item.tailPayment)}}</view>
</view>
<block wx:if="{{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2}}">
<view>
<!-- 待支付 --> <!-- 待支付 -->
<view wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}"> <view wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}">
关联尾款单 关联尾款单
...@@ -140,6 +146,8 @@ ...@@ -140,6 +146,8 @@
{{btnTxt[item.tailOrderStatus]}} {{btnTxt[item.tailOrderStatus]}}
</view> </view>
</view> </view>
</block>
</view>
</view> </view>
<block wx:if="{{nothing}}"> <block wx:if="{{nothing}}">
<view class="list-nothing">到底了~</view> <view class="list-nothing">到底了~</view>
......
...@@ -217,8 +217,13 @@ ...@@ -217,8 +217,13 @@
.list .header-status { .list .header-status {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 24rpx;
color: #FF9D0A; }
.list .header-status view{
height: 36rpx;
padding: 4rpx 8rpx;
border-radius: 4rpx;
} }
.header-price { .header-price {
...@@ -226,16 +231,24 @@ ...@@ -226,16 +231,24 @@
margin-left: 12rpx; margin-left: 12rpx;
} }
.orange-text{
color: #FF9D0A;
background: #FFF5E6;
}
.green-txt { .green-txt {
color: #4AC18E; color: #35C376;
background: #EAF9F1;
} }
.red-txt { .red-txt {
color: #EB4E4E; color: #F24724;
background: #FDECE9;
} }
.blue-txt { .blue-txt {
color: #347BFF; color: #347BFF;
background: #EAF1FF;
} }
.list .content { .list .content {
...@@ -384,7 +397,7 @@ ...@@ -384,7 +397,7 @@
.item-footer { .item-footer {
display: flex; display: flex;
justify-content: flex-end; justify-content: space-between;
/* margin-left: 200rpx; */ /* margin-left: 200rpx; */
align-items: center; align-items: center;
font-size: 24rpx; font-size: 24rpx;
...@@ -393,6 +406,23 @@ ...@@ -393,6 +406,23 @@
padding: 20rpx 32rpx; padding: 20rpx 32rpx;
} }
.item-footer view{
display: flex;
align-items: center;
}
.item-footer .order_price .price_label{
width: 136rpx;
flex-shrink: 0;
color: #999EA8;
}
.item-footer .order_price .order_price_text{
font-size: 36rpx;
color: #347BFF;
font-family: 'numberBold';
}
.orange-txt { .orange-txt {
color: #EB9B2F; color: #EB9B2F;
} }
...@@ -411,7 +441,7 @@ ...@@ -411,7 +441,7 @@
color: #FFFFFF; color: #FFFFFF;
background: #347BFF; background: #347BFF;
border-radius: 32rpx; border-radius: 32rpx;
padding: 8rpx 40rpx; padding: 8rpx 24rpx;
} }
.mar-btn{ .mar-btn{
margin-right: 15rpx; margin-right: 15rpx;
...@@ -440,12 +470,12 @@ ...@@ -440,12 +470,12 @@
} }
.list .item .order .order-label { .list .item .order .order-label {
width: 165rpx; width: 138rpx;
color: #9B9B9E; color: #9B9B9E;
} }
.list .item .order .order-value { .list .item .order .order-value {
width: calc(100% - 165rpx); width: calc(100% - 138rpx);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -231,7 +231,8 @@ ...@@ -231,7 +231,8 @@
} }
.activity-box .activity-name .activity-status .status { .activity-box .activity-name .activity-status .status {
font-size: 30rpx; font-size: 24rpx;
height: 36rpx;
padding: 4rpx 8rpx; padding: 4rpx 8rpx;
border-radius: 4rpx; border-radius: 4rpx;
/* padding-left: 60rpx; */ /* padding-left: 60rpx; */
......
...@@ -234,7 +234,8 @@ ...@@ -234,7 +234,8 @@
.activity-box .activity-name .activity-status .status { .activity-box .activity-name .activity-status .status {
margin-top: 8rpx; margin-top: 8rpx;
font-size: 28rpx; font-size: 24rpx;
height: 36rpx;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 4rpx 8rpx; padding: 4rpx 8rpx;
......
...@@ -216,7 +216,8 @@ margin-left: 16rpx; ...@@ -216,7 +216,8 @@ margin-left: 16rpx;
.list .header-status { .list .header-status {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 24rpx;
height: 36rpx;
color: #FF9D0A; color: #FF9D0A;
background: #FFF5E6; background: #FFF5E6;
border-radius: 4rpx; border-radius: 4rpx;
...@@ -435,7 +436,7 @@ margin-left: 16rpx; ...@@ -435,7 +436,7 @@ margin-left: 16rpx;
color: #FFFFFF; color: #FFFFFF;
background: #347BFF; background: #347BFF;
border-radius: 32rpx; border-radius: 32rpx;
padding: 8rpx 28rpx; padding: 8rpx 24rpx;
} }
.mar-btn{ .mar-btn{
margin-right: 15rpx; margin-right: 15rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!