Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9eff1e6b
authored
May 22, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
2b63fcad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
17 deletions
assets/css/mine/userOrder.scss → assets/css/mine/shoporder.scss
pages/mine/shoporder.vue
util/util.js
assets/css/mine/
userO
rder.scss
→
assets/css/mine/
shopo
rder.scss
View file @
9eff1e6b
...
...
@@ -153,6 +153,7 @@
font-size
:
24rpx
;
color
:
#484b59
;
line-height
:
40rpx
;
white-space
:
nowrap
;
}
.price
{
font-size
:
26rpx
;
...
...
@@ -160,33 +161,72 @@
font-weight
:
bold
;
}
.right-bar
{
.btn
{
margin-right
:
24rpx
;
&
:last-child
{
margin-right
:
0
;
}
}
.btn0
{
width
:
142rpx
;
height
:
48rpx
;
background
:
#f98119
;
border-radius
:
6rpx
;
font-size
:
22rpx
;
color
:
#fff
;
}
.btn1
{
width
:
142rpx
;
height
:
48rpx
;
border-radius
:
6rpx
;
border
:
1px
solid
#1969f9
;
font-size
:
22rpx
;
color
:
#1969f9
;
}
.btn2
{
width
:
142rpx
;
height
:
48rpx
;
border-radius
:
6rpx
;
border
:
1px
solid
#1969f9
;
font-size
:
22rpx
;
color
:
#1969f9
;
}
.btn3
{
width
:
142rpx
;
height
:
48rpx
;
background
:
#ffffff
;
border-radius
:
6rpx
;
opacity
:
0
.54
;
border
:
1px
solid
#c6c7cc
;
font-size
:
22rpx
;
color
:
#484b59
;
}
.btn1
{
.btn4
{
width
:
142rpx
;
height
:
48rpx
;
background
:
#1969f9
;
border-radius
:
6rpx
;
font-size
:
22rpx
;
color
:
#fff
;
}
.btn5
{
width
:
142rpx
;
height
:
48rpx
;
background
:
#ffffff
;
border-radius
:
6rpx
;
opacity
:
0
.54
;
border
:
1px
solid
#c6c7cc
;
margin-right
:
24rpx
;
font-size
:
22rpx
;
color
:
#484b59
;
}
.btn
2
{
.btn
6
{
width
:
142rpx
;
height
:
48rpx
;
background
:
#
f9811
9
;
background
:
#
1969f
9
;
border-radius
:
6rpx
;
font-size
:
22rpx
;
color
:
#fff
fff
;
color
:
#fff
;
}
}
}
...
...
pages/mine/shoporder.vue
View file @
9eff1e6b
<
template
>
<view
class=
"page-userOrder"
>
<
drag-button-follow
follow=
"left,right"
className=
"drag-button"
class=
"drag-button"
:url=
"kfurl"
></drag-button-follow
>
<
!--
<drag-button-follow
follow=
"left,right"
className=
"drag-button"
class=
"drag-button"
:url=
"kfurl"
></drag-button-follow>
--
>
<view
class=
"top"
>
<view
class=
"head row bothSide verCenter"
>
<view
class=
"left row verCenter"
>
...
...
@@ -33,21 +33,21 @@
<view
class=
"p1 row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"t1"
>
订单号:
</text>
<text
class=
"t2"
>
12022071810404SZ
</text>
<text
class=
"t3"
>
2023.04.24 11:40
</text>
<text
class=
"t2"
>
{{
item
.
order_sn
}}
</text>
<text
class=
"t3"
>
{{
item
.
create_time
}}
</text>
</view>
<text
class=
"color2"
>
待审核
</text>
<text
class=
"color2"
>
{{
item
.
status_val
}}
</text>
</view>
<view
class=
"p2 row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"t1"
>
附加费:
</text>
<text
class=
"t2"
style=
"margin-right: 24rpx;"
>
¥3580.23
</text>
<text
class=
"t2"
style=
"margin-right: 24rpx;"
>
{{
item
.
extend_fee_format
}}
</text>
<text
class=
"t1"
>
运费:
</text>
<text
class=
"t2"
>
¥10.00
</text>
<text
class=
"t2"
>
{{
item
.
shipping_price_format
}}
</text>
</view>
<view
class=
"right-bar"
>
<text
class=
"bar-t1"
>
共
</text>
<text
class=
"bar-t2"
>
4
</text>
<text
class=
"bar-t2"
>
{{
item
.
list
.
length
}}
</text>
<text
class=
"bar-t1"
>
件商品
</text>
<text
class=
"iconfont icon-jt"
></text>
</view>
...
...
@@ -55,9 +55,17 @@
<view
class=
"p3 row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"t1"
>
总金额:
</text>
<text
class=
"price"
>
¥3580.23
</text>
<text
class=
"price"
>
{{
item
.
order_amount_format
}}
</text>
</view>
<view
class=
"right-bar row"
>
<view
class=
"btn btn0 row rowCenter verCenter"
v-if=
"item.status == 2 || item.status == 3"
@
click
.
stop=
"nowPay(item.order_id)"
>
立即支付
</view>
<view
class=
"btn btn1 row rowCenter verCenter"
v-if=
"item.status == 10 || item.status == -1"
@
click
.
stop=
"rebuy(item.order_id)"
>
再次购买
</view>
<view
class=
"btn btn2 row rowCenter verCenter"
v-if=
"item.status == 4"
@
click
.
stop=
"sendTip(item.order_sn, item.user_id)"
>
提醒发货
</view>
<view
class=
"btn btn3 row rowCenter verCenter"
v-if=
"item.status != 1"
@
click
.
stop=
"downpd(item.order_id)"
>
下载合同
</view>
<view
class=
"btn btn4 row rowCenter verCenter"
v-if=
"item.status == 7 || item.status == 8 || item.status == 10"
@
click
.
stop=
"ship(item.order_id, item.order_sn, item.zy_delivery_type, item.status)"
>
查看物流
</view>
<view
class=
"btn btn5 row rowCenter verCenter"
v-if=
"item.status == 2 || item.status == 1"
@
click
.
stop=
"cancelOrder(item.order_id)"
>
取消订单
</view>
<view
class=
"btn btn6 row rowCenter verCenter"
v-if=
"item.status == 8"
@
click
.
stop=
"sureSend(item.order_id)"
>
确认收货
</view>
</view>
<view
class=
"right-bar row"
><view
class=
"btn0 row rowCenter verCenter"
>
取消订单
</view></view>
</view>
</view>
</view>
...
...
@@ -152,6 +160,40 @@ export default {
bindDateChange
:
function
(
e
)
{
this
.
date
=
e
.
detail
.
value
;
},
/**
* 立即支付
* @param {Object} order_id
*/
nowPay
(
order_id
)
{},
/**
* 再次购买
* @param {Object} order_id
*/
rebuy
(
order_id
)
{},
/**
* 提醒发货
* @param {Object} order_sn
* @param {Object} user_id
*/
sendTip
(
order_sn
,
user_id
)
{},
/**
* 取消订单
* @param {Object} order_id
*/
cancelOrder
(
order_id
)
{},
/**
* 查看物流
* @param {Object} order_id
* @param {Object} order_sn
* @param {Object} zy_delivery_type
* @param {Object} status
*/
ship
(
order_id
,
order_sn
,
zy_delivery_type
,
status
)
{},
/**
*确认收货
* @param {Object} order_id
*/
sureSend
(
order_id
)
{},
getData
()
{
this
.
request
(
Api_Url
+
'/order/lists'
,
'POST'
,
this
.
searchParams
,
true
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
...
...
@@ -164,5 +206,5 @@ export default {
</
script
>
<
style
lang=
"scss"
>
@import
'@/assets/css/mine/
userO
rder.scss'
;
@import
'@/assets/css/mine/
shopo
rder.scss'
;
</
style
>
util/util.js
View file @
9eff1e6b
...
...
@@ -3,7 +3,7 @@ import API_BASE from '../util/api.js'
* 请求封装
*/
const
request
=
(
url
=
''
,
type
=
'GET'
,
param
=
{},
Loading
,
headertype
)
=>
{
//是否启动加载
if
(
Loading
)
{
uni
.
showLoading
({
...
...
@@ -16,7 +16,7 @@ const request = (url = '', type = 'GET', param = {}, Loading, headertype) => {
pf
:
2
});
//请求es相关
if
(
url
.
indexOf
(
"so12.ichunt."
)
!=
-
1
||
url
.
indexOf
(
"/esapi/"
)
!=
-
1
||
url
.
indexOf
(
"/goods/detail"
)
!=
-
1
)
{
if
(
url
.
indexOf
(
"so12.ichunt."
)
!=
-
1
||
url
.
indexOf
(
"/esapi/"
)
!=
-
1
||
url
.
indexOf
(
"/goods/detail"
)
!=
-
1
)
{
params
=
Object
.
assign
(
param
,
{
hkyefgyd
:
1
});
}
...
...
@@ -40,6 +40,11 @@ const request = (url = '', type = 'GET', param = {}, Loading, headertype) => {
success
:
response
=>
{
if
(
Loading
)
uni
.
hideLoading
();
if
(
response
.
statusCode
===
200
)
{
if
(
response
.
data
.
err_code
==
11012
)
{
uni
.
navigateTo
({
url
:
'/login'
})
}
let
result
=
response
.
data
;
resolve
(
result
);
}
else
{
...
...
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