Commit c6d72498 authored by linxin's avatar linxin

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

parents fc95f762 b9b3e8f0
...@@ -310,7 +310,7 @@ export default { ...@@ -310,7 +310,7 @@ export default {
uncheck1: unCheck1, uncheck1: unCheck1,
uncheck2: unCheck2, uncheck2: unCheck2,
uncheck3: unCheck3, uncheck3: unCheck3,
con_confirm_status: this.$route.params.item.con_confirm_status, con_confirm_status: this.$route.params.item.confirm_status,
entry_info_flag: false, entry_info_flag: false,
} }
}, },
...@@ -342,7 +342,7 @@ export default { ...@@ -342,7 +342,7 @@ export default {
vm.bp_name = vm.$route.params.item.bp_name vm.bp_name = vm.$route.params.item.bp_name
vm.project_id = vm.$route.params.item.project_id vm.project_id = vm.$route.params.item.project_id
vm.confirm_id = vm.$route.params.item.confirm_id vm.confirm_id = vm.$route.params.item.confirm_id
vm.con_confirm_status = vm.$route.params.item.con_confirm_status vm.con_confirm_status = vm.$route.params.item.confirm_status
if (vm.$route.params.item.bp_class === 'NP') { if (vm.$route.params.item.bp_class === 'NP') {
vm.bp_flag = false vm.bp_flag = false
} else { } else {
......
...@@ -121,8 +121,8 @@ export default { ...@@ -121,8 +121,8 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.submitLists = res.lists.filter(item => item.con_confirm_status === 'SUBMIT') vm.submitLists = res.lists.filter(item => item.confirm_status === 'SUBMIT')
vm.approvedLists = res.lists.filter(item => item.con_confirm_status === 'APPROVED') vm.approvedLists = res.lists.filter(item => item.confirm_status === 'APPROVED')
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
This diff is collapsed.
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Descrip: 产品明细 * @Descrip: 产品明细
* @Author: your name * @Author: your name
* @Date: 2019-10-15 14:30:00 * @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-11-06 16:35:55 * @LastEditTime: 2019-11-06 19:12:51
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
title="产品查询"> title="产品查询">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="returnGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>产品明细</span> <span>产品明细</span>
</div> </div>
</h-header> </h-header>
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
</div> </div>
<!-- <Tab v-if="slide" :tabNums="tabNum" @getTabNum="getTabNum"/> --> <!-- <Tab v-if="slide" :tabNums="tabNum" @getTabNum="getTabNum"/> -->
<!-- 基本信息 --> <!-- 基本信息 -->
<h-content v-swipeup="(e)=>vueTouch('上滑',e)" v-swipedown="(e)=>vueTouch('下滑',e)" class="hcontent"> <h-content class="hcontent" v-swipeup="(e)=>vueTouch('上滑',e)" v-swipedown="(e)=>vueTouch('下滑',e)">
<scroll class="scrolls" ref="scrolls"> <scroll class="scrolls" ref="scrolls" :listenScroll="true" @scroll="startScroll">
<!-- 基本信息 --> <!-- 基本信息 -->
<div id="baseInfo" class="base"> <div id="baseInfo" class="base">
<swipe :interval="5000" class="hls-swipe"> <swipe :interval="5000" class="hls-swipe">
...@@ -160,44 +160,34 @@ export default { ...@@ -160,44 +160,34 @@ export default {
methods: methods:
{ {
startScroll (v) {
this.slide = true
},
// tab切换 // tab切换
tabCheck (num) { tabCheck (num) {
let scrollContent = document.getElementsByClassName('scrollContent')[0] let scrollContent = document.getElementsByClassName('scrollContent')[0]
if(num === 0){ if(num === 0){
this.num = 0 this.num = 0
console.log('基本信息',document.getElementsByClassName('base')[0].getBoundingClientRect().top) this.$refs.scrolls.scrollToElement(document.getElementsByClassName('base')[0])
this.height = document.getElementsByClassName('base')[0].getBoundingClientRect().top - 83
// console.log(height)
scrollContent.style.transition = 'all .3s cubic-bezier(0.165, 0.84, 0.44, 1) 0s'
scrollContent.style.transform = 'translate(0px, -' + this.height + 'px) scale(1) translateZ(0px)'
}else if(num === 1){ }else if(num === 1){
this.num = 1 this.num = 1
console.log('详情信息',document.getElementsByClassName('prodetail')[0].getBoundingClientRect().top) this.$refs.scrolls.scrollToElement(document.getElementsByClassName('prodetail')[0])
this.height = document.getElementsByClassName('prodetail')[0].getBoundingClientRect().top - 83
console.log(this.height)
scrollContent.style.transition = 'all .3s cubic-bezier(0.165, 0.84, 0.44, 1) 0s'
scrollContent.style.transform = 'translate(0px, -' + this.height + 'px) scale(1) translateZ(0px)'
}else{ }else{
this.num = 2 this.num = 2
console.log('配置信息',document.getElementsByClassName('procnf')[0].getBoundingClientRect().top) this.$refs.scrolls.scrollToElement(document.getElementsByClassName('procnf')[0])
this.height = document.getElementsByClassName('procnf')[0].getBoundingClientRect().top - 83
// console.log(height)
scrollContent.style.transition = 'all .3s cubic-bezier(0.165, 0.84, 0.44, 1) 0s'
scrollContent.style.transform = 'translate(0px, -' + this.height + 'px) scale(1) translateZ(0px)'
} }
}, },
returnGo () { returnGo () {
this.$router.replace({ this.$router.replace({
name: 'ProductList', name: 'ProductList',
}) })
// this.$router.go(-1)
}, },
vueTouch: function (s, e) { vueTouch: function (s, e) {
// console.log(s, e)
this.slide = true
// this.height = 0
// console.log(this.$refs.detail.style)
let clientHeight = document.body.clientHeight // 屏幕可视高度 let clientHeight = document.body.clientHeight // 屏幕可视高度
let procnfGather = document.getElementsByClassName('procnf')[0].getBoundingClientRect() // 配置信息元素集合 let procnfGather = document.getElementsByClassName('procnf')[0].getBoundingClientRect() // 配置信息元素集合
let detailGather = document.getElementsByClassName('prodetail')[0].getBoundingClientRect() // 详情信息元素集合 let detailGather = document.getElementsByClassName('prodetail')[0].getBoundingClientRect() // 详情信息元素集合
...@@ -339,6 +329,13 @@ export default { ...@@ -339,6 +329,13 @@ export default {
</script> </script>
<style lang='less'> <style lang='less'>
#detailed { #detailed {
.hls-swipe {
height: 220px;
img {
width: 100%;
height: 100%;
}
}
.tab-style{ .tab-style{
display:flex; display:flex;
justify-content: center; justify-content: center;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<h-view id="prolist" class="public-style" title="产品查询"> <h-view id="prolist" class="public-style" title="产品查询">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="returnGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>产品信息</span> <span>产品信息</span>
</div> </div>
</h-header> </h-header>
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
* @Descrip: 查询首页 * @Descrip: 查询首页
* @Author: your name * @Author: your name
* @Date: 2019-10-15 14:30:00 * @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-11-04 19:08:13 * @LastEditTime: 2019-11-06 17:29:18
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
<h-view id="query" class="public-style" title="产品查询"> <h-view id="query" class="public-style" title="产品查询">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="returnGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>产品信息</span> <span>产品信息</span>
</div> </div>
</h-header> </h-header>
......
...@@ -621,10 +621,12 @@ export default { ...@@ -621,10 +621,12 @@ export default {
async verified () { async verified () {
this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片 this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片
this.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片 this.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片
let bpId = await this.saveWord() let res = await this.saveWord()
this.getBankInfo() if(res){
// 查询资料清单 this.getBankInfo()
this.loadItemList() // 查询资料清单
this.loadItemList()
}
}, },
loadItemList () { loadItemList () {
let vm = this let vm = this
...@@ -800,7 +802,7 @@ export default { ...@@ -800,7 +802,7 @@ export default {
vm.hlsPopup.showLongCenter('手机号码有误!') vm.hlsPopup.showLongCenter('手机号码有误!')
} else { } else {
let bpId = await vm.saveProtocol() let bpId = await vm.saveProtocol()
return bpId return true
} }
}, },
// 图片上传入口 // 图片上传入口
......
...@@ -657,18 +657,21 @@ export default { ...@@ -657,18 +657,21 @@ export default {
// this.getBankInfo() // this.getBankInfo()
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.fullPath === '/tab/my-info') { /*|| from.fullPath === '/margin-first-pay'*/
next(vm => { next(vm => {
vm.from = true
vm.getbaseInfo()
vm.getBankInfo()
vm.getBpType() vm.getBpType()
vm.getProvince() vm.getProvince()
if (vm.$route.params.status === 'APPROVED') { if (vm.$route.params.status === 'APPROVED') {
vm.isApproved = true vm.isApproved = true
} }
if (from.fullPath === '/tab/my-info') { /*|| from.fullPath === '/margin-first-pay'*/
vm.upload_list= [] // 上传图片列表
vm.dowload_list= [] // 下载图片列表
vm.from = true
vm.getbaseInfo()
vm.getBankInfo()
}
}) })
}
next() next()
}, },
methods: { methods: {
......
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