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
9e57d124
Commit
9e57d124
authored
Feb 23, 2023
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最新代码
parent
0b6c31f5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
38 deletions
+13
-38
App.vue
+1
-26
api/api.ts
+1
-1
components/login/login.vue
+1
-1
environments/environment.ts
+7
-7
manifest.json
+2
-2
pages/personalCenter/accountoperation/aboutcffp.vue
+1
-1
No files found.
App.vue
View file @
9e57d124
...
...
@@ -34,8 +34,7 @@
systemType
:
systemInfo
.
osName
.
toLowerCase
()
===
'ios'
?
2
:
1
},
success
:
(
result
)
=>
{
console
.
log
(
wgtinfo
)
const
data
=
result
.
data
.
data
[
'appVersionInfo'
];
const
data
=
result
.
data
.
data
[
'appVersionInfo'
];
if
(
data
.
status
==
1
&&
data
.
isForceUpdate
&&
data
.
wgtUrl
)
{
uni
.
downloadFile
({
url
:
`
${
baseURL
}${
data
.
wgtUrl
}
`
,
...
...
@@ -61,10 +60,6 @@
// #endif
initApp
()
// this.checkArguments();
// plus.globalEvent.addEventListener('newintent', e => {
// this.checkArguments(); // 检测启动参数
// });
},
onShow
:
function
()
{
3
,
console
.
log
(
'App Show'
)
...
...
@@ -73,26 +68,6 @@
console
.
log
(
'App Hide'
)
},
methods
:{
checkArguments
()
{
console
.
log
(
'runtime.launcher: '
+
plus
.
runtime
.
launcher
);
// 判断APP打开方式 miniProgram为微信小程序打开
// if (plus.runtime.launcher == 'miniProgram') {
// plus.runtime.argumrnts为打开时APP传的值(
<
wx
-
open
-
launch
-
app
>
中的
extinfo
),
可以传字符串通过符号截取判断类型
console
.
log
(
plus
.
runtime
.
arguments
);
if
(
plus
.
runtime
.
arguments
)
{
//我截取了字符串,判断是商品并且根据ID跳转到商品详情页
var
str
=
plus
.
runtime
.
arguments
;
var
arr
=
str
.
split
(
'/'
);
var
id
=
arr
[
1
];
if
(
arr
[
0
]
==
'goods'
)
{
//跳转到商品详情页,注意pages前面的"/"不要忘记,否则会造成无法跳转。使用navigateTo跳转到页面会有返回按钮,点击返回到首页
uni
.
switchTab
({
url
:
'pages/index/index'
});
}
}
// }
}
}
}
</
script
>
...
...
api/api.ts
View file @
9e57d124
...
...
@@ -47,7 +47,7 @@ export default {
},
//公告列表
announcementQuery
(
params
){
return
request
(
`
${
baseURL
}
/ydapi
/market/announcementQuery`
,
"POST"
,
params
)
return
request
(
`
${
apiURL
}
/market/announcementQuery`
,
"POST"
,
params
)
},
//消息列表
querySystemMessage
(
params
){
...
...
components/login/login.vue
View file @
9e57d124
...
...
@@ -5,7 +5,7 @@
</view>
<view
class=
"logo"
>
<image
:src=
"imgSrc"
alt=
"logo"
srcset=
""
class=
"iconBox"
mode=
"widthFix"
></image>
<view>
欢迎登录使用CFFP
测测---
</view>
<view>
欢迎登录使用CFFP
财富中心
</view>
</view>
<view
class=
"content"
>
<view
class=
"login_title"
>
...
...
environments/environment.ts
View file @
9e57d124
const
dev
=
{
base_url
:
'http
s://mdev.zuihuibi.cn
'
,
api_url
:
'http
s://mdev.zuihuibi.cn
/api'
,
cffp_url
:
'http
s://mdev.zuihuibi.cn
/api/cffp'
base_url
:
'http
://106.15.89.254
'
,
api_url
:
'http
://106.15.89.254
/api'
,
cffp_url
:
'http
://106.15.89.254
/api/cffp'
}
const
stage
=
{
base_url
:
'https://mstage.zuihuibi.cn'
,
...
...
@@ -9,9 +9,9 @@ const stage = {
cffp_url
:
'https://mstage.zuihuibi.cn/api/cffp'
}
const
prod
=
{
base_url
:
'https://m.
zuihuibi
.cn'
,
api_url
:
'https://m.
zuihuibi
.cn/api'
,
cffp_url
:
'https://m.
zuihuibi
.cn/api/cffp'
base_url
:
'https://m.
cffp.org
.cn'
,
api_url
:
'https://m.
cffp.org
.cn/api'
,
cffp_url
:
'https://m.
cffp.org
.cn/api/cffp'
}
const
config
=
{
...
...
@@ -19,7 +19,7 @@ const config = {
stage
,
prod
}
let
env
=
'
dev
'
;
let
env
=
'
prod
'
;
// if (process.env.NODE_ENV === 'development') {
// env = 'dev';
// }else if (process.env.NODE_ENV === 'production') {
...
...
manifest.json
View file @
9e57d124
...
...
@@ -2,7 +2,7 @@
"name"
:
"CFFP财富中心"
,
"appid"
:
"__UNI__ED34740"
,
"description"
:
""
,
"versionCode"
:
10
9
,
"versionCode"
:
10
0
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
...
...
@@ -202,5 +202,5 @@
}
},
"_spaceID"
:
"mp-68e17e23-e517-4839-8210-27480303cc51"
,
"versionName"
:
"1.1.
17
"
"versionName"
:
"1.1.
0
"
}
pages/personalCenter/accountoperation/aboutcffp.vue
View file @
9e57d124
...
...
@@ -7,7 +7,7 @@
</view>
<view
class=
""
style=
"text-align: center;"
>
<p
style=
"font-size: 22px;font-weight: 500;"
>
CFFP财富中心
</p>
<p
style=
"margin-top: 20rpx;"
>
V1.0
.21
</p>
<p
style=
"margin-top: 20rpx;"
>
V1.0
</p>
</view>
</view>
<view
class=
"hand"
@
click=
"latestversion()"
>
...
...
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