Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-customer-new-master
Commits
656ac522
Commit
656ac522
authored
Jan 14, 2025
by
Smile
Committed by
wux
Jan 22, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务88:客户端改造,首页和订单页面非86用户不显示我要下单按钮和菜单,不显示去处理和退仓按钮。显示提单号
parent
30ee5968
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
14 deletions
+51
-14
index.vue
src/pages/index/index.vue
+13
-4
order.vue
src/pages/order/order.vue
+14
-5
index.css
src/static/css/index.css
+19
-3
order.css
src/static/css/order.css
+2
-2
index.js
src/static/lang/en/index.js
+1
-0
index.js
src/static/lang/fr/index.js
+1
-0
index.js
src/static/lang/zh/index.js
+1
-0
No files found.
src/pages/index/index.vue
View file @
656ac522
...
...
@@ -29,6 +29,7 @@
v-for=
"(item, index) in nvs"
@
click=
"toPage(item.url, item.isHttp)"
:key=
"index"
v-if=
"(item.name === $lang.lang.index.delivery && isDelivery) || item.name !== $lang.lang.index.delivery"
>
<image
:src=
"item.icon"
mode=
""
></image>
<view
v-if=
"item.num > 0"
class=
"order_dian"
>
{{
item
.
num
}}
</view>
...
...
@@ -117,10 +118,15 @@
@
click=
"toOrderInfo(item.orderId)"
>
<view
class=
"item-til"
>
<view
class=
"full-width"
>
<image
src=
"../../static/img/sn.png"
mode=
""
></image>
<view
class=
"orderNo"
>
{{
$lang
.
lang
.
index
.
orderNo
}}
:
{{
item
.
orderNo
}}
</view>
<view
class=
"marks"
>
{{
$lang
.
lang
.
index
.
marks
}}
:
{{
item
.
marks
}}
</view>
</view>
<view
class=
"tidan-no"
v-if=
"item.tidanNo"
>
<view
class=
"tidanNo"
>
{{
$lang
.
lang
.
index
.
tidanNo
}}
:
{{
item
.
tidanNo
}}
</view>
</view>
</view>
<view
class=
"item-body"
>
<view
class=
"item-body-v"
>
{{
item
.
departureName
}}
</view>
<view
class=
"item-body-v-2"
>
...
...
@@ -265,6 +271,7 @@ export default {
adData
:
{},
updateAdData
:
{},
membershipLevels
:[],
isDelivery
:
true
,
levelLeviteInfo
:
''
,
levelTitle
:
''
,
noticeData
:
[],
...
...
@@ -429,7 +436,9 @@ export default {
let
that
=
this
that
.
$request
.
get
(
'
/app-api/member/user/get
'
).
then
((
res
)
=>
{
let
userInfo
=
res
.
data
console
.
log
(
res
.
data
)
if
(
userInfo
!=
null
){
this
.
isDelivery
=
userInfo
.
areaCode
===
'
86
'
;
}
if
(
res
.
code
==
0
&&
res
.
data
)
{
if
(
res
.
data
.
isSimplePassword
)
{
uni
.
showModal
({
...
...
src/pages/order/order.vue
View file @
656ac522
...
...
@@ -57,8 +57,13 @@
<image
v-else
class=
"fa"
:src=
"receivingImg"
mode=
""
></image>
<view
class=
"order-list-it-v"
>
<view
class=
"fa-v"
>
<view
class=
"order-no"
>
<text>
{{
$lang
.
lang
.
order
.
orderNo
}}
:
{{
item
.
orderNo
}}
</text>
<text>
{{
formatMsg
(
item
.
status
)
}}
</text>
</view>
<view
v-if=
"item.tidanNo"
>
<text>
{{
$lang
.
lang
.
index
.
tidanNo
}}
:
{{
item
.
tidanNo
}}
</text>
</view>
<!--
<text>
{{
getStatusName
(
item
.
status
)
}}
</text>
-->
</view>
</view>
...
...
@@ -99,8 +104,8 @@
<view
v-if=
'item.status==0||item.status==2'
@
click=
"toEditOrder(item.orderId, false)"
>
{{
$lang
.
lang
.
order
.
edit
}}
</view>
<view
v-if=
'item.status==0||item.status==88'
@
click=
"delOrder(item.orderId)"
>
{{
$lang
.
lang
.
order
.
delete
}}
</view>
<view
v-if=
'item.status==2&&item.status!=88'
@
click=
"cancelOrder(item.orderId)"
>
{{
$lang
.
lang
.
order
.
cancelOrder
}}
</view>
<view
v-if=
'item.status==5&&item.status!=88'
@
click=
"returnOrder(index)"
>
{{
$lang
.
lang
.
order
.
exit
}}
</view>
<view
v-if=
'item.abnormalState!=0&&item.status!=88'
@
click=
"toException(item.orderId)"
>
{{
$lang
.
lang
.
order
.
toDeal
}}
</view>
<view
v-if=
'item.status==5&&item.status!=88
&&isDelivery
'
@
click=
"returnOrder(index)"
>
{{
$lang
.
lang
.
order
.
exit
}}
</view>
<view
v-if=
'item.abnormalState!=0&&item.status!=88
&&isDelivery
'
@
click=
"toException(item.orderId)"
>
{{
$lang
.
lang
.
order
.
toDeal
}}
</view>
</view>
<view
class=
"order-btn"
>
<view
@
click=
"copy(item.orderId)"
>
{{
$lang
.
lang
.
order
.
copy
}}
</view>
...
...
@@ -113,7 +118,7 @@
</view>
</view>
<view
class=
"bom"
>
<view
class=
"bom"
v-if=
"isDelivery"
>
<view
class=
""
@
click=
"toCreatOrders"
>
<image
src=
"../../static/img/carFa.png"
mode=
""
></image>
<text>
{{
$lang
.
lang
.
order
.
delivery
}}
</text>
...
...
@@ -501,6 +506,7 @@
reason
:
''
,
imgUrl
:[],
//退仓图片地址
params
:{},
isDelivery
:
true
,
config
:{
transport
:{
index
:
-
1
,
...
...
@@ -638,6 +644,9 @@
if
(
res
.
code
==
0
&&
res
.
data
){
this
.
userInfo
=
res
.
data
this
.
isHavePassword
=
this
.
userInfo
.
isHavePassword
if
(
this
.
userInfo
!=
null
){
this
.
isDelivery
=
this
.
userInfo
.
areaCode
===
'
86
'
;
}
}
})
...
...
src/static/css/index.css
View file @
656ac522
...
...
@@ -183,24 +183,25 @@ page{
margin
:
0
auto
;
padding
:
20
upx
;
display
:
flex
;
flex-direction
:
column
;
color
:
var
(
--c3
);
font-size
:
var
(
--f26
);
border-bottom
:
1px
solid
#DFDFDF
;
align-items
:
center
;
position
:
relative
;
}
.act-list
.item-til
image
{
.act-list
.item-til
.full-width
image
{
width
:
42
upx
;
height
:
40
upx
;
margin
:
6
upx
10
upx
0
0
;
}
.act-list
.item-til
.marks
{
.act-list
.item-til
.
full-width
.
marks
{
position
:
absolute
;
right
:
20
upx
;
font-size
:
var
(
--f26
);
color
:
var
(
--c3
);
}
.act-list
.item-til
.orderNo
{
.act-list
.item-til
.
full-width
.
orderNo
{
width
:
320
upx
;
}
.item-body
{
...
...
@@ -574,3 +575,18 @@ page{
right
:
6px
;
margin
:
0
;
}
.full-width
{
width
:
100%
;
display
:
flex
;
color
:
var
(
--c3
);
font-size
:
var
(
--f26
);
align-items
:
center
;
position
:
relative
;
float
:
right
;
}
.tidan-no
{
width
:
100%
;
}
.tidanNo
{
margin-left
:
54
upx
;
}
\ No newline at end of file
src/static/css/order.css
View file @
656ac522
...
...
@@ -143,13 +143,13 @@
.order-list-it-v
{
width
:
84%
;
}
.order-list-tp
.fa-v
{
.order-list-tp
.fa-v
.order-no
{
padding
:
0
upx
0
10
upx
;
border-bottom
:
1px
solid
var
(
--cdf
);
display
:
flex
;
justify-content
:
space-between
;
}
.fa-v
text
{
.fa-v
.order-no
text
{
font-size
:
28
rpx
;
}
.order-list-user
{
...
...
src/static/lang/en/index.js
View file @
656ac522
...
...
@@ -4,6 +4,7 @@ export default {
"
notice
"
:
"
Notice
"
,
"
dynamic
"
:
"
Trend
"
,
"
orderNo
"
:
"
Order No.
"
,
"
tidanNo
"
:
"
PL No.
"
,
"
marks
"
:
"
Mark
"
,
"
help
"
:
"
Help
"
,
"
consult
"
:
"
Inquiry
"
,
...
...
src/static/lang/fr/index.js
View file @
656ac522
...
...
@@ -4,6 +4,7 @@ export default {
"
notice
"
:
"
Avis
"
,
"
dynamic
"
:
"
Tendances
"
,
"
orderNo
"
:
"
Numéro de commande
"
,
"
tidanNo
"
:
"
Numéro de PL
"
,
"
marks
"
:
"
Marquer
"
,
"
help
"
:
"
Aide
"
,
"
consult
"
:
"
Demande
"
,
...
...
src/static/lang/zh/index.js
View file @
656ac522
...
...
@@ -4,6 +4,7 @@ export default {
"
notice
"
:
"
公告
"
,
"
dynamic
"
:
"
动态
"
,
"
orderNo
"
:
"
订单号
"
,
"
tidanNo
"
:
"
提单号
"
,
"
marks
"
:
"
唛头
"
,
"
help
"
:
"
帮助
"
,
"
consult
"
:
"
咨询
"
,
...
...
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