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
01d2009c
Commit
01d2009c
authored
Jun 18, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
merge version
parents
5e061739
97650d33
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
23 deletions
+46
-23
.env.dev.js
.env.dev.js
+2
-1
.env.prod.js
.env.prod.js
+4
-3
.env.test.js
.env.test.js
+4
-3
App.vue
src/App.vue
+17
-9
mine.vue
src/pages/index/mine.vue
+12
-0
list.vue
src/pages/photo/list.vue
+7
-7
No files found.
.env.dev.js
View file @
01d2009c
...
...
@@ -10,6 +10,7 @@ const UNI_APP = {
},
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_asset_url
:
'http://deudn.c.pp.cc/'
,
argoDebugMode
:
1
argoDebugMode
:
1
,
version
:
'v1.3.6'
}
module
.
exports
=
UNI_APP
;
.env.prod.js
View file @
01d2009c
...
...
@@ -7,9 +7,10 @@ const UNI_APP = {
systemUrl
:
{
apiUrl
:
'https://system.banshouhui.com'
,
//java端域名请求头
},
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_asset_url
:
'https://qn-static.banshouhui.com'
,
argoDebugMode
:
0
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_asset_url
:
'https://qn-static.banshouhui.com'
,
argoDebugMode
:
0
,
version
:
'v1.3.6'
}
module
.
exports
=
UNI_APP
;
.env.test.js
View file @
01d2009c
...
...
@@ -7,8 +7,9 @@ const UNI_APP = {
systemUrl
:
{
apiUrl
:
'https://system.dev.banshouhui.com'
,
//java端域名请求头
},
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_asset_url
:
'https://qn-static.banshouhui.com'
,
argoDebugMode
:
1
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_asset_url
:
'https://qn-static.banshouhui.com'
,
argoDebugMode
:
1
,
version
:
'v1.3.6'
}
module
.
exports
=
UNI_APP
;
src/App.vue
View file @
01d2009c
...
...
@@ -69,16 +69,15 @@ export default {
onLaunch
:
async
function
()
{
// 应用初始化(全局只触发一次)
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"self-support"
);
// 版本更新
await
this
.
updateApp
();
this
.
getSystemInfo
();
// 系统自动登录::每次运行小程序重新获取用户信息
await
this
.
autoLogin
();
//this.deleteTempImg()
},
onShow
:
async
function
()
{
// 版本更新
await
this
.
updateApp
();
onShow
:
function
()
{
// 应用启动,或从后台进入前台显示
if
(
this
.
uploadTask
.
length
>
0
)
{
upload
.
uploadImageTask
(
this
)
...
...
@@ -167,14 +166,20 @@ export default {
},
/* 版本更新 */
async
updateApp
()
{
async
updateApp
(
type
)
{
if
(
uni
.
canIUse
(
'getUpdateManager'
))
{
// 版本更新
const
updateManager
=
uni
.
getUpdateManager
();
updateManager
.
onCheckForUpdate
(
function
(
res
)
{
// 请求完新版本信息的回调
console
.
log
(
"update"
,
res
)
if
(
!
res
.
hasUpdate
&&
type
===
1
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'当前版本已经是最新版本'
,
showCancel
:
false
})
}
});
updateManager
.
onUpdateReady
(
function
(
res
)
{
...
...
@@ -190,8 +195,9 @@ export default {
uni
.
showModal
({
title
:
'温馨提示~'
,
content
:
'本次版本更新涉及到新的功能添加,旧版本无法正常访问的哦~'
,
success
:
function
(
res
)
{
updateManager
.
applyUpdate
()
showCancel
:
false
,
success
:
function
(
result
)
{
if
(
result
.
confirm
)
updateManager
.
applyUpdate
()
}
})
}
...
...
@@ -204,12 +210,14 @@ export default {
uni
.
showModal
({
title
:
'已经有新版本了哟~'
,
content
:
'新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~'
,
showCancel
:
false
})
});
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
content
:
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
,
showCancel
:
false
})
}
},
...
...
src/pages/index/mine.vue
View file @
01d2009c
...
...
@@ -33,6 +33,7 @@
</view>
</view>
<u-modal
v-model=
"show"
:content=
"content"
show-cancel-button
@
confirm=
"logout"
></u-modal>
</view>
</
template
>
...
...
@@ -114,6 +115,13 @@
value
:
this
.
serviceTel
,
icon
:
'lxkefu.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
},
{
pathName
:
'about'
,
title
:
'版本更新'
,
value
:
process
.
uniEnv
.
version
,
icon
:
'version.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
}
]
},
...
...
@@ -154,6 +162,10 @@
},
handleClick
(
path
)
{
if
(
this
.
vuex_token
)
{
if
(
path
===
'about'
)
{
app
.
updateApp
(
1
)
return
}
this
.
$u
.
route
({
url
:
'pages/mine/'
+
path
+
'/index'
})
...
...
src/pages/photo/list.vue
View file @
01d2009c
...
...
@@ -245,24 +245,24 @@
this
.
takeStatus
=
true
},
async
closeTake
(
img
)
{
if
(
img
!==
undefined
){
if
(
img
!==
undefined
){
// 复制一份 用于保存
if
(
!
this
.
currentItemDate
.
orderImages
)
this
.
currentItemDate
.
orderImages
=
[]
let
saveList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
currentItemDate
.
orderImages
)
)
let
saveList
=
this
.
currentItemDate
.
orderImages
.
slice
(
0
)
const
files
=
img
.
map
(
v
=>
v
.
path
)
const
value
=
await
this
.
saveToTask
(
files
)
value
.
map
(
item
=>
{
value
.
forEach
(
item
=>
{
// 文件key添加保存数组中
saveList
.
push
(
item
.
key
)
// step1 添加缓存图片 到显示
this
.
currentItemDate
.
orderImages
.
push
(
item
.
path
)
})
// step2 保存图片
var
data
=
{
type
:
this
.
currentItemDate
.
type
,
images
:
Array
.
from
(
saveList
)
,
fieldsName
:
this
.
currentItemDate
.
fieldName
var
data
=
{
type
:
this
.
currentItemDate
.
type
,
images
:
saveList
,
fieldsName
:
this
.
currentItemDate
.
fieldName
}
console
.
log
(
"data"
,
data
)
this
.
$u
.
api
.
saveImage
(
data
,
this
.
orderId
).
then
((
res
)
=>
{
...
...
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