Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
3b24dbae
Commit
3b24dbae
authored
Dec 03, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用代码
parent
368b0c70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
67 deletions
+0
-67
pages/personalCenter/user-information.vue
+0
-67
No files found.
pages/personalCenter/user-information.vue
View file @
3b24dbae
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
</view>
</view>
<view
class=
"footer"
>
<view
class=
"footer"
>
<button
class=
"user-button"
@
tap=
"submitinfo"
>
保存
</button>
<button
class=
"user-button"
@
tap=
"submitinfo"
>
保存
</button>
<button
class=
"user-button"
@
tap=
"awaken"
>
唤醒App
</button>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -49,74 +48,8 @@
...
@@ -49,74 +48,8 @@
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
optionForm
=
JSON
.
parse
(
options
.
customerBasicInfo
)
this
.
optionForm
=
JSON
.
parse
(
options
.
customerBasicInfo
)
console
.
log
(
this
.
optionForm
,
7777
)
},
},
methods
:
{
methods
:
{
awaken
()
{
let
u
=
navigator
.
userAgent
;
var
isWeixin
=
u
.
toLowerCase
().
indexOf
(
'micromessenger'
)
!==
-
1
;
// 微信内
if
(
isWeixin
)
{
alert
(
'请在浏览器中打开'
)
return
false
;
}
const
platform
=
uni
.
getSystemInfoSync
().
platform
;
if
(
platform
===
'ios'
)
{
this
.
ios
()
}
if
(
platform
===
'android'
)
{
this
.
android
()
}
},
ios
()
{
uni
.
showLoading
({
title
:
'加载中...'
});
const
currentTime
=
+
(
new
Date
());
window
.
location
.
href
=
"cffpapp"
;
//找ios工程师要 UrlSchemes
//启动间隔20ms运行的定时器,并检测累计消耗时间是否超过3000ms,超过则结束
let
_count
=
0
,
timer
;
timer
=
setInterval
(
function
()
{
_count
++
;
const
endTime
=
+
(
new
Date
())
-
currentTime
;
if
(
_count
>=
100
||
endTime
>
3000
)
{
uni
.
hideLoading
()
clearInterval
(
timer
);
let
hidden
=
window
.
document
.
hidden
||
window
.
document
.
mozHidden
||
window
.
document
.
msHidden
||
window
.
document
.
webkitHidden
;
if
(
typeof
hidden
==
"undefined"
||
hidden
==
false
)
{
//App store下载地址
window
.
location
.
href
=
"https://www.baidu.com"
;
//下载地址 可以直接跳转到appstore的
}
}
},
20
);
},
android
()
{
uni
.
showLoading
({
title
:
'加载中...'
});
const
currentTime
=
new
Date
().
getTime
();
window
.
location
.
href
=
"cffpapp://"
;
//找android工程师要 UrlSchemes
// 启动间隔20ms运行的定时器,并检测累计消耗时间是否超过2000ms,超时则结束
let
_count
=
0
,
timer
;
timer
=
setInterval
(()
=>
{
_count
++
;
const
endTime
=
new
Date
().
getTime
()
-
currentTime
;
if
(
_count
>=
200
||
endTime
>
5000
)
{
uni
.
hideLoading
()
clearInterval
(
timer
);
let
hidden
=
window
.
document
.
hidden
||
window
.
document
.
mozHidden
||
window
.
document
.
msHidden
||
window
.
document
.
webkitHidden
;
if
(
typeof
hidden
==
"undefined"
||
hidden
==
false
)
{
//App store下载地址
window
.
location
.
href
=
"https://www.baidu.com"
;
//下载地址
}
}
},
20
)
},
uploadAvatar
(
event
)
{
uploadAvatar
(
event
)
{
let
that
=
this
;
let
that
=
this
;
CommonUpload
(
that
.
dataForm
).
then
(
res
=>
{
CommonUpload
(
that
.
dataForm
).
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