Commit dad53d96 authored by JingChao's avatar JingChao

wechat

parent f7c3f82e
......@@ -42,18 +42,10 @@ module.exports = {
type: 'confirm',
message: 'install workflow modules in App?',
},
/*calculate:{
type: 'confirm',
message: 'install calculate modules in App?',
},*/
riskstrom:{
type: 'confirm',
message: 'install riskstrom modules in App?',
},
robot:{
type: 'confirm',
message: 'install robot modules in App?',
},
esign:{
type: 'confirm',
message: 'install esign modules in App?',
......@@ -97,7 +89,6 @@ module.exports = {
'src/pages/applications/workflow/**/*': 'wfl',
'src/pages/applications/financCalculate/**/*': 'project',
'src/pages/applications/riskStorm/**/*': 'riskstrom',
'src/pages/applications/robot/**/*': 'robot',
'src/pages/applications/esign/**/*': 'esign',
'src/pages/applications/reports/**/*': 'report',
'src/pages/applications/qiXinBao/**/*': 'qixin',
......
......@@ -25,8 +25,8 @@ const webpackConfig = merge(baseWebpackConfig, {
devtool: config.build.productionSourceMap ? config.build.devtool : false,
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
filename: utils.assetsPath('js/[name][id].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[name][id].[chunkhash].js')
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
......
......@@ -72,7 +72,7 @@ module.exports = {
* Source Maps
*/
productionSourceMap: true,
productionSourceMap: false,
// https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map',
......
......@@ -14,6 +14,7 @@
<script src="https://gw.alipayobjects.com/os/antv/assets/lib/lodash-4.17.4.min.js"></script>
<script src="https://gw.alipayobjects.com/os/antv/assets/lib/jquery-3.2.1.min.js"></script>
<script src="https://gw.alipayobjects.com/os/rmsportal/NjNldKHIVQRozfbAOJUW.js"></script>
<script src="static/prototype.js"></script>
<title>车租易</title>
</head>
<body>
......
......@@ -20,9 +20,6 @@ import {
Picker,
} from 'vux'
import './scripts/prototype'
import './scripts/vuePlatform'
import WorkflowPrj from './components/workflow-prj'
import WorkflowCon from './components/workflow-con'
......@@ -98,11 +95,8 @@ Vue.prototype.$routeGo = routeGo
FastClick.attach(document.body)
Vue.config.productionTip = false
vum.$vumPlatform.ready(function () {
Vue.config.productionTip = true
})
/* eslint-disable no-new */
new Vue({
......
<template>
<h-view class="public-style contract-mainten-list" title="合同维护">
<h-content class="scroll-content">
<s-tab @tabClick="switchTab">
<tab-item>本年</tab-item>
<tab-item>本季</tab-item>
......@@ -48,7 +47,6 @@
ref="scroll"
:updateData="[con_list]"
:pullUp="true"
class="content-scroll"
@pullingUp="loadMore">
<list-item :item-height="80">
<item
......@@ -64,7 +62,6 @@
</item>
</list-item>
</scroll>
</h-content>
</h-view>
</template>
......@@ -198,32 +195,19 @@
<style lang="less" rel="stylesheet">
.contract-mainten-list {
.scroll-content{
position: absolute;
top: 0;
bottom: 0;
height: auto;
overflow: hidden;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
.content-scroll{
top:225px;
}
.content{
overflow: hidden;
}
.hls-switch-tab .tab-content .h-tab-item .h-item {
width: 100%;
}
.hls-switch-tab {
position: relative;
}
.info-board {
background-color: #FFF;
background-color: rgb(255, 255, 255);
position: relative;
z-index: 5;
.board-line {
display: flex;
display: -webkit-flex;
......@@ -233,25 +217,20 @@
font-size: 13px;
line-height: 18px;
padding-bottom: 6px;
&:before {
content: '';
}
&:after {
content: '';
}
&:first-child {
justify-content: flex-start;
-webkit-justify-content: flex-start;
}
&:nth-child(2) {
justify-content: center;
-webkit-justify-content: center;
}
.ionic-img {
margin-left: 11px;
margin-right: 4px;
......@@ -264,16 +243,13 @@
border: none;
}
}
.text {
font-size: @font-size-middle;
}
span {
font-size: 26px;
color: #FF8877;
color: rgb(255, 136, 119);
margin-right: 2px;
&:nth-child(2) {
font-size: @font-size-small;
color: #313131;
......@@ -281,7 +257,6 @@
margin-left: 2px;
}
}
.board-block {
height: 100%;
width: 100%;
......@@ -296,37 +271,35 @@
}
}
}
.search {
display: flex;
height: 50px;
background-color: #FFF;
margin-top: 10px;
background-color: rgb(255, 255, 255);
//margin-top: 10px;
position: relative;
z-index: 5;
padding: 5px 0;
// margin-bottom: 10px;
.searchInput {
display: flex;
display: -webkit-flex;
height: 33px;
border: 1px solid #5D98F6; /*no*/
border: 1px solid rgb(93, 152, 246); /*no*/
margin: 7px 10px;
width: 100%;
display: flex;
align-items: center;
-webkit-align-items: center;
.img-box {
height: 17px;
border-right: 1px solid #5D98F6; /*no*/
border-right: 1px solid rgb(93, 152, 246); /*no*/
padding: 2px 0;
margin-left: 10px;
img {
margin-right: 5px;
width: 15px;
}
}
input {
width: 100%;
font-size: 13px;
......@@ -339,48 +312,32 @@
}
}
}
.vue-better-scroll {
// top: 226px;
}
.vue-better-scroll__wrapper {
margin-top: 10px;
}
.hls-item {
&:nth-child(odd) {
background-color: #EFF1F3;
background-color: rgb(239, 241, 243);
}
&:nth-child(even) {
background-color: #fff;
}
.contents .add-name {
.left-icon {
width: 34px;
}
.text {
margin-left: 15px;
.cont {
margin-top: 5px;
font-size: 13px;
line-height: 18px;
&:first-child {
margin-top: 0;
}
}
.cont-num {
margin-top: 8px;
font-size: 15px;
line-height: 21px;
color: #5D98F6;
color: rgb(93, 152, 246);
}
}
}
......
<template>
<h-view class="public-style contract-sign-list" title="合同签约">
<h-content class="scroll-content">
<s-tab @tabClick="switchTab">
<tab-item>本年</tab-item>
<tab-item>本季</tab-item>
......@@ -48,7 +47,6 @@
ref="scroll"
:updateData="[con_list]"
:pullUp="true"
class="content-scroll"
@pullingUp="loadMore">
<list-item :item-height="80">
<item
......@@ -64,7 +62,6 @@
</item>
</list-item>
</scroll>
</h-content>
</h-view>
</template>
......@@ -198,18 +195,6 @@
<style lang="less" rel="stylesheet">
.contract-sign-list {
.scroll-content{
position: absolute;
top: 0;
bottom: 0;
height: auto;
overflow: hidden;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
.content-scroll{
top:225px;
}
.content{
overflow: hidden;
}
......@@ -222,7 +207,9 @@
}
.info-board {
background-color: #FFF;
background-color: rgb(255, 255, 255);
position: relative;
z-index: 5;
.board-line {
display: flex;
......@@ -271,7 +258,7 @@
span {
font-size: 26px;
color: #FF8877;
color: rgb(255, 136, 119);
margin-right: 2px;
&:nth-child(2) {
......@@ -300,15 +287,17 @@
.search {
display: flex;
height: 50px;
background-color: #FFF;
margin-top: 10px;
background-color: rgb(255, 255, 255);
padding: 5px 0;
position: relative;
z-index: 5;
// margin-bottom: 10px;
.searchInput {
display: flex;
display: -webkit-flex;
height: 33px;
border: 1px solid #5D98F6; /*no*/
border: 1px solid rgb(93, 152, 246); /*no*/
margin: 7px 10px;
width: 100%;
display: flex;
......@@ -317,7 +306,7 @@
.img-box {
height: 17px;
border-right: 1px solid #5D98F6; /*no*/
border-right: 1px solid rgb(93, 152, 246); /*no*/
padding: 2px 0;
margin-left: 10px;
......@@ -340,17 +329,9 @@
}
}
.vue-better-scroll {
// top: 226px;
}
.vue-better-scroll__wrapper {
margin-top: 10px;
}
.hls-item {
&:nth-child(odd) {
background-color: #EFF1F3;
background-color: rgb(239, 241, 243);
}
&:nth-child(even) {
......@@ -380,7 +361,7 @@
margin-top: 8px;
font-size: 15px;
line-height: 21px;
color: #5D98F6;
color: rgb(93, 152, 246);
}
}
}
......
......@@ -33,8 +33,9 @@
</template>
<script>
import calService from './calculateService'
export default {
import calService from './calculateService'
export default {
name: 'CalculationEnter',
data () {
return {
......@@ -73,15 +74,15 @@ export default {
})
},
},
}
}
</script>
<style scoped lang="less">
.calculatEnter{
.content{
background-color:#F7F7F8;
.calculatEnter {
.content {
background-color: rgb(247, 247, 247);
.hls-list-item {
background-color:#F7F7F8;
background-color: rgb(247, 247, 248);
display: -webkit-flex;
display: flex;
flex-direction: column;
......@@ -94,12 +95,10 @@ export default {
padding: 0;
height: 96px;
border-bottom: 1px solid #ccc; /*no*/
background-color:#fff;
background-color: #fff;
display: flex;
justify-content: center;
align-items: center;
&.activated {
opacity: 0.9;
-webkit-transform: scale(0.95);
......@@ -107,54 +106,52 @@ export default {
}
.finaning-contents {
height: 100%;
width: 93%;
width: 100%;
padding: 0 10px;
display: flex;
justify-content: space-between;
align-items: center;
.contents-info{
.contents-info {
height: 100%;
width: 90%;
padding-top: 5px;
padding-bottom: 5px;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: flex-start;
.contents-info-type{
color: #556B78;
.contents-info-type {
color: rgb(85, 107, 120);
font-size: 15px;
height: 25px;
display: flex;
justify-content: center;
align-items: center;
}
.contents-info-description{
.contents-info-description {
width: 100%;
line-height: 15px;
color: #99AFC6;
color: rgb(153, 175, 198);
font-size: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.contents-info-time{
color: #99AFC6;
.contents-info-time {
color: rgb(153, 175, 198);
font-size: 14px;
}
}
.next-icon{
.next-icon {
padding-right: 5px;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
.next-icon-img{
.next-icon-img {
width: 28px;
height: 28px;
img{
img {
width: 28px;
}
}
......
<template>
<h-view class="public-style partner-list" title="客户维护">
<h-content class="scroll-content">
<div class="top-part">
<div class="client">
<div class="client-img">
<img src="@/assets/image/bpMaster/count@2x.png" >
<img src="@/assets/image/bpMaster/count@2x.png">
</div>
<div class="statistics">客户总计</div>
</div>
......@@ -31,16 +30,15 @@
</div>
<div class="search">
<div class="search-box" @click="showSearchModal">
<div class="search-icon"><img src="@/assets/image/bpMaster/search@2x.png" ></div>
<div class="search-icon"><img src="@/assets/image/bpMaster/search@2x.png"></div>
<div class="hint">请输入客户名称/客户类型</div>
</div>
<div class="add-icon" @click="createPartent()"><img src="@/assets/image/bpMaster/add@2x.png" ></div>
<div class="add-icon" @click="createPartent()"><img src="@/assets/image/bpMaster/add@2x.png"></div>
</div>
<scroll
ref="scrollList"
:updateData="[bpList]"
:pullUp="true"
class="content-scroll"
@pullingUp="loadMore">
<list-item :item-height="80">
<item
......@@ -56,9 +54,7 @@
</item>
</list-item>
</scroll>
</h-content>
<h-modal ref="modal" v-model="showModalValue" position="bottom" cus-class="search-modal">
<h-modal ref="modal" v-model="showModalValue" position="bottom" class="search-modal">
<h-view>
<h-header :proportion="[1,15,4]" class="bar-custom" style="height: 44px;padding-top: 0px">
<div slot="center" class="search-shelter">
......@@ -66,7 +62,8 @@
<input
v-focus id="risk-search-input" v-model="info.key" type="text"
placeholder="伙伴名称/类型" class="search-input">
<img v-show="info.key" src="@/assets/image/bpMaster/clear.png" class="clear-button" @click="clearCondition()">
<img v-show="info.key" src="@/assets/image/bpMaster/clear.png" class="clear-button"
@click="clearCondition()">
</div>
<div slot="right" class="h-header-btn" @click="hideModal">取消</div>
</h-header>
......@@ -95,7 +92,7 @@
</template>
<script>
export default {
export default {
data () {
return {
offsize: 1,
......@@ -129,7 +126,7 @@ export default {
let vm = this
let url = $config.basePath + 'query_bp_master'
let url1 = $config.basePath + 'bp_count_query'
let param = {'offsize': vm.offsize}
let param = { 'offsize': vm.offsize }
let param1 = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
......@@ -234,75 +231,74 @@ export default {
},
},
}
}
</script>
<style lang="less" scoped type="text/less">
.partner-list {
.scroll-content{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: auto;
height: auto;
overflow: hidden;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
.content {
background-color: #eff1f3;
padding-top: 0;
.top-part{
//padding-top: 0;
.top-part {
background-color: #FFFFFF;
padding:12px 0 10px 0;
.client{
padding: 12px 0 10px 0;
position: relative;
z-index: 5;
.client {
display: flex;
.client-img{
margin:0 5px 0 15px;
img{
width:17px;
.client-img {
margin: 0 5px 0 15px;
img {
width: 17px;
height: 15px;
}
}
.statistics{
.statistics {
font-size: 14px;
line-height: 16px;
color: #363636;
}
}
.total-num{
.total-num {
width: 100%;
padding: 10px 0 25px 0;
font-size: 26px;
color: #FF8877;
display: flex;
justify-content: center;
.measure{
.measure {
font-size: 13px;
color: #313131;
padding:5px;
padding: 5px;
}
}
.list-general{
.list-general {
width: 100%;
display: flex;
justify-content: center;
.enterprise{
.enterprise {
width: 25%;
display: flex;
text-align:center;
text-align: center;
flex-direction: column;
.list-name{
.list-name {
font-size: 13px;
color: #313131;
}
.list-num{
.list-num {
padding-top: 6px;
font-size: 14px;
color: #FF8877;
.sum-num{
.sum-num {
font-size: 12px;
line-height: 17px;
color: #313131;
......@@ -312,79 +308,89 @@ export default {
}
}
}
.search{
margin-top:5px;
.search {
margin-top: 5px;
width: 100%;
background-color: #FFFFFF;
display: flex;
padding: 12.5px 0;
.search-box{
width:80%;
margin-left:15px;
z-index: 5;
position: relative;
.search-box {
width: 80%;
margin-left: 15px;
display: flex;
background: #FDFFFF;
border: 1px solid @headerColor; /*no*/
border-radius: 50px;
.search-icon{
.search-icon {
padding-left: 10px;
display: flex;
align-items: center;
img{
img {
width: 22px;
height:15px;
border-right:1px solid @headerColor; /*no*/
padding-right:7px;
height: 15px;
border-right: 1px solid @headerColor; /*no*/
padding-right: 7px;
}
}
.hint{
font-size:12px;
margin-left:12px;
.hint {
font-size: 12px;
margin-left: 12px;
color: #DBD8D8;
display: flex;
align-items: center;
}
}
.add-icon{
margin-left:23px;
img{
width:26px;
height:26px;
.add-icon {
margin-left: 23px;
img {
width: 26px;
height: 26px;
}
}
}
.hls-item {
&:nth-child(odd){
&:nth-child(odd) {
background-color: #EFF1F3;
}
&:nth-child(even){
&:nth-child(even) {
background-color: #fff;
}
.contents {
.add-name {
.cont-name{
.cont-name {
font-size: 15px;
line-height: 21px;
color: @headerColor;
}
.cont-type{
.cont-type {
font-size: 13px;
line-height: 18px;
color: #888;
}
.left-icon{
.left-icon {
width: 35px;
}
}
}
}
}
.search-modal{
.scroll-content{
top:44px
}
.search-shelter{
.search-modal {
.search-shelter {
height: 30px;
width: 100%;
background-color: #fff;
......@@ -392,19 +398,18 @@ export default {
display: flex;
align-items: center;
justify-content: flex-start;
img{
img {
width: 15px;
margin: 0 10px;
}
input{
input {
width: 100%;
font-size: 14px;
color: #333;
}
}
}
.content-scroll{
top:198px
}
}
</style>
......@@ -5,7 +5,6 @@
<template>
<h-view class="public-style project-mainten" title="申请维护">
<h-content class="scroll-content">
<s-tab @tabClick="changeData">
<tab-item>本年</tab-item>
<tab-item>本季</tab-item>
......@@ -50,7 +49,6 @@
</div>
<scroll
ref="scroll"
class="content-scroll"
:updateData="[prjList]"
:pullUp="true"
@pullingUp="loadMore">
......@@ -67,13 +65,12 @@
</item>
</list-item>
</scroll>
</h-content>
</h-view>
</template>
<script>
import projectService from './projectService'
export default {
import projectService from './projectService'
export default {
name: 'PrjMaintenList',
data () {
return {
......@@ -230,37 +227,21 @@ export default {
})
},
},
}
}
</script>
<style lang="less">
.project-mainten {
.scroll-content{
position: absolute;
top:0;
bottom: 0;
height: auto;
overflow: hidden;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
.content-scroll{
top:225px;
}
.content{
overflow: hidden;
}
.hls-switch-tab .tab-content .h-tab-item .h-item {
width: 100%;
}
.hls-switch-tab {
position: relative;
}
.info-board {
background-color: #FFF;
background-color: rgb(255, 255, 255);
position: relative;
z-index: 5;
.board-line {
display: flex;
display: -webkit-flex;
......@@ -270,47 +251,38 @@ export default {
font-size: 13px;
line-height: 18px;
padding-bottom: 6px;
&:before {
content: '';
}
&:after {
content: '';
}
&:first-child {
justify-content: flex-start;
-webkit-justify-content: flex-start;
}
&:nth-child(2) {
justify-content: center;
-webkit-justify-content: center;
}
.ionic-img {
margin-left: 11px;
margin-right: 4px;
width: 17px;
height: 15px;
img {
height: 100%;
width: 100%;
border: none;
}
}
.text {
font-size: @font-size-middle;
}
span {
font-size: 26px;
color: #FF8877;
color: rgb(255, 136, 119);
margin-right: 2px;
&:nth-child(2) {
font-size: @font-size-small;
color: #313131;
......@@ -318,12 +290,10 @@ export default {
margin-left: 2px;
}
}
.board-block {
height: 100%;
width: 100%;
text-align: center;
.number {
span {
font-size: @font-size-middle;
......@@ -337,33 +307,29 @@ export default {
.search {
display: flex;
height: 50px;
background-color: #FFF;
margin-top: 10px;
// margin-bottom: 10px;
background-color: rgb(255, 255, 255);
padding:5px 0;
position: relative;
z-index: 5;
.searchInput {
display: flex;
display: -webkit-flex;
height: 33px;
border: 1px solid #5D98F6; /*no*/
border: 1px solid rgb(93, 152, 246); /*no*/
margin: 7px 10px;
width: 100%;
display: flex;
align-items: center;
-webkit-align-items: center;
.img-box {
height: 17px;
border-right: 1px solid #5D98F6; /*no*/
border-right: 1px solid rgb(93, 152, 246); /*no*/
padding: 2px 0;
margin-left: 10px;
img {
margin-right: 5px;
width: 15px;
}
}
input {
width: 100%;
font-size: 13px;
......@@ -376,48 +342,32 @@ export default {
}
}
}
.vue-better-scroll {
// top: 226px;
}
.vue-better-scroll__wrapper {
margin-top: 10px;
}
.hls-item {
&:nth-child(odd) {
background-color: #EFF1F3;
background-color: rgb(239, 241, 243);
}
&:nth-child(even) {
background-color: #fff;
}
.contents .add-name {
.left-icon {
width: 34px;
}
.text {
margin-left: 15px;
.cont {
margin-top: 5px;
font-size: 13px;
line-height: 18px;
&:first-child {
margin-top: 0;
}
}
.cont-num {
margin-top: 8px;
font-size: 15px;
line-height: 21px;
color: #5D98F6;
color: rgb(93, 152, 246);
}
}
}
......
......@@ -115,7 +115,8 @@
<style scoped lang="less" rel="stylesheet">
.public-style {
.search {
position: fixed;
position: relative;
z-index: 5;
width: 100%;
height: 45px;
display: -webkit-flex;
......@@ -125,6 +126,7 @@
-webkit-align-items: center;
align-items: center;
padding: 0 15px;
background-color: #fff;
border-bottom:1px solid @background-color-gray;
.searchBox {
background-color: #fff;
......@@ -153,7 +155,7 @@
}
}
.content {
margin-top: 45px;
// margin-top: 45px;
}
}
</style>
......@@ -126,12 +126,14 @@ export default {
.search {
position: relative;
z-index: 5;
width: 100%;
height:45px;
display: flex;
justify-content: center;
align-items: center;
padding: 0 15px;
background-color: #fff;
border-bottom:1px solid @background-color-gray; /*no*/
.searchBox {
background-color: #fff;
......
/**
* @Author think
* @Date 2019-06-18 14:36
*/
<template>
<h-view class="public-style robot" title="小易">
<!--<h-header :has-border="false" class="bar-custom">
<div slot="left" class="h-header-btn" @click="$hlsExit()">
<i class="ion-ios-arrow-back"/>
</div>
<div slot="center">小易</div>
</h-header>-->
<h-content id="home-content" class="has-footer">
<div v-for="item in message" class="message">
<p v-show="false" class="message-time" v-text="item.time"/>
<div v-show="!item.isFromeMe" class="message-wrap">
<img src="@/assets/image/robot/robot.png" class="head-pic">
<span class="triangle-left"/>
<p class="message" @click="showImg($event)" v-html="item.content"/>
</div>
<div v-show="item.isFromeMe" class="message-wrap">
<img v-show="userImg" :src="userImg" class="head-pic-right">
<img v-show="!userImg" src="@/assets/image/robot/user7.png" class="head-pic-right">
<span class="triangle-right"/>
<p class="message-right" v-text="item.content"/>
</div>
</div>
</h-content>
<bottom-tab class="bar bar-footer bar-light">
<label class="item item-input footer-input">
<textarea
v-auto-size ref="textarea" v-model="robot_message.question" placeholder="请输入"
rows="1"/>
</label>
<div class="footer-btn-wrap" @click="sendMsg()">
<div class="send-button">
<p>发送</p>
</div>
</div>
</bottom-tab>
</h-view>
</template>
<script>
export default {
name: 'Robot',
data () {
return {
userImg: window.localStorage.userImg || '',
message: [{
'isFromeMe': false,
'content': '小易7*24小时为您服务!',
}],
robot_message: {
question: null,
},
autosize: true,
height: '',
}
},
watch: {},
created: function () {
},
mounted () {
this.height = this.$refs.textarea.clientHeight
},
methods: {
scrollBottom () {
let div = document.getElementById('home-content')
div.scrollTop = div.scrollHeight
},
sendMsg () {
let vm = this
let RobotMessage = {}
if (this.robot_message.question) {
let object = {
'isFromeMe': true,
'content': this.robot_message.question,
}
this.message.push(object)
let url = process.env.rootPath + '?sysName=HLS_ROBOT&apiName=query_answer'
let question = encodeURIComponent(this.robot_message.question)
let params = {
'channel': 'app',
'userId': window.localStorage.user_id,
'sessionId': window.localStorage.user_id,
'question': question,
}
vm.hlsHttp.post(url, params).then(function (res) {
vm.resetHeight()
// 机器人聊天数据存表
RobotMessage.question = vm.robot_message.question
RobotMessage.chatId = res.chatId
vm.robot_message.question = null
if (res.answers) {
let answer = res.answers[0]
let reponse = {
'isFromeMe': false,
'content': answer.answer,
}
// 界面显示聊天
vm.message.push(reponse)
// 答案
RobotMessage.answer = answer.answer
// 历史记录表
vm.addRobotMessage(RobotMessage)
}
})
} else {
vm.hlsPopup.showLongCenter('内容不能为空')
}
},
addRobotMessage (robotMessage) {
let vm = this
let url = process.env.rootPath + '/app/addRobotMessage'
let params = {
'channel': 'app',
'userId': window.localStorage.user_id,
'sessionId': window.localStorage.user_id,
'question': robotMessage.question,
'chatId': robotMessage.chatId,
'answer': robotMessage.answer,
'respond': robotMessage.answer,
}
vm.hlsHttp.post(url, params).then(function (res) {
vm.scrollBottom()
})
},
showImg ($event) {
let vm = this
if ($event.target.tagName.toLowerCase() === 'img') {
let src = $event.target.src
vm.hlsPopup.showBigPicture({
imgUrl: src,
})
} else if ($event.target.tagName.toLowerCase() === 'a') {
let href = $event.target.href
cordova.InAppBrowser.open(href, '_system', 'location=yes')
}
},
resetHeight () {
// this.$refs.textarea.clientHeight = this.height;
this.$refs.textarea.style.height = this.height + 'px'
},
},
}
</script>
<style lang="less">
.robot {
background-color: #eeeeee;
.h-bottom-tab{
box-shadow: none;
}
.content {
background-color: #eeeeee;
//border: 1px solid red;
.message {
position: relative;
}
.message-wrap {
padding: 7px;
overflow: auto;
position: relative;
.message {
float: left;
margin-left: 16px;
background-color: #fff;
padding: 10px 8px;
line-height: 18px;
max-width: 270px;
border-radius: 5px;
font-size: 16px;
letter-spacing: 1px; /*no*/
text-align: left;
color: #000;
img{
width: 100%;
}
}
.head-pic-right {
float: right;
max-height: 35px;
height: 35px;
max-width: 35px;
width: 35px;
border-radius: 18px;
margin-left: 10px;
}
.head-pic {
float: left;
max-height: 35px;
height: 35px;
max-width: 35px;
width: 35px;
border-radius: 18px;
}
.message-right {
float: right;
margin-right: 8px;
background-color: #97d55b;
padding: 10px 8px;
line-height: 18px;
max-width: 225px;
border-radius: 5px;
font-size: 16px;
letter-spacing: 1px; /*no*/
text-align: left;
word-break: break-all;
color: #000;
}
.triangle-left {
// left: 45px;
border-color: transparent #FFF transparent transparent;
display: inline-block;
width: 0;
height: 0;
position: absolute;
border-width: 8px 10px;
border-style: solid;
top: 17px;
}
.triangle-right {
right: 45px;
border-color: transparent transparent transparent #97d55b;
display: inline-block;
width: 0;
height: 0;
position: absolute;
border-width: 8px 10px;
border-style: solid;
top: 17px;
}
}
}
.bar-footer {
height: auto !important;
min-height: 44px;
margin-top: 0;
background-color: #fafafa;
bottom: 0;
.item-input {
border: none !important;
padding: 3px 0 3px 5px;
width: 85%;
background: #fff;
margin: 5px 0;
}
.footer-btn-wrap {
height: 100%;
font-size: 16px;
width: 15%;
display: flex;
align-items: center;
justify-content: center;
.send-button {
height: 30px;
width: 100%;
//border: 1px solid red;
display: flex;
align-items: center;
justify-content: center;
p {
margin: 0 auto;
}
}
}
textarea {
line-height: 20px;
font-size: 16px;
width: 100%;
resize: none;
padding: 2px;
border: none;
margin-bottom: 0;
}
}
}
</style>
......@@ -11,7 +11,6 @@
ref="scroll"
:autoUpdate="true"
:pullUp="true"
class="content scroll-content"
@pullingUp="loadMore">
<div v-if="index[0]">
<div v-for="(li,index) in list" class="workflow-list">
......@@ -344,7 +343,7 @@ export default {
}
.content {
margin-top: 40px;
// margin-top: 40px;
.workflow-list {
margin-top: 10px;
......
......@@ -243,21 +243,6 @@ export default {
'appCode': 'HLS_APP',
},
{{/riskstrom}}
{{#robot}}
{
'functionId': 48,
'functionCode': '270',
'functionName': '小易',
'functionIcon': require('@/assets/home-manager/robot.png'),
'functionState': 'Robot',
'prodFlag': 'Y',
'enableFlag': 'Y',
'functionType': 'local',
'target': null,
'applicationFlag': 'N',
'appCode': 'HLS_APP',
},
{{/robot}}
],
},
],
......
import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home'
import ModuleFunction from '@/pages/homeManager/module-function'
const Home = resolve => require.ensure([], () => { resolve(require('@/pages/home')) }, 'home')
const ModuleFunction = resolve => require.ensure([], () => { resolve(require('@/pages/homeManager/module-function')) }, 'home')
// test工具类
import HlsPopup from '@/pages/hlsPopup'
import EsignPicture from '@/pages/applications/utils/esignPicture'
const HlsPopup = resolve => require.ensure([], () => { resolve(require('@/pages/hlsPopup')) }, 'test')
const EsignPicture = resolve => require.ensure([], () => { resolve(require('@/pages/applications/utils/esignPicture')) }, 'test')
{{#wfl}}
// 工作流
import WorkflowList from '@/pages/applications/workflow/workflow-list'
import WorkflowDetail from '@/pages/applications/workflow/workflow-detail'
const WorkflowList = resolve => require.ensure([], () => { resolve(require('@/pages/applications/workflow/workflow-list')) }, 'wfl')
const WorkflowDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/workflow/workflow-detail')) }, 'wfl')
{{/wfl}}
{{#bp}}
// 商业伙伴
import PartnerCreate from '@/pages/applications/partnerManager/partner-create'
import PartnerList from '@/pages/applications/partnerManager/partner-list'
import PartnerMainten from '@/pages/applications/partnerManager/partner-mainten'
import PartnerOrgMainten from '@/pages/applications/partnerManager/partner-org-mainten'
const PartnerCreate = resolve => require.ensure([], () => { resolve(require('@/pages/applications/partnerManager/partner-create')) }, 'bp')
const PartnerList = resolve => require.ensure([], () => { resolve(require('@/pages/applications/partnerManager/partner-list')) }, 'bp')
const PartnerMainten = resolve => require.ensure([], () => { resolve(require('@/pages/applications/partnerManager/partner-mainten')) }, 'bp')
const PartnerOrgMainten = resolve => require.ensure([], () => { resolve(require('@/pages/applications/partnerManager/partner-org-mainten')) }, 'bp')
{{/bp}}
{{#project}}
// 融资试算
import CalculationEnter from '@/pages/applications/financCalculate/calculationEnter'
import CalculationMain from '@/pages/applications/financCalculate/calculationMain'
import ResultMain from '@/pages/applications/financCalculate/resultMain'
import ResultDetails from '@/pages/applications/financCalculate/resultDetails'
const CalculationEnter = resolve => require.ensure([], () => { resolve(require('@/pages/applications/financCalculate/calculationEnter')) }, 'project')
const CalculationMain = resolve => require.ensure([], () => { resolve(require('@/pages/applications/financCalculate/calculationMain')) }, 'project')
const ResultMain = resolve => require.ensure([], () => { resolve(require('@/pages/applications/financCalculate/resultMain')) }, 'project')
const ResultDetails = resolve => require.ensure([], () => { resolve(require('@/pages/applications/financCalculate/resultDetails')) }, 'project')
// 租赁申请
import PrjCreate from '@/pages/applications/projectManager/prjCreate'
import PrjMaintenList from '@/pages/applications/projectManager/PrjMaintenList'
import InfoMationMain from '@/pages/applications/projectManager/infoMationMain'
import PrjBpInfo from '@/pages/applications/projectManager/prjBpInfo'
import LeaseCarDetail from '@/pages/applications/projectManager/leaseCarDetail'
import PrjQuotionInfo from '@/pages/applications/projectManager/prjQuotionInfo'
import PrjAttachment from '@/pages/applications/projectManager/prjAttachment'
{{/project}}
const PrjCreate = resolve => require.ensure([], () => { resolve(require('@/pages/applications/projectManager/prjCreate')) }, 'project')
const PrjMaintenList = resolve => require.ensure([], () => { resolve(require('@/pages/applications/projectManager/PrjMaintenList')) }, 'project')
const InfoMationMain = resolve => require.ensure([], () => { resolve(require('@/pages/applications/projectManager/infoMationMain')) }, 'project')
const PrjBpInfo = resolve => require.ensure([], () => { resolve(require('@/pages/applications/projectManager/prjBpInfo')) }, 'project')
const LeaseCarDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/projectManager/leaseCarDetail')) }, 'project')
const PrjQuotionInfo = resolve => require.ensure([], () => { resolve(require('@/pages/applications/projectManager/prjQuotionInfo')) }, 'project')
const PrjAttachment = resolve => require.ensure([], () => { resolve(require('@/pages/applications/projectManager/prjAttachment')) }, 'project')
{{/project}}
{{#contract}}
// 合同
import ContractMaintenList from '@/pages/applications/contractMainten/contract-mainten-list'
import ContractMainten from '@/pages/applications/contractMainten/contract-mainten'
import ContractSignList from '@/pages/applications/contractSign/contract-sign-list'
import ContractSign from '@/pages/applications/contractSign/contract-sign'
{{/contract}}
const ContractMaintenList = resolve => require.ensure([], () => { resolve(require('@/pages/applications/contractMainten/contract-mainten-list')) }, 'contract')
const ContractMainten = resolve => require.ensure([], () => { resolve(require('@/pages/applications/contractMainten/contract-mainten')) }, 'contract')
const ContractSignList = resolve => require.ensure([], () => { resolve(require('@/pages/applications/contractSign/contract-sign-list')) }, 'contract')
const ContractSign = resolve => require.ensure([], () => { resolve(require('@/pages/applications/contractSign/contract-sign')) }, 'contract')
{{/contract}}
{{#riskstrom}}
// 风报
import RiskHome from '@/pages/applications/riskStorm/riskHome'
import RiskSearch from '@/pages/applications/riskStorm/riskSearch'
import RiskSearchDetail from '@/pages/applications/riskStorm/riskSearchDetail'
import RiskDetailTab from '@/pages/applications/riskStorm/riskDetailTab'
{{/riskstrom}}
{{#robot}}
// Robot
import Robot from '@/pages/applications/robot/robot'
{{/robot}}
const RiskHome = resolve => require.ensure([], () => { resolve(require('@/pages/applications/riskStorm/riskHome')) }, 'riskstrom')
const RiskSearch = resolve => require.ensure([], () => { resolve(require('@/pages/applications/riskStorm/riskSearch')) }, 'riskstrom')
const RiskSearchDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/riskStorm/riskSearchDetail')) }, 'riskstrom')
const RiskDetailTab = resolve => require.ensure([], () => { resolve(require('@/pages/applications/riskStorm/riskDetailTab')) }, 'riskstrom')
{{/riskstrom}}
{{#esign}}
// E 签宝
import Esign from '@/pages/applications/esign/Esign'
import BankVerified from '@/pages/applications/esign/BankVerified'
import PersonAccount from '@/pages/applications/esign/PersonAccount'
import SignPdf from '@/pages/applications/esign/SignPdf'
import ViewPicture from '@/pages/applications/esign/ViewPicture'
{{/esign}}
const Esign = resolve => require.ensure([], () => { resolve(require('@/pages/applications/esign/Esign')) }, 'esign')
const BankVerified = resolve => require.ensure([], () => { resolve(require('@/pages/applications/esign/BankVerified')) }, 'esign')
const PersonAccount = resolve => require.ensure([], () => { resolve(require('@/pages/applications/esign/PersonAccount')) }, 'esign')
const SignPdf = resolve => require.ensure([], () => { resolve(require('@/pages/applications/esign/SignPdf')) }, 'esign')
const ViewPicture = resolve => require.ensure([], () => { resolve(require('@/pages/applications/esign/ViewPicture')) }, 'esign')
{{/esign}}
{{#report}}
// 报表
import Reports from '@/pages/applications/reports/reports'
import BasicChart from '@/pages/applications/reports/basicChart/basicChart'
import SeniorChart from '@/pages/applications/reports/seniorChart/seniorChart'
import AreaChart from '@/pages/applications/reports/basicChart/areaChart/areaChart'
import BreadChart from '@/pages/applications/reports/basicChart/breadChart/breadChart'
import ColumnChart from '@/pages/applications/reports/basicChart/columnChart/columnChart'
import CombinationChart from '@/pages/applications/reports/basicChart/combinationChart/combinationChart'
import LineChart from '@/pages/applications/reports/basicChart/lineChart/lineChart'
import NoodlesChart from '@/pages/applications/reports/basicChart/noodlesChart/noodlesChart'
import PointChart from '@/pages/applications/reports/basicChart/pointChart/pointChart'
import ArcGridChart from '@/pages/applications/reports/seniorChart/arcGridChart/arcGridChart'
import ClickLine from '@/pages/applications/reports/seniorChart/clickLine/clickLine'
import Guide from '@/pages/applications/reports/seniorChart/guide/guide'
import HeartRate from '@/pages/applications/reports/seniorChart/heartRate/heartRate'
import InteractionLegend from '@/pages/applications/reports/seniorChart/interactionLegend/interactionLegend'
import OtherChart from '@/pages/applications/reports/seniorChart/otherChart/otherChart'
import RadarChart from '@/pages/applications/reports/seniorChart/radarChart/radarChart'
import StatsCard from '@/pages/applications/reports/seniorChart/stasCard/stasCard'
import TitleTooltip from '@/pages/applications/reports/seniorChart/titleTooltip/titleTooltip'
const Reports = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/reports')) }, 'report')
const BasicChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/basicChart/basicChart')) }, 'report')
const SeniorChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/seniorChart')) }, 'report')
const AreaChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/basicChart/areaChart/areaChart')) }, 'report')
const BreadChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/basicChart/breadChart/breadChart')) }, 'report')
const ColumnChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/basicChart/columnChart/columnChart')) }, 'report')
const CombinationChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/basicChart/combinationChart/combinationChart')) }, 'report')
const LineChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/basicChart/lineChart/lineChart')) }, 'report')
const NoodlesChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/basicChart/noodlesChart/noodlesChart')) }, 'report')
const PointChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/basicChart/pointChart/pointChart')) }, 'report')
const ArcGridChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/arcGridChart/arcGridChart')) }, 'report')
const ClickLine = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/clickLine/clickLine')) }, 'report')
const Guide = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/guide/guide')) }, 'report')
const HeartRate = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/heartRate/heartRate')) }, 'report')
const InteractionLegend = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/interactionLegend/interactionLegend')) }, 'report')
const OtherChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/otherChart/otherChart')) }, 'report')
const RadarChart = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/radarChart/radarChart')) }, 'report')
const StatsCard = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/stasCard/stasCard')) }, 'report')
const TitleTooltip = resolve => require.ensure([], () => { resolve(require('@/pages/applications/reports/seniorChart/titleTooltip/titleTooltip')) }, 'report')
{{/report}}
{{#qixin}}
// 启信宝
import QiXinBao from '@/pages/applications/qiXinBao/qiXinBao'
import QiXinSearch from '@/pages/applications/qiXinBao/qiXinSearch'
import QiXinDetail from '@/pages/applications/qiXinBao/qiXinDetail/qiXinDetail'
import CompanyDetail from '@/pages/applications/qiXinBao/qiXinDetail/companyInformation'
import industrialCommDetail from '@/pages/applications/qiXinBao/qiXinDetail/industrialCommDetail'
import changeRecord from '@/pages/applications/qiXinBao/qiXinDetail/changeRecord'
import investRelatDetail from '@/pages/applications/qiXinBao/qiXinDetail/investRelatDetail'
import annualReports from '@/pages/applications/qiXinBao/qiXinDetail/annualReports'
import annualReportsDetail from '@/pages/applications/qiXinBao/qiXinDetail/annualReportsDetail'
import courtDecisionDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/courtDecisionDetail'
import executedPersonDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/executedPersonDetail'
import openNoticeDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/openNoticeDetail'
import openNoticeDetailArrow from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/openNoticeDetailArrow'
import courtNoticeDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/courtNoticeDetail'
import courtNoticeDetailArrow from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/courtNoticeDetailArrow'
import loseInformation from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/loseInformation'
import loseInformationDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/loseInformationDetail'
import chattelMortgage from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/chattelMortgage'
import chattelMortgageDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/chattelMortgageDetail'
import taxesInformation from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/taxesInformation'
import judicialSale from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/judicialSale'
import equityPledged from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/equityPledged'
import equityPledgedDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/equityPledgedDetail'
import managementAbnormal from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/managementAbnormal'
import administrativePunish from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/administrativePunish'
import administrativePunishDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/administrativePunishDetail'
import checkInspect from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/checkInspect'
import equityFreeze from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/equityFreeze'
import equityFreezeDetail from '@/pages/applications/qiXinBao/qiXinDetail/riskInfo/equityFreezeDetail'
import trademarkInformation from '@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/trademarkInformation'
import trademarkInformationDetail from '@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/trademarkInformationDetail'
import patentInformation from '@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/patentInformation'
import patentInformationDetail from '@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/patentInformationDetail'
import copyright from '@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/copyright'
import certificationInformation from '@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/certificationInformation'
import financeInformation from '@/pages/applications/qiXinBao/qiXinDetail/businessInfo/financeInformation'
import newsSentiment from '@/pages/applications/qiXinBao/qiXinDetail/businessInfo/newsSentiment'
import bid from '@/pages/applications/qiXinBao/qiXinDetail/businessInfo/bid'
import recruitInformation from '@/pages/applications/qiXinBao/qiXinDetail/businessInfo/recruitmentInformation'
import internetInformation from '@/pages/applications/qiXinBao/qiXinDetail/businessInfo/internetInformation'
import administrativeLicense from '@/pages/applications/qiXinBao/qiXinDetail/businessInfo/administrativeLicense'
import administrativeLicenseDetail from '@/pages//applications/qiXinBao/qiXinDetail/businessInfo/administrativeLicenseDetail'
import growthProcess from '@/pages//applications/qiXinBao/qiXinDetail/businessInfo/growthProcess'
{{/qixin}}
const QiXinBao = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinBao')) }, 'qixin')
const QiXinSearch = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinSearch')) }, 'qixin')
const QiXinDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/qiXinDetail')) }, 'qixin')
const CompanyDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/companyInformation')) }, 'qixin')
const industrialCommDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/industrialCommDetail')) }, 'qixin')
const changeRecord = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/changeRecord')) }, 'qixin')
const investRelatDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/investRelatDetail')) }, 'qixin')
const annualReports = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/annualReports')) }, 'qixin')
const annualReportsDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/annualReportsDetail')) }, 'qixin')
const courtDecisionDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/courtDecisionDetail')) }, 'qixin')
const executedPersonDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/executedPersonDetail')) }, 'qixin')
const openNoticeDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/openNoticeDetail')) }, 'qixin')
const openNoticeDetailArrow = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/openNoticeDetailArrow')) }, 'qixin')
const courtNoticeDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/courtNoticeDetail')) }, 'qixin')
const courtNoticeDetailArrow = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/courtNoticeDetailArrow')) }, 'qixin')
const loseInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/loseInformation')) }, 'qixin')
const loseInformationDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/loseInformationDetail')) }, 'qixin')
const chattelMortgage = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/chattelMortgage')) }, 'qixin')
const chattelMortgageDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/chattelMortgageDetail')) }, 'qixin')
const taxesInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/taxesInformation')) }, 'qixin')
const judicialSale = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/judicialSale')) }, 'qixin')
const equityPledged = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/equityPledged')) }, 'qixin')
const equityPledgedDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/equityPledgedDetail')) }, 'qixin')
const managementAbnormal = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/managementAbnormal')) }, 'qixin')
const administrativePunish = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/administrativePunish')) }, 'qixin')
const administrativePunishDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/administrativePunishDetail')) }, 'qixin')
const checkInspect = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/checkInspect')) }, 'qixin')
const equityFreeze = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/equityFreeze')) }, 'qixin')
const equityFreezeDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/riskInfo/equityFreezeDetail')) }, 'qixin')
const trademarkInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/trademarkInformation')) }, 'qixin')
const trademarkInformationDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/trademarkInformationDetail')) }, 'qixin')
const patentInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/patentInformation')) }, 'qixin')
const patentInformationDetail = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/patentInformationDetail')) }, 'qixin')
const copyright = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/copyright')) }, 'radio')
const certificationInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/knowledgeInfo/certificationInformation')) }, 'qixin')
const financeInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/businessInfo/financeInformation')) }, 'qixin')
const newsSentiment = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/businessInfo/newsSentiment')) }, 'qixin')
const bid = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/businessInfo/bid')) }, 'radio')
const recruitInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/businessInfo/recruitmentInformation')) }, 'qixin')
const internetInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/businessInfo/internetInformation')) }, 'qixin')
const administrativeLicense = resolve => require.ensure([], () => { resolve(require('@/pages/applications/qiXinBao/qiXinDetail/businessInfo/administrativeLicense')) }, 'qixin')
const administrativeLicenseDetail = resolve => require.ensure([], () => { resolve(require('@/pages//applications/qiXinBao/qiXinDetail/businessInfo/administrativeLicenseDetail')) }, 'qixin')
const growthProcess = resolve => require.ensure([], () => { resolve(require('@/pages//applications/qiXinBao/qiXinDetail/businessInfo/growthProcess')) }, 'qixin')
{{/qixin}}
{{#ocr}}
// ocr
import OcrIdentify from '@/pages/applications/ocrIdentify/ocrIdentify'
import BusinessCard from '@/pages/applications/ocrIdentify/businessCard'
import BusinessLicenseInformaton from '@/pages/applications/ocrIdentify/businessLicenseInformation'
import DriverLicenseInformation from '@/pages/applications/ocrIdentify/driverLicenseInformation'
import IdCard from '@/pages/applications/ocrIdentify/idCard'
import VehicleCard from '@/pages/applications/ocrIdentify/vehicleCard'
const OcrIdentify = resolve => require.ensure([], () => { resolve(require('@/pages/applications/ocrIdentify/ocrIdentify')) }, 'ocr')
const BusinessCard = resolve => require.ensure([], () => { resolve(require('@/pages/applications/ocrIdentify/businessCard')) }, 'ocr')
const BusinessLicenseInformaton = resolve => require.ensure([], () => { resolve(require('@/pages/applications/ocrIdentify/businessLicenseInformation')) }, 'ocr')
const DriverLicenseInformation = resolve => require.ensure([], () => { resolve(require('@/pages/applications/ocrIdentify/driverLicenseInformation')) }, 'ocr')
const IdCard = resolve => require.ensure([], () => { resolve(require('@/pages/applications/ocrIdentify/idCard')) }, 'ocr')
const VehicleCard = resolve => require.ensure([], () => { resolve(require('@/pages/applications/ocrIdentify/vehicleCard')) }, 'ocr')
{{/ocr}}
......@@ -182,7 +174,7 @@ export default new Router({
{ path: '/ModuleFunction', component: ModuleFunction, name: 'ModuleFunction', meta: { keepAlive: true } },
// test工具类
{ path: '/hls-popup', component: HlsPopup, name: 'HlsPopup', meta: { keepAlive: false, nextReload: '' } },
{path: '/EsignPicture', component: EsignPicture, name: 'EsignPicture', meta: {keepAlive: false}},
{ path: '/EsignPicture', component: EsignPicture, name: 'EsignPicture', meta: {keepAlive: false}},
{{#wfl}}
// 工作流
{
......@@ -271,13 +263,7 @@ export default new Router({
name: 'ContractSign',
meta: { keepAlive: false, nextReload: '' },
},
{{/contract}}
{{#robot}}
// Robot
{path: '/Robot', component: Robot, name: 'Robot', meta: {keepAlive: false}},
{{/robot}}
{{#esign}}
{path: '/Esign', component: Esign, name: 'Esign', meta: {keepAlive: false}},
{path: '/BankVerified', component: BankVerified, name: 'BankVerified', meta: {keepAlive: true}},
......
/*!
* vum.bundle.js is a concatenation of:
* vum.js, angular.js, angular-animate.js,
* angular-sanitize.js, angular-ui-router.js,
* and vum-angular.js
*/
/*!
* Copyright 2015 Drifty Co.
* http://drifty.com/
*
* vum, v1.3.0
* A powerful HTML5 mobile app framework.
* http://vumframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
/* eslint-disable */
(function () {
// Create global vum obj and its namespaces
// build processes may have already created an vum obj
window.vum = window.vum || {}
window.vum.version = '1.3.0';
(function (window, document, vum) {
var readyCallbacks = []
var isDomReady = document.readyState === 'complete' || document.readyState === 'interactive'
function domReady () {
isDomReady = true
for (var x = 0; x < readyCallbacks.length; x++) {
vum.requestAnimationFrame(readyCallbacks[x])
}
readyCallbacks = []
document.removeEventListener('DOMContentLoaded', domReady)
}
if (!isDomReady) {
document.addEventListener('DOMContentLoaded', domReady)
}
})(window, document, vum);
(function (window, document, vum) {
function getParameterByName (name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]')
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'),
results = regex.exec(location.search)
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '))
}
var IOS = 'ios'
var ANDROID = 'android'
var WINDOWS_PHONE = 'windowsphone'
var EDGE = 'edge'
var CROSSWALK = 'crosswalk'
var requestAnimationFrame = requestAnimationFrame // eslint-disable-line
// From the man himself, Mr. Paul Irish.
// The requestAnimationFrame polyfill
// Put it on window just to preserve its context
// without having to use .call
window._rAF = (function () {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function (callback) {
window.setTimeout(callback, 16)
}
})()
function requestAnimationFrame (cb) {
return window._rAF(cb)
}
/**
* @ngdoc utility
* @name vum.Platform
* @module vum
* @description
* A set of utility methods that can be used to retrieve the device ready state and
* various other information such as what kind of platform the app is currently installed on.
*
* @usage
* ```js
* angular.module('PlatformApp', ['vum'])
* .controller('PlatformCtrl', function($scope) {
*
* vum.Platform.ready(function(){
* // will execute when device is ready, or immediately if the device is already ready.
* });
*
* var deviceInformation = vum.Platform.device();
*
* var isWebView = vum.Platform.isWebView();
* var isIPad = vum.Platform.isIPad();
* var isIOS = vum.Platform.isIOS();
* var isAndroid = vum.Platform.isAndroid();
* var isWindowsPhone = vum.Platform.isWindowsPhone();
*
* var currentPlatform = vum.Platform.platform();
* var currentPlatformVersion = vum.Platform.version();
*
* vum.Platform.exitApp(); // stops the app
* });
* ```
*/
var self = vum.Platform = {
// Put navigator on platform so it can be mocked and set
// the browser does not allow window.navigator to be set
navigator: window.navigator,
/**
* @ngdoc property
* @name vum.Platform#isReady
* @returns {boolean} Whether the device is ready.
*/
isReady: false,
/**
* @ngdoc property
* @name vum.Platform#isFullScreen
* @returns {boolean} Whether the device is fullscreen.
*/
isFullScreen: false,
/**
* @ngdoc property
* @name vum.Platform#platforms
* @returns {Array(string)} An array of all platforms found.
*/
platforms: null,
/**
* @ngdoc property
* @name vum.Platform#grade
* @returns {string} What grade the current platform is.
*/
grade: null,
/**
* @ngdoc property
* @name vum.Platform#ua
* @returns {string} What User Agent is.
*/
ua: navigator.userAgent,
/**
* @ngdoc method
* @name vum.Platform#ready
* @description
* Trigger a callback once the device is ready, or immediately
* if the device is already ready. This method can be run from
* anywhere and does not need to be wrapped by any additonal methods.
* When the app is within a WebView (Cordova), it'll fire
* the callback once the device is ready. If the app is within
* a web browser, it'll fire the callback after `window.load`.
* Please remember that Cordova features (Camera, FileSystem, etc) still
* will not work in a web browser.
* @param {function} callback The function to call.
*/
ready: function (cb) {
// run through tasks to complete now that the device is ready
if (self.isReady) {
cb()
} else {
// the platform isn't ready yet, add it to this array
// which will be called once the platform is ready
readyCallbacks.push(cb)
}
},
/**
* @private
*/
detect: function () {
self._checkPlatforms()
requestAnimationFrame(function () {
// only add to the body class if we got platform info
for (var i = 0; i < self.platforms.length; i++) {
document.body.classList.add('platform-' + self.platforms[i])
}
})
},
/**
* @ngdoc method
* @name vum.Platform#setGrade
* @description Set the grade of the device: 'a', 'b', or 'c'. 'a' is the best
* (most css features enabled), 'c' is the worst. By default, sets the grade
* depending on the current device.
* @param {string} grade The new grade to set.
*/
setGrade: function (grade) {
var oldGrade = self.grade
self.grade = grade
requestAnimationFrame(function () {
if (oldGrade) {
document.body.classList.remove('grade-' + oldGrade)
}
document.body.classList.add('grade-' + grade)
})
},
/**
* @ngdoc method
* @name vum.Platform#device
* @description Return the current device (given by cordova).
* @returns {object} The device object.
*/
device: function () {
return window.device || {}
},
_checkPlatforms: function () {
self.platforms = []
var grade = 'a'
/*if (self.isWebView()) {
self.platforms.push('webview')
if (!(!window.cordova && !window.PhoneGap && !window.phonegap)) {
self.platforms.push('cordova')
} else if (typeof window.forge === 'object') {
self.platforms.push('trigger')
}
} else {
self.platforms.push('browser')
}
if (self.isIPad()) self.platforms.push('ipad')*/
var platform = self.platform()
if (platform) {
self.platforms.push(platform)
/*var version = self.version()
if (version) {
var v = version.toString()
if (v.indexOf('.') > 0) {
v = v.replace('.', '_')
} else {
v += '_0'
}
self.platforms.push(platform + v.split('_')[0])
self.platforms.push(platform + v)
if (self.isAndroid() && version < 4.4) {
grade = (version < 4 ? 'c' : 'b')
} else if (self.isWindowsPhone()) {
grade = 'b'
}
}*/
}
// self.setGrade(grade)
},
/**
* @ngdoc method
* @name vum.Platform#isWebView
* @returns {boolean} Check if we are running within a WebView (such as Cordova).
*/
isWebView: function () {
return !(!window.cordova && !window.PhoneGap && !window.phonegap && window.forge !== 'object')
},
/**
* @ngdoc method
* @name vum.Platform#isIPad
* @returns {boolean} Whether we are running on iPad.
*/
isIPad: function () {
if (/iPad/i.test(self.navigator.platform)) {
return true
}
return /iPad/i.test(self.ua)
},
/**
* @ngdoc method
* @name vum.Platform#isIOS
* @returns {boolean} Whether we are running on iOS.
*/
isIOS: function () {
return self.is(IOS)
},
/**
* @ngdoc method
* @name vum.Platform#isAndroid
* @returns {boolean} Whether we are running on Android.
*/
isAndroid: function () {
return self.is(ANDROID)
},
/**
* @ngdoc method
* @name vum.Platform#isWindowsPhone
* @returns {boolean} Whether we are running on Windows Phone.
*/
isWindowsPhone: function () {
return self.is(WINDOWS_PHONE)
},
/**
* @ngdoc method
* @name vum.Platform#isEdge
* @returns {boolean} Whether we are running on MS Edge/Windows 10 (inc. Phone)
*/
isEdge: function () {
return self.is(EDGE)
},
isCrosswalk: function () {
return self.is(CROSSWALK)
},
/**
* @ngdoc method
* @name vum.Platform#platform
* @returns {string} The name of the current platform.
*/
platform: function () {
// singleton to get the platform name
if (platformName === null) self.setPlatform(self.device().platform)
return platformName
},
/**
* @private
*/
setPlatform: function (n) {
if (typeof n !== 'undefined' && n !== null && n.length) {
platformName = n.toLowerCase()
} else if (getParameterByName('vumplatform')) {
platformName = getParameterByName('vumplatform')
} else if (self.ua.indexOf('Edge') > -1) {
platformName = EDGE
} else if (self.ua.indexOf('Windows Phone') > -1) {
platformName = WINDOWS_PHONE
} else if (self.ua.indexOf('Android') > 0) {
platformName = ANDROID
} else if (/iPhone|iPad|iPod/.test(self.ua)) {
platformName = IOS
} else {
platformName = self.navigator.platform && navigator.platform.toLowerCase().split(' ')[0] || ''
}
},
/**
* @ngdoc method
* @name vum.Platform#version
* @returns {number} The version of the current device platform.
*/
version: function () {
// singleton to get the platform version
if (platformVersion === null) self.setVersion(self.device().version)
return platformVersion
},
/**
* @private
*/
setVersion: function (v) {
if (typeof v !== 'undefined' && v !== null) {
v = v.split('.')
v = parseFloat(v[0] + '.' + (v.length > 1 ? v[1] : 0))
if (!isNaN(v)) {
platformVersion = v
return
}
}
platformVersion = 0
// fallback to user-agent checking
var pName = self.platform()
var versionMatch = {
'android': /Android (\d+).(\d+)?/,
'ios': /OS (\d+)_(\d+)?/,
'windowsphone': /Windows Phone (\d+).(\d+)?/,
}
if (versionMatch[pName]) {
v = self.ua.match(versionMatch[pName])
if (v && v.length > 2) {
platformVersion = parseFloat(v[1] + '.' + v[2])
}
}
},
/**
* @ngdoc method
* @name vum.Platform#is
* @param {string} Platform name.
* @returns {boolean} Whether the platform name provided is detected.
*/
is: function (type) {
type = type.toLowerCase()
// check if it has an array of platforms
if (self.platforms) {
for (var x = 0; x < self.platforms.length; x++) {
if (self.platforms[x] === type) return true
}
}
// exact match
var pName = self.platform()
if (pName) {
return pName === type.toLowerCase()
}
// A quick hack for to check userAgent
return self.ua.toLowerCase().indexOf(type) >= 0
},
/**
* @ngdoc method
* @name vum.Platform#exitApp
* @description Exit the app.
*/
exitApp: function () {
self.ready(function () {
navigator.app && navigator.app.exitApp && navigator.app.exitApp()
})
},
/**
* @ngdoc method
* @name vum.Platform#showStatusBar
* @description Shows or hides the device status bar (in Cordova). Requires `cordova plugin add org.apache.cordova.statusbar`
* @param {boolean} shouldShow Whether or not to show the status bar.
*/
showStatusBar: function (val) {
// Only useful when run within cordova
self._showStatusBar = val
self.ready(function () {
// run this only when or if the platform (cordova) is ready
requestAnimationFrame(function () {
if (self._showStatusBar) {
// they do not want it to be full screen
window.StatusBar && window.StatusBar.show()
document.body.classList.remove('status-bar-hide')
} else {
// it should be full screen
window.StatusBar && window.StatusBar.hide()
document.body.classList.add('status-bar-hide')
}
})
})
},
/**
* @ngdoc method
* @name vum.Platform#fullScreen
* @description
* Sets whether the app is fullscreen or not (in Cordova).
* @param {boolean=} showFullScreen Whether or not to set the app to fullscreen. Defaults to true. Requires `cordova plugin add org.apache.cordova.statusbar`
* @param {boolean=} showStatusBar Whether or not to show the device's status bar. Defaults to false.
*/
fullScreen: function (showFullScreen, showStatusBar) {
// showFullScreen: default is true if no param provided
self.isFullScreen = (showFullScreen !== false)
// add/remove the fullscreen classname to the body
vum.DomUtil.ready(function () {
// run this only when or if the DOM is ready
requestAnimationFrame(function () {
if (self.isFullScreen) {
document.body.classList.add('fullscreen')
} else {
document.body.classList.remove('fullscreen')
}
})
// showStatusBar: default is false if no param provided
self.showStatusBar((showStatusBar === true))
})
},
}
var platformName = null, // just the name, like iOS or Android
platformVersion = null, // a float of the major and minor, like 7.1
readyCallbacks = [],
windowLoadListenderAttached,
platformReadyTimer = 2000 // How long to wait for platform ready before emitting a warning
verifyPlatformReady()
// Warn the user if deviceready did not fire in a reasonable amount of time, and how to fix it.
function verifyPlatformReady () {
setTimeout(function () {
if (!self.isReady && self.isWebView()) {
void 0
}
}, platformReadyTimer)
}
// setup listeners to know when the device is ready to go
function onWindowLoad () {
if (self.isWebView()) {
// the window and scripts are fully loaded, and a cordova/phonegap
// object exists then let's listen for the deviceready
document.addEventListener('deviceready', onPlatformReady, false)
} else {
// the window and scripts are fully loaded, but the window object doesn't have the
// cordova/phonegap object, so its just a browser, not a webview wrapped w/ cordova
onPlatformReady()
}
if (windowLoadListenderAttached) {
window.removeEventListener('load', onWindowLoad, false)
}
}
if (document.readyState === 'complete') {
onWindowLoad()
} else {
windowLoadListenderAttached = true
window.addEventListener('load', onWindowLoad, false)
}
function onPlatformReady () {
// the device is all set to go, init our own stuff then fire off our event
self.isReady = true
self.detect()
for (var x = 0; x < readyCallbacks.length; x++) {
// fire off all the callbacks that were added before the platform was ready
readyCallbacks[x]()
}
readyCallbacks = []
vum.trigger('platformready', {target: document})
requestAnimationFrame(function () {
document.body.classList.add('platform-ready')
})
}
// document.addEventListener('')
})(window, document, vum);
/**
* ion-events.js
*
* Author: Max Lynch <max@drifty.com>
*
* Framework events handles various mobile browser events, and
* detects special events like tap/swipe/etc. and emits them
* as custom events that can be used in an app.
*
* Portions lovingly adapted from github.com/maker/ratchet and github.com/alexgibson/tap.js - thanks guys!
*/
(function (vum) {
// Custom event polyfill
vum.CustomEvent = (function () {
if (typeof window.CustomEvent === 'function') return CustomEvent
var customEvent = function (event, params) {
var evt
params = params || {
bubbles: false,
cancelable: false,
detail: undefined,
}
try {
evt = document.createEvent('CustomEvent')
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail)
} catch (error) {
// fallback for browsers that don't support createEvent('CustomEvent')
evt = document.createEvent('Event')
for (var param in params) {
evt[param] = params[param]
}
evt.initEvent(event, params.bubbles, params.cancelable)
}
return evt
}
customEvent.prototype = window.Event.prototype
return customEvent
})()
/**
* @ngdoc utility
* @name vum.EventController
* @module vum
*/
vum.EventController = {
VIRTUALIZED_EVENTS: ['tap', 'swipe', 'swiperight', 'swipeleft', 'drag', 'hold', 'release'],
/**
* @ngdoc method
* @name vum.EventController#trigger
* @alias vum.trigger
* @param {string} eventType The event to trigger.
* @param {object} data The data for the event. Hint: pass in
* `{target: targetElement}`
* @param {boolean=} bubbles Whether the event should bubble up the DOM.
* @param {boolean=} cancelable Whether the event should be cancelable.
*/
// Trigger a new event
trigger: function (eventType, data, bubbles, cancelable) {
var event = new vum.CustomEvent(eventType, {
detail: data,
bubbles: !!bubbles,
cancelable: !!cancelable,
})
// Make sure to trigger the event on the given target, or dispatch it from
// the window if we don't have an event target
data && data.target && data.target.dispatchEvent && data.target.dispatchEvent(event) || window.dispatchEvent(event)
},
/**
* @ngdoc method
* @name vum.EventController#on
* @alias vum.on
* @description Listen to an event on an element.
* @param {string} type The event to listen for.
* @param {function} callback The listener to be called.
* @param {DOMElement} element The element to listen for the event on.
*/
on: function (type, callback, element) {
var e = element || window
// Bind a gesture if it's a virtual event
for (var i = 0, j = this.VIRTUALIZED_EVENTS.length; i < j; i++) {
if (type == this.VIRTUALIZED_EVENTS[i]) {
var gesture = new vum.Gesture(element)
gesture.on(type, callback)
return gesture
}
}
// Otherwise bind a normal event
e.addEventListener(type, callback)
},
/**
* @ngdoc method
* @name vum.EventController#off
* @alias vum.off
* @description Remove an event listener.
* @param {string} type
* @param {function} callback
* @param {DOMElement} element
*/
off: function (type, callback, element) {
element.removeEventListener(type, callback)
},
/**
* @ngdoc method
* @name vum.EventController#onGesture
* @alias vum.onGesture
* @description Add an event listener for a gesture on an element.
*
* Available eventTypes (from [hammer.js](http://eightmedia.github.io/hammer.js/)):
*
* `hold`, `tap`, `doubletap`, `drag`, `dragstart`, `dragend`, `dragup`, `dragdown`, <br/>
* `dragleft`, `dragright`, `swipe`, `swipeup`, `swipedown`, `swipeleft`, `swiperight`, <br/>
* `transform`, `transformstart`, `transformend`, `rotate`, `pinch`, `pinchin`, `pinchout`, <br/>
* `touch`, `release`
*
* @param {string} eventType The gesture event to listen for.
* @param {function(e)} callback The function to call when the gesture
* happens.
* @param {DOMElement} element The angular element to listen for the event on.
* @param {object} options object.
* @returns {vum.Gesture} The gesture object (use this to remove the gesture later on).
*/
onGesture: function (type, callback, element, options) {
var gesture = new vum.Gesture(element, options)
gesture.on(type, callback)
return gesture
},
/**
* @ngdoc method
* @name vum.EventController#offGesture
* @alias vum.offGesture
* @description Remove an event listener for a gesture created on an element.
* @param {vum.Gesture} gesture The gesture that should be removed.
* @param {string} eventType The gesture event to remove the listener for.
* @param {function(e)} callback The listener to remove.
*/
offGesture: function (gesture, type, callback) {
gesture && gesture.off(type, callback)
},
handlePopState: function () {
},
}
// Map some convenient top-level functions for event handling
vum.on = function () {
vum.EventController.on.apply(vum.EventController, arguments)
}
vum.off = function () {
vum.EventController.off.apply(vum.EventController, arguments)
}
vum.trigger = vum.EventController.trigger// function() { vum.EventController.trigger.apply(vum.EventController.trigger, arguments); };
vum.onGesture = function () {
return vum.EventController.onGesture.apply(vum.EventController.onGesture, arguments)
}
vum.offGesture = function () {
return vum.EventController.offGesture.apply(vum.EventController.offGesture, arguments)
}
})(window.vum);
(function (vum) {
vum.$vumPlatform = {
/**
* @ngdoc method
* @name $vumPlatform#onHardwareBackButton
* @description
* Some platforms have a hardware back button, so this is one way to
* bind to it.
* @param {function} callback the callback to trigger when this event occurs
*/
onHardwareBackButton: function (cb) {
vum.Platform.ready(function () {
document.addEventListener('backbutton', cb, false)
})
},
/**
* @ngdoc method
* @name $vumPlatform#offHardwareBackButton
* @description
* Remove an event listener for the backbutton.
* @param {function} callback The listener function that was
* originally bound.
*/
offHardwareBackButton: function (fn) {
vum.Platform.ready(function () {
document.removeEventListener('backbutton', fn)
})
},
/**
* @ngdoc method
* @name $vumPlatform#registerBackButtonAction
* @description
* Register a hardware back button action. Only one action will execute
* when the back button is clicked, so this method decides which of
* the registered back button actions has the highest priority.
*
* For example, if an actionsheet is showing, the back button should
* close the actionsheet, but it should not also go back a page view
* or close a modal which may be open.
*
* The priorities for the existing back button hooks are as follows:
* Return to previous view = 100
* Close side menu = 150
* Dismiss modal = 200
* Close action sheet = 300
* Dismiss popup = 400
* Dismiss loading overlay = 500
*
* Your back button action will override each of the above actions
* whose priority is less than the priority you provide. For example,
* an action assigned a priority of 101 will override the 'return to
* previous view' action, but not any of the other actions.
*
* @param {function} callback Called when the back button is pressed,
* if this listener is the highest priority.
* @param {number} priority Only the highest priority will execute.
* @param {*=} actionId The id to assign this action. Default: a
* random unique id.
* @returns {function} A function that, when called, will deregister
* this backButtonAction.
*/
$backButtonActions: {},
registerBackButtonAction: function (fn, priority, actionId) {
if (!vum.$vumPlatform._hasBackButtonHandler) {
// add a back button listener if one hasn't been setup yet
vum.$vumPlatform.$backButtonActions = {}
vum.$vumPlatform.onHardwareBackButton(vum.$vumPlatform.hardwareBackButtonClick)
vum.$vumPlatform._hasBackButtonHandler = true
}
var action = {
id: (actionId || vum.Utils.nextUid()),
priority: (priority || 0),
fn: fn,
}
vum.$vumPlatform.$backButtonActions[action.id] = action
// return a function to de-register this back button action
return function () {
delete vum.$vumPlatform.$backButtonActions[action.id]
}
},
/**
* @private
*/
hardwareBackButtonClick: function (e) {
// loop through all the registered back button actions
// and only run the last one of the highest priority
var priorityAction, actionId
for (actionId in vum.$vumPlatform.$backButtonActions) {
if (!priorityAction || vum.$vumPlatform.$backButtonActions[actionId].priority >= priorityAction.priority) {
priorityAction = vum.$vumPlatform.$backButtonActions[actionId]
}
}
if (priorityAction) {
priorityAction.fn(e)
return priorityAction
}
},
is: function (type) {
return vum.Platform.is(type)
},
/**
* @ngdoc method
* @name $vumPlatform#on
* @description
* Add Cordova event listeners, such as `pause`, `resume`, `volumedownbutton`, `batterylow`,
* `offline`, etc. More information about available event types can be found in
* [Cordova's event documentation](https://cordova.apache.org/docs/en/edge/cordova_events_events.md.html#Events).
* @param {string} type Cordova [event type](https://cordova.apache.org/docs/en/edge/cordova_events_events.md.html#Events).
* @param {function} callback Called when the Cordova event is fired.
* @returns {function} Returns a deregistration function to remove the event listener.
*/
on: function (type, cb) {
vum.Platform.ready(function () {
document.addEventListener(type, cb, false)
})
return function () {
vum.Platform.ready(function () {
document.removeEventListener(type, cb)
})
}
},
/**
* @ngdoc method
* @name $vumPlatform#ready
* @description
* Trigger a callback once the device is ready,
* or immediately if the device is already ready.
* @param {function=} callback The function to call.
*/
ready: function (cb) {
vum.Platform.ready(function () {
cb()
})
},
getWinSize: function () {
let winWidth
let winHeight
// 获取窗口宽度
if (window.innerWidth) { winWidth = window.innerWidth } else if ((document.body) && (document.body.clientWidth))
// 获取窗口高度
{ winWidth = document.body.clientWidth }
if (window.innerHeight) { winHeight = window.innerHeight } else if ((document.body) && (document.body.clientHeight)) { winHeight = document.body.clientHeight }
// 通过深入Document内部对body进行检测,获取窗口大小
if (document.documentElement && document.documentElement.clientHeight && document.documentElement.clientWidth) {
winHeight = document.documentElement.clientHeight
winWidth = document.documentElement.clientWidth
}
return {'width': winWidth, 'height': winHeight}
},
}
return vum.$vumPlatform
})(window.vum);
(function () {
var nextId = 0
vum.Utils = {
nextUid: function () {
return 'vue' + (nextId++)
},
}
var jqLite // delay binding since jQuery could be loaded after us.
var hasOwnProperty = Object.prototype.hasOwnProperty
/**
* @ngdoc function
* @name angular.isUndefined
* @module ng
* @kind function
*
* @description
* Determines if a reference is undefined.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is undefined.
*/
vum.isUndefined = function (value) {
return typeof value === 'undefined'
}
/**
* @ngdoc function
* @name angular.isDefined
* @module ng
* @kind function
*
* @description
* Determines if a reference is defined.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is defined.
*/
vum.isDefined = function (value) {
return typeof value !== 'undefined'
}
/**
* @ngdoc function
* @name angular.isObject
* @module ng
* @kind function
*
* @description
* Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
* considered to be objects. Note that JavaScript arrays are objects.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is an `Object` but not `null`.
*/
vum.isObject = function (value) {
// http://jsperf.com/isobject4
return value !== null && typeof value === 'object'
}
/**
* Determine if a value is an object with a null prototype
*
* @returns {boolean} True if `value` is an `Object` with a null prototype
*/
vum.isBlankObject = function (value) {
return value !== null && typeof value === 'object' && !getPrototypeOf(value)
}
/**
* @ngdoc function
* @name angular.isString
* @module ng
* @kind function
*
* @description
* Determines if a reference is a `String`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `String`.
*/
vum.isString = function (value) {
return typeof value === 'string'
}
/**
* @ngdoc function
* @name angular.isNumber
* @module ng
* @kind function
*
* @description
* Determines if a reference is a `Number`.
*
* This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`.
*
* If you wish to exclude these then you can use the native
* [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)
* method.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Number`.
*/
vum.isNumber = function (value) {
return typeof value === 'number'
}
/**
* @ngdoc function
* @name angular.isDate
* @module ng
* @kind function
*
* @description
* Determines if a value is a date.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Date`.
*/
vum.isDate = function (value) {
return toString.call(value) === '[object Date]'
}
/**
* @ngdoc function
* @name angular.isArray
* @module ng
* @kind function
*
* @description
* Determines if a reference is an `Array`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is an `Array`.
*/
var isArray = Array.isArray
/**
* @ngdoc function
* @name angular.isFunction
* @module ng
* @kind function
*
* @description
* Determines if a reference is a `Function`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Function`.
*/
vum.isFunction = function (value) {
return typeof value === 'function'
}
/**
* Determines if a value is a regular expression object.
*
* @private
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `RegExp`.
*/
vum.isRegExp = function (value) {
return toString.call(value) === '[object RegExp]'
}
/**
* Checks if `obj` is a window object.
*
* @private
* @param {*} obj Object to check
* @returns {boolean} True if `obj` is a window obj.
*/
vum.isWindow = function (obj) {
return obj && obj.window === obj
}
vum.isScope = function (obj) {
return obj && obj.$evalAsync && obj.$watch
}
vum.isFile = function (obj) {
return toString.call(obj) === '[object File]'
}
vum.isFormData = function (obj) {
return toString.call(obj) === '[object FormData]'
}
vum.isBlob = function (obj) {
return toString.call(obj) === '[object Blob]'
}
vum.isBoolean = function (value) {
return typeof value === 'boolean'
}
vum.isPromiseLike = function (obj) {
return obj && isFunction(obj.then)
}
var TYPED_ARRAY_REGEXP = /^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/
vum.isTypedArray = function (value) {
return value && isNumber(value.length) && TYPED_ARRAY_REGEXP.test(toString.call(value))
}
vum.isArrayBuffer = function (obj) {
return toString.call(obj) === '[object ArrayBuffer]'
}
vum.toJsonReplacer = function (key, value) {
var val = value
if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {
val = undefined
} else if (vum.isWindow(value)) {
val = '$WINDOW'
} else if (value && document === value) {
val = '$DOCUMENT'
} else if (vum.isScope(value)) {
val = '$SCOPE'
}
return val
}
/**
* @ngdoc function
* @name angular.toJson
* @module ng
* @kind function
*
* @description
* Serializes input into a JSON-formatted string. Properties with leading $$ characters will be
* stripped since angular uses this notation internally.
*
* @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.
* @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
* If set to an integer, the JSON output will contain that many spaces per indentation.
* @returns {string|undefined} JSON-ified string representing `obj`.
*/
vum.toJson = function (obj, pretty) {
if (vum.isUndefined(obj)) return undefined
if (!vum.isNumber(pretty)) {
pretty = pretty ? 2 : null
}
return JSON.stringify(obj, vum.toJsonReplacer, pretty)
}
function isArrayLike (obj) {
// `null`, `undefined` and `window` are not array-like
if (obj == null || isWindow(obj)) return false
// arrays, strings and jQuery/jqLite objects are array like
// * jqLite is either the jQuery or jqLite constructor function
// * we have to check the existence of jqLite first as this method is called
// via the forEach method when constructing the jqLite object in the first place
if (isArray(obj) || vum.isString(obj) || (jqLite && obj instanceof jqLite)) return true
// Support: iOS 8.2 (not reproducible in simulator)
// "length" in obj used to prevent JIT error (gh-11508)
var length = 'length' in Object(obj) && obj.length
// NodeList objects (with `item` method) and
// other objects with suitable length characteristics are array-like
return vum.isNumber(length) &&
(length >= 0 && ((length - 1) in obj || obj instanceof Array) || typeof obj.item === 'function')
}
/**
* @ngdoc function
* @name angular.forEach
* @module ng
* @kind function
*
* @description
* Invokes the `iterator` function once for each item in `obj` collection, which can be either an
* object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`
* is the value of an object property or an array element, `key` is the object property key or
* array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.
*
* It is worth noting that `.forEach` does not iterate over inherited properties because it filters
* using the `hasOwnProperty` method.
*
* Unlike ES262's
* [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),
* providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just
* return the value provided.
*
```js
var values = {name: 'misko', gender: 'male'};
var log = [];
angular.forEach(values, function(value, key) {
this.push(key + ': ' + value);
}, log);
expect(log).toEqual(['name: misko', 'gender: male']);
```
*
* @param {Object|Array} obj Object to iterate over.
* @param {Function} iterator Iterator function.
* @param {Object=} context Object to become context (`this`) for the iterator function.
* @returns {Object|Array} Reference to `obj`.
*/
vum.forEach = function (obj, iterator, context) {
var key, length
if (obj) {
if (vum.isFunction(obj)) {
for (key in obj) {
// Need to check if hasOwnProperty exists,
// as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function
if (key != 'prototype' && key != 'length' && key != 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) {
iterator.call(context, obj[key], key, obj)
}
}
} else if (isArray(obj) || isArrayLike(obj)) {
var isPrimitive = typeof obj !== 'object'
for (key = 0, length = obj.length; key < length; key++) {
if (isPrimitive || key in obj) {
iterator.call(context, obj[key], key, obj)
}
}
} else if (obj.forEach && obj.forEach !== forEach) {
obj.forEach(iterator, context, obj)
} else if (vum.isBlankObject(obj)) {
// createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
for (key in obj) {
iterator.call(context, obj[key], key, obj)
}
} else if (typeof obj.hasOwnProperty === 'function') {
// Slow path for objects inheriting Object.prototype, hasOwnProperty check needed
for (key in obj) {
if (obj.hasOwnProperty(key)) {
iterator.call(context, obj[key], key, obj)
}
}
} else {
// Slow path for objects which do not have a method `hasOwnProperty`
for (key in obj) {
if (hasOwnProperty.call(obj, key)) {
iterator.call(context, obj[key], key, obj)
}
}
}
}
return obj
}
vum.forEachSorted = function (obj, iterator, context) {
var keys = Object.keys(obj).sort()
for (var i = 0; i < keys.length; i++) {
iterator.call(context, obj[keys[i]], keys[i])
}
return keys
}
})(window.vum)
})()
/**
*
* @param fmt
* @returns {*}
* @constructor
*/
Date.prototype.format = function (fmt) { // eslint-disable-line
var o = {
'M+': this.getMonth() + 1, // 月份
'd+': this.getDate(), // 日
'h+': this.getHours(), // 小时
'm+': this.getMinutes(), // 分
's+': this.getSeconds(), // 秒
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
'S': this.getMilliseconds(), // 毫秒
}
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
for (var k in o) { if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length))) }
return fmt
}
/**
* 移除数组的某个元素
* @param dx 下标
* @returns {boolean}
*/
Array.prototype.remove = function (dx) { // eslint-disable-line
if (isNaN(dx) || dx > this.length) {
return false
}
for (var i = 0, n = 0; i < this.length; i++) {
if (this[i] !== this[dx]) {
this[n++] = this[i]
}
}
this.length -= 1
}
......@@ -3841,18 +3841,6 @@ he@1.2.x, he@^1.1.0:
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
"hls-easy-ui@https://hel.hand-china.com/easyUI/hls-easy-ui.git":
version "0.0.4"
resolved "https://hel.hand-china.com/easyUI/hls-easy-ui.git#5f7b05e25ed733d273c1efa516e493b01ec75e04"
dependencies:
autosize "^3.0.20"
better-scroll "^1.10.3"
fastclick "https://hel.hand-china.com/easyUI/fastclick.git"
vue "^2.5.2"
vue-lazyload "1.2.3"
vue-router "^3.0.1"
vux "^2.9.2"
hmac-drbg@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
......
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