Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_wechat
Commits
830d4cef
Commit
830d4cef
authored
Jul 04, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权益会员功能调试
parent
85d9f140
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
117 additions
and
3 deletions
+117
-3
uerInfo.js
api/uerInfo.js
+9
-3
pages.json
pages.json
+7
-0
myInfo_v1.vue
pages/my/myInfo_v1.vue
+0
-0
vipCreate.vue
pages/vipCreate/vipCreate.vue
+101
-0
No files found.
api/uerInfo.js
View file @
830d4cef
import
http
from
"@/common/vmeitime-http/index.js"
import
http
from
"@/common/vmeitime-http/index.js"
//
查询充值记录
列表
//
可购买的权益
列表
export
const
record
sList
=
(
data
)
=>
{
export
const
equityMember
sList
=
(
data
)
=>
{
let
url
=
`/
recharge
/list`
let
url
=
`/
equityMembersOrderConfig
/list`
return
http
.
get
(
url
,
data
)
return
http
.
get
(
url
,
data
)
}
}
export
const
createEquityMembers
=
(
data
)
=>
{
let
url
=
`/equityMembersOrder/createEquityMembers`
return
http
.
post
(
url
,
data
)
}
pages.json
View file @
830d4cef
...
@@ -142,6 +142,13 @@
...
@@ -142,6 +142,13 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"设备控制"
"navigationBarTitleText"
:
"设备控制"
}
}
},
{
"path"
:
"pages/vipCreate/vipCreate"
,
"style"
:
{
"navigationBarTitleText"
:
"权益充值"
}
}
}
],
],
...
...
pages/my/myInfo_v1.vue
0 → 100644
View file @
830d4cef
This diff is collapsed.
Click to expand it.
pages/vipCreate/vipCreate.vue
0 → 100644
View file @
830d4cef
<
template
>
<view
class=
"vip-create"
>
<view
class=
"banner-box"
>
<image
:src=
"assetsPath+'/vip/bg.png'"
mode=
"widthFix"
></image>
<view
class=
"footer-box"
>
<button
class=
"cu-btn round bg-pink"
@
tap=
"onSubmit"
>
立即充值
</button>
</view>
</view>
</view>
</
template
>
<
script
>
import
{
equityMembersList
,
createEquityMembers
}
from
"@/api/uerInfo.js"
;
import
config
from
"@/config/index.config"
;
export
default
{
data
()
{
return
{
assetsPath
:
config
.
assetsPath
,
list
:[],
index
:
0
};
},
onLoad
()
{
this
.
onLoading
();
},
methods
:{
onLoading
(){
equityMembersList
().
then
(
res
=>
{
console
.
log
(
res
,
999999
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
rows
){
this
.
list
=
res
.
data
.
rows
}
})
},
onSubmit
(){
createEquityMembers
({
payType
:
1
,
equityMembersConfigId
:
this
.
list
[
this
.
index
].
id
}).
then
(
res
=>
{
console
.
log
(
res
,
9999
)
if
(
res
.
data
.
data
.
jsConfig
)
{
wx
.
requestPayment
({
"timeStamp"
:
res
.
data
.
data
.
jsConfig
.
timeStamp
,
"nonceStr"
:
res
.
data
.
data
.
jsConfig
.
nonceStr
,
"package"
:
res
.
data
.
data
.
jsConfig
.
packages
,
"signType"
:
res
.
data
.
data
.
jsConfig
.
signType
,
"paySign"
:
res
.
data
.
data
.
jsConfig
.
paySign
,
"success"
:
(
resp
)
=>
{
// 支付成功
uni
.
showToast
({
icon
:
"success"
,
title
:
"下单成功"
,
success
:
()
=>
{
}
})
},
"fail"
:
(
resp
)
=>
{
// 取消支付或支付失败
uni
.
showToast
({
title
:
"取消支付"
})
},
"complete"
:
(
resp
)
=>
{
// 接口调用结束的回调函数(调用成功、失败都会执行)
}
});
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.vip-create
{
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
}
.banner-box
{
position
:
relative
;
width
:
100%
;
}
image
{
width
:
100%
;
}
.footer-box
{
position
:
absolute
;
left
:
0
;
bottom
:
0
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
padding
:
30
upx
;
}
</
style
>
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