Commit 96cf36c0 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 174dd9e9
...@@ -6,8 +6,12 @@ ...@@ -6,8 +6,12 @@
<image style="width: 100%;margin-top: 10rpx;margin-bottom: 10rpx;" <image style="width: 100%;margin-top: 10rpx;margin-bottom: 10rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_heli_vip.png" mode="widthFix" /> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_heli_vip.png" mode="widthFix" />
<view class="section"> <view @click="handleUnsign" v-if="agreementDto"
style="margin-left: 30rpx;color: black;font-size: 36rpx;font-weight: 700;">自动续费管理
>
</view>
<view class="section">
<view class="pack-box"> <view class="pack-box">
<scroll-view scroll-x style="white-space: nowrap"> <scroll-view scroll-x style="white-space: nowrap">
<view class="pack-item" v-for='(item, index) in vipList' :key='index' <view class="pack-item" v-for='(item, index) in vipList' :key='index'
...@@ -47,16 +51,6 @@ ...@@ -47,16 +51,6 @@
</text> </text>
</view> </view>
<view @click="handleUnsign" v-if="agreementDto"
style="margin-left: 20rpx;color: black;font-size: 36rpx;font-weight: 700;">自动续费管理
>
</view>
<view class="item-agree">
<view style="font-size: 28rpx;" @click="clickAgree">用户付费须知> </view>
</view>
<view class="agreementWrp"> <view class="agreementWrp">
<checkbox-group @change="checkboxChange" style="width: 50rpx;"> <checkbox-group @change="checkboxChange" style="width: 50rpx;">
<checkbox :checked="checked" style="transform:scale(0.9)"> <checkbox :checked="checked" style="transform:scale(0.9)">
...@@ -66,13 +60,15 @@ ...@@ -66,13 +60,15 @@
<text class="agreementText" @click="goAgreement(1)">《连续订阅服务协议》</text> <text class="agreementText" @click="goAgreement(1)">《连续订阅服务协议》</text>
<text class="agreementText" @click="goAgreement(2)">《支付协议》</text> <text class="agreementText" @click="goAgreement(2)">《支付协议》</text>
<text class="agreementText" @click="goAgreement(3)">《隐私政策》</text> <text class="agreementText" @click="goAgreement(3)">《隐私政策》</text>
<text class="agreementText" @click="goAgreement(4)">《用户付费须知》</text>
</text> </text>
</view> </view>
<view class="nextBtn" @click="handlePay">立即试用</view>
<view class="section"> <!-- <view class="item-agree">
<button class="apply-button" @click="handlePay">立即试用</button> <view style="font-size: 28rpx;" @click="clickAgree">用户付费须知> </view>
</view> </view> -->
<image @click="handlePay" style="width: 100%;" <image @click="handlePay" style="width: 100%;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_vip_about.png" mode="widthFix" /> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_vip_about.png" mode="widthFix" />
...@@ -224,10 +220,10 @@ ...@@ -224,10 +220,10 @@
if (!tt.canIUse('sign')) { if (!tt.canIUse('sign')) {
message.notify('请升级抖音APP版本.'); message.notify('请升级抖音APP版本.');
return return
} }
tt.showLoading({ tt.showLoading({
title: '加载中...' title: '加载中...'
}); });
let that = this; let that = this;
...@@ -235,7 +231,7 @@ ...@@ -235,7 +231,7 @@
businessType: ttData.params.businessType, businessType: ttData.params.businessType,
data: ttData.params.data, data: ttData.params.data,
byteAuthorization: ttData.params.byteAuthorization, byteAuthorization: ttData.params.byteAuthorization,
success: (res) => { success: (res) => {
tt.hideLoading(); tt.hideLoading();
tt.sign({ tt.sign({
businessType: ttData.params.businessType, businessType: ttData.params.businessType,
...@@ -249,7 +245,7 @@ ...@@ -249,7 +245,7 @@
} }
}) })
}, },
fail: (res) => { fail: (res) => {
tt.hideLoading(); tt.hideLoading();
// this.slotParam = JSON.stringify(res); // this.slotParam = JSON.stringify(res);
// this.$refs.select.open('center'); // this.$refs.select.open('center');
...@@ -262,10 +258,10 @@ ...@@ -262,10 +258,10 @@
if (!tt.canIUse('requestOrder')) { if (!tt.canIUse('requestOrder')) {
message.notify('请升级抖音APP版本!'); message.notify('请升级抖音APP版本!');
return return
} }
tt.showLoading({ tt.showLoading({
title: '加载中...' title: '加载中...'
}); });
let that = this; let that = this;
...@@ -275,16 +271,16 @@ ...@@ -275,16 +271,16 @@
success(res) { success(res) {
that.ttPay(largeType, res.orderId, ttData); that.ttPay(largeType, res.orderId, ttData);
}, },
fail(res) { fail(res) {
tt.hideLoading(); tt.hideLoading();
// message.notify(res.errMsg); // message.notify(res.errMsg);
console.log('requestOrder res.errMsg', res) console.log('requestOrder res.errMsg', res)
}, },
}); });
}, },
ttPay(largeType, oid, ttData) { ttPay(largeType, oid, ttData) {
tt.hideLoading(); tt.hideLoading();
if (!tt.canIUse('getOrderPayment')) { if (!tt.canIUse('getOrderPayment')) {
message.notify('请升级抖音APP版本~'); message.notify('请升级抖音APP版本~');
return return
...@@ -373,6 +369,8 @@ ...@@ -373,6 +369,8 @@
navigateTo(`/pages/brower/brower?url=https://api.mints-tech.cn/camera-api/agreements/lingxi/syzc.html`) navigateTo(`/pages/brower/brower?url=https://api.mints-tech.cn/camera-api/agreements/lingxi/syzc.html`)
} else if (type == 3) { } else if (type == 3) {
navigateTo(`/pages/brower/brower?url=https://api.mints-tech.cn/camera-api/agreements/lingxi/yhxy.html`) navigateTo(`/pages/brower/brower?url=https://api.mints-tech.cn/camera-api/agreements/lingxi/yhxy.html`)
} else if (type == 4) {
this.clickAgree();
} }
} }
} }
...@@ -386,7 +384,6 @@ ...@@ -386,7 +384,6 @@
flex-direction: column; flex-direction: column;
.section { .section {
margin-top: 30rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -526,7 +523,7 @@ ...@@ -526,7 +523,7 @@
background: #e8c8ae; background: #e8c8ae;
color: #8d5a29; color: #8d5a29;
width: 600rpx; width: 600rpx;
margin: 40rpx auto; margin: 20rpx auto;
} }
} }
...@@ -544,7 +541,6 @@ ...@@ -544,7 +541,6 @@
align-items: center; align-items: center;
color: darkgray; color: darkgray;
font-size: 26rpx; font-size: 26rpx;
margin-top: 30rpx;
padding-left: 30rpx; padding-left: 30rpx;
padding-right: 20rpx; padding-right: 20rpx;
...@@ -554,17 +550,31 @@ ...@@ -554,17 +550,31 @@
} }
.trialStyle { .trialStyle {
height: 50rpx; height: 30rpx;
padding: 30rpx; padding: 20rpx 30rpx;
font-size: 22rpx; font-size: 22rpx;
color: darkgray; color: darkgray;
} }
} }
.text-box {
word-break: break-all; .text-box {
margin: 10rpx; word-break: break-all;
padding: 10rpx; margin: 10rpx;
background-color: white; padding: 10rpx;
color: black; background-color: white;
color: black;
}
.nextBtn {
justify-content: center;
align-items: center;
display: flex;
border-radius: 50rpx;
background-color: #e8c8ae;
color: #8d5a29;
width: 660rpx;
height: 90rpx;
font-size: 32rpx;
margin: 20rpx auto;
} }
</style> </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