Commit 32430c09 authored by 李晓兵's avatar 李晓兵

Merge branch 'develop' of https://hel.hand-china.com/xugong/hls-xcmg-vue-app into develop

parents 626a655a 35f3b529
Pipeline #4105 canceled with stages
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-12-05 19:09:00 * @LastEditTime: 2019-12-09 11:01:19
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -413,6 +413,7 @@ export default { ...@@ -413,6 +413,7 @@ export default {
vm.getBseMsg() vm.getBseMsg()
vm.getLease() vm.getLease()
vm.getGuarantor() vm.getGuarantor()
vm.getContractLists() // 合同列表
} else if (from.name === 'EntryInfo') { } else if (from.name === 'EntryInfo') {
vm.bankCardQuery() vm.bankCardQuery()
} }
...@@ -720,7 +721,22 @@ export default { ...@@ -720,7 +721,22 @@ export default {
} }
}) })
}, },
// 合同列表查询
getContractLists () {
let vm = this
let url = $config.basePath + 'prj_contract_text_query'
let param = {
project_id: vm.project_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
console.log('合同列表', res)
// if (res.result === 'S') {
// vm.info = res.info
// }
})
},
// 还款计划 // 还款计划
repayPlan () { repayPlan () {
this.$router.push({ this.$router.push({
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip""/>User Settings Edit * @Descrip""/>User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-29 20:31:00 * @Date: 2019-09-29 20:31:00
* @LastEditTime: 2019-12-06 11:16:12 * @LastEditTime: 2019-12-09 13:57:18
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -298,9 +298,6 @@ export default { ...@@ -298,9 +298,6 @@ export default {
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
#details1 { #details1 {
.content {
padding-bottom: 200px;
}
.date-pic { .date-pic {
height: 17px; height: 17px;
width: 17px; width: 17px;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<h4>问题反馈</h4> <h4>问题反馈</h4>
<div class="write"> <div class="write">
<div class="box"> <div class="box">
<span @click="getPic">问题描述</span> <span>问题描述</span>
<textarea v-model="question_desc" placeholder="请输入您的描述……" /> <textarea v-model="question_desc" placeholder="请输入您的描述……" />
</div> </div>
</div> </div>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<div class="file-content"> <div class="file-content">
<div <div
v-for="(item, index) in upload_list" v-for="(item, index) in upload_list"
v-if="item.check_id==list.check_id" v-if="item.check_id===question_id"
:key="index" :key="index"
class="file" class="file"
> >
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<!-- <div class="file"> <!-- <div class="file">
<img src="@/assets/help/1.jpg" > <img src="@/assets/help/1.jpg" >
</div> --> </div> -->
<div class="file" @click="imgUploadShow(list.check_id)"> <div class="file" @click="imgUploadShow(question_id)">
<img class="photo" src="@/assets/help/photo.png" > <img class="photo" src="@/assets/help/photo.png" >
</div> </div>
</div> </div>
...@@ -52,9 +52,7 @@ export default { ...@@ -52,9 +52,7 @@ export default {
data () { data () {
return { return {
question_desc: '', // 问题描述 question_desc: '', // 问题描述
list: { question_id: '',
chck_id: this.$route.params.question_id,
},
upload_list: [], // 上传图片列表 upload_list: [], // 上传图片列表
} }
}, },
...@@ -63,6 +61,8 @@ export default { ...@@ -63,6 +61,8 @@ export default {
if (from.name === 'HelpList') { if (from.name === 'HelpList') {
vm.question_desc = '' vm.question_desc = ''
vm.upload_list = [] vm.upload_list = []
vm.question_id = ''
vm.getQuestionId()
} }
}) })
}, },
...@@ -269,20 +269,18 @@ export default { ...@@ -269,20 +269,18 @@ export default {
vm.upload_list.remove(index) vm.upload_list.remove(index)
vm.upload_list.sort() vm.upload_list.sort()
}, },
// 获取图片
getPic () { // 获取question_id
getQuestionId () {
let vm = this let vm = this
let url = process.env.basePath + 'app_attment_query' let url = process.env.basePath + 'get_app_question_id'
let param = { let param = { }
master: { vm.hlsPopup.showLoading('请稍后!')
source_type: 'HLS_APP_QUESTION', vm.hlsHttp.post(url, param).then(function (res) {
pkvalue: vm.$route.params.question_id,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
console.log('sssss', res) if (res.result === 'S') {
vm.question_id = res.info.question_id
}
}) })
}, },
}, },
......
...@@ -85,20 +85,8 @@ export default { ...@@ -85,20 +85,8 @@ export default {
}) })
}, },
changeFeedback () { changeFeedback () {
let vm = this this.$router.push({
let url = process.env.basePath + 'get_app_question_id' name: 'HelpFeedback',
let param = { }
vm.hlsPopup.showLoading('请稍后!')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.$router.push({
name: 'HelpFeedback',
params: {
question_id: res.info.question_id,
},
})
}
}) })
}, },
}, },
......
...@@ -81,60 +81,6 @@ ...@@ -81,60 +81,6 @@
</div> </div>
</div> </div>
</transition> </transition>
<transition name="trans">
<div v-show="showOutside" class="modal-show-bank">
<div class="down">
<div class="top">
<img src="@/assets/payment/back.png" @click="showOutside=false" >
<span>支付方式</span>
</div>
<scroll>
<list-item :item-height="56" class="pay-way">
<item
v-for="(item,index) in nongBank"
:proportion="[7,1,1]"
:key="item.bank_account_num"
@click.native="isSelect(`nong${index}`);ischeck(item);confirmToPay(item)"
>
<div slot="name" style="flex=3">
<img :src="selectImg(item)" alt class="icon" >
{{ item.bank_full_name }}({{ selectLast(item) }})
<img
v-show="item.recommand"
class="push"
src="@/assets/payment/push.png"
>
</div>
<section slot="content">
<img v-show="select === `nong${index}`" src="@/assets/payment/select.png" alt >
<img v-show="select !== `nong${index}`" src="@/assets/payment/unselect.png" alt >
</section>
</item>
<item
v-for="(item,index) in newList"
:proportion="[7,1,1]"
:key="index"
@click.native="isSelect(`three${index}`);ischeck(item);confirmToPay(item)"
>
<div slot="name" style="flex=3">
<img :src="selectImg(item)" alt class="icon" >
{{ item.bank_full_name }}({{ selectLast(item) }})
<img
v-show="item.recommand"
class="push"
src="@/assets/payment/push.png"
>
</div>
<section slot="content">
<img v-show="select === `three${index}`" src="@/assets/payment/select.png" alt >
<img v-show="select !== `three${index}`" src="@/assets/payment/unselect.png" alt >
</section>
</item>
</list-item>
</scroll>
</div>
</div>
</transition>
<transition name="trans"> <transition name="trans">
<div v-show="confirm" class="modal-show-confirm"> <div v-show="confirm" class="modal-show-confirm">
<div class="down"> <div class="down">
...@@ -193,7 +139,7 @@ ...@@ -193,7 +139,7 @@
<span>手续费</span> <span>手续费</span>
<span>{{ serviceCharge }}</span> <span>{{ serviceCharge }}</span>
</div> </div>
<div class="info-item" @click="showOutside=true"> <div class="info-item" @click="show=true">
<span>付款方式</span> <span>付款方式</span>
<span> <span>
<img :src="checkType.img" > <img :src="checkType.img" >
...@@ -205,7 +151,7 @@ ...@@ -205,7 +151,7 @@
</div> </div>
</h-content> </h-content>
<bottom-tab> <bottom-tab>
<tab-button class="foot" @click.native="affirm();pay()">确认支付</tab-button> <tab-button class="foot" @click.native="affirm">确认支付</tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
</template> </template>
...@@ -233,7 +179,6 @@ export default { ...@@ -233,7 +179,6 @@ export default {
components: {}, components: {},
data () { data () {
return { return {
url: '',
money: '', money: '',
timer: null, timer: null,
select: 'three0', select: 'three0',
...@@ -386,8 +331,6 @@ export default { ...@@ -386,8 +331,6 @@ export default {
let vm = this let vm = this
if (parseFloat(vm.sumMoney) === 0) { if (parseFloat(vm.sumMoney) === 0) {
hlsPopup.showLongCenter('您支付的金额为0元') hlsPopup.showLongCenter('您支付的金额为0元')
} else if (parseFloat(vm.sumMoney) > 0 && vm.pay_type === 'ABC') {
window.open(vm.url)
} else { } else {
vm.pay() vm.pay()
} }
...@@ -405,13 +348,13 @@ export default { ...@@ -405,13 +348,13 @@ export default {
if (res.return_code !== '0000') { if (res.return_code !== '0000') {
hlsPopup.showLongCenter(res.error_message) hlsPopup.showLongCenter(res.error_message)
} else { } else {
// vm.$router.push({ vm.$router.push({
// name: 'PayPage', name: 'PayPage',
// params: { params: {
// url: res.paymentURL, url: res.paymentURL,
// }, order_id: vm.$route.params.order_id,
// }) },
vm.url = res.paymentURL })
} }
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
......
...@@ -6,12 +6,63 @@ ...@@ -6,12 +6,63 @@
<span>支付中心</span> <span>支付中心</span>
</div> </div>
</h-header> </h-header>
<h-content> <h-content class="box">
<iframe <div v-if="isSuccess" class="my-content">
:src="url" sandbox="allow-scripts" frameborder="0" <img class="flag" src="@/assets/payment/success.png" >
scrolling="no" <h3>支付成功</h3>
width="100%" height="100%"/> <p>感谢您的还款,我们将尽快为您结清金额</p>
<!-- <object :data="url" width="100%" height="100%" type="text/html"/> --> <div class="info">
<div class="left">
<list-item :item-height="30">
<item>
<div slot="name" class="name">时间</div>
<div slot="content">{{ date }}</div>
</item>
<item>
<div slot="name" class="name">姓名</div>
<div slot="content">{{ userName }}</div>
</item>
<item>
<div slot="name" class="name">订单号</div>
<div slot="content">{{ money|orderNum }}</div>
</item>
<item>
<div slot="name" class="name">还款金额</div>
<div slot="content">{{ money|currency }}</div>
</item>
</list-item>
</div>
</div>
</div>
<div v-if="isFaild" class="my-content">
<img class="flag" src="@/assets/payment/faild.png" >
<h3>支付失败</h3>
<p>对不起,支付失败,请您重新尝试!</p>
<div class="info">
<div class="left">
<list-item :item-height="30">
<item>
<div slot="name" class="name">时间</div>
<div slot="content">{{ date }}</div>
</item>
<item>
<div slot="name" class="name">姓名</div>
<div slot="content">{{ userName }}</div>
</item>
<item>
<div slot="name" class="name">订单号</div>
<div slot="content">{{ money|orderNum }}</div>
</item>
<item>
<div slot="name" class="name">还款金额</div>
<div slot="content">{{ money|currency }}</div>
</item>
</list-item>
</div>
</div>
</div>
<button v-if="showpay" @click="pay">立即支付</button>
<button v-if="showSelect" @click="searchResult">查询支付结果</button>
</h-content> </h-content>
</h-view> </h-view>
</template> </template>
...@@ -21,31 +72,125 @@ export default { ...@@ -21,31 +72,125 @@ export default {
return { return {
name: '', name: '',
url: '', url: '',
showSelect: false,
showpay: true,
isSuccess: false,
isFaild: false,
} }
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
vm.showSelect = false
vm.showpay = true
vm.isSuccess = false
vm.isFaild = false
vm.name = from.name vm.name = from.name
vm.url = vm.$route.params.url vm.url = vm.$route.params.url
}) })
}, },
methods: { methods: {
changePage () { changePage () {
let toPath this.$router.push({
if (this.name === 'PayEntry') { name: 'MyInfo',
toPath = 'FirstPay' })
} else if (this.name === 'PaymentPayEntry') { },
toPath = 'NewList' pay () {
let vm = this
window.open(this.url)
setTimeout(() => {
vm.showSelect = true
vm.showpay = false
}, 1000)
},
searchResult () {
let vm = this
let url = process.env.basePath + 'merchant_query_order'
let param = {
order_id: vm.$route.params.order_id,
} }
this.$router.replace({ hlsPopup.showLoading('请稍候')
name: toPath, vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
if (res.return_code !== '0000') {
vm.isFaild = true
vm.isSuccess = false
hlsPopup.showLongCenter(res.error_message)
} else {
vm.isSuccess = true
vm.isFaild = false
hlsPopup.showLongCenter('交易成功')
}
} else {
hlsPopup.showLongCenter(res.message)
}
}) })
}, },
}, },
} }
</script> </script>
<style lang="less" scoped> <style lang="less">
#pay-page { #pay-page {
.box{
display: flex;
justify-content: center;
align-items: center;
flex-wrap:wrap;
}
button{
color: #fff;
background-color: @headerColor;
width:50%;
height:40px;
border-radius: 5px;
}
.my-content {
height: 400px;
.flag {
display: block;
margin: 0 auto;
width: 72px;
padding-top: 48px;
}
h3 {
margin: 0 auto;
margin-top: 32px;
width: 83px;
font-weight: 600;
font-family: PingFangSC-Semibold;
font-size: 20px;
color: #383f45;
letter-spacing: 0.71px;
}
p {
margin: 0 auto;
margin-top: 10px;
width: 234px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56, 63, 69, 0.6);
letter-spacing: 0;
display: flex;
justify-content: center;
}
.info {
width: 343px;
margin: 0 auto;
border-top: 1px solid #d9dbdf;
margin-top: 48px;
.name {
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56, 63, 69, 0.6);
letter-spacing: 0.5px;
}
.left {
padding-top: 10px;
}
}
}
.content{
background-color: #fff;
}
} }
</style> </style>
...@@ -286,13 +286,13 @@ export default { ...@@ -286,13 +286,13 @@ export default {
if (res.return_code !== '0000') { if (res.return_code !== '0000') {
hlsPopup.showLongCenter(res.error_message) hlsPopup.showLongCenter(res.error_message)
} else { } else {
// vm.$router.push({ vm.$router.push({
// name: 'PayPage', name: 'PayPage',
// params: { params: {
// url: res.paymentURL, url: res.paymentURL,
// }, order_id: vm.$route.params.order_id,
// }) },
window.open(res.paymentURL) })
} }
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.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