Browse Source

替换无数据图片

ming 3 years ago
parent
commit
243da5dc9d

+ 1 - 1
components/fs-divide-list/fs-divide-list.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="fs-divide-list" :class="{'gutter-v': gutter}">
 		<fs-grid :columnNum="list.length" :padding="false">
-			<view v-for="item in list" class="fs-divide-list-item">
+			<view v-for="(item, index) in list" :key="index" class="fs-divide-list-item">
 				<fs-grid-item>
 					<slot :item="item"></slot>
 				</fs-grid-item>

BIN
components/fs-empty/empty.png


+ 6 - 6
pages/my/my.vue

@@ -5,7 +5,6 @@
 			<view class="layout-box radius-lg top-box">
 				<view class="user-info" v-if="userInfo.name">
 					<fs-avatar size="140rpx" :src="userInfo.photo || userAvatar"></fs-avatar>
-					<!-- <fs-wx-avatar v-else></fs-wx-avatar> -->
 					
 					<view class="top-box-content">
 						<text class="vm title">{{userInfo.name}}</text>
@@ -20,6 +19,7 @@
 				<fs-icon
 					v-if="userInfo.name"
 					class="top-box-edit"
+					colorType="primary"
 					type="icon-edit"
 					size="40rpx"
 					link="./userInfo">
@@ -49,11 +49,6 @@
 		</fs-card>
 		
 		<fs-cell-group arrow border gutter>
-			<fs-cell link="/modules/common/setting" value="设置">
-				<template #title>
-					<fs-icon type="icon-setting" colorType="primary"></fs-icon>
-				</template>
-			</fs-cell>
 			<fs-cell link="/modules/common/licensePlate/list" value="车辆管理">
 				<template #title>
 					<fs-icon type="icon-car" colorType="primary"></fs-icon>
@@ -89,6 +84,11 @@
 					<fs-icon type="icon-version" colorType="primary"></fs-icon>
 				</template>
 			</fs-cell>
+			<fs-cell link="/modules/common/setting" value="设置">
+				<template #title>
+					<fs-icon type="icon-setting" colorType="primary"></fs-icon>
+				</template>
+			</fs-cell>
 		</fs-cell-group>
 		<wx v-model="showLogin"></wx>
 	</view>

+ 1 - 1
store/index.js

@@ -4,7 +4,7 @@ import { login, wxLogin, logout } from '../services/common'
 const store = createStore({
   state: {
     userInfo: uni.getStorageSync('userInfo'),
-		token: uni.getStorageSync('token') || ''
+		token: uni.getStorageSync('token')
   },
   mutations: {
     setUserInfo(state, userInfo) {