Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhqg-mini
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhqg
zhqg-mini
Commits
52d0ba8c
Commit
52d0ba8c
authored
Oct 24, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
600c765a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
136 additions
and
25 deletions
+136
-25
orderList.js
pages/orderList/orderList.js
+38
-17
orderList.wxml
pages/orderList/orderList.wxml
+15
-2
orderList.wxss
pages/orderList/orderList.wxss
+79
-0
orderWithdrawal.js
pages/orderWithdrawal/orderWithdrawal.js
+0
-2
orderWithdrawal.wxml
pages/orderWithdrawal/orderWithdrawal.wxml
+4
-4
No files found.
pages/orderList/orderList.js
View file @
52d0ba8c
...
@@ -10,7 +10,9 @@ Page({
...
@@ -10,7 +10,9 @@ Page({
list
:
[],
list
:
[],
current
:
1
,
current
:
1
,
pages
:
0
,
pages
:
0
,
sts
:
0
sts
:
0
,
showModal
:
false
,
currentNumber
:
''
},
},
/**
/**
...
@@ -293,25 +295,23 @@ Page({
...
@@ -293,25 +295,23 @@ Page({
url
:
'/pages/orderWithdrawal/orderWithdrawal?type='
+
data
.
type
+
'&ordernum='
+
data
.
ordernum
+
'&amount='
+
amount
+
'&orderIncome='
+
JSON
.
stringify
(
data
.
item
.
orderIncome
),
url
:
'/pages/orderWithdrawal/orderWithdrawal?type='
+
data
.
type
+
'&ordernum='
+
data
.
ordernum
+
'&amount='
+
amount
+
'&orderIncome='
+
JSON
.
stringify
(
data
.
item
.
orderIncome
),
})
})
},
},
// <text class="txt-notice" wx:if="{{type ==2}}">1、退单金额将退还到您的可提现余额中。 \n 2、订单没有满以下期限会扣相应的手续费 \n 01、2020年12月12号之前退款的将扣除本金的35%。 \n 02、2020年12月12号起订单周期 {{'<'}} 30天,扣本金 15% \n 03、2020年12月12号起订单周期 30天 {{'<'}} X {{'<'}} 60天,扣本金 12% \n 04、2020年12月12号起订单周期 60天 {{'<'}} X {{'<'}} 90天,扣本金 9% \n 05、2020年12月12号起订单周期 90 天 {{'<'}} X {{'<'}} 120天,扣本金 6% </text>
// 挂单
// 挂单
onPendingOrder
:
function
(
e
)
{
onPendingOrder
:
function
(
e
)
{
var
ths
=
this
;
var
ths
=
this
;
let
data
=
e
.
currentTarget
.
dataset
.
item
let
data
=
e
.
currentTarget
.
dataset
.
item
wx
.
showModal
({
ths
.
setData
({
title
:
''
,
showModal
:
true
,
content
:
'您是否要挂单?'
,
currentNumber
:
data
.
orderNumber
confirmColor
:
"#eb2444"
,
})
success
(
res
)
{
},
if
(
res
.
confirm
)
{
confirmBtn
(){
wx
.
showLoading
({
var
ths
=
this
;
mask
:
true
});
var
params
=
{
var
params
=
{
url
:
"/p/myOrder/updateOrderStatus"
,
url
:
"/p/myOrder/updateOrderStatus"
,
method
:
"GET"
,
method
:
"GET"
,
data
:
{
data
:
{
orderNumber
:
data
.
order
Number
,
orderNumber
:
ths
.
data
.
current
Number
,
status
:
8
status
:
8
},
},
callBack
:
function
(
res
)
{
callBack
:
function
(
res
)
{
...
@@ -321,11 +321,32 @@ Page({
...
@@ -321,11 +321,32 @@ Page({
}
}
};
};
http
.
request
(
params
);
http
.
request
(
params
);
}
else
if
(
res
.
cancel
)
{
},
//console.log('用户点击取消')
/**
}
* 弹出框蒙层截断touchmove事件
}
*/
})
preventTouchMove
:
function
()
{
},
/**
* 隐藏模态对话框
*/
hideModal
:
function
()
{
this
.
setData
({
showModal
:
false
});
},
/**
* 对话框取消按钮点击事件
*/
onCancel
:
function
()
{
this
.
hideModal
();
},
/**
* 对话框确认按钮点击事件
*/
onConfirm
:
function
()
{
this
.
hideModal
();
this
.
confirmBtn
()
},
},
// 提货
// 提货
onPickGoods
:
function
(
e
)
{
onPickGoods
:
function
(
e
)
{
...
...
pages/orderList/orderList.wxml
View file @
52d0ba8c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<view bindtap='onStsTap' data-sts="0" class="{{sts==0?'on':''}}">全部</view>
<view bindtap='onStsTap' data-sts="0" class="{{sts==0?'on':''}}">全部</view>
<view bindtap='onStsTap' data-sts="1" class="{{sts==1?'on':''}}">待支付</view>
<view bindtap='onStsTap' data-sts="1" class="{{sts==1?'on':''}}">待支付</view>
<view bindtap='onStsTap' data-sts="7" class="{{sts==7?'on':''}}">收益中</view>
<view bindtap='onStsTap' data-sts="7" class="{{sts==7?'on':''}}">收益中</view>
<view bindtap='onStsTap' data-sts="
7
" class="{{sts==8?'on':''}}">挂单中</view>
<view bindtap='onStsTap' data-sts="
8
" class="{{sts==8?'on':''}}">挂单中</view>
<view bindtap='onStsTap' data-sts="2" class="{{sts==2?'on':''}}">待发货</view>
<view bindtap='onStsTap' data-sts="2" class="{{sts==2?'on':''}}">待发货</view>
<view bindtap='onStsTap' data-sts="3" class="{{sts==3?'on':''}}">待收货</view>
<view bindtap='onStsTap' data-sts="3" class="{{sts==3?'on':''}}">待收货</view>
<view bindtap='onStsTap' data-sts="5" class="{{sts==5?'on':''}}">已完成</view>
<view bindtap='onStsTap' data-sts="5" class="{{sts==5?'on':''}}">已完成</view>
...
@@ -135,5 +135,17 @@
...
@@ -135,5 +135,17 @@
</view>
</view>
</view>
</view>
<!-- end 订单列表 -->
<!-- end 订单列表 -->
<view class="modal-mask" bindtap="hideModal" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
<view class="modal-dialog" wx:if="{{showModal}}">
<view class="modal-title">您是否要挂单?</view>
<view class="modal-next" style="margin-bottom: 20rpx;">
<text class="modal-content">
1、退单金额将退还到您的可提现余额中。 \n 2、订单没有满以下期限会扣相应的手续费 \n 01、2020年12月12号之前退款的将扣除本金的35%。 \n 02、2020年12月12号起订单周期 {{'<'}} 30天,扣本金 15% \n 03、2020年12月12号起订单周期 30天 {{'<'}} X {{'<'}} 60天,扣本金 12% \n 04、2020年12月12号起订单周期 60天 {{'<'}} X {{'<'}} 90天,扣本金 9% \n 05、2020年12月12号起订单周期 90 天 {{'<'}} X {{'<'}} 120天,扣本金 6%
</text>
</view>
<view class="modal-footer">
<view class="btn-cancel" bindtap="onCancel" data-status="cancel">取消</view>
<view class="btn-confirm" bindtap="onConfirm" data-status="confirm">确定</view>
</view>
</view>
<wxs module="wxs" src="../../wxs/number.wxs" />
<wxs module="wxs" src="../../wxs/number.wxs" />
\ No newline at end of file
pages/orderList/orderList.wxss
View file @
52d0ba8c
...
@@ -278,3 +278,81 @@ page {
...
@@ -278,3 +278,81 @@ page {
.order-state .order-sts.gray {
.order-state .order-sts.gray {
color: #999;
color: #999;
}
}
.modal-mask {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
opacity: 0.5;
overflow: hidden;
z-index: 9000;
color: #fff;
}
.modal-dialog {
width: 600rpx;
overflow: hidden;
position: fixed;
z-index: 9999;
background: #f9f9f9;
left: 50%;
top: 50%;
padding: 0 20rpx 20rpx;
transform: translate(-50%, -50%);
border-radius: 36rpx;
}
.modal-title {
padding-top: 50rpx;
font-size: 36rpx;
color: #030303;
text-align: center;
}
modal-next{
padding: 0 20rpx;
}
.modal-content {
padding: 50rpx 32rpx;
font-size: 24rpx;
}
.modal-input {
display: flex;
background: #fff;
border: 2rpx solid #ddd;
border-radius: 4rpx;
font-size: 28rpx;
}
.input {
width: 100%;
height: 82rpx;
font-size: 28rpx;
line-height: 28rpx;
padding: 0 20rpx;
box-sizing: border-box;
color: #333;
}
input-holder {
color: #666;
font-size: 28rpx;
}
.modal-footer {
display: flex;
flex-direction: row;
height: 86rpx;
border-top: 1px solid #dedede;
font-size: 34rpx;
line-height: 86rpx;
}
.btn-cancel {
width: 50%;
color: #666;
text-align: center;
border-right: 1px solid #dedede;
}
.btn-confirm {
width: 50%;
color: #ec5300;
text-align: center;
}
\ No newline at end of file
pages/orderWithdrawal/orderWithdrawal.js
View file @
52d0ba8c
...
@@ -38,8 +38,6 @@ Page({
...
@@ -38,8 +38,6 @@ Page({
ordernum
:
this
.
options
.
ordernum
,
ordernum
:
this
.
options
.
ordernum
,
amount
:
this
.
options
.
amount
,
amount
:
this
.
options
.
amount
,
defaultAmount
:
this
.
options
.
amount
,
defaultAmount
:
this
.
options
.
amount
,
note
:
`1、退单金额将退还到您的可提现余额中。\n 2、订单没有满以下期限会扣相应的手续费 \n 01、2020年12余额12号之前退款的将扣除本金的35%。 \n 02、2020年12余额12号起订单周期 < 30天,扣本金 15% \n 03、2020年12余额12号起订单周期 30天 < X < 60天,扣本金 12% \n
04、2020年12余额12号起订单周期 60天 < X < 90天,扣本金 9% \n 05、2020年12余额12号起订单周期 90 天 < X < 120天,扣本金 6%`
,
orderIncome
:
JSON
.
parse
(
this
.
options
.
orderIncome
)
orderIncome
:
JSON
.
parse
(
this
.
options
.
orderIncome
)
})
})
console
.
log
(
'list'
,
this
.
data
.
type
,
this
.
data
.
ordernum
)
console
.
log
(
'list'
,
this
.
data
.
type
,
this
.
data
.
ordernum
)
...
...
pages/orderWithdrawal/orderWithdrawal.wxml
View file @
52d0ba8c
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<text class="txt">{{type == 2? '退单金额': '提现金额'}}</text>
<text class="txt">{{type == 2? '退单金额': '提现金额'}}</text>
<view class="my-input">
<view class="my-input">
<text>¥</text>
<text>¥</text>
<input wx:if="{{type == 2}}" class='input' type='text' value="{{amount}}" bindinput="amountinput" placeholder-class='phcolor'
<
!-- <
input wx:if="{{type == 2}}" class='input' type='text' value="{{amount}}" bindinput="amountinput" placeholder-class='phcolor'
:placeholder="{{type == 2? '请输入退单金额': '请输入提现金额'}}"></input>
:placeholder="{{type == 2? '请输入退单金额': '请输入提现金额'}}"></input>
-->
<text
wx:else
>{{amount || 0}}</text>
<text>{{amount || 0}}</text>
</view>
</view>
<view class="notice">
<view class="notice">
<text style="margin-right: 20rpx;">{{type == 2? '可退单金额': '可提现金额'}}¥{{amount}}</text>
<text style="margin-right: 20rpx;">{{type == 2? '可退单金额': '可提现金额'}}¥{{amount}}</text>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<view class="notice-container">
<view class="notice-container">
<text class='txt-notice-title'>【温馨提醒】</text>
<text class='txt-notice-title'>【温馨提醒】</text>
<text class="txt-notice" wx:if="{{type ==2}}">1、退单金额将退还到您的可提现余额中。 \n 2、订单没有满以下期限会扣相应的手续费 \n 01、2020年12
余额12号之前退款的将扣除本金的35%。 \n 02、2020年12余额12号起订单周期 {{'<'}} 30天,扣本金 15% \n 03、2020年12余额12号起订单周期 30天 {{'<'}} X {{'<'}} 60天,扣本金 12% \n 04、2020年12余额12号起订单周期 60天 {{'<'}} X {{'<'}} 90天,扣本金 9% \n 05、2020年12余额
12号起订单周期 90 天 {{'<'}} X {{'<'}} 120天,扣本金 6% </text>
<text class="txt-notice" wx:if="{{type ==2}}">1、退单金额将退还到您的可提现余额中。 \n 2、订单没有满以下期限会扣相应的手续费 \n 01、2020年12
月12号之前退款的将扣除本金的35%。 \n 02、2020年12月12号起订单周期 {{'<'}} 30天,扣本金 15% \n 03、2020年12月12号起订单周期 30天 {{'<'}} X {{'<'}} 60天,扣本金 12% \n 04、2020年12月12号起订单周期 60天 {{'<'}} X {{'<'}} 90天,扣本金 9% \n 05、2020年12月
12号起订单周期 90 天 {{'<'}} X {{'<'}} 120天,扣本金 6% </text>
<text class="txt-notice" wx:else>1、订单收益的提现将提现到您的可提现余额中
<text class="txt-notice" wx:else>1、订单收益的提现将提现到您的可提现余额中
</text>
</text>
</view>
</view>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment