Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_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
uniapp_vedio
Commits
d8f2e1fd
Commit
d8f2e1fd
authored
Jul 26, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
5b8deb53
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
249 additions
and
243 deletions
+249
-243
apiRequest.js
vedio/common/utils/apiRequest.js
+1
-1
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+2
-2
manifest.json
vedio/manifest.json
+235
-233
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+11
-7
No files found.
vedio/common/utils/apiRequest.js
View file @
d8f2e1fd
...
...
@@ -92,7 +92,7 @@ let apiRequest = function({
option
.
data
=
data
;
}
}
console
.
log
(
'123'
)
//
console.log('123')
// token处理
let
token
=
readToken
();
if
(
!
checkTokenWhiteList
(
token
,
url
,
urlModule
))
{
...
...
vedio/components/coin-popup/coin-popup.vue
View file @
d8f2e1fd
...
...
@@ -236,8 +236,8 @@
let
that
=
this
;
// 发起微信签约
wx
.
navigateToMiniProgram
({
appId
:
wxData
.
appId
,
path
:
'pages/
loading
'
,
appId
:
"wxbd687630cd02ce1d"
,
path
:
'pages/
index/index
'
,
extraData
:
wxData
.
params
,
success
(
res
)
{
console
.
log
(
"wxSign suc="
,
res
);
...
...
vedio/manifest.json
View file @
d8f2e1fd
{
"name"
:
"reader"
,
"appid"
:
"__UNI__F7F50FF"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
1000
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
"compatible"
:
{
"ignoreVersion"
:
true
//true表示忽略版本检查提示框,HBuilderX
1.9
.
0
及以上版本支持
},
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
false
,
"autoclose"
:
true
,
"delay"
:
0
},
/*
模块配置
*/
"modules"
:
{
"Payment"
:
{}
},
/*
应用发布信息
*/
"distribute"
:
{
/*
android打包配置
*/
"android"
:
{
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.INTERNET
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MODIFY_AUDIO_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_EXTERNAL_STORAGE
\"
/>"
],
"permissionExternalStorage"
:
{
"request"
:
"none"
,
"prompt"
:
"应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
},
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
],
"autoSdkPermissions"
:
true
,
"schemes"
:
""
},
/*
ios打包配置
*/
"ios"
:
{
"idfa"
:
false
,
"privacyDescription"
:
{
"NSPhotoLibraryUsageDescription"
:
"您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。"
,
"NSCameraUsageDescription"
:
"您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。"
,
"NSPhotoLibraryAddUsageDescription"
:
"用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。"
},
"urltypes"
:
"twofiveone"
},
/*
SDK配置
*/
"sdkConfigs"
:
{
"share"
:
{
"weixin"
:
{
"appid"
:
""
,
"UniversalLinks"
:
""
}
},
"oauth"
:
{},
"ad"
:
{},
"payment"
:
{
"weixin"
:
{
"__platform__"
:
[
"ios"
,
"android"
],
"appid"
:
"wxaa277a94b5a33c63"
,
"UniversalLinks"
:
""
}
},
"speech"
:
{}
},
"icons"
:
{
"android"
:
{
"hdpi"
:
""
,
"xhdpi"
:
""
,
"xxhdpi"
:
""
,
"xxxhdpi"
:
""
},
"ios"
:
{
"appstore"
:
""
,
"ipad"
:
{
"app"
:
""
,
"app@2x"
:
""
,
"notification"
:
""
,
"notification@2x"
:
""
,
"proapp@2x"
:
""
,
"settings"
:
""
,
"settings@2x"
:
""
,
"spotlight"
:
""
,
"spotlight@2x"
:
""
},
"iphone"
:
{
"app@2x"
:
""
,
"app@3x"
:
""
,
"notification@2x"
:
""
,
"notification@3x"
:
""
,
"settings@2x"
:
""
,
"settings@3x"
:
""
,
"spotlight@2x"
:
""
,
"spotlight@3x"
:
""
}
}
},
"splashscreen"
:
{
"androidStyle"
:
"default"
,
"useOriginalMsgbox"
:
true
,
"alwaysShowBeforeRender"
:
false
,
"autoclose"
:
false
,
"waiting"
:
false
,
"delay"
:
0
,
"iosStyle"
:
"common"
,
"android"
:
{
"hdpi"
:
""
,
"xhdpi"
:
""
,
"xxhdpi"
:
""
},
"ios"
:
{
"storyboard"
:
"unpackage/res/splash/LaunchScreen.storyboard_.zip"
}
}
},
"uniStatistics"
:
{
"enable"
:
true
}
},
/*
快应用特有相关
*/
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx17fe9416bd3f1244"
,
"setting"
:
{
"urlCheck"
:
false
,
"es6"
:
false
,
"postcss"
:
true
,
"minified"
:
true
},
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
true
},
"optimization"
:
{
"subPackages"
:
true
},
"lazyCodeLoading"
:
"requiredComponents"
//
依赖按需注入
},
"mp-alipay"
:
{
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-baidu"
:
{
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-toutiao"
:
{
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
false
},
"appid"
:
""
},
"uniStatistics"
:
{
"enable"
:
false
,
"version"
:
"2"
},
"vueVersion"
:
"2"
,
"h5"
:
{
"optimization"
:
{
"treeShaking"
:
{
"enable"
:
true
}
},
"title"
:
"小说"
,
"router"
:
{
"base"
:
"./"
},
"uniStatistics"
:
{
"enable"
:
true
}
},
"mp-jd"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-kuaishou"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-lark"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-qq"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"quickapp-webview-huawei"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"quickapp-webview-union"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
}
}
//
"devServer"
:
{
//
"proxy"
:
{
//
"/https://nft-web.tech-mints.com"
:
{
//
"target"
:
"https://nft-web.tech-mints.com"
,
//
"changeOrgin"
:
true
,
//是否跨域
//
"seure"
:
true
,
//是否支持https协议的代理
//
"pathRewrite"
:
{
//
"^/https://nft-web.tech-mints.com"
:
"/"
,
//
"^/zs-ui/hap/https://nft-web.tech-mints.com"
:
"/"
//
}
//
}
//
},
//
"https"
:
true
//
}
{
"name"
:
"reader"
,
"appid"
:
"__UNI__F7F50FF"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
1000
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
"compatible"
:
{
"ignoreVersion"
:
true
//true表示忽略版本检查提示框,HBuilderX
1.9
.
0
及以上版本支持
},
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
false
,
"autoclose"
:
true
,
"delay"
:
0
},
/*
模块配置
*/
"modules"
:
{
"Payment"
:
{}
},
/*
应用发布信息
*/
"distribute"
:
{
/*
android打包配置
*/
"android"
:
{
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.INTERNET
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MODIFY_AUDIO_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_EXTERNAL_STORAGE
\"
/>"
],
"permissionExternalStorage"
:
{
"request"
:
"none"
,
"prompt"
:
"应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
},
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
],
"autoSdkPermissions"
:
true
,
"schemes"
:
""
},
/*
ios打包配置
*/
"ios"
:
{
"idfa"
:
false
,
"privacyDescription"
:
{
"NSPhotoLibraryUsageDescription"
:
"您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。"
,
"NSCameraUsageDescription"
:
"您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。"
,
"NSPhotoLibraryAddUsageDescription"
:
"用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。"
},
"urltypes"
:
"twofiveone"
},
/*
SDK配置
*/
"sdkConfigs"
:
{
"share"
:
{
"weixin"
:
{
"appid"
:
""
,
"UniversalLinks"
:
""
}
},
"oauth"
:
{},
"ad"
:
{},
"payment"
:
{
"weixin"
:
{
"__platform__"
:
[
"ios"
,
"android"
],
"appid"
:
"wxaa277a94b5a33c63"
,
"UniversalLinks"
:
""
}
},
"speech"
:
{}
},
"icons"
:
{
"android"
:
{
"hdpi"
:
""
,
"xhdpi"
:
""
,
"xxhdpi"
:
""
,
"xxxhdpi"
:
""
},
"ios"
:
{
"appstore"
:
""
,
"ipad"
:
{
"app"
:
""
,
"app@2x"
:
""
,
"notification"
:
""
,
"notification@2x"
:
""
,
"proapp@2x"
:
""
,
"settings"
:
""
,
"settings@2x"
:
""
,
"spotlight"
:
""
,
"spotlight@2x"
:
""
},
"iphone"
:
{
"app@2x"
:
""
,
"app@3x"
:
""
,
"notification@2x"
:
""
,
"notification@3x"
:
""
,
"settings@2x"
:
""
,
"settings@3x"
:
""
,
"spotlight@2x"
:
""
,
"spotlight@3x"
:
""
}
}
},
"splashscreen"
:
{
"androidStyle"
:
"default"
,
"useOriginalMsgbox"
:
true
,
"alwaysShowBeforeRender"
:
false
,
"autoclose"
:
false
,
"waiting"
:
false
,
"delay"
:
0
,
"iosStyle"
:
"common"
,
"android"
:
{
"hdpi"
:
""
,
"xhdpi"
:
""
,
"xxhdpi"
:
""
},
"ios"
:
{
"storyboard"
:
"unpackage/res/splash/LaunchScreen.storyboard_.zip"
}
}
},
"uniStatistics"
:
{
"enable"
:
true
}
},
/*
快应用特有相关
*/
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx17fe9416bd3f1244"
,
"setting"
:
{
"urlCheck"
:
false
,
"es6"
:
false
,
"postcss"
:
true
,
"minified"
:
true
},
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
true
},
"optimization"
:
{
"subPackages"
:
true
},
"navigateToMiniProgramAppldList"
:
[
"wxbd687630cd02ce1d"
],
"lazyCodeLoading"
:
"requiredComponents"
//
依赖按需注入
},
"mp-alipay"
:
{
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-baidu"
:
{
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-toutiao"
:
{
"usingComponents"
:
true
,
"uniStatistics"
:
{
"enable"
:
false
},
"appid"
:
""
},
"uniStatistics"
:
{
"enable"
:
false
,
"version"
:
"2"
},
"vueVersion"
:
"2"
,
"h5"
:
{
"optimization"
:
{
"treeShaking"
:
{
"enable"
:
true
}
},
"title"
:
"小说"
,
"router"
:
{
"base"
:
"./"
},
"uniStatistics"
:
{
"enable"
:
true
}
},
"mp-jd"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-kuaishou"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-lark"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"mp-qq"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"quickapp-webview-huawei"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"quickapp-webview-union"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
}
}
//
"devServer"
:
{
//
"proxy"
:
{
//
"/https://nft-web.tech-mints.com"
:
{
//
"target"
:
"https://nft-web.tech-mints.com"
,
//
"changeOrgin"
:
true
,
//是否跨域
//
"seure"
:
true
,
//是否支持https协议的代理
//
"pathRewrite"
:
{
//
"^/https://nft-web.tech-mints.com"
:
"/"
,
//
"^/zs-ui/hap/https://nft-web.tech-mints.com"
:
"/"
//
}
//
}
//
},
//
"https"
:
true
//
}
\ No newline at end of file
vedio/pagesA/vipPay/vipPay.vue
View file @
d8f2e1fd
...
...
@@ -20,9 +20,9 @@
<view
class=
"name row"
:class=
"[
{active2: index==selectedIndex}]">
{{
item
.
title
}}
</view>
<view
class=
"price row"
:class=
"[
{active1: index==selectedIndex}]">
<view
style=
"font-size: 50rpx;"
>
¥
</view>
{{
item
.
firstPayPrice
}}
<view
class=
"price row"
:class=
"[
{active1: index==selectedIndex}
,{price2:item.firstPayPrice
<
=
0
}
]"
>
<view
style=
"font-size: 50rpx;"
>
{{
item
.
firstPayPrice
<=
0
?
''
:
'¥'
}}
</view>
{{
item
.
firstPayPrice
<=
0
?
'免费试用'
:
item
.
firstPayPrice
}}
</view>
<view
class=
"origin row"
v-if=
'item.oldPrice'
>
¥
{{
item
.
oldPrice
}}
...
...
@@ -32,7 +32,7 @@
{{
getRemark1
(
item
.
remarks
)
+
'
\
r
\
n'
+
getRemark2
(
item
.
remarks
)
}}
</view>
<view
class=
"label2"
v-if=
"index==selectedIndex"
>
<view
class=
"label2"
v-if=
"index==selectedIndex
&&item.firstPayPrice>0
"
>
{{
'仅需'
+
amount
(
item
.
firstPayPrice
/
item
.
days
)
+
'元/天'
}}
</view>
</view>
...
...
@@ -44,7 +44,7 @@
<view
class=
"agreementWrp"
>
<checkbox-group
@
change=
"checkboxChange"
style=
"width: 50rpx;"
>
<checkbox
:checked=
"checked"
style=
"transform:scale(0.
6
)"
>
<checkbox
:checked=
"checked"
style=
"transform:scale(0.
9
)"
>
</checkbox>
</checkbox-group>
<text>
您已阅读并同意
...
...
@@ -179,8 +179,8 @@
let
that
=
this
;
// 发起微信签约
wx
.
navigateToMiniProgram
({
appId
:
wxData
.
appId
,
path
:
'pages/
loading
'
,
appId
:
"wxbd687630cd02ce1d"
,
path
:
'pages/
index/index
'
,
extraData
:
wxData
.
params
,
success
(
res
)
{
message
.
notify
(
'支付成功'
)
...
...
@@ -311,6 +311,10 @@
font-size
:
60rpx
;
color
:
#000000
;
font-weight
:
700
;
}
.price2
{
font-size
:
40rpx
;
}
.active1
{
...
...
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