Commit f588f49f authored by caimeng's avatar caimeng

协议签署的H5地址,根据环境配置变化

parent 0ea13a74
NODE_ENV=development
VUE_APP_ENV=development
VUE_APP_SIGN_URL=http://m.jqtianxia.cn/sign_agreement/index.html
VUE_APP_API=http://47.99.245.36:8202
NODE_ENV=production
VUE_APP_ENV=production
VUE_APP_SIGN_URL=https://sign.taimedias.com/index.html
VUE_APP_API=https://drwater.dingrongxd.com
NODE_ENV=production
VUE_APP_ENV=production
VUE_APP_SIGN_URL=https://sign.taimedias.com/index.html
VUE_APP_API=https://water.jqtianxia.com
NODE_ENV=production
VUE_APP_ENV=test
VUE_APP_SIGN_URL=http://m.jqtianxia.cn/sign_agreement/index.html
VUE_APP_API=http://47.99.245.36:8202
......@@ -35,7 +35,7 @@
>代扣结清
</el-button
>
<el-button type="primary" size="mini" v-if="params.capitalCodeStr === '自营'" @click="handleDevicePayment">
<el-button type="primary" size="mini" v-if="params.capitalCode === 'OWNBUSINESS'" @click="handleDevicePayment">
分笔代扣
</el-button>
<template v-if="$permissionUtils.rolePermission('protocolSign')">
......
......@@ -16,6 +16,8 @@
<el-table-column align="center" prop="capitalCodeStr" label="放款资方"
></el-table-column>
<el-table-column align="center" prop="serviceThemeName" label="服务费主体"
></el-table-column>
<el-table-column align="center" prop="status" label="借款单状态">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.status==='AUDITED'" size="small">{{ loanStatusFormat(scope.row) }}
......
......@@ -14,7 +14,7 @@
<template v-if="EnumList.length">
<el-form-item prop="protocolType" label="协议类型">
<el-select clearable v-model="form.protocolType" clearable placeholder="请选择产品">
<el-select clearable v-model="form.protocolType" clearable placeholder="请选择产品">
<el-option
v-for="item in EnumList"
:key="item.protocolType"
......@@ -67,8 +67,7 @@
</el-table-column>
<el-table-column align="center" width="80" label="签署地址">
<template slot-scope="scope">
<a target="_blank"
:href="'https://sign.taimedias.com/index.html#/login?loanNo='+scope.row.loanNo">点击预览</a>
<a target="_blank" :href="H5+'#/login?loanNo='+scope.row.loanNo">点击预览</a>
</template>
</el-table-column>
<el-table-column align="center" label="附件">
......@@ -84,7 +83,8 @@
:src="item"
fit="contain"></el-image>
<div v-else>
<video :key="item" @click="handlePreviewVideo(item)" style="width:50px;height:50px;object-fit:fill;" :src="item" />
<video :key="item" @click="handlePreviewVideo(item)" style="width:50px;height:50px;object-fit:fill;"
:src="item"/>
</div>
</template>
......@@ -176,8 +176,9 @@ export default {
},
data() {
return {
showvideoplay:false,
videourl:'',
showvideoplay: false,
videourl: '',
H5: process.env.VUE_APP_SIGN_URL,
delayVisible: false,
......@@ -239,11 +240,11 @@ export default {
if (res.status === 200 && res.data.success) {
const {data, total} = res.data.result
data.forEach(item=>{
data.forEach(item => {
const imgs = []
if(item.annexUrl!==null){
item.annexUrl.forEach(img=>{
if(img.indexOf('mp4')===-1){
if (item.annexUrl !== null) {
item.annexUrl.forEach(img => {
if (img.indexOf('mp4') === -1) {
imgs.push(img)
}
})
......@@ -344,19 +345,19 @@ export default {
},
/** 预览大图 */
handlePreview(item,list){
handlePreview(item, list) {
const cache = []
list.forEach(item=>{
console.log(item,'==')
if(item.indexOf('mp4')===-1){
list.forEach(item => {
console.log(item, '==')
if (item.indexOf('mp4') === -1) {
cache.push(item)
}
})
},
/** 视频预览 */
handlePreviewVideo(item){
console.log(item,'nasha')
handlePreviewVideo(item) {
console.log(item, 'nasha')
this.showvideoplay = true;
this.videourl = item;
}
......
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