Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
61721a8b
Commit
61721a8b
authored
May 08, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
584ad4b8
6b97c5aa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
12 deletions
+42
-12
.env.js
.env.js
+2
-2
index.vue
src/components/order/index.vue
+13
-2
index.vue
src/pages/login/index.vue
+3
-3
complete.vue
src/pages/order/complete.vue
+2
-2
prompt.vue
src/pages/settle/prompt.vue
+22
-3
No files found.
.env.js
View file @
61721a8b
...
...
@@ -10,8 +10,8 @@
}
}
else
if
(
process
.
env
.
NODE_ENV
===
"production"
)
{
ENV_VAR
=
require
(
'./.env.prod.js'
);
//
ENV_VAR = require('./.env.test.js');
//
ENV_VAR = require('./.env.prod.js');
ENV_VAR
=
require
(
'./.env.test.js'
);
}
if
(
ENV_VAR
)
{
process
.
uniEnv
=
{};
...
...
src/components/order/index.vue
View file @
61721a8b
...
...
@@ -17,7 +17,7 @@
<view
class=
"address-view"
>
<view
class=
"address-left-view"
>
<image
class=
"address-image"
:src=
"dizhiImage"
mode=
"widthFix"
></image>
<text>
{{
orderData
.
contactAddress
}}
</text>
<text>
{{
formatAddress
(
orderData
)
}}
</text>
</view>
<view
v-if=
"showDistance"
>
{{
orderDistance
}}
km
...
...
@@ -110,7 +110,7 @@
*/
orderType
:
0
};
},
},
computed
:
{
orderText
()
{
// 按钮文字
return
this
.
typeTexts
[
this
.
orderType
]
...
...
@@ -269,6 +269,17 @@
},
1000
)
}
},
formatAddress
(
order
)
{
let
address
=
""
if
(
order
)
{
address
=
order
.
contactProvinceText
||
""
address
+=
order
.
contactCityText
||
""
address
+=
order
.
contactCommunityText
||
""
address
+=
order
.
contactStreetText
||
""
address
+=
order
.
contactAddress
||
""
}
return
address
},
/**
* echo distance(116.3896,39.91917,116.3940,39.91726);
* 计算两点之间直线距离
...
...
src/pages/login/index.vue
View file @
61721a8b
...
...
@@ -162,7 +162,7 @@ export default {
if
(
index
)
{
let
prevPage
=
pages
[
index
];
//上一个页面
if
(
prevPage
.
route
==
"pages/login/index"
)
{
uni
.
navigate
To
({
uni
.
redirect
To
({
url
:
'pages/index/index'
})
}
else
{
...
...
@@ -174,12 +174,12 @@ export default {
})
}
}
else
{
uni
.
navigate
To
({
uni
.
redirect
To
({
url
:
'pages/index/index'
})
}
}
else
{
uni
.
navigateTo
({
uni
.
reLaunch
({
url
:
"pages/index/mine"
})
}
...
...
src/pages/order/complete.vue
View file @
61721a8b
...
...
@@ -320,8 +320,8 @@
return
pass
},
confirm
(){
// 检查结果窗口 确认回调
uni
.
switchTab
({
url
:
'/pages/index/order'
uni
.
reLaunch
({
url
:
'/pages/index/order
?type=3
'
})
},
closeCheckResult
(){
// 检查结果窗口取消回调
...
...
src/pages/settle/prompt.vue
View file @
61721a8b
...
...
@@ -16,9 +16,9 @@
v-for=
"(txt,index) in info.tipsArr"
:key=
"index"
>
{{
txt
}}
</text>
</view>
<view
class=
"services-view"
>
<view
v-if=
"[1, 2, 3, 4].indexOf(status) != -1"
>
<image
class=
"service-info-image"
:src=
"erweimaImage"
></image>
<view
class=
"content-info-tip"
>
长按二维码添加官方客服微信
</view>
<view
v-if=
"[1, 2, 3, 4
, 7
].indexOf(status) != -1"
>
<image
class=
"service-info-image"
:src=
"erweimaImage"
@
longtap=
"saveQrcode"
></image>
<view
class=
"content-info-tip"
>
长按二维码
保存图片,
添加官方客服微信
</view>
<view
class=
"content-info-tip"
>
及时了解审核进度
</view>
</view>
</view>
...
...
@@ -183,6 +183,25 @@
}
this
.
info
=
info
},
saveQrcode
()
{
let
that
=
this
;
uni
.
downloadFile
({
//获得二维码的临时地址
url
:
that
.
erweimaImage
,
success
:(
res
)
=>
{
if
(
res
.
statusCode
==
200
){
uni
.
saveImageToPhotosAlbum
({
filePath
:
res
.
tempFilePath
,
//传入临时地址
success
()
{
that
.
$u
.
toast
(
'保存成功!'
);
},
fail
()
{
that
.
$u
.
toast
(
'保存失败!'
);
}
})
}
}
})
},
goPage
()
{
const
url
=
this
.
info
.
url
if
(
this
.
status
==
1
||
this
.
status
==
3
||
this
.
status
==
7
)
{
...
...
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