换框架,为了安卓app的uni.chooseLocation无法显示列表数据的问题
|
@ -6,7 +6,7 @@
|
||||||
<view class="btn-picker cancel" @click="open = false">取消</view>
|
<view class="btn-picker cancel" @click="open = false">取消</view>
|
||||||
<view class="btn-picker submit" @click="_onSubmit">确定</view>
|
<view class="btn-picker submit" @click="_onSubmit">确定</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="picker-body">
|
<view class="picker-body" v-if="ifDate">
|
||||||
<picker-view :value="value" @change="_onChange">
|
<picker-view :value="value" @change="_onChange">
|
||||||
<picker-view-column>
|
<picker-view-column>
|
||||||
<view class="column-item" v-for="item in years" :key="item">
|
<view class="column-item" v-for="item in years" :key="item">
|
||||||
|
@ -68,6 +68,7 @@
|
||||||
hour: "",
|
hour: "",
|
||||||
minute: "",
|
minute: "",
|
||||||
value: [0, 0, 0, 0, 0],
|
value: [0, 0, 0, 0, 0],
|
||||||
|
ifDate:false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -148,6 +149,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.minutes = minutes;
|
this.minutes = minutes;
|
||||||
|
// 兼容微信小程序
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.ifDate = true;
|
||||||
|
},1000)
|
||||||
},
|
},
|
||||||
|
|
||||||
show() {
|
show() {
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<script>
|
||||||
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||||
|
CSS.supports('top: constant(a)'))
|
||||||
|
document.write(
|
||||||
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
|
</script>
|
||||||
|
<title></title>
|
||||||
|
<!--preload-links-->
|
||||||
|
<!--app-context-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"><!--app-html--></div>
|
||||||
|
<script type="module" src="/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
132
manifest.json
|
@ -1,118 +1,74 @@
|
||||||
{
|
{
|
||||||
"name" : "飞猴",
|
"name" : "飞猴云服务",
|
||||||
"appid" : "__UNI__25FB71A",
|
"appid" : "__UNI__BDCAFA5",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"usingComponents" : true,
|
"usingComponents" : true,
|
||||||
|
"nvueStyleCompiler" : "uni-app",
|
||||||
"compilerVersion" : 3,
|
"compilerVersion" : 3,
|
||||||
/* 5+App特有相关 */
|
"splashscreen" : {
|
||||||
"modules" : {
|
"alwaysShowBeforeRender" : true,
|
||||||
"Payment" : {},
|
"waiting" : true,
|
||||||
"Share" : {},
|
"autoclose" : true,
|
||||||
"Maps" : {},
|
"delay" : 0
|
||||||
"Geolocation" : {}
|
|
||||||
},
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"distribute" : {
|
"modules" : {},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"android" : {
|
"distribute" : {
|
||||||
/* android打包配置 */
|
/* android打包配置 */
|
||||||
|
"android" : {
|
||||||
"permissions" : [
|
"permissions" : [
|
||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ios" : {
|
|
||||||
"privacyDescription" : {
|
|
||||||
"NSLocationWhenInUseUsageDescription" : ""
|
|
||||||
},
|
|
||||||
"capabilities" : {
|
|
||||||
"entitlements" : {
|
|
||||||
"com.apple.developer.associated-domains" : [ "applinks:static-c27fa8d7-ef72-4327-ab9b-d4787a747ee3.bspapp.com" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"sdkConfigs" : {
|
"ios" : {},
|
||||||
"maps" : {
|
|
||||||
"amap" : {
|
|
||||||
"appkey_ios" : "",
|
|
||||||
"appkey_android" : "57d6437544bb36bd3b5f4efb5b06ddbf"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"payment" : {
|
|
||||||
"weixin" : {
|
|
||||||
"__platform__" : [ "ios", "android" ],
|
|
||||||
"appid" : "wx2654bc27c419ada6",
|
|
||||||
"UniversalLinks" : "https://static-c27fa8d7-ef72-4327-ab9b-d4787a747ee3.bspapp.com/uni-universallinks/__UNI__25FB71A/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"push" : {},
|
|
||||||
"geolocation" : {
|
|
||||||
"system" : {
|
|
||||||
"__platform__" : [ "ios", "android" ]
|
|
||||||
},
|
|
||||||
"baidu" : {
|
|
||||||
"__platform__" : [ "ios", "android" ],
|
|
||||||
"appkey_ios" : "",
|
|
||||||
"appkey_android" : "mDcZsWM7gGKb7MC1bC8Mo33FScjYEr0I"
|
|
||||||
},
|
|
||||||
"amap" : {
|
|
||||||
"__platform__" : [ "ios", "android" ],
|
|
||||||
"appkey_ios" : "",
|
|
||||||
"appkey_android" : "57d6437544bb36bd3b5f4efb5b06ddbf"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"share" : {
|
|
||||||
"weixin" : {
|
|
||||||
"appid" : "wx2654bc27c419ada6",
|
|
||||||
"UniversalLinks" : "https://static-c27fa8d7-ef72-4327-ab9b-d4787a747ee3.bspapp.com/uni-universallinks/__UNI__25FB71A/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ad" : {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"splashscreen" : {
|
|
||||||
"alwaysShowBeforeRender" : false,
|
|
||||||
"waiting" : false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"quickapp" : {},
|
"sdkConfigs" : {}
|
||||||
|
}
|
||||||
|
},
|
||||||
/* 快应用特有相关 */
|
/* 快应用特有相关 */
|
||||||
"mp-weixin" : {
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
|
"mp-weixin" : {
|
||||||
"appid" : "wx372ffc194d87c693",
|
"appid" : "wx372ffc194d87c693",
|
||||||
"setting" : {
|
"setting" : {
|
||||||
"urlCheck" : true,
|
"urlCheck" : false
|
||||||
"es6" : true
|
|
||||||
},
|
},
|
||||||
"usingComponents" : true,
|
"usingComponents" : true
|
||||||
"permission" : {
|
|
||||||
"scope.userLocation" : {
|
|
||||||
"desc" : "您的位置信息将用于小程序位置接口的效果展示"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
"mp-alipay" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-baidu" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-toutiao" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"uniStatistics" : {
|
||||||
|
"enable" : false
|
||||||
|
},
|
||||||
|
"vueVersion" : "2",
|
||||||
"h5" : {
|
"h5" : {
|
||||||
"sdkConfigs" : {
|
"sdkConfigs" : {
|
||||||
"maps" : {
|
"maps" : {
|
||||||
|
@ -136,9 +92,5 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"mp-baidu" : {
|
|
||||||
"appid" : "24346353"
|
|
||||||
},
|
|
||||||
"_spaceID" : "c27fa8d7-ef72-4327-ab9b-d4787a747ee3"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"name": "轮播视频和图片",
|
||||||
|
"version": "1.0.1",
|
||||||
|
"lockfileVersion": 2,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "轮播视频和图片",
|
||||||
|
"version": "1.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,7 +7,7 @@
|
||||||
<view class="queryFunction-head-nav">
|
<view class="queryFunction-head-nav">
|
||||||
<view class="li" @click="navIndex(index)"
|
<view class="li" @click="navIndex(index)"
|
||||||
:class="[dataIndex==0?'li1':'',dataIndex==1?'li2':'',dataIndex==2?'li3':'' ]"
|
:class="[dataIndex==0?'li1':'',dataIndex==1?'li2':'',dataIndex==2?'li3':'' ]"
|
||||||
v-for="(item,index) in dataList">
|
v-for="(item,index) in dataList" :key="index">
|
||||||
{{item.title}}
|
{{item.title}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<view class="recently-query-title">最近查询</view>
|
<view class="recently-query-title">最近查询</view>
|
||||||
<view class="recently-query-content" v-for="(item,index) in recentlyQuery ">
|
<view class="recently-query-content" v-for="(item,index) in recentlyQuery ">
|
||||||
<view class="li" @click="goDetail()">
|
<view class="li" @click="goDetail()">
|
||||||
<image class="icon" src="../../static/iocn/jfd.png" mode=""></image>
|
<image class="icon" src="../../static/iocn/jfd.png" mode="widthFix"></image>
|
||||||
<view class="text-content">
|
<view class="text-content">
|
||||||
<view class="title clips1">{{item.name}}</view>
|
<view class="title clips1">{{item.name}}</view>
|
||||||
<view class="text">编号:{{item.code}}</view>
|
<view class="text">编号:{{item.code}}</view>
|
||||||
|
@ -347,6 +347,7 @@
|
||||||
width: 37rpx;
|
width: 37rpx;
|
||||||
height: 37rpx;
|
height: 37rpx;
|
||||||
margin-right: 40rpx;
|
margin-right: 40rpx;
|
||||||
|
margin-top: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recently-query-content .li .text-content {
|
.recently-query-content .li .text-content {
|
||||||
|
|
|
@ -139,7 +139,6 @@
|
||||||
|
|
||||||
chartData: {
|
chartData: {
|
||||||
series: [{
|
series: [{
|
||||||
|
|
||||||
format: "tooltipDemo1",
|
format: "tooltipDemo1",
|
||||||
data: [{
|
data: [{
|
||||||
name: "网络故障",
|
name: "网络故障",
|
||||||
|
|
|
@ -336,54 +336,26 @@
|
||||||
"6月"
|
"6月"
|
||||||
],
|
],
|
||||||
series: [
|
series: [
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
index: 1,
|
index: 1,
|
||||||
data: [
|
data: [40,30,55,110,24,58],
|
||||||
40,
|
|
||||||
{
|
|
||||||
value: 30,
|
|
||||||
|
|
||||||
},
|
|
||||||
55,
|
|
||||||
110,
|
|
||||||
24,
|
|
||||||
58
|
|
||||||
],
|
|
||||||
type: "column",
|
type: "column",
|
||||||
"color": "#308de1"
|
color: "#308de1"
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "",
|
|
||||||
"data": [
|
|
||||||
40,
|
|
||||||
30,
|
|
||||||
55,
|
|
||||||
110,
|
|
||||||
24,
|
|
||||||
58
|
|
||||||
],
|
|
||||||
"type": "line",
|
|
||||||
"color": "#308de1"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "",
|
name: "",
|
||||||
"index": 2,
|
data: [40,30,55,110,24,58],
|
||||||
"data": [
|
type: "line",
|
||||||
40,
|
color: "#308de1"
|
||||||
30,
|
},
|
||||||
55,
|
{
|
||||||
110,
|
name: "",
|
||||||
24,
|
index: 2,
|
||||||
58
|
data: [40,30,55,110,24,58],
|
||||||
],
|
type: "point",
|
||||||
"type": "point",
|
color: "#308de1"
|
||||||
"color": "#308de1"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
chartData: {
|
chartData: {
|
||||||
|
@ -396,54 +368,26 @@
|
||||||
"6月"
|
"6月"
|
||||||
],
|
],
|
||||||
series: [
|
series: [
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
index: 1,
|
index: 1,
|
||||||
data: [
|
data: [40,30,55,110,24,58],
|
||||||
40,
|
|
||||||
{
|
|
||||||
value: 30,
|
|
||||||
|
|
||||||
},
|
|
||||||
55,
|
|
||||||
110,
|
|
||||||
24,
|
|
||||||
58
|
|
||||||
],
|
|
||||||
type: "column",
|
type: "column",
|
||||||
"color": "#fe4141"
|
color: "#fe4141",
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "",
|
|
||||||
"data": [
|
|
||||||
40,
|
|
||||||
30,
|
|
||||||
55,
|
|
||||||
110,
|
|
||||||
24,
|
|
||||||
58
|
|
||||||
],
|
|
||||||
"type": "line",
|
|
||||||
"color": "#fe4141"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "",
|
name: "",
|
||||||
"index": 2,
|
data: [40,30,55,110,24,58],
|
||||||
"data": [
|
type: "line",
|
||||||
40,
|
color: "#fe4141",
|
||||||
30,
|
},
|
||||||
55,
|
{
|
||||||
110,
|
name: "",
|
||||||
24,
|
index: 2,
|
||||||
58
|
data: [40,30,55,110,24,58],
|
||||||
],
|
type: "point",
|
||||||
"type": "point",
|
color: "#fe4141",
|
||||||
"color": "#fe4141"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -458,9 +402,11 @@
|
||||||
.content {
|
.content {
|
||||||
padding: 0rpx 10rpx;
|
padding: 0rpx 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.charts-box {
|
.charts-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settlement-type-title {
|
.settlement-type-title {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #2c2c2c;
|
color: #2c2c2c;
|
||||||
|
@ -642,6 +588,7 @@
|
||||||
.serve-data-box .serve-data-left:nth-child(2) {
|
.serve-data-box .serve-data-left:nth-child(2) {
|
||||||
padding-left: 32rpx;
|
padding-left: 32rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-project {
|
.expire-project {
|
||||||
padding: 26rpx 24rpx;
|
padding: 26rpx 24rpx;
|
||||||
margin-top: 27rpx;
|
margin-top: 27rpx;
|
||||||
|
@ -659,6 +606,7 @@
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
background: linear-gradient(#2ed5b6, #2fd9cf)
|
background: linear-gradient(#2ed5b6, #2fd9cf)
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-project-box .li-title {
|
.expire-project-box .li-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -666,21 +614,26 @@ font-size: 28rpx;
|
||||||
color: #a2a2a2;
|
color: #a2a2a2;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-project-box .li-title .name {
|
.expire-project-box .li-title .name {
|
||||||
padding-left: 80rpx;
|
padding-left: 80rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-project-box .li .name {
|
.expire-project-box .li .name {
|
||||||
width: 455rpx;
|
width: 455rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-project-box .li .work-order {
|
.expire-project-box .li .work-order {
|
||||||
width: 80rpx;
|
width: 80rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-project-box .li .date {
|
.expire-project-box .li .date {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-project-box .li-text {
|
.expire-project-box .li-text {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 17rpx 0rpx;
|
padding: 17rpx 0rpx;
|
||||||
|
@ -692,6 +645,7 @@ margin-top: 20rpx;
|
||||||
.expire-project-box .li-text .name {
|
.expire-project-box .li-text .name {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expire-project-box .li-text:last-child {
|
.expire-project-box .li-text:last-child {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
return {
|
return {
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
interval: 3000,
|
interval: 3000,
|
||||||
index: 1,
|
index: 0,
|
||||||
projectId: "",
|
projectId: "",
|
||||||
recordState: [{
|
recordState: [{
|
||||||
title: '维保记录',
|
title: '维保记录',
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<view class="fault-type-title padding">维保类型:</view>
|
<view class="fault-type-title padding">维保类型:</view>
|
||||||
<view class="padding fault-type-content">
|
<view class="padding fault-type-content">
|
||||||
<view class="li" @click="repairsTypeFun(index)" :class="index==indexType?'on':''"
|
<view class="li" @click="repairsTypeFun(index)" :class="index==indexType?'on':''"
|
||||||
v-for="(item,index) in faultTypeData">
|
v-for="(item,index) in faultTypeData" :key="index">
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -269,26 +269,26 @@
|
||||||
return out;
|
return out;
|
||||||
},
|
},
|
||||||
mapFun() {
|
mapFun() {
|
||||||
const that = this
|
let that = this
|
||||||
uni.getLocation({
|
|
||||||
type: 'gcj02', //返回可以用于uni.openLocation的经纬度
|
|
||||||
success: function(res) {
|
|
||||||
const latitude = res.latitude;
|
|
||||||
const longitude = res.longitude;
|
|
||||||
uni.chooseLocation({
|
uni.chooseLocation({
|
||||||
success: function(res) {
|
success: (res) => {
|
||||||
that.data.service_address = res.address
|
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
// uni.openLocation({
|
// uni.chooseLocation({
|
||||||
// latitude: latitude,
|
// success:(res)=> {
|
||||||
// longitude: longitude,
|
// console.log(res,275);
|
||||||
// success: function () {
|
// that.data.service_address = res.address
|
||||||
// console.log('success');
|
// }
|
||||||
|
// });
|
||||||
|
// uni.getLocation({
|
||||||
|
// type: 'wgs84', //返回可以用于uni.openLocation的经纬度gcj02
|
||||||
|
// success: function(res) {
|
||||||
|
// console.log(res);
|
||||||
|
// let latitude = res.latitude;
|
||||||
|
// let longitude = res.longitude;
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
repairsNavFun(index) {
|
repairsNavFun(index) {
|
||||||
this.current = index;
|
this.current = index;
|
||||||
|
|
|
@ -13,13 +13,13 @@
|
||||||
<text>系</text>
|
<text>系</text>
|
||||||
<text>人</text>
|
<text>人</text>
|
||||||
</view>
|
</view>
|
||||||
<input class="input" placeholder="请填写联系人称呼" type="text" placeholder-class="placeClass" />
|
<input class="input" v-model="name" placeholder="请填写联系人称呼" type="text" placeholder-class="placeClass" />
|
||||||
</view>
|
</view>
|
||||||
<view class="payReturnVisit-input">
|
<view class="payReturnVisit-input">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
联系电话
|
联系电话
|
||||||
</view>
|
</view>
|
||||||
<input class="input" placeholder="请输入手机号码" type="text" placeholder-class="placeClass" />
|
<input class="input" maxlength="11" v-model="phone" placeholder="请输入手机号码" type="number" placeholder-class="placeClass" />
|
||||||
</view>
|
</view>
|
||||||
<view class="payReturnVisit-input">
|
<view class="payReturnVisit-input">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
|
@ -27,30 +27,31 @@
|
||||||
<text>信</text>
|
<text>信</text>
|
||||||
<text>号</text>
|
<text>号</text>
|
||||||
</view>
|
</view>
|
||||||
<input class="input" placeholder="请输入微信号码" type="text" placeholder-class="placeClass" />
|
<input class="input" v-model="wxcode" placeholder="请输入微信号码" type="text" placeholder-class="placeClass" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="payReturnVisit-textarea">
|
<view class="payReturnVisit-textarea">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
回访内容
|
回访内容
|
||||||
</view>
|
</view>
|
||||||
<textarea class="textarea" placeholder="请输入回访内容" placeholder-class="placeClass" />
|
<textarea class="textarea" v-model="content" placeholder="请输入回访内容" placeholder-class="placeClass" />
|
||||||
</view>
|
</view>
|
||||||
<view class="payReturnVisit-input">
|
<view class="payReturnVisit-input">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
客服电话
|
客服电话
|
||||||
</view>
|
</view>
|
||||||
<input class="input" placeholder="400-765-9876" type="text" placeholder-class="placeClass" />
|
<input class="input" disabled placeholder="400-765-9876" type="text" placeholder-class="placeClass" />
|
||||||
</view>
|
</view>
|
||||||
<view class="payReturnVisit-input">
|
<view class="payReturnVisit-input">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
回访时间
|
回访时间
|
||||||
</view>
|
</view>
|
||||||
<input class="input" placeholder="2022/02/13 14:18:00" type="text" placeholder-class="placeClass" />
|
<input class="input colc" v-model="custmertime" disabled placeholder="2022/02/13 14:18:00" type="text" placeholder-class="placeClass" />
|
||||||
|
<!-- <input class="input" v-model="custmertime" @tap="openDatetimePicker" disabled placeholder="2022/02/13 14:18:00" type="text" placeholder-class="placeClass" />
|
||||||
|
<yy-mm-dd-hh-ss ref="myPicker" @submit="handleSubmit" :start-year="2022" :end-year="2122"></yy-mm-dd-hh-ss> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<button class="submit-button" type="default">确认发送</button>
|
<button class="submit-button" @tap="setVisit" type="default">确认发送</button>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</container-subgroup-two>
|
</container-subgroup-two>
|
||||||
|
|
||||||
|
@ -60,25 +61,89 @@
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '../../components/status-nav.vue';
|
import statusNav from '../../components/status-nav.vue';
|
||||||
import containerSubgroupTwo from '@/components/containers/container-subgroup-two.vue';
|
import containerSubgroupTwo from '@/components/containers/container-subgroup-two.vue';
|
||||||
|
import yyMmDdHhSs from '@/components/dates/yy-mm-dd-hh-ss.vue';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
statusNav,
|
statusNav,
|
||||||
containerSubgroupTwo,
|
containerSubgroupTwo,
|
||||||
|
yyMmDdHhSs
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
name:'',//联系人
|
||||||
|
phone:'',//联系电话
|
||||||
|
wxcode:'',//微信号
|
||||||
|
content:'',//回访内容
|
||||||
|
custmerphone:'400-765-9876',//客服电话
|
||||||
|
custmertime:'',//回访时间
|
||||||
|
workId:'',//工单id
|
||||||
|
flag:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad(op) {
|
||||||
|
if(op.id) {this.workId = op.id}
|
||||||
|
this.custmertime = this.$toolAll.tools.returnCurrentTime('/',1);
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 工单回访提交事件
|
||||||
|
setVisit() {
|
||||||
|
if(this.checkEmpty() && this.flag) {
|
||||||
|
this.flag = false;
|
||||||
|
uni.showLoading({
|
||||||
|
title:'正在发送',
|
||||||
|
mask:true
|
||||||
|
})
|
||||||
|
let parmas = {
|
||||||
|
id:this.workId,
|
||||||
|
a:this.name,
|
||||||
|
b:this.phone,
|
||||||
|
c:this.wxcode,
|
||||||
|
d:this.custmerphone,
|
||||||
|
e:this.custmertime,
|
||||||
|
f:this.content
|
||||||
|
}
|
||||||
|
this.$request.post('',parmas).then(res=>{
|
||||||
|
if(res.code) {
|
||||||
|
// 接口调用成功,自动返回上一级
|
||||||
|
this.$toolAll.tools.automaticBack();
|
||||||
|
}
|
||||||
|
uni.hideLoading();
|
||||||
|
this.flag = true;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 判空
|
||||||
|
checkEmpty() {
|
||||||
|
let result = false;
|
||||||
|
if(!this.name) {
|
||||||
|
this.$toolAll.tools.showToast('请填写联系人称呼');
|
||||||
|
} else if(this.$toolAll.tools.isPhone(this.phone)) {
|
||||||
|
this.$toolAll.tools.showToast('请正确填写手机号码');
|
||||||
|
} else if(!this.content) {
|
||||||
|
this.$toolAll.tools.showToast('请输入回访内容');
|
||||||
|
} else {
|
||||||
|
result = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
// 打开时间选择弹框
|
||||||
|
openDatetimePicker() {
|
||||||
|
this.$refs.myPicker.show();
|
||||||
|
},
|
||||||
|
// 时间弹框确认事件
|
||||||
|
handleSubmit(e) {
|
||||||
|
this.custmertime = `${e.year}/${e.month}/${e.day} ${e.hour}:${e.minute}:00`;
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.placeClass {
|
||||||
|
color: #cccccc;
|
||||||
|
}
|
||||||
|
|
||||||
.placeClass{color:#cccccc;}
|
|
||||||
.hint {
|
.hint {
|
||||||
color: #358ff0;
|
color: #358ff0;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<status-nav :navBarTitle="detailTitle" returnColor="#c2c2c2"></status-nav>
|
<status-nav :navBarTitle="detailTitle" returnColor="#c2c2c2"></status-nav>
|
||||||
<container-subgroup>
|
<container-subgroup>
|
||||||
<view slot="content" style="margin: 0 -30rpx;" class="fon28">
|
<view slot="content" style="margin: 0 -30rpx;" class="fon28">
|
||||||
<view class="bacf pad-zy30 pad-sx20" style="margin-top: -10rpx;">
|
<view class="bacf pad-zy30 pad-sx20" style="margin-top: -10rpx;" v-if="dataObj">
|
||||||
<!-- 标题 -->
|
<!-- 标题 -->
|
||||||
<view class="fon38 col0 tcenter">{{dataObj.title}}</view>
|
<view class="fon38 col0 tcenter">{{dataObj.title}}</view>
|
||||||
<!-- 时间 -->
|
<!-- 时间 -->
|
||||||
|
@ -25,15 +25,17 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
detailTitle:'',
|
detailTitle:'方案详情',
|
||||||
current:0,
|
current:0,
|
||||||
dataObj:{},
|
dataObj:'',
|
||||||
rich_text:''//富文本
|
rich_text:''//富文本
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(op) {
|
onLoad(op) {
|
||||||
|
if(op.index!=undefined) {
|
||||||
this.detailTitle = `${['方案详情','详情概述','产品详情'][op.index*1]}`;
|
this.detailTitle = `${['方案详情','详情概述','产品详情'][op.index*1]}`;
|
||||||
this.current = op.index*1;
|
this.current = op.index*1;
|
||||||
|
}
|
||||||
this.getDetail(op.id);
|
this.getDetail(op.id);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
rateNum:5,
|
rateNum:5,
|
||||||
ifPlanFault:'',
|
ifPlanFault:'解决方案',
|
||||||
current:'',
|
current:'',
|
||||||
size:20,
|
size:20,
|
||||||
page:1,
|
page:1,
|
||||||
|
@ -59,8 +59,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(op) {
|
onLoad(op) {
|
||||||
|
if(op.index!=undefined) {
|
||||||
this.ifPlanFault = `${['解决方案','常见故障'][op.index*1]}`;
|
this.ifPlanFault = `${['解决方案','常见故障'][op.index*1]}`;
|
||||||
this.current = op.index*1;
|
this.current = op.index*1;
|
||||||
|
}
|
||||||
if(op.type_id!=undefined) this.type_id = op.type_id;
|
if(op.type_id!=undefined) this.type_id = op.type_id;
|
||||||
this.getPlanFault();
|
this.getPlanFault();
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,77 +0,0 @@
|
||||||
{
|
|
||||||
"description": "项目配置文件",
|
|
||||||
"packOptions": {
|
|
||||||
"ignore": []
|
|
||||||
},
|
|
||||||
"setting": {
|
|
||||||
"urlCheck": true,
|
|
||||||
"es6": true,
|
|
||||||
"enhance": true,
|
|
||||||
"postcss": true,
|
|
||||||
"preloadBackgroundData": false,
|
|
||||||
"minified": true,
|
|
||||||
"newFeature": false,
|
|
||||||
"coverView": true,
|
|
||||||
"nodeModules": false,
|
|
||||||
"autoAudits": false,
|
|
||||||
"showShadowRootInWxmlPanel": true,
|
|
||||||
"scopeDataCheck": false,
|
|
||||||
"uglifyFileName": false,
|
|
||||||
"checkInvalidKey": true,
|
|
||||||
"checkSiteMap": true,
|
|
||||||
"uploadWithSourceMap": true,
|
|
||||||
"compileHotReLoad": false,
|
|
||||||
"lazyloadPlaceholderEnable": false,
|
|
||||||
"useMultiFrameRuntime": true,
|
|
||||||
"useApiHook": true,
|
|
||||||
"useApiHostProcess": true,
|
|
||||||
"babelSetting": {
|
|
||||||
"ignore": [],
|
|
||||||
"disablePlugins": [],
|
|
||||||
"outputPath": ""
|
|
||||||
},
|
|
||||||
"useIsolateContext": false,
|
|
||||||
"userConfirmedBundleSwitch": false,
|
|
||||||
"packNpmManually": false,
|
|
||||||
"packNpmRelationList": [],
|
|
||||||
"minifyWXSS": true,
|
|
||||||
"disableUseStrict": false,
|
|
||||||
"minifyWXML": true,
|
|
||||||
"showES6CompileOption": false,
|
|
||||||
"useCompilerPlugins": false,
|
|
||||||
"ignoreUploadUnusedFiles": true
|
|
||||||
},
|
|
||||||
"compileType": "miniprogram",
|
|
||||||
"libVersion": "2.22.0",
|
|
||||||
"appid": "wx987dc41899f719e8",
|
|
||||||
"projectname": "%E4%BD%A9%E4%B8%BD%E5%95%86%E5%9F%8E",
|
|
||||||
"debugOptions": {
|
|
||||||
"hidedInDevtools": []
|
|
||||||
},
|
|
||||||
"scripts": {},
|
|
||||||
"staticServerOptions": {
|
|
||||||
"baseURL": "",
|
|
||||||
"servePath": ""
|
|
||||||
},
|
|
||||||
"isGameTourist": false,
|
|
||||||
"condition": {
|
|
||||||
"search": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"conversation": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"game": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"plugin": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"gamePlugin": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"miniprogram": {
|
|
||||||
"list": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
19
readme.md
|
@ -1,19 +0,0 @@
|
||||||
<!-- 暂无更多组件参数的使用
|
|
||||||
|
|
||||||
组件一
|
|
||||||
<nothing-page
|
|
||||||
:imgSrc="图片路径可相对、可绝对、可网络"
|
|
||||||
:currentType="0,1,2,..."
|
|
||||||
:content="'-- NO MORE --'"></nothing-page>
|
|
||||||
|
|
||||||
组件二
|
|
||||||
<pitera
|
|
||||||
:textColor="'#999999'"
|
|
||||||
:textStr="'-- NO MORE --'"
|
|
||||||
:textFontSize="'24rpx'"
|
|
||||||
:ifBold="false"
|
|
||||||
:ifCenter="true"
|
|
||||||
:paddingStr="'20rpx'"></pitera>
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 699 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 600 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 756 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 519 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 697 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 635 B |
36
uni.scss
|
@ -39,38 +39,38 @@ $uni-border-color:#c8c7cc;
|
||||||
/* 尺寸变量 */
|
/* 尺寸变量 */
|
||||||
|
|
||||||
/* 文字尺寸 */
|
/* 文字尺寸 */
|
||||||
$uni-font-size-sm:24upx;
|
$uni-font-size-sm:12px;
|
||||||
$uni-font-size-base:28upx;
|
$uni-font-size-base:14px;
|
||||||
$uni-font-size-lg:32upx;
|
$uni-font-size-lg:16;
|
||||||
|
|
||||||
/* 图片尺寸 */
|
/* 图片尺寸 */
|
||||||
$uni-img-size-sm:40upx;
|
$uni-img-size-sm:20px;
|
||||||
$uni-img-size-base:52upx;
|
$uni-img-size-base:26px;
|
||||||
$uni-img-size-lg:80upx;
|
$uni-img-size-lg:40px;
|
||||||
|
|
||||||
/* Border Radius */
|
/* Border Radius */
|
||||||
$uni-border-radius-sm: 4upx;
|
$uni-border-radius-sm: 2px;
|
||||||
$uni-border-radius-base: 6upx;
|
$uni-border-radius-base: 3px;
|
||||||
$uni-border-radius-lg: 12upx;
|
$uni-border-radius-lg: 6px;
|
||||||
$uni-border-radius-circle: 50%;
|
$uni-border-radius-circle: 50%;
|
||||||
|
|
||||||
/* 水平间距 */
|
/* 水平间距 */
|
||||||
$uni-spacing-row-sm: 10px;
|
$uni-spacing-row-sm: 5px;
|
||||||
$uni-spacing-row-base: 20upx;
|
$uni-spacing-row-base: 10px;
|
||||||
$uni-spacing-row-lg: 30upx;
|
$uni-spacing-row-lg: 15px;
|
||||||
|
|
||||||
/* 垂直间距 */
|
/* 垂直间距 */
|
||||||
$uni-spacing-col-sm: 8upx;
|
$uni-spacing-col-sm: 4px;
|
||||||
$uni-spacing-col-base: 16upx;
|
$uni-spacing-col-base: 8px;
|
||||||
$uni-spacing-col-lg: 24upx;
|
$uni-spacing-col-lg: 12px;
|
||||||
|
|
||||||
/* 透明度 */
|
/* 透明度 */
|
||||||
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
|
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
|
||||||
|
|
||||||
/* 文章场景相关 */
|
/* 文章场景相关 */
|
||||||
$uni-color-title: #2C405A; // 文章标题颜色
|
$uni-color-title: #2C405A; // 文章标题颜色
|
||||||
$uni-font-size-title:40upx;
|
$uni-font-size-title:20px;
|
||||||
$uni-color-subtitle: #555555; // 二级标题颜色
|
$uni-color-subtitle: #555555; // 二级标题颜色
|
||||||
$uni-font-size-subtitle:36upx;
|
$uni-font-size-subtitle:26px;
|
||||||
$uni-color-paragraph: #3F536E; // 文章段落颜色
|
$uni-color-paragraph: #3F536E; // 文章段落颜色
|
||||||
$uni-font-size-paragraph:30upx;
|
$uni-font-size-paragraph:15px;
|
||||||
|
|
|
@ -34,17 +34,29 @@ const formatDateTime = (timeStamp, returnType)=>{
|
||||||
var second = date.getSeconds();
|
var second = date.getSeconds();
|
||||||
minute = minute < 10 ? ('0' + minute) : minute;
|
minute = minute < 10 ? ('0' + minute) : minute;
|
||||||
second = second < 10 ? ('0' + second) : second;
|
second = second < 10 ? ('0' + second) : second;
|
||||||
if(returnType == 'full'){return y + '-' + m + '-' + d + ' '+ h +':' + minute + ':' + second;}
|
if (returnType == 'full') {
|
||||||
if(returnType == 'y-m-d'){return y + '-' + m + '-' + d;}
|
return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
|
||||||
if(returnType == 'h:m'){return h +':' + minute;}
|
}
|
||||||
if(returnType == 'h:m:s'){return h +':' + minute +':' + second;}
|
if (returnType == 'y-m-d') {
|
||||||
|
return y + '-' + m + '-' + d;
|
||||||
|
}
|
||||||
|
if (returnType == 'h:m') {
|
||||||
|
return h + ':' + minute;
|
||||||
|
}
|
||||||
|
if (returnType == 'h:m:s') {
|
||||||
|
return h + ':' + minute + ':' + second;
|
||||||
|
}
|
||||||
return [y, m, d, h, minute, second];
|
return [y, m, d, h, minute, second];
|
||||||
}
|
}
|
||||||
|
|
||||||
const cfu = {
|
const cfu = {
|
||||||
//demotype为自定义图表类型,一般不需要自定义图表类型,只需要改根节点上对应的类型即可
|
//demotype为自定义图表类型,一般不需要自定义图表类型,只需要改根节点上对应的类型即可
|
||||||
"type":["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],
|
"type": ["pie", "ring", "rose", "word", "funnel", "map", "arcbar", "line", "column", "bar", "area", "radar",
|
||||||
"range":["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],
|
"gauge", "candle", "mix", "tline", "tarea", "scatter", "bubble", "demotype"
|
||||||
|
],
|
||||||
|
"range": ["饼状图", "圆环图", "玫瑰图", "词云图", "漏斗图", "地图", "圆弧进度条", "折线图", "柱状图", "条状图", "区域图", "雷达图", "仪表盘", "K线图",
|
||||||
|
"混合图", "时间轴折线", "时间轴区域", "散点图", "气泡图", "自定义类型"
|
||||||
|
],
|
||||||
//增加自定义图表类型,如果需要categories,请在这里加入您的图表类型,例如最后的"demotype"
|
//增加自定义图表类型,如果需要categories,请在这里加入您的图表类型,例如最后的"demotype"
|
||||||
//自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴(矢量x轴)类图表,没有categories,不需要加入categories
|
//自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴(矢量x轴)类图表,没有categories,不需要加入categories
|
||||||
"categories": ["line", "column", "bar", "area", "radar", "gauge", "candle", "mix", "demotype"],
|
"categories": ["line", "column", "bar", "area", "radar", "gauge", "candle", "mix", "demotype"],
|
||||||
|
@ -54,17 +66,27 @@ const cfu = {
|
||||||
"option": {},
|
"option": {},
|
||||||
//下面是自定义format配置,因除H5端外的其他端无法通过props传递函数,只能通过此属性对应下标的方式来替换
|
//下面是自定义format配置,因除H5端外的其他端无法通过props传递函数,只能通过此属性对应下标的方式来替换
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"yAxisDemo1":function(val){return val+'元'},
|
"yAxisDemo1": function(val) {
|
||||||
"yAxisDemo2":function(val){return val.toFixed(2)},
|
return val + '元'
|
||||||
"xAxisDemo1":function(val){return val+'年'},
|
},
|
||||||
"xAxisDemo2":function(val){return formatDateTime(val,'h:m')},
|
"yAxisDemo2": function(val) {
|
||||||
"seriesDemo1":function(val){return val+'元'},
|
return val.toFixed(2)
|
||||||
|
},
|
||||||
|
"xAxisDemo1": function(val) {
|
||||||
|
return val + '年'
|
||||||
|
},
|
||||||
|
"xAxisDemo2": function(val) {
|
||||||
|
return formatDateTime(val, 'h:m')
|
||||||
|
},
|
||||||
|
"seriesDemo1": function(val) {
|
||||||
|
return val + '元'
|
||||||
|
},
|
||||||
"tooltipDemo1": function(item, category, index, opts) {
|
"tooltipDemo1": function(item, category, index, opts) {
|
||||||
|
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
return '随便用' + item.data + '年'
|
return '随便用' + item.data + '年'
|
||||||
} else {
|
} else {
|
||||||
return item.name+item.data+'天'
|
return item.name + item.data + '%'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pieDemo": function(val, index, series) {
|
"pieDemo": function(val, index, series) {
|
||||||
|
@ -86,8 +108,7 @@ const cfu = {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"line": {
|
"line": {
|
||||||
"type": "curve",
|
"type": "curve",
|
||||||
|
@ -318,8 +339,7 @@ const cfu = {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"line": {
|
"line": {
|
||||||
"type": "straight",
|
"type": "straight",
|
||||||
|
@ -338,15 +358,12 @@ const cfu = {
|
||||||
"yAxis": {
|
"yAxis": {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
"data":[
|
"data": [{
|
||||||
{
|
|
||||||
"min": 0,
|
"min": 0,
|
||||||
"max": 80
|
"max": 80
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
},
|
|
||||||
"legend": {
|
|
||||||
},
|
},
|
||||||
|
"legend": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"line": {
|
"line": {
|
||||||
"type": "curve",
|
"type": "curve",
|
||||||
|
@ -365,15 +382,12 @@ const cfu = {
|
||||||
"yAxis": {
|
"yAxis": {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
"data":[
|
"data": [{
|
||||||
{
|
|
||||||
"min": 0,
|
"min": 0,
|
||||||
"max": 80
|
"max": 80
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
},
|
|
||||||
"legend": {
|
|
||||||
},
|
},
|
||||||
|
"legend": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"area": {
|
"area": {
|
||||||
"type": "curve",
|
"type": "curve",
|
||||||
|
@ -392,10 +406,11 @@ const cfu = {
|
||||||
"disableGrid": true,
|
"disableGrid": true,
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {
|
||||||
"data":[{"min":0}]
|
"data": [{
|
||||||
},
|
"min": 0
|
||||||
"legend": {
|
}]
|
||||||
},
|
},
|
||||||
|
"legend": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"column": {
|
"column": {
|
||||||
"type": "group",
|
"type": "group",
|
||||||
|
@ -415,10 +430,8 @@ const cfu = {
|
||||||
"min": 0,
|
"min": 0,
|
||||||
"axisLine": false
|
"axisLine": false
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {},
|
||||||
},
|
"legend": {},
|
||||||
"legend": {
|
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "group",
|
"type": "group",
|
||||||
|
@ -441,8 +454,7 @@ const cfu = {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"area": {
|
"area": {
|
||||||
"type": "straight",
|
"type": "straight",
|
||||||
|
@ -532,10 +544,8 @@ const cfu = {
|
||||||
"scrollColor": "#A6A6A6",
|
"scrollColor": "#A6A6A6",
|
||||||
"scrollBackgroundColor": "#EFEBEF"
|
"scrollBackgroundColor": "#EFEBEF"
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {},
|
||||||
},
|
"legend": {},
|
||||||
"legend": {
|
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"candle": {
|
"candle": {
|
||||||
"color": {
|
"color": {
|
||||||
|
@ -554,8 +564,7 @@ const cfu = {
|
||||||
"markLine": {
|
"markLine": {
|
||||||
"type": "dash",
|
"type": "dash",
|
||||||
"dashLength": 5,
|
"dashLength": 5,
|
||||||
"data": [
|
"data": [{
|
||||||
{
|
|
||||||
"value": 2150,
|
"value": 2150,
|
||||||
"lineColor": "#f04864",
|
"lineColor": "#f04864",
|
||||||
"showLabel": true
|
"showLabel": true
|
||||||
|
@ -597,7 +606,7 @@ const cfu = {
|
||||||
"rotate": false,
|
"rotate": false,
|
||||||
"errorReload": true,
|
"errorReload": true,
|
||||||
"fontSize": 13,
|
"fontSize": 13,
|
||||||
"fontColor": "#666666",
|
"fontColor": "#666666",//数字颜色
|
||||||
"enableScroll": false,
|
"enableScroll": false,
|
||||||
"touchMoveLimit": 60,
|
"touchMoveLimit": 60,
|
||||||
"enableMarkLine": false,
|
"enableMarkLine": false,
|
||||||
|
@ -605,7 +614,7 @@ const cfu = {
|
||||||
"dataPointShape": true,
|
"dataPointShape": true,
|
||||||
"dataPointShapeType": "solid",
|
"dataPointShapeType": "solid",
|
||||||
"tapLegend": true,
|
"tapLegend": true,
|
||||||
"xAxis": {
|
"xAxis": {//x轴
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"axisLine": true,
|
"axisLine": true,
|
||||||
"axisLineColor": "#CCCCCC",
|
"axisLineColor": "#CCCCCC",
|
||||||
|
@ -626,19 +635,18 @@ const cfu = {
|
||||||
"scrollBackgroundColor": "#EFEBEF",
|
"scrollBackgroundColor": "#EFEBEF",
|
||||||
"format": ""
|
"format": ""
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {//y轴
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"disableGrid": false,
|
"disableGrid": false,
|
||||||
"splitNumber": 5,
|
"splitNumber": 5,
|
||||||
"gridType": "dash",
|
"gridType": "solid",//dash:虚线 solid:实线
|
||||||
"dashLength": 4,
|
"dashLength": 4,
|
||||||
"gridColor": "#CCCCCC",
|
"gridColor": "#CCCCCC",
|
||||||
"padding": 10,
|
"padding": 10,
|
||||||
"showTitle": true,
|
"showTitle": true,
|
||||||
"data": [
|
"data": [{
|
||||||
{
|
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"title": "折线",
|
"title": "折线"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"position": "top",
|
"position": "top",
|
||||||
|
@ -681,7 +689,7 @@ const cfu = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"showBox": true,
|
"showBox": false,//点击时不显示描述信息
|
||||||
"showArrow": true,
|
"showArrow": true,
|
||||||
"showCategory": false,
|
"showCategory": false,
|
||||||
"borderWidth": 0,
|
"borderWidth": 0,
|
||||||
|
@ -694,7 +702,7 @@ const cfu = {
|
||||||
"dashLength": 4,
|
"dashLength": 4,
|
||||||
"gridColor": "#CCCCCC",
|
"gridColor": "#CCCCCC",
|
||||||
"fontColor": "#FFFFFF",
|
"fontColor": "#FFFFFF",
|
||||||
"splitLine": true,
|
"splitLine": false,//点击时不显示选中竖线
|
||||||
"horizentalLine": false,
|
"horizentalLine": false,
|
||||||
"xAxisLabel": false,
|
"xAxisLabel": false,
|
||||||
"yAxisLabel": false,
|
"yAxisLabel": false,
|
||||||
|
@ -725,11 +733,9 @@ const cfu = {
|
||||||
"disableGrid": false,
|
"disableGrid": false,
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"scatter": {
|
"scatter": {},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bubble": {
|
"bubble": {
|
||||||
|
@ -752,8 +758,7 @@ const cfu = {
|
||||||
"max": 150
|
"max": 150
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"bubble": {
|
"bubble": {
|
||||||
"border": 2,
|
"border": 2,
|
||||||
|
|