Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
b4905f9d
Commit
b4905f9d
authored
Mar 07, 2024
by
14699
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改
parent
29fe67b2
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
531 additions
and
491 deletions
+531
-491
README.md
README.md
+13
-13
prod.env.js
config/prod.env.js
+1
-1
android.json
plugins/android.json
+0
-3
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+194
-152
contract-new.vue
src/pages/contractSigning/contract-new.vue
+4
-4
contract-signing.vue
src/pages/contractSigning/contract-signing.vue
+5
-2
my-info.vue
src/pages/myInfo/my-info.vue
+0
-1
myBindUser.vue
src/pages/myInfo/myBindUser.vue
+282
-283
hlsUtil.js
src/scripts/hlsUtil.js
+32
-32
No files found.
README.md
View file @
b4905f9d
...
@@ -103,6 +103,6 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
...
@@ -103,6 +103,6 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
# 热更新操作步骤
# 热更新操作步骤
1.
修改对应环境的版本号
1.
修改对应环境的版本号
2.
执行npm run build:对应环境
2.
执行npm run build:对应环境
, 重新移除添加android平台 cordova platform rm android , cordova platform add android@6.3.0
3.
将压缩后的www文件夹里的文件覆盖到服务器上下载下来的对应文件
3.
将压缩后的www文件夹里的文件覆盖到服务器上下载下来的对应文件
4.
去对应的业务系统环境内修改相应的版本号
4.
去对应的业务系统环境内修改相应的版本号
config/prod.env.js
View file @
b4905f9d
...
@@ -11,5 +11,5 @@ module.exports = {
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://210.12.156.64:9090/r/api"'
,
ocrPath
:
'"http://210.12.156.64:9090/r/api"'
,
fileUploadSvcPath
:
'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
fileUploadSvcPath
:
'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"3.7.
3
"'
currentVersion
:
'"3.7.
4
"'
}
}
plugins/android.json
View file @
b4905f9d
...
@@ -59,9 +59,6 @@
...
@@ -59,9 +59,6 @@
}
}
},
},
"dependent_plugins"
:
{
"dependent_plugins"
:
{
"cordova-plugin-compat"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-contacts"
:
{
"cordova-plugin-contacts"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
"PACKAGE_NAME"
:
"com.hls.app"
},
},
...
...
src/pages/contractSigning/contract-detail.vue
View file @
b4905f9d
This diff is collapsed.
Click to expand it.
src/pages/contractSigning/contract-new.vue
View file @
b4905f9d
...
@@ -971,10 +971,10 @@ export default {
...
@@ -971,10 +971,10 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
approverBpList
=
res
.
lists
.
map
(
item
=>
{
vm
.
approverBpList
=
res
.
lists
.
map
(
item
=>
{
if
(
item
.
bp_name
===
'李燕'
)
{
//
if (item.bp_name === '李燕') {
vm
.
$set
(
vm
.
baseInfo
,
'zm_approver_bp'
,
item
.
bp_id
)
//
vm.$set(vm.baseInfo, 'zm_approver_bp', item.bp_id)
vm
.
$set
(
vm
.
baseInfo
,
'zm_approver_bp_n'
,
item
.
bp_name
)
//
vm.$set(vm.baseInfo, 'zm_approver_bp_n', item.bp_name)
}
//
}
return
{
return
{
code
:
item
.
bp_id
,
code
:
item
.
bp_id
,
code_name
:
item
.
bp_name
,
code_name
:
item
.
bp_name
,
...
...
src/pages/contractSigning/contract-signing.vue
View file @
b4905f9d
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
</h-header>
</h-header>
<div
class=
"tab-style has-header"
>
<div
class=
"tab-style has-header"
>
<div
:class=
"
{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1; isRadio = false">
<div
:class=
"
{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1; isRadio = false">
<img
:src=
"num === 1 ? check1 : uncheck1"
/
>
<img
:src=
"num === 1 ? check1 : uncheck1"
>
<span>
未审核方案
</span>
<span>
未审核方案
</span>
</div>
</div>
<div
:class=
"
{ 'done': num === 2, 'undone': num !== 2 }" @click="num = 2; isRadio = false">
<div
:class=
"
{ 'done': num === 2, 'undone': num !== 2 }" @click="num = 2; isRadio = false">
<img
:src=
"num === 2 ? check2 : uncheck2"
/
>
<img
:src=
"num === 2 ? check2 : uncheck2"
>
<span>
已审核方案
</span>
<span>
已审核方案
</span>
</div>
</div>
</div>
</div>
...
@@ -443,6 +443,8 @@ export default {
...
@@ -443,6 +443,8 @@ export default {
},
},
goDetails
(
item
)
{
goDetails
(
item
)
{
console
.
log
(
'点击对象:'
,
item
)
console
.
log
(
'是否该只读:'
,
this
.
num
)
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'ContractDetail'
,
name
:
'ContractDetail'
,
params
:
{
params
:
{
...
@@ -450,6 +452,7 @@ export default {
...
@@ -450,6 +452,7 @@ export default {
user_bp_type
:
this
.
user_bp_type
,
user_bp_type
:
this
.
user_bp_type
,
num
:
this
.
num
,
num
:
this
.
num
,
check_id
:
item
.
check_id
,
check_id
:
item
.
check_id
,
readOnly
:
this
.
num
===
1
?
'N'
:
'Y'
,
},
},
})
})
},
},
...
...
src/pages/myInfo/my-info.vue
View file @
b4905f9d
...
@@ -825,7 +825,6 @@ export default {
...
@@ -825,7 +825,6 @@ export default {
obj.picture = hlsUtil.convertImageUrl(imgUrl[0])
obj.picture = hlsUtil.convertImageUrl(imgUrl[0])
obj.filePath = imgUrl[0]
obj.filePath = imgUrl[0]
vm.upLoadObj = obj.picture
vm.upLoadObj = obj.picture
console.log('$$$$$$$$$$$$$$$1' + imgUrl[0])
// 拍完一张立马执行保存图片逻辑
// 拍完一张立马执行保存图片逻辑
vm.save_picture(obj)
vm.save_picture(obj)
}
}
...
...
src/pages/myInfo/myBindUser.vue
View file @
b4905f9d
This diff is collapsed.
Click to expand it.
src/scripts/hlsUtil.js
View file @
b4905f9d
...
@@ -310,9 +310,9 @@ export default {
...
@@ -310,9 +310,9 @@ export default {
//转换iOS下的webview url
//转换iOS下的webview url
convertImageUrl
:
function
(
url
)
{
convertImageUrl
:
function
(
url
)
{
if
(
vum
.
Platform
.
isAndroid
())
{
if
(
vum
.
Platform
.
isAndroid
())
{
return
url
return
url
}
else
if
(
vum
.
Platform
.
isIOS
())
{
}
else
if
(
vum
.
Platform
.
isIOS
())
{
return
window
.
Ionic
.
WebView
.
convertFileSrc
(
url
)
return
window
.
Ionic
.
WebView
.
convertFileSrc
(
url
)
}
}
},
},
...
@@ -320,16 +320,16 @@ export default {
...
@@ -320,16 +320,16 @@ export default {
/**
/**
* 录制视频
* 录制视频
*/
*/
captureVideo
:
function
(
onSuccess
,
onError
)
{
captureVideo
:
function
(
onSuccess
,
onError
)
{
var
option
=
{
var
option
=
{
//本设置录制的视频尺寸为10s 4-5mb,清晰度较好
//本设置录制的视频尺寸为10s 4-5mb,清晰度较好
duration
:
10
*
1000
,
//10s
duration
:
10
*
1000
,
//10s
cameraDirection
:
window
.
MediaCapture
.
CAMERA_FRONT
cameraDirection
:
window
.
MediaCapture
.
CAMERA_FRONT
}
}
if
(
typeof
onSuccess
===
'function'
&&
typeof
onError
===
'function'
)
{
if
(
typeof
onSuccess
===
'function'
&&
typeof
onError
===
'function'
)
{
navigator
.
device
.
capture
.
captureVideo
(
onSuccess
,
onError
,
option
);
navigator
.
device
.
capture
.
captureVideo
(
onSuccess
,
onError
,
option
);
}
else
{
}
else
{
window
.
hlsPopup
.
showLongBottom
(
'参数有误!'
)
window
.
hlsPopup
.
showLongBottom
(
'参数有误!'
)
}
}
},
},
...
@@ -380,11 +380,11 @@ export default {
...
@@ -380,11 +380,11 @@ export default {
}
}
}
}
function
uploadSuccess
(
result
)
{
function
uploadSuccess
(
result
)
{
success
(
JSON
.
parse
(
result
.
response
))
success
(
JSON
.
parse
(
result
.
response
))
}
}
function
fileError
()
{
function
fileError
()
{
window
.
hlsPopup
.
hideLoading
()
window
.
hlsPopup
.
hideLoading
()
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error target '
+
error
.
target
)
console
.
log
(
'upload error target '
+
error
.
target
)
...
@@ -398,9 +398,9 @@ export default {
...
@@ -398,9 +398,9 @@ export default {
* @param success
* @param success
*/
*/
fileUploadSvc
:
function
(
file
,
success
)
{
fileUploadSvc
:
function
(
file
,
success
)
{
console
.
log
(
'file'
,
file
)
console
.
log
(
'file'
,
file
)
if
(
file
.
pkvalue
&&
file
.
source_type
)
{
if
(
file
.
pkvalue
&&
file
.
source_type
)
{
console
.
log
(
'file1'
,
file
)
console
.
log
(
'file1'
,
file
)
let
path
=
file
.
filePath
let
path
=
file
.
filePath
var
name
=
path
.
substr
(
path
.
lastIndexOf
(
'/'
)
+
1
)
var
name
=
path
.
substr
(
path
.
lastIndexOf
(
'/'
)
+
1
)
let
url
=
encodeURI
(
process
.
env
.
fileUploadSvcPath
+
'attachment_upload'
)
let
url
=
encodeURI
(
process
.
env
.
fileUploadSvcPath
+
'attachment_upload'
)
...
@@ -417,19 +417,19 @@ export default {
...
@@ -417,19 +417,19 @@ export default {
'access_token'
:
window
.
localStorage
.
access_token
,
'access_token'
:
window
.
localStorage
.
access_token
,
'filePath'
:
path
,
'filePath'
:
path
,
}
}
if
(
file
.
fileName
)
{
if
(
file
.
fileName
)
{
options
.
fileName
=
encodeURI
(
file
.
fileName
)
+
name
.
substr
(
name
.
lastIndexOf
(
'.'
))
options
.
fileName
=
encodeURI
(
file
.
fileName
)
+
name
.
substr
(
name
.
lastIndexOf
(
'.'
))
}
}
else
{
else
{
options
.
fileName
=
name
options
.
fileName
=
name
}
}
options
.
mimeType
=
'multipart/form-date'
options
.
mimeType
=
'multipart/form-date'
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
result
)
{
function
uploadSuccess
(
result
)
{
success
(
JSON
.
parse
(
result
.
response
))
success
(
JSON
.
parse
(
result
.
response
))
}
}
function
fileError
()
{
function
fileError
()
{
window
.
hlsPopup
.
hideLoading
()
window
.
hlsPopup
.
hideLoading
()
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error target '
+
error
.
target
)
console
.
log
(
'upload error target '
+
error
.
target
)
...
@@ -437,8 +437,8 @@ export default {
...
@@ -437,8 +437,8 @@ export default {
ft
.
upload
(
path
,
url
,
uploadSuccess
,
fileError
,
options
)
ft
.
upload
(
path
,
url
,
uploadSuccess
,
fileError
,
options
)
}
}
else
{
else
{
console
.
log
(
'file2'
,
file
)
console
.
log
(
'file2'
,
file
)
hlsPopup
.
showLongCenter
(
'上传失败!'
)
hlsPopup
.
showLongCenter
(
'上传失败!'
)
}
}
},
},
...
@@ -464,12 +464,12 @@ export default {
...
@@ -464,12 +464,12 @@ export default {
options
.
mimeType
=
'multipart/form-date'
options
.
mimeType
=
'multipart/form-date'
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
message
)
{
function
uploadSuccess
(
message
)
{
let
res
=
JSON
.
parse
(
message
.
response
)
let
res
=
JSON
.
parse
(
message
.
response
)
success
(
res
)
success
(
res
)
}
}
function
error
(
e
)
{
function
error
(
e
)
{
this
.
hlsPopup
.
showLongCenter
(
'汉王识别失败'
)
this
.
hlsPopup
.
showLongCenter
(
'汉王识别失败'
)
}
}
...
@@ -496,12 +496,12 @@ export default {
...
@@ -496,12 +496,12 @@ export default {
options
.
fileName
=
name
options
.
fileName
=
name
options
.
mimeType
=
'multipart/form-date'
options
.
mimeType
=
'multipart/form-date'
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
message
)
{
function
uploadSuccess
(
message
)
{
let
res
=
JSON
.
parse
(
message
.
response
)
let
res
=
JSON
.
parse
(
message
.
response
)
console
.
log
(
JSON
.
stringify
(
res
,
''
,
2
))
console
.
log
(
JSON
.
stringify
(
res
,
''
,
2
))
success
(
res
)
success
(
res
)
}
}
function
error
(
e
)
{
function
error
(
e
)
{
this
.
hlsPopup
.
showLongCenter
(
'识别失败'
)
this
.
hlsPopup
.
showLongCenter
(
'识别失败'
)
}
}
ft
.
upload
(
path
,
url
,
uploadSuccess
,
error
,
options
)
ft
.
upload
(
path
,
url
,
uploadSuccess
,
error
,
options
)
...
@@ -529,12 +529,12 @@ export default {
...
@@ -529,12 +529,12 @@ export default {
}
}
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
message
)
{
function
uploadSuccess
(
message
)
{
let
res
=
JSON
.
parse
(
message
.
response
)
let
res
=
JSON
.
parse
(
message
.
response
)
success
(
res
)
success
(
res
)
}
}
function
error
(
e
)
{
function
error
(
e
)
{
this
.
hlsPopup
.
showLongCenter
(
'识别失败'
)
this
.
hlsPopup
.
showLongCenter
(
'识别失败'
)
}
}
...
@@ -562,12 +562,12 @@ export default {
...
@@ -562,12 +562,12 @@ export default {
}
}
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
message
)
{
function
uploadSuccess
(
message
)
{
let
res
=
JSON
.
parse
(
message
.
response
)
let
res
=
JSON
.
parse
(
message
.
response
)
success
(
res
)
success
(
res
)
}
}
function
error
(
e
)
{
function
error
(
e
)
{
console
.
log
(
'识别失败'
)
console
.
log
(
'识别失败'
)
hlsPopup
.
showLongCenter
(
'识别失败'
)
hlsPopup
.
showLongCenter
(
'识别失败'
)
}
}
...
@@ -800,7 +800,7 @@ export default {
...
@@ -800,7 +800,7 @@ export default {
})
})
if
(
!
positive
||
!
negative
)
throw
new
Error
(
'IRR requires at least one positive value and one negative value'
)
if
(
!
positive
||
!
negative
)
throw
new
Error
(
'IRR requires at least one positive value and one negative value'
)
function
npv
(
rate
)
{
function
npv
(
rate
)
{
numberOfTries
++
numberOfTries
++
if
(
numberOfTries
>
1000
)
{
if
(
numberOfTries
>
1000
)
{
throw
new
Error
(
'IRR can
\'
t find a result'
)
throw
new
Error
(
'IRR can
\'
t find a result'
)
...
...
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