Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
Project
Project
Details
Activity
Releases
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
和慭琛
take_order
Commits
ec522dfb
Commit
ec522dfb
authored
Dec 28, 2020
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享问题
parent
c867ae69
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
192 additions
and
116 deletions
+192
-116
index.vue
take-order/pages/index/index.vue
+17
-2
detail.vue
take-order/pages/take/detail.vue
+165
-114
index.vue
take-order/pages/take/index.vue
+10
-0
No files found.
take-order/pages/index/index.vue
View file @
ec522dfb
...
@@ -164,7 +164,13 @@
...
@@ -164,7 +164,13 @@
}
}
},
},
onLoad
()
{
onLoad
(
e
)
{
//+ '?orderId=' + this.orderId + '&toWhere=detail'
if
(
e
&&
e
.
toWhere
){
this
.
toWhere
(
e
)
}
this
.
icon_location
=
getApp
().
globalData
.
icon_location
this
.
icon_location
=
getApp
().
globalData
.
icon_location
this
.
icon_notice
=
getApp
().
globalData
.
icon_index_notice
this
.
icon_notice
=
getApp
().
globalData
.
icon_index_notice
this
.
icon_agree_yes
=
getApp
().
globalData
.
icon_agree_yes
this
.
icon_agree_yes
=
getApp
().
globalData
.
icon_agree_yes
...
@@ -225,7 +231,16 @@
...
@@ -225,7 +231,16 @@
doNothing
:
function
(){},
doNothing
:
function
(){},
toWhere
:
function
(
e
){
if
(
e
.
toWhere
==
detail
&&
e
.
orderId
){
uni
.
navigateTo
({
url
:
'/pages/take/detail'
+
'?orderId='
+
e
.
orderId
,
})
}
},
nameInput
(
e
){
nameInput
(
e
){
this
.
name
=
e
.
detail
.
value
this
.
name
=
e
.
detail
.
value
...
...
take-order/pages/take/detail.vue
View file @
ec522dfb
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<view
class=
""
v-if=
"isContentShow"
>
<view
class=
"topView"
>
<view
class=
"topView"
>
<view
class=
"itemView u-m-t-30"
v-if=
"orderInfo.contactName"
>
<view
class=
"itemView u-m-t-30"
v-if=
"orderInfo.contactName"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
...
@@ -124,10 +125,16 @@
...
@@ -124,10 +125,16 @@
@
cancel=
"cancelReasonOnCancel"
@
cancel=
"cancelReasonOnCancel"
ref=
"selector"
ref=
"selector"
></w-picker>
></w-picker>
</view>
<view
class=
"noDataView"
v-if=
"isContentShow == false"
>
<image
class=
"noDataIcon"
:src=
"icon_noData"
mode=
""
></image>
<text
class=
"noDataText"
>
无查看权限
</text>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -148,6 +155,8 @@
...
@@ -148,6 +155,8 @@
type
:
''
,
type
:
''
,
value
:
''
,
value
:
''
,
TimeID
:
-
1
,
TimeID
:
-
1
,
userType
:
''
,
isContentShow
:
false
,
//退单弹窗相关
//退单弹窗相关
isCancelShow
:
false
,
isCancelShow
:
false
,
...
@@ -270,7 +279,9 @@
...
@@ -270,7 +279,9 @@
if
(
res
.
data
.
code
==
200
){
if
(
res
.
data
.
code
==
200
){
this
.
orderInfo
=
res
.
data
.
data
this
.
orderInfo
=
res
.
data
.
data
this
.
userType
=
res
.
data
.
data
.
userType
this
.
setBottomTitle
(
res
)
this
.
setBottomTitle
(
res
)
this
.
checkUserType
()
if
(
res
.
data
.
data
.
images
){
if
(
res
.
data
.
data
.
images
){
this
.
adjustPhotoList
(
res
.
data
.
data
.
images
)
this
.
adjustPhotoList
(
res
.
data
.
data
.
images
)
}
}
...
@@ -298,6 +309,32 @@
...
@@ -298,6 +309,32 @@
})
})
},
},
//底部按钮标题
setBottomTitle
:
function
(
res
){
if
(
res
.
data
.
data
.
statusText
==
'待接单'
){
this
.
bottomTitle
=
'接单'
}
else
{
this
.
bottomTitle
=
'完工'
}
},
//检查用户状态
checkUserType
:
function
(){
//下单用户/师傅用户/后台用户/非法用户
console
.
log
(
'当前用户类型:'
+
this
.
userType
)
if
(
this
.
userType
!=
'师傅用户'
){
this
.
isBottomShow
=
false
}
if
(
this
.
userType
==
'非法用户'
){
this
.
isContentShow
=
false
}
},
//照片 点击
//照片 点击
photoClick
:
function
(
item
,
ikey
)
{
photoClick
:
function
(
item
,
ikey
)
{
// console.log('照片 点击')
// console.log('照片 点击')
...
@@ -324,16 +361,7 @@
...
@@ -324,16 +361,7 @@
});
});
},
},
//底部按钮标题
setBottomTitle
:
function
(
res
){
if
(
res
.
data
.
data
.
statusText
==
'待接单'
){
this
.
bottomTitle
=
'接单'
}
else
{
this
.
bottomTitle
=
'完工'
}
},
//https://system.banshouhui.com/wxh-sts-rest/rest/file/image/order/13767/1442887919988.jpg
//https://system.banshouhui.com/wxh-sts-rest/rest/file/image/order/13767/1442887919988.jpg
adjustPhotoList
:
function
(
images
)
{
adjustPhotoList
:
function
(
images
)
{
...
@@ -869,6 +897,29 @@
...
@@ -869,6 +897,29 @@
align-items
:
center
;
align-items
:
center
;
}
}
.noDataView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
1112
rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.noDataIcon
{
background-color
:
#FFFFFF
;
margin-top
:
280
rpx
;
width
:
200
rpx
;
height
:
160
rpx
;
}
.noDataText
{
color
:
#999999
;
margin-top
:
32
rpx
;
font-size
:
28
rpx
;
}
</
style
>
</
style
>
take-order/pages/take/index.vue
View file @
ec522dfb
...
@@ -231,6 +231,16 @@
...
@@ -231,6 +231,16 @@
},
},
onShareAppMessage
(
res
)
{
let
shareObj
=
{
title
:
''
,
path
:
'/pages/take/index'
,
success
(){},
fail
(){}
}
return
shareObj
},
methods
:
{
methods
:
{
...
...
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