Commit f557eb8e authored by nature's avatar nature

徐工三期需求,功能权限调整

parent c453f7f5
...@@ -26,7 +26,7 @@ const webpackConfig = merge(baseWebpackConfig, { ...@@ -26,7 +26,7 @@ const webpackConfig = merge(baseWebpackConfig, {
output: { output: {
path: config.build.assetsRoot, path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'), filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') chunkFilename: utils.assetsPath('js/[name].[id].[chunkhash].js')
}, },
plugins: [ plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html // http://vuejs.github.io/vue-loader/en/workflow/production.html
......
...@@ -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.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"2.9.9"' currentVersion: '"3.0.0"'
} }
...@@ -87,7 +87,7 @@ module.exports = { ...@@ -87,7 +87,7 @@ module.exports = {
* Source Maps * Source Maps
*/ */
productionSourceMap: true, productionSourceMap: false,
// https://webpack.js.org/configuration/devtool/#production // https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map', devtool: '#source-map',
......
...@@ -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.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"2.9.9"' currentVersion: '"3.0.0"'
} }
...@@ -13,20 +13,14 @@ ...@@ -13,20 +13,14 @@
"clean": "rimraf www/*" "clean": "rimraf www/*"
}, },
"dependencies": { "dependencies": {
"IdCardPlugin": "file:../card-plugin-test/IdCardPlugin",
"autosize": "^3.0.20", "autosize": "^3.0.20",
"better-scroll": "^1.10.3", "better-scroll": "^1.10.3",
"cordova-ios": "^4.5.5",
"cordova-plugin-device": "2.0.2",
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-whitelist": "1.3.3",
"crypto-js": "^3.1.9-1", "crypto-js": "^3.1.9-1",
"fastclick": "https://hel.hand-china.com/easyUI/fastclick.git", "fastclick": "https://hel.hand-china.com/easyUI/fastclick.git",
"hls-easy-ui": "https://hel.hand-china.com/easyUI/hls-easy-ui.git#keyboard", "hls-easy-ui": "https://hel.hand-china.com/easyUI/hls-easy-ui.git#keyboard",
"ionic-plugin-keyboard": "^2.2.1", "ionic-plugin-keyboard": "^2.2.1",
"js-base64": "^2.5.1", "js-base64": "^2.5.1",
"pdfjs-dist": "^2.2.228", "pdfjs-dist": "2.2.228",
"vue": "^2.5.2", "vue": "^2.5.2",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuex": "^2.1.1", "vuex": "^2.1.1",
...@@ -111,13 +105,6 @@ ...@@ -111,13 +105,6 @@
"ios", "ios",
"android" "android"
], ],
"plugins": { "plugins": {}
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"ionic-plugin-keyboard": {},
"IdCardPlugin": {}
}
} }
} }
...@@ -174,9 +174,9 @@ ...@@ -174,9 +174,9 @@
</h-content> </h-content>
<bottom-tab v-if="!flag"> <bottom-tab v-if="!flag">
<tab-button class="before" @click.native="takePhonto"> <tab-button class="before" @click.native="takePhonto">
<img src="@/assets/constractSigning/certification.png" >认证 <img src="@/assets/constractSigning/certification.png" >签署合同
</tab-button> </tab-button>
<tab-button class="approve" @click.native="isConfirm">确定</tab-button> <tab-button class="approve" @click.native="isConfirm">提交审核</tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
</template> </template>
...@@ -541,7 +541,7 @@ export default { ...@@ -541,7 +541,7 @@ export default {
// 只有认证通过后方可进行签约操作 // 只有认证通过后方可进行签约操作
vm.hlsPopup.showConfirm({ vm.hlsPopup.showConfirm({
title: '提示', title: '提示',
content: '您确定同意发车吗?', content: '您确定提交审核吗?',
onConfirm: data => { onConfirm: data => {
if (data === 1) { if (data === 1) {
vm.confirm() vm.confirm()
...@@ -566,7 +566,7 @@ export default { ...@@ -566,7 +566,7 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.hlsPopup.showSuccess('发车成功') vm.hlsPopup.showSuccess('合同签署成功')
setTimeout(() => { setTimeout(() => {
vm.$router.push({ vm.$router.push({
name: 'MyInfo', name: 'MyInfo',
......
...@@ -140,7 +140,6 @@ export default { ...@@ -140,7 +140,6 @@ export default {
this.$refs.scroll.scrollToTop() this.$refs.scroll.scrollToTop()
}, },
changePage (e) { changePage (e) {
debugger
this.$router.push({ this.$router.push({
name: 'ConfirmDetail', name: 'ConfirmDetail',
query: { query: {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<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="$routeGo()"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>融租申请创建</span> <span>融租方案创建</span>
</div> </div>
</h-header> </h-header>
<div class="tab-style has-header"> <div class="tab-style has-header">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</scroll> </scroll>
<bottom-tab> <bottom-tab>
<tab-button class="footer" @click.native="changePage"> <tab-button class="footer" @click.native="changePage">
<img class="add-img" src="@/assets/contractCreate/create-add.png" alt=""> 创建新合同 <img class="add-img" src="@/assets/contractCreate/create-add.png" alt=""> 融租方案创建
</tab-button> </tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
<div v-if="multipleRole == 'AGENT' || (multipleRole == 'OFFICE' || user_bp_type == 'OFFICE')" class="contract-item" @click="goCreate()"> <div v-if="multipleRole == 'AGENT' || (multipleRole == 'OFFICE' || user_bp_type == 'OFFICE')" class="contract-item" @click="goCreate()">
<img src="@/assets/myInfo/contractCreate.png" > <img src="@/assets/myInfo/contractCreate.png" >
<span>融租申请创建</span> <span>融租方案创建</span>
</div> </div>
<div v-if="multipleRole == 'GUTA'" class="contract-item" @click="changeContract('GUTA')"> <div v-if="multipleRole == 'GUTA'" class="contract-item" @click="changeContract('GUTA')">
<img src="@/assets/myInfo/under.png" > <img src="@/assets/myInfo/under.png" >
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</div> </div>
</h-header> </h-header>
<scroll <scroll
v-if="data!==null" v-show="data!==null"
ref="scroll" :updateData="[lists]" :pullUp="true" class="pay-content" ref="scroll" :updateData="[lists]" :pullUp="true" class="pay-content"
@pullingUp="getList"> @pullingUp="getList">
<div v-for="(item,index) in lists" :key="index" class="contract-item"> <div v-for="(item,index) in lists" :key="index" class="contract-item">
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<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="$routeGo()" > <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
<span>合同详情</span> <span>方案详情</span>
</div> </div>
</h-header> </h-header>
<!-- <div <!-- <div
...@@ -38,10 +38,10 @@ ...@@ -38,10 +38,10 @@
<img :src="num === 0?check1:uncheck1" >基本信息 <img :src="num === 0?check1:uncheck1" >基本信息
</div> </div>
<div :class="{'done':num === 1,'undone':num !== 1}" @click="num = 1;"> <div :class="{'done':num === 1,'undone':num !== 1}" @click="num = 1;">
<img :src="num === 1?check3:uncheck3" >租赁信息 <img :src="num === 1?check3:uncheck3" >方案信息
</div> </div>
<div :class="{'done':num === 2,'undone':num !== 2}" @click="num = 2;"> <div :class="{'done':num === 2,'undone':num !== 2}" @click="num = 2;">
<img :src="num === 2?check2:uncheck2" >合同文本 <img :src="num === 2?check2:uncheck2" >征信授权书
</div> </div>
</div> </div>
<h-content v-if="num === 0" class="business-condition"> <h-content v-if="num === 0" class="business-condition">
...@@ -220,10 +220,10 @@ ...@@ -220,10 +220,10 @@
</h-content> </h-content>
<bottom-tab v-if="con_confirm_status!=='APPROVED'" class="add-box"> <bottom-tab v-if="con_confirm_status!=='APPROVED'" class="add-box">
<tab-button class="before" @click.native="takePhonto"> <tab-button class="before" @click.native="takePhonto">
<img src="@/assets/constractSigning/certification.png" >认证 <img src="@/assets/constractSigning/certification.png" >征信签约
</tab-button> </tab-button>
<tab-button class="next" @click.native="inSure"> <tab-button class="next" @click.native="inSure">
<img src="@/assets/intoApproval/approve.png" >确认签约 <img src="@/assets/intoApproval/approve.png" >提交审核
</tab-button> </tab-button>
</bottom-tab> </bottom-tab>
<h-modal <h-modal
......
...@@ -340,10 +340,10 @@ ...@@ -340,10 +340,10 @@
</div> </div>
</h-content> </h-content>
<bottom-tab v-if="!flag"> <bottom-tab v-if="!flag">
<tab-button class="save" @click.native="generateContract" :disable="generateContractFlag">生成合同文本</tab-button> <tab-button class="save" @click.native="generateContract" :disable="generateContractFlag">生成电子合同</tab-button>
<tab-button <tab-button
class="approve" @click.native="checkStatus" class="approve" @click.native="checkStatus"
>融租合同创建</tab-button >提交签署</tab-button
> >
</bottom-tab> </bottom-tab>
<div class="bottom-pop"> <div class="bottom-pop">
...@@ -987,7 +987,7 @@ export default { ...@@ -987,7 +987,7 @@ export default {
return i.lease_status === 'N' return i.lease_status === 'N'
}) })
if (mantained.length > 0) { if (mantained.length > 0) {
hlsPopup.showLongCenter('您有待维护的设备项,请完善信息后再申请发车!') hlsPopup.showLongCenter('您有待维护的设备项,请完善信息后再提交至客户签署!')
} else { } else {
this.isApprove() this.isApprove()
} }
...@@ -995,7 +995,7 @@ export default { ...@@ -995,7 +995,7 @@ export default {
isApprove () { isApprove () {
this.hlsPopup.showConfirm({ this.hlsPopup.showConfirm({
title: '提示', title: '提示',
content: '您确定申请发车吗?', content: '您确定提交至客户签署吗?',
onConfirm: (data) => { onConfirm: (data) => {
if (data === 1) { if (data === 1) {
this.approve() this.approve()
......
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
</div> </div>
</div> </div>
</scroll> </scroll>
<bottom-tab> <!--<bottom-tab>
<tab-button class="add" @click.native="goAdd">新增发车</tab-button> <tab-button class="add" @click.native="goAdd">新增发车</tab-button>
</bottom-tab> </bottom-tab>-->
</h-view> </h-view>
</template> </template>
<script> <script>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<h-header class="bar-custom"> <h-header class="bar-custom">
<div slot="center" class="top-word">业务指引-{{ role }}</div> <div slot="center" class="top-word">业务指引-{{ role }}</div>
</h-header> </h-header>
<h-content> <h-content class="has-footer">
<!-- 搜索 --> <!-- 搜索 -->
<div class="search has-header"> <div class="search has-header">
<img src="@/assets/functionCenter/bgxg-pic@2x.png" alt="" > <img src="@/assets/functionCenter/bgxg-pic@2x.png" alt="" >
...@@ -159,12 +159,12 @@ export default { ...@@ -159,12 +159,12 @@ export default {
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (true) { // if (true) {
next(vm => { next(vm => {
vm.userQuery() vm.userQuery()
}) })
} // }
next() // next()
}, },
// created () { // created () {
// this.userQuery() // this.userQuery()
...@@ -195,27 +195,24 @@ export default { ...@@ -195,27 +195,24 @@ export default {
window.localStorage.setItem('bp_identity', res.info.bp_identity) window.localStorage.setItem('bp_identity', res.info.bp_identity)
window.localStorage.setItem('bp_class', res.info.user_bp_class) window.localStorage.setItem('bp_class', res.info.user_bp_class)
window.localStorage.setItem('bp_type', res.info.user_bp_type) window.localStorage.setItem('bp_type', res.info.user_bp_type)
if (window.localStorage.multipleRole) {
} else {
window.localStorage.setItem('multipleRole', res.info.user_bp_type) window.localStorage.setItem('multipleRole', res.info.user_bp_type)
} vm.user_bp_type = res.info.user_bp_type
if (window.localStorage.getItem('multipleRole') == 'TENANT') { vm.bp_type_n = res.info.user_bp_type_n
vm.user_bp_name = res.info.user_bp_name
vm.user_phone = res.info.user_phone
if (vm.user_bp_type === 'TENANT') {
vm.role = '主承租人' vm.role = '主承租人'
} else if (window.localStorage.getItem('multipleRole') == 'GUTA') { } else if (vm.user_bp_type === 'GUTA') {
vm.role = '担保人' vm.role = '担保人'
} else if (window.localStorage.getItem('multipleRole') == 'FACTORY') { } else if (vm.user_bp_type === 'FACTORY') {
vm.role = '主机厂' vm.role = '主机厂'
} else if (window.localStorage.getItem('multipleRole') == 'AGENT') { } else if (vm.user_bp_type === 'AGENT') {
vm.role = '经销商' vm.role = '经销商'
} else if (window.localStorage.getItem('multipleRole') == 'OFFICE') { } else if (vm.user_bp_type === 'OFFICE') {
vm.role = '办事处' vm.role = '办事处'
} else if (vm.user_bp_type === 'MANAGER') {
vm.role = '业务经理'
} }
vm.user_bp_type = res.info.user_bp_type
vm.bp_type_n = res.info.user_bp_type_n
vm.user_bp_name = res.info.user_bp_name
vm.user_phone = res.info.user_phone
if (vm.user_bp_type === 'AGENT') { if (vm.user_bp_type === 'AGENT') {
vm.isAGENT = true vm.isAGENT = true
} else { } else {
...@@ -235,12 +232,12 @@ export default { ...@@ -235,12 +232,12 @@ export default {
goStart () { goStart () {
let vm = this let vm = this
if (this.bp_id) { if (this.bp_id) {
if (window.localStorage.multipleRole === 'OFFICE' || window.localStorage.multipleRole === 'AGENT') { if (vm.user_bp_type === 'MANAGER') {
this.$router.push({ this.$router.push({
name: 'StartList', name: 'StartList',
}) })
} else { } else {
hlsPopup.showLongCenter('您当前角色非经销商或办事处,无法使用该功能!') hlsPopup.showLongCenter('您当前角色非业务经理,无法使用该功能!')
} }
} else { } else {
hlsPopup.showLongCenter('请先进行用户绑定') hlsPopup.showLongCenter('请先进行用户绑定')
...@@ -248,7 +245,11 @@ export default { ...@@ -248,7 +245,11 @@ export default {
}, },
// 融租方案确认 // 融租方案确认
conSign () { conSign () {
let vm = this // .首付还款、租金还款、融租方案确认需对业务经理角色做控制,点击无法进入,提示“当前角色非承租人或担保人,无法使用该功能!”
if (this.user_bp_type === 'MANAGER') {
hlsPopup.showLongCenter('当前角色非承租人或担保人,无法使用该功能!')
return
}
if (this.bp_id) { if (this.bp_id) {
this.$router.push({ this.$router.push({
name: 'ContractSigning', name: 'ContractSigning',
...@@ -264,7 +265,7 @@ export default { ...@@ -264,7 +265,7 @@ export default {
goVideoSign () { goVideoSign () {
let vm = this let vm = this
if (this.bp_id) { if (this.bp_id) {
if (window.localStorage.multipleRole === 'OFFICE' || window.localStorage.multipleRole === 'FACTORY' || window.localStorage.multipleRole === 'AGENT') { if (vm.user_bp_type === 'OFFICE' || vm.user_bp_type === 'FACTORY' || vm.user_bp_type === 'AGENT') {
hlsPopup.showLongCenter('您当前角色非承租人或担保人,无法使用该功能!') hlsPopup.showLongCenter('您当前角色非承租人或担保人,无法使用该功能!')
} else { } else {
this.$router.push({ this.$router.push({
...@@ -289,7 +290,7 @@ export default { ...@@ -289,7 +290,7 @@ export default {
goCarConfirm () { goCarConfirm () {
let vm = this let vm = this
if (vm.bp_id) { if (vm.bp_id) {
if (window.localStorage.multipleRole === 'OFFICE' || window.localStorage.multipleRole === 'FACTORY') { if (vm.user_bp_type === 'OFFICE' || vm.user_bp_type === 'FACTORY') {
hlsPopup.showLongCenter('您当前角色非承租人或担保人或经销商,无法使用该功能!') hlsPopup.showLongCenter('您当前角色非承租人或担保人或经销商,无法使用该功能!')
} else { } else {
vm.$router.push({ vm.$router.push({
...@@ -303,8 +304,13 @@ export default { ...@@ -303,8 +304,13 @@ export default {
// 进入我的还款 // 进入我的还款
goReimburse () { goReimburse () {
let vm = this let vm = this
// .首付还款、租金还款、融租方案确认需对业务经理角色做控制,点击无法进入,提示“当前角色非承租人或担保人,无法使用该功能!”
if (this.user_bp_type === 'MANAGER') {
hlsPopup.showLongCenter('当前角色非承租人或担保人,无法使用该功能!')
return
}
if (this.bp_id) { if (this.bp_id) {
if (window.localStorage.multipleRole === 'OFFICE' || window.localStorage.multipleRole === 'FACTORY' || window.localStorage.multipleRole === 'AGENT') { if (vm.user_bp_type === 'OFFICE' || vm.user_bp_type === 'FACTORY' || vm.user_bp_type === 'AGENT') {
hlsPopup.showLongCenter('您当前角色非承租人或担保人,无法使用该功能!') hlsPopup.showLongCenter('您当前角色非承租人或担保人,无法使用该功能!')
} else { } else {
this.$router.push({ this.$router.push({
...@@ -318,7 +324,7 @@ export default { ...@@ -318,7 +324,7 @@ export default {
goInvoice () { goInvoice () {
let vm = this let vm = this
if (this.bp_id) { if (this.bp_id) {
if (window.localStorage.multipleRole === 'TENANT') { if (vm.user_bp_type === 'TENANT') {
this.$router.push({ this.$router.push({
name: 'MyInvoice', name: 'MyInvoice',
}) })
...@@ -330,8 +336,7 @@ export default { ...@@ -330,8 +336,7 @@ export default {
} }
}, },
goContractRepayment () { goContractRepayment () {
let vm = this if (this.bp_id) {
if (window.localStorage.getItem('bp_id') !== 'undefined') {
this.$router.push({ this.$router.push({
name: 'ContractRepayment', name: 'ContractRepayment',
}) })
...@@ -341,8 +346,13 @@ export default { ...@@ -341,8 +346,13 @@ export default {
}, },
changeRent () { changeRent () {
let vm = this let vm = this
if (window.localStorage.getItem('bp_id') !== 'undefined') { // 首付还款、租金还款、融租方案确认需对业务经理角色做控制,点击无法进入,提示“当前角色非承租人或担保人,无法使用该功能!”
if (window.localStorage.multipleRole === 'OFFICE' || window.localStorage.multipleRole === 'FACTORY' || window.localStorage.multipleRole === 'AGENT') { if (this.user_bp_type === 'MANAGER') {
hlsPopup.showLongCenter('当前角色非承租人或担保人,无法使用该功能!')
return
}
if (this.bp_id) {
if (vm.user_bp_type === 'OFFICE' || vm.user_bp_type === 'FACTORY' || vm.user_bp_type === 'AGENT') {
hlsPopup.showLongCenter('您当前角色非承租人或担保人,无法使用该功能!') hlsPopup.showLongCenter('您当前角色非承租人或担保人,无法使用该功能!')
} else { } else {
this.$router.push({ this.$router.push({
...@@ -354,7 +364,11 @@ export default { ...@@ -354,7 +364,11 @@ export default {
} }
}, },
userBind () { userBind () {
let vm = this // .首付还款、租金还款、融租方案确认需对业务经理角色做控制,点击无法进入,提示“当前角色非承租人或担保人,无法使用该功能!”
if (this.user_bp_type === 'MANAGER') {
hlsPopup.showLongCenter('当前角色非承租人或担保人,无法使用该功能!')
return
}
window.localStorage.setItem('from', true) window.localStorage.setItem('from', true)
if (!this.bp_id && this.user_bp_status === 'NEW') { if (!this.bp_id && this.user_bp_status === 'NEW') {
this.$router.push({ this.$router.push({
...@@ -422,7 +436,7 @@ export default { ...@@ -422,7 +436,7 @@ export default {
}, },
todoList () { todoList () {
if (this.bp_id) { if (this.bp_id) {
if (window.localStorage.multipleRole !== 'OFFICE' && window.localStorage.multipleRole !== 'AGENT') { if (this.user_bp_type !== 'OFFICE' && this.user_bp_type !== 'AGENT') {
hlsPopup.showLongCenter('仅经销商/办事处业务员角色可使用该功能!') hlsPopup.showLongCenter('仅经销商/办事处业务员角色可使用该功能!')
} else { } else {
this.$router.push({ this.$router.push({
......
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
<div class="functions"> <div class="functions">
<div class="title">资讯动态</div> <div class="title">资讯动态</div>
<ul> <ul>
<li v-for="item in newsList" :key="item.index"><img src="@/assets/homePage/inform.png" alt="">{{item.new_title}}</li> <li v-for="item in newsList" :key="item.index"><img src="@/assets/homePage/inform.png" alt="">{{
item.new_title }}
</li>
</ul> </ul>
<img src="@/assets/functionCenter/in@2x.png" @click="gotoNews()"> <img src="@/assets/functionCenter/in@2x.png" @click="gotoNews()">
<!-- <function-item <!-- <function-item
...@@ -48,7 +50,7 @@ ...@@ -48,7 +50,7 @@
</div> </div>
</div> </div>
<div class="guessing">猜你喜欢<span><img src="@/assets/homePage/intrest.png"></span></div> <div class="guessing">猜你喜欢<span><img src="@/assets/homePage/intrest.png"></span></div>
<div v-for="(list,index) in guessingList" :key="index" class="guessing-wrap" @click="goProductDetail(list)" > <div v-for="(list,index) in guessingList" :key="index" class="guessing-wrap" @click="goProductDetail(list)">
<list-item :item-height="120"> <list-item :item-height="120">
<item> <item>
<div slot="name" class="item-pic"> <div slot="name" class="item-pic">
...@@ -58,9 +60,13 @@ ...@@ -58,9 +60,13 @@
<div slot="content" class="item-content"> <div slot="content" class="item-content">
<div class="top">{{ list.product_name }}</div> <div class="top">{{ list.product_name }}</div>
<img src="@/assets/homePage/hot.png" class="hot"> <img src="@/assets/homePage/hot.png" class="hot">
<div class="center"><span class="firsts">{{ !list.office_id&&!list.agent_id?"-":(list.office_id?'办事处':'经销商') }}</span> <span class="seconds">{{ !list.office_id&&!list.agent_id?"-":(list.office_id?list.office_name:list.agent_name) }}</span></div> <div class="center"><span class="firsts">{{ !list.office_id&&!list.agent_id?'-':(list.office_id?'办事处':'经销商') }}</span>
<div class="center"><span class="firsts">产品型号</span> <span class="seconds">{{ list.product_code }}</span></div> <span class="seconds">{{ !list.office_id&&!list.agent_id?'-':(list.office_id?list.office_name:list.agent_name) }}</span>
<div class="center"><span class="firsts">地址</span> <span class="seconds">{{ !list.office_id&&!list.agent_id?( list.province_id_n === list.city_id_n?(list.district_id_n?list.city_id_n + list.district_id_n:list.city_id_n):(list.district_id_n?list.province_id_n + list.city_id_n + list.district_id_n:list.province_id_n + list.city_id_n )):(list.office_id? (list.office_province === list.office_city?(list.office_district?list.office_city + list.office_district:list.office_city ):(list.office_district?list.office_province + list.office_city + list.office_district:list.office_province + list.office_city)):(list.agent_province === list.agent_city?(list.agent_district?list.agent_city + list.agent_district:list.agent_city):(list.agent_district?list.agent_province + list.agent_city + list.agent_district:list.agent_province + list.agent_city))) }}</span></div> </div>
<div class="center"><span class="firsts">产品型号</span> <span class="seconds">{{ list.product_code }}</span>
</div>
<div class="center"><span class="firsts">地址</span> <span class="seconds">{{ !list.office_id&&!list.agent_id?( list.province_id_n === list.city_id_n?(list.district_id_n?list.city_id_n + list.district_id_n:list.city_id_n):(list.district_id_n?list.province_id_n + list.city_id_n + list.district_id_n:list.province_id_n + list.city_id_n )):(list.office_id? (list.office_province === list.office_city?(list.office_district?list.office_city + list.office_district:list.office_city ):(list.office_district?list.office_province + list.office_city + list.office_district:list.office_province + list.office_city)):(list.agent_province === list.agent_city?(list.agent_district?list.agent_city + list.agent_district:list.agent_city):(list.agent_district?list.agent_province + list.agent_city + list.agent_district:list.agent_province + list.agent_city))) }}</span>
</div>
</div> </div>
</item> </item>
</list-item> </list-item>
...@@ -72,6 +78,7 @@ ...@@ -72,6 +78,7 @@
<script> <script>
import functionState from './functionState' import functionState from './functionState'
import noImg from '../../assets/productQuery/none.png' import noImg from '../../assets/productQuery/none.png'
export default { export default {
name: 'HomePage', name: 'HomePage',
data () { data () {
...@@ -84,7 +91,7 @@ export default { ...@@ -84,7 +91,7 @@ export default {
isVisitor: false, isVisitor: false,
moduleSeparateList: [], moduleSeparateList: [],
guessingList: [], guessingList: [],
newsList: [] newsList: [],
} }
}, },
watch: {}, watch: {},
...@@ -104,7 +111,7 @@ export default { ...@@ -104,7 +111,7 @@ export default {
// } // }
}) })
}, },
methods:{ methods: {
// 定位 // 定位
getLocation () { getLocation () {
let vm = this let vm = this
...@@ -132,7 +139,7 @@ export default { ...@@ -132,7 +139,7 @@ export default {
console.log('&&&&&&&&&&&&___ios') console.log('&&&&&&&&&&&&___ios')
// if (!$config.isMobilePlatform) { // if (!$config.isMobilePlatform) {
// } // }
baidumap_location.getCurrentPosition(function (result) { /*baidumap_location.getCurrentPosition(function (result) {
if (window.localStorage.getItem('province')) { if (window.localStorage.getItem('province')) {
vm.city = window.localStorage.getItem('city') vm.city = window.localStorage.getItem('city')
vm.province = window.localStorage.getItem('province') vm.province = window.localStorage.getItem('province')
...@@ -143,8 +150,7 @@ export default { ...@@ -143,8 +150,7 @@ export default {
vm.guessingQuery(result.city) vm.guessingQuery(result.city)
} }
}, function (error) { }, function (error) {
}) })*/
// }
// setTimeout(vm.guessingQuery(), 0) // setTimeout(vm.guessingQuery(), 0)
}, },
goFunctionHome (data) { goFunctionHome (data) {
...@@ -153,7 +159,7 @@ export default { ...@@ -153,7 +159,7 @@ export default {
}) })
}, },
// 新闻资讯 // 新闻资讯
getNews() { getNews () {
let url = $config.basePath + 'news_entrance_list' let url = $config.basePath + 'news_entrance_list'
let param = {} let param = {}
this.$post(url, param).then((res) => { this.$post(url, param).then((res) => {
...@@ -271,9 +277,10 @@ export default { ...@@ -271,9 +277,10 @@ export default {
@import "../../styles/vue-1px"; @import "../../styles/vue-1px";
#homePage { #homePage {
.content{ .content {
background-color: #EFEFEF; background-color: #EFEFEF;
} }
.top-wrap { .top-wrap {
width: 100%; width: 100%;
height: 100px; height: 100px;
...@@ -311,9 +318,11 @@ export default { ...@@ -311,9 +318,11 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
img { img {
height: 15px; height: 15px;
} }
.title { .title {
flex-grow: 0; flex-grow: 0;
flex-basis: 70px; flex-basis: 70px;
...@@ -322,11 +331,13 @@ export default { ...@@ -322,11 +331,13 @@ export default {
font-weight: 600; font-weight: 600;
line-height: 30px; line-height: 30px;
text-align: center; text-align: center;
border-right: 1px solid#F1F0F5; border-right: 1px solid #F1F0F5;
} }
ul { ul {
flex-grow: 2; flex-grow: 2;
flex-basis: 2; flex-basis: 2;
li { li {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
...@@ -334,6 +345,7 @@ export default { ...@@ -334,6 +345,7 @@ export default {
text-align: left; text-align: left;
text-indent: 15px; text-indent: 15px;
font-size: 14px; font-size: 14px;
img { img {
vertical-align: middle; vertical-align: middle;
margin-right: 15px; margin-right: 15px;
...@@ -356,10 +368,12 @@ export default { ...@@ -356,10 +368,12 @@ export default {
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
img{
img {
margin: 0; margin: 0;
} }
div{
div {
margin-bottom: 14px; margin-bottom: 14px;
ont-family: PingFangSC-Regular; ont-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
...@@ -381,19 +395,23 @@ export default { ...@@ -381,19 +395,23 @@ export default {
.hls-swipe { .hls-swipe {
width: 100vw; width: 100vw;
img { img {
width: 100vw; width: 100vw;
// height: 100%; // height: 100%;
} }
.hls-swipe-indicators{
.hls-swipe-indicators {
left: 54%; left: 54%;
bottom: 20px; bottom: 20px;
.hls-swipe-indicators-item{
.hls-swipe-indicators-item {
width: 10px; width: 10px;
height: 2px; height: 2px;
border-radius: 0; border-radius: 0;
} }
.hls-swipe-indicators-item--active{
.hls-swipe-indicators-item--active {
background-color: #FFF; background-color: #FFF;
} }
} }
...@@ -405,6 +423,7 @@ export default { ...@@ -405,6 +423,7 @@ export default {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
padding: 0 1% 0 1%; padding: 0 1% 0 1%;
.left-pic { .left-pic {
width: 41.6%; width: 41.6%;
margin-left: 4px; margin-left: 4px;
...@@ -443,35 +462,43 @@ export default { ...@@ -443,35 +462,43 @@ export default {
letter-spacing: 0.57px; letter-spacing: 0.57px;
height: 40px; height: 40px;
padding-left: 2%; padding-left: 2%;
span{
span {
padding-top: 2px; padding-top: 2px;
margin-left: 4px; margin-left: 4px;
} }
img{
img {
width: 14px; width: 14px;
height: 14px; height: 14px;
} }
} }
.guessing-wrap{
.guessing-wrap {
position: relative; position: relative;
width: 96%; width: 96%;
margin: 0 auto; margin: 0 auto;
.hls-list-item{
.hls-list-item {
border-radius: 10px; border-radius: 10px;
.contents{
.contents {
padding: 8px 6px 8px 0; padding: 8px 6px 8px 0;
.add-content{
.add-content {
justify-content: flex-start; justify-content: flex-start;
} }
} }
} }
} }
.item-pic { .item-pic {
width: 110px; width: 110px;
height: 110px; height: 110px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
img { img {
width: 100%; width: 100%;
// height: 100%; // height: 100%;
...@@ -487,20 +514,23 @@ export default { ...@@ -487,20 +514,23 @@ export default {
margin-top: 10px; margin-top: 10px;
font-weight: 600; font-weight: 600;
} }
.hot { .hot {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
width: 45px; width: 45px;
} }
.center { .center {
margin-top: 6px; margin-top: 6px;
display: flex; display: flex;
.firsts { .firsts {
width: 76px; width: 76px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 14px;
color: rgba(56,63,69,0.60); color: rgba(56, 63, 69, 0.60);
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<!-- <h-content class="content"> --> <!-- <h-content class="content"> -->
<scroll <scroll
v-if="list.length !== 0" v-show="list.length !== 0"
ref="scroll" :updateData="[list]" :pullUp="true" class="has-footer" ref="scroll" :updateData="[list]" :pullUp="true" class="has-footer"
@pullingUp="getInfo"> @pullingUp="getInfo">
<section v-for="(item,parentIndex) in list" :key="parentIndex" class="msg-wrap"> <section v-for="(item,parentIndex) in list" :key="parentIndex" class="msg-wrap">
......
...@@ -167,12 +167,12 @@ ...@@ -167,12 +167,12 @@
</list-item> </list-item>
<div class="version">版本号:{{ currentVersion }}</div> <div class="version">版本号:{{ currentVersion }}</div>
<button <button
v-if="!popSetect" v-if="!popSetect" v-show="user_bp_type !== 'MANAGER'"
@click="approveBtn ? unBind() : changePageHead()" @click="approveBtn ? unBind() : changePageHead()"
> >
{{ description }} {{ description }}
</button> </button>
<button v-if="popSetect" @click="popSetectBox = true"> <button v-if="popSetect" v-show="user_bp_type !== 'MANAGER'" @click="popSetectBox = true">
{{ description }} {{ description }}
</button> </button>
</div> </div>
...@@ -695,9 +695,7 @@ export default { ...@@ -695,9 +695,7 @@ export default {
let vm = this let vm = this
this.hlsPopup.showActionSheet({ this.hlsPopup.showActionSheet({
buttonArray: buttonArray:
this.bp_id === undefined (this.bp_id === undefined || vm.user_bp_type === 'MANAGER') ? ['修改头像'] : ['修改头像', '用户信息', '角色切换'],
? ['修改头像']
: ['修改头像', '用户信息', '角色切换'],
callback: (index) => { callback: (index) => {
if (index === 0) { if (index === 0) {
this.imgUploadShow(vm.app_user_id) this.imgUploadShow(vm.app_user_id)
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div slot="name" style="color:#656464;">修改信息</div> <div slot="name" style="color:#656464;">修改信息</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div> <div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item> </item>
<item @click.native="changeRole()"> <item v-if="user_bp_type!='MANAGER'" @click.native="changeRole()">
<div slot="name" style="color:#656464;">角色切换</div> <div slot="name" style="color:#656464;">角色切换</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div> <div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item> </item>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<img slot="icon" src="../assets/image/tab/n_function@2x.png"> <img slot="icon" src="../assets/image/tab/n_function@2x.png">
<span slot="label">业务办理</span> <span slot="label">业务办理</span>
</tabbar-item> </tabbar-item>
<tabbar-item @click.native="tabClick"> <tabbar-item :selected="$route.path === '/tab/my-info'" @click.native="tabClick">
<img slot="icon-active" src="../assets/image/tab/my@2x.png"> <img slot="icon-active" src="../assets/image/tab/my@2x.png">
<img slot="icon" src="../assets/image/tab/n_my@2x.png"> <img slot="icon" src="../assets/image/tab/n_my@2x.png">
<span slot="label">我的</span> <span slot="label">我的</span>
......
This diff is collapsed.
<!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.d55afc4cf38a1bfcc3980120b9df06f9.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.6a178e8d77c32e3c385d.js></script><script type=text/javascript src=./static/js/vendor.7191c48e0b160a3ab672.js></script><script type=text/javascript src=./static/js/app.ca0eb597f109f5c572c3.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.639b6df732adf63dae328f1593b59570.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.218b13cb8652090c3877.js></script><script type=text/javascript src=./static/js/vendor.cf2df294c770beff4ed8.js></script><script type=text/javascript src=./static/js/app.65c453c4bb4f8e7f93fe.js></script></body></html>
\ No newline at end of file \ No newline at end of file
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