Commit d8f2e1fd authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 5b8deb53
...@@ -92,7 +92,7 @@ let apiRequest = function({ ...@@ -92,7 +92,7 @@ let apiRequest = function({
option.data = data; option.data = data;
} }
} }
console.log('123') // console.log('123')
// token处理 // token处理
let token = readToken(); let token = readToken();
if (!checkTokenWhiteList(token, url, urlModule)) { if (!checkTokenWhiteList(token, url, urlModule)) {
......
...@@ -236,8 +236,8 @@ ...@@ -236,8 +236,8 @@
let that = this; let that = this;
// 发起微信签约 // 发起微信签约
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: wxData.appId, appId: "wxbd687630cd02ce1d",
path: 'pages/loading', path: 'pages/index/index',
extraData: wxData.params, extraData: wxData.params,
success(res) { success(res) {
console.log("wxSign suc=", res); console.log("wxSign suc=", res);
......
This diff is collapsed.
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
<view class="name row" :class="[{active2: index==selectedIndex}]"> <view class="name row" :class="[{active2: index==selectedIndex}]">
{{item.title}} {{item.title}}
</view> </view>
<view class="price row" :class="[{active1: index==selectedIndex}]"> <view class="price row" :class="[{active1: index==selectedIndex},{price2:item.firstPayPrice<=0}]">
<view style="font-size: 50rpx;"></view> <view style="font-size: 50rpx;">{{item.firstPayPrice<=0 ? '' : '¥'}}</view>
{{item.firstPayPrice}} {{item.firstPayPrice<=0 ? '免费试用' : item.firstPayPrice}}
</view> </view>
<view class="origin row" v-if='item.oldPrice'> <view class="origin row" v-if='item.oldPrice'>
{{item.oldPrice}} {{item.oldPrice}}
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
{{ getRemark1(item.remarks) + '\r\n' + getRemark2(item.remarks) }} {{ getRemark1(item.remarks) + '\r\n' + getRemark2(item.remarks) }}
</view> </view>
<view class="label2" v-if="index==selectedIndex"> <view class="label2" v-if="index==selectedIndex&&item.firstPayPrice>0">
{{ '仅需'+amount(item.firstPayPrice / item.days)+'元/天' }} {{ '仅需'+amount(item.firstPayPrice / item.days)+'元/天' }}
</view> </view>
</view> </view>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<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.6)"> <checkbox :checked="checked" style="transform:scale(0.9)">
</checkbox> </checkbox>
</checkbox-group> </checkbox-group>
<text>您已阅读并同意 <text>您已阅读并同意
...@@ -179,8 +179,8 @@ ...@@ -179,8 +179,8 @@
let that = this; let that = this;
// 发起微信签约 // 发起微信签约
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: wxData.appId, appId: "wxbd687630cd02ce1d",
path: 'pages/loading', path: 'pages/index/index',
extraData: wxData.params, extraData: wxData.params,
success(res) { success(res) {
message.notify('支付成功') message.notify('支付成功')
...@@ -311,6 +311,10 @@ ...@@ -311,6 +311,10 @@
font-size: 60rpx; font-size: 60rpx;
color: #000000; color: #000000;
font-weight: 700; font-weight: 700;
}
.price2 {
font-size: 40rpx;
} }
.active1 { .active1 {
......
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