Commit 8063166c authored by Jennie Shi's avatar Jennie Shi

合并代码

parent 1cfe96f0
...@@ -12,11 +12,6 @@ module.exports = merge(prodEnv, { ...@@ -12,11 +12,6 @@ module.exports = merge(prodEnv, {
rootPath: '"http://180.104.121.66:8088/r/api"', rootPath: '"http://180.104.121.66:8088/r/api"',
filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"', filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"',
ocrPath: '"http://180.104.121.66:8088/r/api"', ocrPath: '"http://180.104.121.66:8088/r/api"',
<<<<<<< HEAD
appId: '"com.xcmg.app"',
currentVersion: '"1.7.6"',
=======
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"1.7.3"', currentVersion: '"1.7.7"',
>>>>>>> jeshi
}) })
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"', ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app"', appId: '"com.xcmg.app"',
currentVersion: '"1.2.4"' currentVersion: '"1.2.6"'
} }
import PDF from './PDF'
var $vm
export default {
install (Vue, options) {
if (!$vm) {
const PDFPlugin = Vue.extend(PDF)
$vm = new PDFPlugin().$mount()
document.body.appendChild($vm.$el)
}
Vue.prototype.$showPDF = function (url) {
$vm.showPDF(url)
}
},
}
<template>
<div id="containers" class="containers">
<!-- <div class='pdf-page'> -->
<canvas id="the-canvas"/>
<div v-if="pdfDoc" class="foot">
<button v-if="pageNum>1" class="left" @click="onPrevPage">上一页</button>
<button v-if="pageNum<pdfDoc.numPages" class="right" @click="onNextPage">下一页</button>
</div>
<!-- </div> -->
</div>
</template>
<script>
import PDFJS from 'pdfjs-dist'
export default {
data () {
return {
pdfDoc: null,
pageNum: 1,
pageRendering: false,
pageNumPending: null,
scale: 0.9,
}
},
methods: {
showPDF (url) {
let _this = this
PDFJS.getDocument(url).then(function (pdf) {
_this.pdfDoc = pdf
_this.renderPage(1)
})
},
renderPage (num) {
this.pageRendering = true
let _this = this
this.pdfDoc.getPage(num).then(function (page) {
var viewport = page.getViewport(_this.scale)
let canvas = document.getElementById('the-canvas')
canvas.height = viewport.height
canvas.width = viewport.width
// Render PDF page into canvas context
var renderContext = {
canvasContext: canvas.getContext('2d'),
viewport: viewport,
}
var renderTask = page.render(renderContext)
// Wait for rendering to finish
renderTask.promise.then(function () {
_this.pageRendering = false
if (_this.pageNumPending !== null) {
// New page rendering is pending
this.renderPage(_this.pageNumPending)
_this.pageNumPending = null
}
})
})
},
queueRenderPage (num) {
if (this.pageRendering) {
this.pageNumPending = num
} else {
this.renderPage(num)
}
},
onPrevPage () {
if (this.pageNum <= 1) {
return
}
this.pageNum--
this.queueRenderPage(this.pageNum)
},
onNextPage () {
if (this.pageNum >= this.pdfDoc.numPages) {
return
}
this.pageNum++
this.queueRenderPage(this.pageNum)
},
},
}
</script>
<style scoped>
#containers.containers {
/* background-color: rgba(0,0,0,0.75); */
position:fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
text-align: center;
padding: 5px;
}
.pdf-page {
}
.foot {
position: fixed;
transform: translate(-50%,0);
left: 50%;
}
</style>
...@@ -169,7 +169,9 @@ ...@@ -169,7 +169,9 @@
</item> </item>
<item> <item>
<div slot="name" class="required">租赁期数</div> <div slot="name" class="required">租赁期数</div>
<input slot="content" v-model="saveInfo.lease_times" :readonly="isReadOnly" placeholder="请输入租赁期数"> <input
slot="content" v-model="saveInfo.lease_times" :readonly="isReadOnly" type="number"
placeholder="请输入租赁期数">
</item> </item>
<item> <item>
<div slot="name" class="required">年利率</div> <div slot="name" class="required">年利率</div>
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<div <div
v-for="(item, index) in mort_upload_list" v-for="(item, index) in mort_upload_list"
v-if="item.check_id === mortId" v-if="item.check_id === mortId"
:key="index" :key="index+'info'"
class="card-upload" class="card-upload"
> >
<img :src="item.picture" @click="showBigPicture(item.picture)" > <img :src="item.picture" @click="showBigPicture(item.picture)" >
...@@ -87,8 +87,8 @@ ...@@ -87,8 +87,8 @@
</div> </div>
</div> </div>
<!--抵押 下载的图片--> <!--抵押 下载的图片-->
<div v-for="(pic, index) in dowload_list" :key="index"> <div v-for="(pic, index) in dowload_list" :key="index+'i'">
<div v-if="pic.check_id==checkId" :key="index" class="card-upload"> <div v-if="pic.check_id===mortId" :key="index+'info1'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)" > <img :src="pic.url" @click="showBigPicture(pic.url)" >
<div class="close" @click="delete_pic(pic.attachment_id)"> <div class="close" @click="delete_pic(pic.attachment_id)">
<img src="@/assets/userBind/deleteIcon.png" > <img src="@/assets/userBind/deleteIcon.png" >
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<div <div
v-for="(item, index) in upload_list" v-for="(item, index) in upload_list"
v-if="item.check_id === checkId" v-if="item.check_id === checkId"
:key="index" :key="index+'info2'"
class="card-upload" class="card-upload"
> >
<img :src="item.picture" @click="showBigPicture(item.picture)" > <img :src="item.picture" @click="showBigPicture(item.picture)" >
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
</div> </div>
</div> </div>
<!--从服务器上下载的图片--> <!--从服务器上下载的图片-->
<div v-for="(pic, index) in dowload_list" :key="index"> <div v-for="(pic, index) in dowload_list" :key="index+'info4'">
<div v-if="pic.check_id==checkId" :key="index" class="card-upload"> <div v-if="pic.check_id==checkId" :key="index+'info3'" class="card-upload">
<img :src="pic.url" @click="showBigPicture(pic.url)" > <img :src="pic.url" @click="showBigPicture(pic.url)" >
<div class="close" @click="delete_pic(pic.attachment_id)"> <div class="close" @click="delete_pic(pic.attachment_id)">
<img src="@/assets/userBind/deleteIcon.png" > <img src="@/assets/userBind/deleteIcon.png" >
...@@ -190,6 +190,7 @@ export default { ...@@ -190,6 +190,7 @@ export default {
vm.fromPage = window.localStorage.fromPage vm.fromPage = window.localStorage.fromPage
vm.loadItemList() vm.loadItemList()
vm.queryCheckId() vm.queryCheckId()
vm.queryMortId()
if (vm.fromPage === 'sale') { if (vm.fromPage === 'sale') {
vm.isReadOnly = false vm.isReadOnly = false
} else if (vm.fromPage === 'list') { } else if (vm.fromPage === 'list') {
...@@ -203,6 +204,47 @@ export default { ...@@ -203,6 +204,47 @@ export default {
}) })
}, },
methods: { methods: {
// 抵押证书check_id查询
queryMortId () {
let vm = this
let url = process.env.basePath + 'prj_mortgage_query'
let param = {
project_id: window.localStorage.project_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
console.log('抵押证书check_id查询', res)
if (res.result === 'S') {
vm.mortId = res.info.check_id
vm.mortgageQuery()
}
})
},
// 抵押证书查询
mortgageQuery () {
let vm = this
let url =
process.env.basePath + 'attachment_list_query' // 附件查询
let param = {
check_id: vm.mortId,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
res.lists.forEach(item => {
item['url'] =
process.env.filePath +
'attachment_id=' +
item.attachment_id +
'&access_token=' +
window.localStorage.access_token
})
vm.mort_dowload_list = res.lists
}
})
},
// 特批证书check_id查询 // 特批证书check_id查询
queryCheckId () { queryCheckId () {
let vm = this let vm = this
......
...@@ -65,6 +65,7 @@ export default { ...@@ -65,6 +65,7 @@ export default {
console.log('URL ==== ' + url) console.log('URL ==== ' + url)
PDFJS.getDocument(url).then((pdf) => { PDFJS.getDocument(url).then((pdf) => {
this.pdfDoc = pdf this.pdfDoc = pdf
debugger
console.log('pdf ==== ' + pdf) console.log('pdf ==== ' + pdf)
this.pages = this.pdfDoc.numPages this.pages = this.pdfDoc.numPages
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">租赁期数</div> <div slot="name" class="font-color">租赁期数</div>
<input slot="content" v-model="info.lease_times" placeholder="请输入租赁期数"> <input slot="content" v-model="info.lease_times" placeholder="请输入租赁期数" type="number">
</item> </item>
<item> <item>
<div slot="name" class="font-color">年利率</div> <div slot="name" class="font-color">年利率</div>
......
...@@ -141,8 +141,11 @@ export default { ...@@ -141,8 +141,11 @@ export default {
passwordCheck () { passwordCheck () {
let vm = this let vm = this
let length = vm.user_password.length let length = vm.user_password.length
debugger
if (length < 6 || length > 20) { if (length < 6 || length > 20) {
hlsPopup.showLongCenter('密码长度6~20位之间') hlsPopup.showLongCenter('密码长度6~20位之间')
} else if (new RegExp('^[0-9]*$').test(vm.user_password)) {
hlsPopup.showLongCenter('密码不能全为数字')
} else { } else {
vm.passwordFlag = true vm.passwordFlag = true
} }
...@@ -153,7 +156,7 @@ export default { ...@@ -153,7 +156,7 @@ export default {
if (length < 6 || length > 20) { if (length < 6 || length > 20) {
hlsPopup.showLongCenter('密码长度6~20位之间') hlsPopup.showLongCenter('密码长度6~20位之间')
} else if (vm.confirm !== vm.user_password) { } else if (vm.confirm !== vm.user_password) {
hlsPopup.showLongCenter('两次输入的密码不一致,请新输入') hlsPopup.showLongCenter('两次输入的密码不一致,请新输入')
} else { } else {
vm.confirmPassword = true vm.confirmPassword = true
} }
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<img src="../assets/login/pass.png" class="left-icon" > <img src="../assets/login/pass.png" class="left-icon" >
<input <input
v-model="confirm" :type="pwdType" oninput="value=value.replace(/[\u4E00-\u9FA5]/g,'')" placeholder="请重新输入密码" v-model="confirm" :type="pwdType" oninput="value=value.replace(/[\u4E00-\u9FA5]/g,'')" placeholder="请重新输入密码"
> >
<img v-if="confirm" :src="openEye" class="right-icon" @click="changeType" > <img v-if="confirm" :src="openEye" class="right-icon" @click="changeType" >
</div> </div>
<div class="button submit" @click="submit">注册</div> <div class="button submit" @click="submit">注册</div>
...@@ -167,6 +167,8 @@ export default { ...@@ -167,6 +167,8 @@ export default {
let length = vm.user_password.length let length = vm.user_password.length
if (length < 6 || length > 20) { if (length < 6 || length > 20) {
hlsPopup.showLongCenter('密码长度6~20位之间') hlsPopup.showLongCenter('密码长度6~20位之间')
} else if (new RegExp('^[0-9]*$').test(vm.user_password)) {
hlsPopup.showLongCenter('密码不能全为数字')
} else { } else {
vm.passwordFlag = true vm.passwordFlag = true
} }
...@@ -182,7 +184,7 @@ export default { ...@@ -182,7 +184,7 @@ export default {
vm.confirmPassword = true vm.confirmPassword = true
} }
}, },
async submit () { async submit () {
let vm = this let vm = this
if (!vm.phoneNumberFlag) { if (!vm.phoneNumberFlag) {
hlsPopup.showLongCenter('请输入手机号!') hlsPopup.showLongCenter('请输入手机号!')
...@@ -195,7 +197,7 @@ export default { ...@@ -195,7 +197,7 @@ export default {
} else { } else {
await vm.passwordCheck() await vm.passwordCheck()
await vm.confirmCheck() await vm.confirmCheck()
if(vm.passwordFlag && vm.confirmPassword){ if (vm.passwordFlag && vm.confirmPassword) {
let url = process.env.basePath + 'register' let url = process.env.basePath + 'register'
let md5passwprd = CryptoJS.MD5(vm.user_password) let md5passwprd = CryptoJS.MD5(vm.user_password)
.toString() .toString()
...@@ -217,7 +219,6 @@ export default { ...@@ -217,7 +219,6 @@ export default {
} }
}) })
} }
} }
}, },
returnLogin () { returnLogin () {
......
This diff is collapsed.
This diff is collapsed.
<<<<<<< HEAD <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.09574da6775db7db470394af645f0ad7.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.75679805cfd6269119a3.js></script><script type=text/javascript src=./static/js/vendor.5967fb6c1e3ff49ccff1.js></script><script type=text/javascript src=./static/js/app.7a8eaae9546a92493742.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.bf12f36459a8557699346754da6efd18.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.5b23605dc2d9cfefc737.js></script><script type=text/javascript src=./static/js/vendor.64c4110c2ef75634c410.js></script><script type=text/javascript src=./static/js/app.dd5894f1024fda4ea85c.js></script></body></html> \ No newline at end of file
=======
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.52a70966e6418a8b3b97c93ce2dec949.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.75679805cfd6269119a3.js></script><script type=text/javascript src=./static/js/vendor.7278d929ed3c1f5073ab.js></script><script type=text/javascript src=./static/js/app.721099b2f6b67e7c6383.js></script></body></html>
>>>>>>> jeshi
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