Ver código fonte

修改部分内容

刘拾玖 4 meses atrás
pai
commit
006d8bb999

+ 2 - 2
lib/config/index.ts

@@ -6,11 +6,11 @@
 export const  SERVER= 'http://192.168.31.36:48086'
 
 // //--- 正式服务器
-// export const SERVER = 'https://tcm.cqljxqzyy.cn:1443'
+// export const SERVER = '/'
 
 export const BASE_URL = SERVER //+ '/dev-api'
 
-export const VITE_UPLOAD_URL = 'http://192.168.31.36:9099'
+export const VITE_UPLOAD_URL = 'http://192.168.31.36:48086'
 
 export const TOKEN_KEY = "token";
 export const TENANT_KEY = "tenant-id";

+ 9 - 9
lib/util.ts

@@ -245,16 +245,16 @@ export function filterStateTitle(index) {
  */
 export function filterStateIcon(state) {
 	let dict_type = {
-		'00':'\ue672',
-		'01':'\ue672',
-		'02':'\ue676',
-		'04':'\ue671',
-		'05':'\ue673',
-		'06':'\ue675',
-		'07':'\ue677',
-		'08':'\ue674',
+		'00':'\ue69a',
+		'01':'\ue69a',
+		'02':'\ue690',
+		'04':'\ue688',
+		'05':'\ue691',
+		'06':'\ue694',
+		'07':'\ue693',
+		'08':'\ue689',
 		'09':'\ue8c6',
-		'10':'\ue602', 
+		'10':'\ue68f', 
 	}
 	return dict_type[state] || '\ue625'
 }

+ 11 - 1
manifest.json

@@ -68,5 +68,15 @@
     "uniStatistics" : {
         "enable" : false
     },
-    "vueVersion" : "3"
+    "vueVersion" : "3",
+    "h5" : {
+        "router" : {
+            "base" : "/ykb/",
+            "mode" : "history"
+        },
+        "title" : "愉快办",
+        "devServer" : {
+            "https" : false
+        }
+    }
 }

+ 24 - 18
pages/index/CfLogistics.vue

@@ -1,27 +1,33 @@
 <template>
 	<view class="cf-logistics">
 		<pub-loading-view :loaded="loaded" height="100%">
-			<view class="cf-logistics-top">
-				<view class="icon"><text class="iconfont">&#xe674;</text></view>
-				{{dataList.no}}
-				<view class="copy-icon"> <text class="iconfont">&#xe620;</text></view>
+			<view class="no-data" v-if="!dataList.no || dataList.statusList.length == 0">
+				<image mode="heightFix" src="/static/image/no-data.png" />
+				暂无数据
 			</view>
-			<view class="logistics-list">
-				<view class="logistics-item" :class="item.className" v-for="item in dataList.statusList" :key="item.id">
-					<view class="logistics-item-left">
-						<view class="icon" v-if='item.icon'>
-							<text class="iconfont">&#xe602;</text>
+			<view v-else>
+				<view class="cf-logistics-top">
+					<view class="icon"><text class="iconfont">&#xe674;</text></view>
+					{{dataList.no}}
+					<view class="copy-icon"> <text class="iconfont">&#xe620;</text></view>
+				</view>
+				<view class="logistics-list">
+					<view class="logistics-item" :class="item.className" v-for="item in dataList.statusList" :key="item.id">
+						<view class="logistics-item-left">
+							<view class="icon" v-if='item.icon'>
+								<text class="iconfont">&#xe602;</text>
+							</view>
+							<view class="icon" :class="item.className" v-else-if="item.className=='is-finish'">
+								收
+							</view>
+							<view class="dot" v-else></view>
+							<view class="line"></view>
 						</view>
-						<view class="icon" :class="item.className" v-else-if="item.className=='is-finish'">
-							收
+						<view class="logistics-item-right">
+							<view class="logistics-item-title" v-if="item.title">{{item.title}}</view>
+							<view class="logistics-item-time">{{item.time}}</view>
+							<view>{{item.text}}</view>
 						</view>
-						<view class="dot" v-else></view>
-						<view class="line"></view>
-					</view>
-					<view class="logistics-item-right">
-						<view class="logistics-item-title" v-if="item.title">{{item.title}}</view>
-						<view class="logistics-item-time">{{item.time}}</view>
-						<view>{{item.text}}</view>
 					</view>
 				</view>
 			</view>

+ 1 - 1
pages/index/TopCard.vue

@@ -3,7 +3,7 @@
 		<view class="card-top">
 			<image mode="heightFix" src="/static/image/head.png" />
 			<view class="card-top-right">
-				<view class="card-top-right-name">{{info.name}}<text class="iconfont" @click="onClick">{{ showIcon ? '&#xe8bf;' : '&#xe901;' }}</text></view>
+				<view class="card-top-right-name">{{info.name}}<text class="iconfont" @click="onClick">{{ showIcon ? '&#xe901;' : '&#xe8bf;' }}</text></view>
 				<view>{{info.addr}}<text class="iconfont" @click="jumpAddress">&#xe6ae;</text></view>
 				<view class="card-top-right-sex">{{info.sex}} | {{info.text}}</view>
 			</view>

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 0
static/json/pca-code.json


+ 13 - 0
static/style/base.scss

@@ -248,4 +248,17 @@ uni-toast{
 		@include text-ellipsis-2;
 		background-color: transparent;
 	}	
+}
+
+.no-data {
+	margin-top: 100rpx;
+	@include flex-center;
+	flex-direction: column;
+
+	image {
+		width: 320rpx;
+		height: 320rpx;
+		margin-bottom: 48rpx;
+		color: $uni-text-color-light;
+	}
 }

+ 1 - 1
stores/rest.ts

@@ -103,7 +103,7 @@ const uploadSync = (filePath) => {
 			url: BASE_URL + '/admin-api/infra/file/upload',
 			// file: image,
 			header: getHeader(),
-			filePath: filePath,
+			file: filePath,
 			name: 'file',
 			success: (res) => {
 				let result = JSON.parse(res.data);