Commit 3db9d32f authored by 王建威's avatar 王建威

bug fix

parent 518c927c
......@@ -25,7 +25,7 @@
<view class="fin_select" v-if="EquipmentRecommendList">
<view class="fin_select_label">
<!-- <text class="fin_limit">限时</text> -->
<text class="fin_title">行业精选,更多选择</text>
<text class="fin_title">谛宝白条,乐享轻松</text>
</view>
<text class="fin_desc">0首付,无压力,高端设备,随时拥有</text>
<uni-swiper-dot :info="EquipmentRecommendList" mode="dot" :dotsStyles="{'width': 4,'height':4, 'bottom':0,'border':'none','selectedBorder':'none'}" :current="current">
......
......@@ -193,7 +193,8 @@
is_auth: '0',
type: 2,
sales: '',
status: -1
status: -1,
enable_flg: -1
}
},
onPageScroll(e){
......@@ -254,7 +255,8 @@
this.isLogin = res.data.login_flg;
this.is_auth = res.data.data.is_auth;
this.type = res.data.data.EquipmentInfo.type;
this.status = res.data.data.status;
this.status = res.data.data.status || -1;
this.enable_flg = res.data.data.enable_flg || -1;
}
});
},
......@@ -312,6 +314,15 @@
}
});
} else {
if(this.enable_flg === '0') {
this.close();
uni.showToast({
title: '您的白条已被禁用',
icon: 'none',
duration: 2000
})
return
}
uni.setStorage({
key: 'installment',
data: data,
......
......@@ -7,7 +7,7 @@
<view class="lines_title">最高可申请额度:</view>
<view class="flex">
<view class="left_title">¥200.00万</view>
<!-- <view class="apply_btn"><text class="text">申请开通</text></view> -->
<view class="apply_btn" @click="go_open"><text class="text">申请开通</text></view>
</view>
</view>
<view class="lines_card" v-if="Number(status) === 0 && Number(is_auth) !== 0">
......@@ -104,21 +104,22 @@
<view class="info_title" style="margin-top:60rpx;">关于分期还款</view>
<view class="info_sub_title">什么时候还钱?</view>
<view class="info_item" style="padding-left:0;">账期内,通过谛宝白条-我要还款,随时可以操作还款。</view>
<view class="info_sub_title">是否收取服务费/利息?</view>
<view class="info_item" style="padding-left:0;">0.08%/期,后期根据用户信用评分调整</view>
<!-- <view class="info_sub_title">是否收取服务费/利息?</view>
<view class="info_item" style="padding-left:0;">0.08%/期,后期根据用户信用评分调整</view> -->
<view class="info_sub_title">没能按时还款怎么办?</view>
<view class="info_item" style="padding-left:0;">逾期按日计息 日利率0.05% 逾期还款将影响信用评分</view>
<view class="info_item" style="padding-left:0;">逾期按日计息 日利率0.03% 逾期还款将影响信用评分</view>
</view>
</view>
<view class="return_home" @click="return_home">返回商城首页</view>
<view class="flex_bottom" v-if="Number(is_auth) === 0">
<view class="left_btn">
<!-- <view class="left_btn">
<view>
<text class="checkbtn uncheck" v-if="!checked" @click="check"></text>
<text class="checkbtn check" v-else @click="check"></text>
<text class="check_title">我已阅读并同意</text>
</view>
<view class="agreement">《谛宝白条开通协议》</view>
</view>
</view> -->
<view class="open_btn" @click="go_open">立即开通</view>
</view>
</view>
......@@ -147,21 +148,27 @@
this.refuse_reason = res.data.data.refuse_reason;
}
}
})
});
// #ifdef H5
//默认请求微信分享
if (this.$wechat && this.$wechat.isWechat()) {
this.$wechat.share({titie: this.$getNavigationBarTitle()});
}
// #endif
},
methods: {
check() {
this.checked = !this.checked;
},
go_open() {
if(!this.checked) {
uni.showToast({
title: '请阅读并同意《谛宝白条开通协议》',
icon: 'none',
duration: 2000
});
return
}
// if(!this.checked) {
// uni.showToast({
// title: '请阅读并同意《谛宝白条开通协议》',
// icon: 'none',
// duration: 2000
// });
// return
// }
uni.navigateTo({
url: '/pages/certification/certification'
});
......@@ -182,6 +189,11 @@
uni.navigateTo({
url: '/pages/apply/applypage1'
});
},
return_home() {
uni.navigateTo({
url: '/pages/home/home'
});
}
}
}
......@@ -533,7 +545,8 @@
}
}
.open_btn {
width: 498rpx;
// width: 498rpx;
width: 100%;
text-align: center;
line-height: 100rpx;
color: #212121;
......@@ -544,5 +557,12 @@
background: linear-gradient(124deg, #FFD700 0%, #FFCD00 100%);
}
}
.return_home {
color: #867015;
font-size: 28rpx;
line-height: 40rpx;
text-align: center;
margin: 24rpx 0 0;
}
}
</style>
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