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
36c1cfa7
Commit
36c1cfa7
authored
Nov 18, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
热部署
parent
87f2b601
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
16 deletions
+92
-16
.vite/deps/package.json
+0
-2
App.vue
+65
-1
manifest.json
+4
-1
pages/orderConfirm/orderConfirm.vue
+21
-11
util/router.js
+2
-1
No files found.
.vite/deps/package.json
deleted
100644 → 0
View file @
87f2b601
{
"type"
:
"module"
}
\ No newline at end of file
App.vue
View file @
36c1cfa7
...
@@ -2,7 +2,71 @@
...
@@ -2,7 +2,71 @@
import
initApp
from
"@/util/router.js"
;
import
initApp
from
"@/util/router.js"
;
export
default
{
export
default
{
onLaunch
:
function
()
{
onLaunch
:
function
()
{
console
.
log
(
'App Launch'
)
console
.
log
(
'App Launch'
);
uni
.
downloadFile
({
url
:
'/cffpUpdate/__UNI__65C4CDC.wgt'
,
success
:
(
downloadResult
)
=>
{
if
(
downloadResult
.
statusCode
===
200
)
{
plus
.
runtime
.
install
(
downloadResult
.
tempFilePath
,
{
force
:
false
},
function
()
{
console
.
log
(
'install success...'
);
plus
.
runtime
.
restart
();
},
function
(
e
)
{
console
.
error
(
'install fail...'
);
});
}
}
,
fail
(
e
)
{
console
.
log
(
e
)
}
});
// #ifdef APP-PLUS
plus
.
runtime
.
getProperty
(
plus
.
runtime
.
appid
,
function
(
widgetInfo
)
{
uni
.
downloadFile
({
url
:
'https://mdev.zuihuibi.cn/cffpUpdate/__UNI__65C4CDC.wgt'
,
success
:
(
downloadResult
)
=>
{
if
(
downloadResult
.
statusCode
===
200
)
{
plus
.
runtime
.
install
(
downloadResult
.
tempFilePath
,
{
force
:
false
},
function
()
{
console
.
log
(
'install success...'
);
plus
.
runtime
.
restart
();
},
function
(
e
)
{
console
.
error
(
'install fail...'
);
});
}
}
});
// uni.request({
// url: 'http://www.example.com/update/',
// data: {
// version: widgetInfo.version,
// name: widgetInfo.name
// },
// success: (result) => {
// var data = result.data;
// if (data.update && data.wgtUrl) {
// uni.downloadFile({
// url: data.wgtUrl,
// success: (downloadResult) => {
// if (downloadResult.statusCode === 200) {
// plus.runtime.install(downloadResult.tempFilePath, {
// force: false
// }, function() {
// console.log('install success...');
// plus.runtime.restart();
// }, function(e) {
// console.error('install fail...');
// });
// }
// }
// });
// }
// }
// });
});
// #endif
initApp
()
initApp
()
},
},
onShow
:
function
()
{
onShow
:
function
()
{
...
...
manifest.json
View file @
36c1cfa7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"name"
:
"CFFP财富中心"
,
"name"
:
"CFFP财富中心"
,
"appid"
:
"__UNI__65C4CDC"
,
"appid"
:
"__UNI__65C4CDC"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"1.0.
0
"
,
"versionName"
:
"1.0.
6
"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
...
@@ -68,6 +68,9 @@
...
@@ -68,6 +68,9 @@
"__platform__"
:
[
"ios"
,
"android"
],
"__platform__"
:
[
"ios"
,
"android"
],
"appid"
:
"wxec09b9be6cff4eb3"
,
"appid"
:
"wxec09b9be6cff4eb3"
,
"UniversalLinks"
:
""
"UniversalLinks"
:
""
},
"alipay"
:
{
"__platform__"
:
[
"ios"
,
"android"
]
}
}
},
},
"oauth"
:
{
"oauth"
:
{
...
...
pages/orderConfirm/orderConfirm.vue
View file @
36c1cfa7
...
@@ -153,17 +153,27 @@
...
@@ -153,17 +153,27 @@
methods
:
{
methods
:
{
// 支付
// 支付
pay
(){
pay
(){
if
(
this
.
paymentMethod
===
1
){
// if(this.paymentMethod===1){
const
param
=
{
// const param = {
orderId
:
this
.
orderId
,
// orderId:this.orderId,
amount
:
this
.
totalPrice
,
// amount:this.totalPrice,
paymentMethod
:
this
.
paymentMethod
,
// paymentMethod:this.paymentMethod,
userId
:
this
.
userId
// userId:this.userId
}
// }
api
.
wxAppPay
(
param
).
then
(
res
=>
{
// api.wxAppPay(param).then(res=>{
console
.
log
(
res
)
// console.log(res)
})
// })
}
// }
uni
.
requestPayment
({
provider
:
'alipay'
,
orderInfo
:
'alipay_root_cert_sn=687b59193f3f462dd5336e5abf83c5d8_02941eef3187dddf3d3b83462e1dfcf6&alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_cert_sn=f974d178cb6bd0cd2c4e3dca07825e92&app_id=2021003161624312&biz_content=%7B%22out_trade_no%22%3A%22YD2022101000001%22%2C%22product_code%22%3A%22FACE_TO_FACE_PAYMENT%22%2C%22subject%22%3A%22%E6%88%91%E6%98%AF%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%22%2C%22total_amount%22%3A%220.00%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay¬ify_url=https%3A%2F%2Fmdev.zuihuibi.cn%2Fapi%2Fpay%2FwxPayNotify&sign=RyxnIM9pBC4V4sfFXZc2ksb0nwRWtbJjQQ%2BzNOJ083AA0rl%2BP206AWerCJatS2D%2BWUjarSc8nZXfqbJ9CX0xZwWoDv6QelM5SOZmzcnPUyh4i3H8K6tj6fo2eFbv%2Bn%2F7Mep%2BfXmepAfArzzxedoSLnwIN%2Bp%2Fsiw6c%2Fkg4asBIoT4g%2FRHjdgMuycm%2B5zOGOGvzzGA2DOuD%2F8mnsnGSgu0gRGMXY9PfPNPULRKPosHw4%2Bc%2BkWzcKvy2j7izUGcGscixNdtbwjQVrfS2jrsVoVc6OCmKGGJEklIRG%2F3SWnyoIPCwO42KAbJOtb6vxZ0C8a7wvo%2B%2BBtRjZ2%2Fqv7SGZexWA%3D%3D&sign_type=RSA2×tamp=2022-11-18+09%3A32%3A58&version=1.0'
,
//支付宝订单数据
success
:
function
(
res
)
{
console
.
log
(
'success:'
+
JSON
.
stringify
(
res
));
},
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
}
});
},
},
// 积分查询
// 积分查询
queryByUserIdFortuneStatistic
(){
queryByUserIdFortuneStatistic
(){
...
...
util/router.js
View file @
36c1cfa7
...
@@ -42,4 +42,4 @@ function hasPermission (url) {
...
@@ -42,4 +42,4 @@ function hasPermission (url) {
return
true
return
true
}
}
return
false
return
false
}
}
\ No newline at end of file
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