Commit deb2cfed authored by mengcuiguang's avatar mengcuiguang

代码优化

parent d8f2e1fd
......@@ -63,6 +63,10 @@
</view>
</view>
<text class="trialStyle" v-show="hintText!=null&&hintText!=''">
{{hintText}}
</text>
<view style="display: flex;flex-direction: column;align-items: center;">
<view style="font-size: 24rpx;color: gray;margin-top: 16rpx;margin-bottom: 18rpx;">
订单中如有疑问,请在个人中心联系客服</view>
......@@ -107,6 +111,7 @@
agreeFlag: false,
userBean: {},
agreementDto: null,
hintText: '',
os: 'android',
titleText: '超多精彩小说一键解锁',
showClone: false
......@@ -153,11 +158,11 @@
success: ({
data
}) => {
console.log("agreement=",data.agreement);
if(data.agreement==undefined){
console.log("agreement=", data.agreement);
if (data.agreement == undefined) {
console.log("agreement=22222");
this.agreementDto = null;
}else{
} else {
this.agreementDto = data.agreement;
}
......@@ -184,7 +189,7 @@
},
choosePack(item, index) {
this.selectedIndex = index;
this.hintText = this.vipList[this.selectedIndex].trailRemark;
this.handlePay();
},
handlePay() {
......@@ -380,4 +385,15 @@
}
}
}
.trialStyle {
display: flex;
align-items: center;
font-size: 30rpx;
color: gainsboro;
margin: 20rpx;
word-wrap: break-word;
word-break: break-all;
white-space: pre-line;
}
</style>
\ No newline at end of file
{
"name": "reader",
"appid": "__UNI__F7F50FF",
"description": "",
"versionName": "1.0.0",
"versionCode": 1000,
"transformPx": false,
"name" : "reader",
"appid" : "__UNI__F7F50FF",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : 1000,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus": {
"compatible": {
"ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
},
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": false,
"autoclose": true,
"delay": 0
"app-plus" : {
"compatible" : {
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
},
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : false,
"autoclose" : true,
"delay" : 0
},
/* 模块配置 */
"modules": {
"Payment": {}
"modules" : {
"Payment" : {}
},
/* 应用发布信息 */
"distribute": {
"distribute" : {
/* android打包配置 */
"android": {
"permissions": [
"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\"/>",
......@@ -36,186 +36,184 @@
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>"
],
"permissionExternalStorage": {
"request": "none",
"prompt": "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
"permissionExternalStorage" : {
"request" : "none",
"prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
},
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
"autoSdkPermissions": true,
"schemes": ""
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"autoSdkPermissions" : true,
"schemes" : ""
},
/* ios打包配置 */
"ios": {
"idfa": false,
"privacyDescription": {
"NSPhotoLibraryUsageDescription": "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。",
"NSCameraUsageDescription": "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。",
"NSPhotoLibraryAddUsageDescription": "用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。"
"ios" : {
"idfa" : false,
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。",
"NSCameraUsageDescription" : "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。",
"NSPhotoLibraryAddUsageDescription" : "用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。"
},
"urltypes": "twofiveone"
"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
"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": {},
"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-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-alipay" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
}
},
"mp-baidu": {
"usingComponents": true,
"uniStatistics": {
"enable": false
"mp-baidu" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
}
},
"mp-toutiao": {
"usingComponents": true,
"uniStatistics": {
"enable": false
"mp-toutiao" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
},
"appid": ""
"appid" : ""
},
"uniStatistics": {
"enable": false,
"version": "2"
"uniStatistics" : {
"enable" : false,
"version" : "2"
},
"vueVersion": "2",
"h5": {
"optimization": {
"treeShaking": {
"enable": true
"vueVersion" : "2",
"h5" : {
"optimization" : {
"treeShaking" : {
"enable" : true
}
},
"title": "小说",
"router": {
"base": "./"
"title" : "小说",
"router" : {
"base" : "./"
},
"uniStatistics": {
"enable": true
"uniStatistics" : {
"enable" : true
}
},
"mp-jd": {
"uniStatistics": {
"enable": false
"mp-jd" : {
"uniStatistics" : {
"enable" : false
}
},
"mp-kuaishou": {
"uniStatistics": {
"enable": false
"mp-kuaishou" : {
"uniStatistics" : {
"enable" : false
}
},
"mp-lark": {
"uniStatistics": {
"enable": false
"mp-lark" : {
"uniStatistics" : {
"enable" : false
}
},
"mp-qq": {
"uniStatistics": {
"enable": false
"mp-qq" : {
"uniStatistics" : {
"enable" : false
}
},
"quickapp-webview-huawei": {
"uniStatistics": {
"enable": false
"quickapp-webview-huawei" : {
"uniStatistics" : {
"enable" : false
}
},
"quickapp-webview-union": {
"uniStatistics": {
"enable": false
"quickapp-webview-union" : {
"uniStatistics" : {
"enable" : false
}
}
}
......@@ -233,3 +231,4 @@
// },
// "https" : true
// }
......@@ -20,7 +20,8 @@
<view class="name row" :class="[{active2: index==selectedIndex}]">
{{item.title}}
</view>
<view class="price row" :class="[{active1: index==selectedIndex},{price2:item.firstPayPrice<=0}]">
<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>
......@@ -41,6 +42,10 @@
</view>
</view>
<text class="trialStyle" v-show="hintText!=null&&hintText!=''">
{{hintText}}
</text>
<view class="agreementWrp">
<checkbox-group @change="checkboxChange" style="width: 50rpx;">
......@@ -82,6 +87,7 @@
os: 'android',
checked: false,
agreementDto: null,
hintText: ''
}
},
methods: {
......@@ -117,6 +123,7 @@
},
choosePack(item, index) {
this.selectedIndex = index;
this.hintText = this.vipList[this.selectedIndex].trailRemark;
},
handleUnsign() {
if (this.agreementDto) {
......@@ -274,7 +281,7 @@
display: inline-block;
.active {
background-color: #FEF8F5;
background-color: #FEEDD0;
border: 4rpx solid #FDEADC !important;
}
......@@ -406,4 +413,15 @@
}
}
}
.trialStyle {
display: flex;
align-items: center;
font-size: 30rpx;
color: gainsboro;
margin: 20rpx;
word-wrap: break-word;
word-break: break-all;
white-space: pre-line;
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment