Commit 548ca3fa authored by ly's avatar ly

修改相关代码

parent 7b2690db
No preview for this file type
......@@ -155,6 +155,12 @@
"navigationBarTitleText": "申请记录"
}
},
{
"path": "pages/financeApp/application",
"style": {
"navigationBarTitleText": "申请记录"
}
},
{
"path": "pages/auth/auth",
"style": {
......
No preview for this file type
......@@ -446,6 +446,7 @@
},
// 授信提交
onCredit(){
const self=this
self.$request('/app/v1/checkProductList','POST').then(res => {
console.log(res,'checkProductList')
......
......@@ -12,8 +12,8 @@
</view>
</view>
<view class='face-protocol'>
<i class='protocol-icon'></i>
<view class='procotol-text'>活体认证协议</view>
<!-- <i class='protocol-icon'></i>
<view class='procotol-text'>活体认证协议</view> -->
</view>
<view class='face-btn' @click='goFace'>开始认证</view>
<view class='face-footer'>
......
<template>
<view class='appli-page'>
<!-- 有记录 -->
<view class='appli-page' v-if="recodeList && recodeList.length>0">
<scroll-view
scroll-y="true"
class="scroll-Y"
@scrolltoupper="upper"
@scrolltolower="lower"
@scroll="scroll">
<view class='card-item' v-for="item in recodeList" :key="item.id">
<view class='item-main'>
<view class='main-l'>
<view class='l-top'>
<image :src='item.appLogo'></image>
<view class='l-name'>{{item.appName}}</view>
<view class='l-data' v-show="item.memo">
<view class='status-c' v-if="item.status==10"> {{item.memo}}</view>
<view v-else :class="item.status==2 ? 'status-s':'data-num'">{{item.memo}}</view>
</view>
</view>
<view class='l-footer'>
<view class='footer-f'>
<view class='f-text'>{{item.amountStr}}</view>
<view class='f-num'>{{item.amount}}</view>
<view class='f-periods' v-show="item.termStr">
<text class='periods-text'>{{item.termStr}}</text>
</view>
</view>
</view>
</view>
<view class='main-r'>
<view class='r-btn' v-show='item.status==1 || item.status==3 || item.status==8 || item.status==5 || item.status==9 || item.status==4 || item.status==10'>
{{item.statusStr}}
</view>
<view class='r-btnf' v-show="item.status==2 " @click="goItem(item)">{{item.statusStr}}</view>
<view class='r-btnt' v-show="item.status==6 " @click="goBill(item)">{{item.statusStr}}</view>
<view class='r-btns' v-show="item.status==7" @click="goBill(item)">
<i class='btns-icon'></i>
<view class='btns-text'>立即还款</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<!-- 空记录 -->
<view class='appli-null' v-else>
<view class='null-main'>
<image src='http://ddh.yyhock.com/appStatic/applicaton-null.png'></image>
</view>
<view class='null-des'>目前还没有申请记录哦~</view>
<view class='null-btn' @click="goLoan">去借钱</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
recodeList:[]
}
},
onLoad() {
this.init()
},
methods: {
goItem(item){
console.log(item,'loan')
const {url,appNo ,status}=item
if(status==2){
uni.navigateTo({
url:`/pages/websrc/websrc?url=${url}`
})
}else{
this.Go(url)
}
},
goBill(item){
console.log(item,'bill')
const {appNo, url,orderNo}=item
uni.setStorageSync('appNo',appNo)
uni.setStorageSync('orderNo',orderNo)
this.Go(url)
},
init(){
const self=this
const params={
"content": "",
"type": "ALL"
}
self.$request('/app/v1/loanRecode','POST',params).then(res => {
console.log(res,'loanRecode');
const { loanList}=res.result
self.recodeList=loanList
}).catch(err=>{
console.log(err,'请求出错')
})
},
goLoan(){
this.Go('uni:/pages/indexfinance/index','tab')
},
upper: function(e) {
console.log(e)
},
lower: function(e) {
console.log(e)
},
scroll: function(e) {
console.log(e)
},
}
}
</script>
<style src='./index.less' lang="less" scoped></style>
.appli-page{
width: 100%;
height: 100vh;
// min-height: 1624rpx;
background: #F7FAFF;
.appli-page{
padding-top:24rpx;
.scroll-Y{
height: 800rpx;
.card-item{
margin:0 30rpx 24rpx;
width: 690rpx;
height: 180rpx;
background: #FFFFFF;
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(232,232,232,0.49);
border-radius: 10rpx;
.item-main{
padding:23rpx 16rpx 24rpx 25rpx;
display: flex;
align-items: center;
justify-content: space-between;
.main-l{
.l-top{
display: flex;
margin-bottom:38rpx;
image{
width: 54rpx;
height: 55rpx;
background-size: 54rpx 55rpx;
}
.l-name{
padding-left:12rpx;
padding-top:5rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 500;
font-size: 30rpx;
color: #333333;
line-height: 42rpx;
text-align: left;
font-style: normal;
}
.l-status{
padding-top:12rpx;
padding-left:10rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 24rpx;
line-height: 33rpx;
text-align: left;
font-style: normal;
.status-c{
color: #FF2F2F;
}
.status-s{
color:#FF790E;
}
}
.l-data{
padding-top:8rpx;
padding-left:16rpx ;
height: 33rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 24rpx;
color: #666666;
line-height: 33rpx;
text-align: left;
font-style: normal;
.data-num{
// padding-top:8rpx;
padding-left: 12rpx;
border-left:2rpx solid #333333;
}
.status-c{
color: #FF2F2F;
}
.status-s{
color:#FF790E;
}
}
}
.l-footer{
display: flex;
.footer-f{
display: flex;
height: 40rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 500;
font-size: 28rpx;
color: #333333;
line-height: 40rpx;
text-align: left;
font-style: normal;
.f-text{
}
.f-num{
color:#2263E6;
}
.f-periods{
padding-left:16rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 500;
font-size: 28rpx;
color: #333333;
line-height: 40rpx;
text-align: left;
font-style: normal;
.periods-text{
padding-left:12rpx;
border-left:2rpx solid #333333;
}
}
}
}
}
.main-r{
.r-btn{
width: 180rpx;
height: 64rpx;
border-radius: 32rpx;
border: 2rpx solid #999999;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 26rpx;
color: #999999;
line-height: 64rpx;
text-align: center;
font-style: normal;
}
.r-btnf{
width: 180rpx;
height: 64rpx;
border-radius: 32rpx;
border: 2rpx solid #2263E6;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 26rpx;
color: #2263E6;
line-height: 64rpx;
text-align: center;
font-style: normal;
}
.r-btnt{
width: 180rpx;
height: 64rpx;
background: #2263E6;
border-radius: 32rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 26rpx;
color: #FFFFFF;
line-height: 64rpx;
text-align: center;
font-style: normal;
}
.r-btns{
position: relative;
.btns-icon{
position: absolute;
bottom:56rpx;
right:26rpx;
display: inline-block;
width: 98rpx;
height: 37rpx;
background: url('http://ddh.yyhock.com/appStatic/btns-icon.png') 0 0 no-repeat;
background-size: 98rpx 37rpx;
}
.btns-text{
width: 180rpx;
height: 64rpx;
background: #2263E6;
border-radius: 32rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 26rpx;
color: #FFFFFF;
line-height: 64rpx;
text-align: center;
font-style: normal;
}
}
}
}
}
}
}
.appli-null{
padding-top:20rpx;
.null-main{
margin:10rpx auto;
width: 330rpx;
// height: 331rpx;
image{
margin-top:118rpx;
width: 330rpx;
height: 331rpx;
background-size: 330rpx 331rpx;
}
}
.null-des{
padding-top:20rpx;
height: 40rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 24rpx;
color: #999999;
line-height: 33rpx;
text-align: center;
font-style: normal;
}
.null-btn{
margin:99rpx 40rpx;
width: 670rpx;
height: 88rpx;
background: linear-gradient( 137deg, #3877F5 0%, #5690FA 100%);
border-radius: 44rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 32rpx;
color: #FFFFFF;
line-height: 88rpx;
text-align: center;
font-style: normal;
}
}
}
\ No newline at end of file
......@@ -77,7 +77,7 @@
}else{
this.init()
this.initMy()
this.initTel()
this.initTels()
}
},
......@@ -120,10 +120,8 @@
})
},
goPage(item){
// this.Go(item.linkUrl)
this.Go('http://192.168.0.65:8080/#/loan')
// this.Go('uni:/pages/face/face','redirect')
// this.Go('http://192.168.0.65:8081/#/payResult')
// this.Go(item.linkUrl)
},
goLogin(){
this.Go('uni:/pages/login/login')
......@@ -140,17 +138,17 @@
}
},
initTel(){
const self=this
self.$request('/pawn/setting','GET').then(res => {
// initTel(){
// const self=this
// self.$request('/pawn/setting','GET').then(res => {
const { protocol,phone }=res.result
// const { protocol,phone }=res.result
self.mobileNum=phone
}).catch(err=>{
console.log(err,'请求出错')
})
},
// self.mobileNum=phone
// }).catch(err=>{
// console.log(err,'请求出错')
// })
// },
goTel(){
uni.makePhoneCall({
......@@ -182,7 +180,8 @@
}else{
this.init()
this.initMy()
this.initTel()
// this.initTel()
this.initTels()
}
}
......
......@@ -150,6 +150,7 @@
console.log(die,'die2')
self.userFeedbackHidden=false
uni.removeStorageSync('token')
uni.removeStorageSync('tokenFinance')
this.Go('uni:/pages/index/index','tab')
}
......@@ -163,7 +164,8 @@
self.$request('/pawn/client/loginOut','POST').then(res => {
console.log(res,'logout');
self.outHidden=false
uni.removeStorageSync('token')
uni.removeStorageSync('token')
uni.removeStorageSync('tokenFinance')
this.Go('uni:/pages/index/index','tab')
})
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -51,7 +51,7 @@ const request=async(url,type,data)=>{
})
uni.removeStorageSync('token')
// this.Go('uni:/pages/login/login')
uni.removeStorageSync('tokenFinance')
}else{
uni.showToast({
title: data.message,
......
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