Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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
android
android_vedio
Commits
03e5e97e
Commit
03e5e97e
authored
Aug 28, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
9481a1f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
72 deletions
+75
-72
VipActivity.kt
...n/java/com/duben/happyplaylet/ui/activitys/VipActivity.kt
+74
-71
dialog_powe2.xml
video/app/src/main/res/layout/dialog_powe2.xml
+1
-1
No files found.
video/app/src/main/java/com/duben/happyplaylet/ui/activitys/VipActivity.kt
View file @
03e5e97e
...
...
@@ -249,6 +249,9 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
openAlipayApp
(
vipBean
.
payToModel2SecondAlipayAppid
)
}
}
3
->
{
openWxApp
()
}
}
}
}
...
...
@@ -812,12 +815,12 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
private
fun
openWxApp
()
{
// AppConfig.enterAlipay = true
try
{
val
appId
=
"wxdafe24fe177a5661"
// 填移动应用(App)的 AppId,非小程序的 AppID
val
appId
=
wxAppId
// 填移动应用(App)的 AppId,非小程序的 AppID
val
api
:
IWXAPI
=
WXAPIFactory
.
createWXAPI
(
context
,
appId
)
val
req
=
WXLaunchMiniProgram
.
Req
()
req
.
userName
=
"gh_439c32026e1b"
// 填小程序原始id
req
.
path
=
"/pages/loading?testApp1=mcg1&testApp2=mcg2"
////拉起小程序页面的可带参路径,不填默认拉起小程序首页,对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。
"/pages/loading?"
+
"app_uid="
+
UserManager
.
getInstance
().
userID
+
"&package_app="
+
Constant
.
MINTS_PKG_NAME
+
"&source_type=android"
req
.
miniprogramType
=
WXLaunchMiniProgram
.
Req
.
MINIPTOGRAM_TYPE_RELEASE
// 可选打开 开发版,体验版和正式版
api
.
sendReq
(
req
)
...
...
video/app/src/main/res/layout/dialog_powe2.xml
View file @
03e5e97e
...
...
@@ -17,7 +17,7 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"20dp"
android:text=
"欢迎使用
爱都安居
"
android:text=
"欢迎使用"
android:textColor=
"@color/black"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
...
...
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