Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c057b604
authored
Oct 24, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售后众筹ui改版
1 parent
e51fb371
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
161 additions
and
119 deletions
packageCrowdFunding/pages/activityPage/components/activityDetail/activityDetail.js
packageCrowdFunding/pages/activityPage/components/activityDetail/activityDetail.wxml
packageCrowdFunding/pages/activityPage/components/activityDetail/activityDetail.wxss
packageCrowdFunding/pages/activityPage/paidOrder/orderList.wxss
subvehicleConversion/pages/activityPage/activityManagement/activityManagement.wxss
subvehicleConversion/pages/orderPage/supplementaryOrderList/supplementaryOrderList.wxss
packageCrowdFunding/pages/activityPage/components/activityDetail/activityDetail.js
View file @
c057b60
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,91 +28,92 @@ Component({
...
@@ -28,91 +28,92 @@ Component({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
showRemark
:
false
,
IMG_URL
,
userInfo
:
{},
showRemark
:
false
,
inputValue
:
''
,
userInfo
:
{},
navBarHeight
:
100
,
inputValue
:
''
,
tabIndex
:
0
,
navBarHeight
:
100
,
pageSize
:
4
,
tabIndex
:
0
,
pageNum
:
1
,
pageSize
:
4
,
tabList
:
[
'全部'
,
'待支付'
,
'已支付'
,
'已退款'
],
pageNum
:
1
,
btnTxt
:
{
tabList
:
[
'全部'
,
'待支付'
,
'已支付'
,
'已退款'
],
0
:
'去支付'
,
btnTxt
:
{
1
:
'去退款'
,
0
:
'去支付'
,
4
:
'去退款'
1
:
'去退款'
,
},
4
:
'去退款'
orderStatusObj
:
{
},
0
:
'待支付'
,
orderStatusObj
:
{
1
:
'已支付'
,
0
:
'待支付'
,
2
:
'已退款'
,
1
:
'已支付'
,
3
:
'预支付'
,
2
:
'已退款'
,
4
:
'退定金'
,
// 正常流程 自定义值
3
:
'预支付'
,
5
:
'退定金'
// 预支付状态下退定金 自定义值
4
:
'退定金'
,
// 正常流程 自定义值
},
5
:
'退定金'
// 预支付状态下退定金 自定义值
orderStatusList
:
[
},
{
orderStatusList
:
[
confName
:
'全部'
,
{
confId
:
''
confName
:
'全部'
,
},
{
confId
:
''
confName
:
'待支付'
,
},
{
confId
:
'0'
confName
:
'待支付'
,
},
{
confId
:
'0'
confName
:
'已支付'
,
},
{
confId
:
'1'
confName
:
'已支付'
,
},
confId
:
'1'
{
},
confName
:
'已退款'
,
{
confId
:
'2'
confName
:
'已退款'
,
}
confId
:
'2'
],
}
subOrderCodeCopy
:
''
,
],
searchObj
:
{},
subOrderCodeCopy
:
''
,
flag
:
true
,
searchObj
:
{},
statisticsObj
:
{},
flag
:
true
,
orderObj
:
[
statisticsObj
:
{},
{
orderObj
:
[
label
:
'活动名称'
,
{
key
:
'activityName'
label
:
'活动名称'
,
},
key
:
'activityName'
{
},
label
:
'推荐人'
,
{
key
:
'referrer'
label
:
'推荐人'
,
},
key
:
'referrer'
{
},
label
:
'转化人员'
,
{
key
:
'transfer'
label
:
'转化人员'
,
},
key
:
'transfer'
{
},
label
:
'商品名称'
,
{
key
:
'goodsName'
label
:
'商品名称'
,
},
key
:
'goodsName'
{
},
label
:
'订金金额'
,
{
key
:
'activityPrice'
,
label
:
'订金金额'
,
type
:
'price'
key
:
'activityPrice'
,
},
type
:
'price'
{
},
label
:
'订金支付时间'
,
{
key
:
'payedDateStr'
label
:
'订金支付'
,
},
key
:
'payedDateStr'
{
},
label
:
'订单编号'
,
{
key
:
'subOrderCode'
label
:
'订单编号'
,
},
key
:
'subOrderCode'
{
},
label
:
'尾款金额'
,
// {
key
:
'tailPayment'
,
// label: '尾款金额',
type
:
'price'
// key: 'tailPayment',
}
// type: 'price'
],
// }
list
:
[],
],
isToBottom
:
false
,
list
:
[],
selectData
:
[
'客户姓名'
,
'订单编号'
,
'手机号'
],
// 下拉列表的数据
isToBottom
:
false
,
selectIndex
:
0
,
// 选择的下拉列表下标
selectData
:
[
'客户姓名'
,
'订单编号'
,
'手机号'
],
// 下拉列表的数据
showSelect
:
false
,
// 下拉框
selectIndex
:
0
,
// 选择的下拉列表下标
confirmFlag
:
false
,
showSelect
:
false
,
// 下拉框
remarkType
:
''
,
// 备注类型 1备注 2 退款原因
confirmFlag
:
false
,
selectItem
:
{}
// 修改备注的订单对象
remarkType
:
''
,
// 备注类型 1备注 2 退款原因
selectItem
:
{}
// 修改备注的订单对象
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
...
...
packageCrowdFunding/pages/activityPage/components/activityDetail/activityDetail.wxml
View file @
c057b60
...
@@ -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,15 +130,23 @@
...
@@ -130,15 +130,23 @@
<!-- 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 wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}">
<view class="price_label">尾款金额</view>
关联尾款单
<view class="order_price_text"><text style="font-size: 28rpx;">¥</text>{{filter.priceFilter(item.tailPayment)}}</view>
</view>
</view>
<!-- 待支付/已支付/退定金 -->
<block wx:if="{{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2}}">
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
<view>
{{btnTxt[item.tailOrderStatus]}}
<!-- 待支付 -->
<view wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}">
关联尾款单
</view>
<!-- 待支付/已支付/退定金 -->
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.tailOrderStatus]}}
</view>
</view>
</view>
</block>
</view>
</view>
</view>
</view>
<block wx:if="{{nothing}}">
<block wx:if="{{nothing}}">
...
...
packageCrowdFunding/pages/activityPage/components/activityDetail/activityDetail.wxss
View file @
c057b60
...
@@ -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 {
...
@@ -383,14 +396,31 @@
...
@@ -383,14 +396,31 @@
}
}
.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;
color: #9B9B9E;
color: #9B9B9E;
border-top: 1rpx solid #EDEDED;
border-top: 1rpx solid #EDEDED;
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 {
...
@@ -411,7 +441,7 @@
...
@@ -411,7 +441,7 @@
color: #FFFFFF;
color: #FFFFFF;
background: #347BFF;
background: #347BFF;
border-radius: 32rpx;
border-radius: 32rpx;
padding: 8rpx
40
rpx;
padding: 8rpx
24
rpx;
}
}
.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: 1
65
rpx;
width: 1
38
rpx;
color: #9B9B9E;
color: #9B9B9E;
}
}
.list .item .order .order-value {
.list .item .order .order-value {
width: calc(100% - 1
65
rpx);
width: calc(100% - 1
38
rpx);
display: flex;
display: flex;
align-items: center;
align-items: center;
}
}
...
...
packageCrowdFunding/pages/activityPage/paidOrder/orderList.wxss
View file @
c057b60
...
@@ -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; */
...
...
subvehicleConversion/pages/activityPage/activityManagement/activityManagement.wxss
View file @
c057b60
...
@@ -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;
...
...
subvehicleConversion/pages/orderPage/supplementaryOrderList/supplementaryOrderList.wxss
View file @
c057b60
...
@@ -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 2
8
rpx;
padding: 8rpx 2
4
rpx;
}
}
.mar-btn{
.mar-btn{
margin-right: 15rpx;
margin-right: 15rpx;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment