songfeiyang hace 1 año
padre
commit
94c53b7fa0

+ 1 - 0
src/components/comment/CommentList.vue

@@ -4,6 +4,7 @@
       <view
         class="item"
         v-for="item in 10"
+        :key="item"
         @click="$Router.push('/pages/community/commDetail/index')"
       >
         <view class="item-avatar">

+ 8 - 8
src/pages/business/list.vue

@@ -29,25 +29,25 @@
 							<scroll-view :scroll-top="scrollTop" scroll-y="true" class="filter-menu-left scroll-Y"
 								@scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll">
 								<view id="demo1" class="scroll-view-item uni-bg-red menu-item"
-									:class="current == index ? 'act-left-menu' : ''" v-for="(item,index) of menuList"
+									:class="current == index ? 'act-left-menu' : ''" v-for="(item,index) of menuList" :key="index"
 									@click.stop='handlerSelectLMenu(item,index)'>{{ item.name }}
 								</view>
 							</scroll-view>
 							<scroll-view :scroll-top="scrollTop" scroll-y="true" class="filter-menu-right scroll-Y"
 								@scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll">
-								<view id="demo1" class="scroll-view-item uni-bg-red" v-for="item of 15">
+								<view id="demo1" class="scroll-view-item uni-bg-red" v-for="item of 15" :key="item">
 									<view class="menu-right-title">洗车</view>
 									<view class="menu-right-contentbox">
-										<span class="menu-item" v-for="item of 7">测试</span>
+										<span class="menu-item" v-for="item of 7" :key="item">测试</span>
 									</view>
 								</view>
 							</scroll-view>
 						</view>
 					</view>
 					<view class="filter2" v-show="filterType == 2">
-						<view class="" @tap="sellerListFillter(1)">离我最近</view>
-						<view class="" @tap="sellerListFillter(2)">好评优先</view>
-						<view class=""@tap="sellerListFillter(3)">销量优先</view>
+						<view @tap="sellerListFillter(1)">离我最近</view>
+						<view @tap="sellerListFillter(2)">好评优先</view>
+						<view @tap="sellerListFillter(3)">销量优先</view>
 					</view>s
 				</view>
 			</view>
@@ -59,7 +59,7 @@
 					<image class="img" :src="item.logo" mode="aspectFit"></image>
 				</view>
 				<view class="item-right">
-					<view class="">
+					<view>
 						<view class="item-title">
 							<view class="tag">常去</view>
 							<view class="title">{{`${item.name}(${item.address})`}}</view>
@@ -87,7 +87,7 @@
 <script>
 	import { getSellerList } from '@/api/business.js';
 	import { getCurrentLocation } from '@/api/home.js';
-	import { mapState } from 'vuex';
+	import { mapState } from 'vuex';
 	export default {
 		async mounted() {
 			let data = {

+ 4 - 1
src/pages/tabbar/message/index.vue

@@ -8,7 +8,9 @@
     </u-navbar>
     <view :style="{ marginTop: totalHeight + 'px' }">
       <!-- 系统通知 -->
-      <view v-if="current == 0" class="orderList" v-for="item in orderList" :key="item.id" @tap="$Router.push(item.url)">
+
+      <view v-if="current == 0" >
+        <view class="orderList" v-for="item in orderList" :key="item.id" @tap="$Router.push(item.url)">
         <image :src="item.img" style="width: 40px; height: 40px" />
         <view class="orderItem">
           <view class="order1">{{ item.name }}</view>
@@ -16,6 +18,7 @@
         </view>
         <u-icon name="arrow-right"></u-icon>
       </view>
+      </view>
 
       <!-- 消息通知 -->
       <view class="message" v-if="current == 1" @tap="$Router.push(infoUrl)">

+ 10 - 10
src/pages/tabbar/mine/index.vue

@@ -56,7 +56,7 @@
       <!-- <view
         class="order-out-box"
         @tap="$Router.push('/pages/user/myOrder/index')"
-      > -->
+      > -->
 	  <view class="order-out-box">
         <view class="order-inner-box">
           <u-grid :border="false" col="4" style="background-color: #fff">
@@ -67,7 +67,7 @@
               <u-icon
                 :customStyle="{ paddingTop: 20 + 'rpx' }"
                 :name="listItem.name"
-                :size="34"
+                :size="34"
 				@tap="gotoOrder(listItem)"
               ></u-icon>
               <text class="grid-text">{{ listItem.title }}</text>
@@ -183,7 +183,7 @@ export default {
         },
         {
           name: 'lock',
-          title: '待付款',
+          title: '待付款',
 		  order: true
         },
         {
@@ -217,13 +217,13 @@ export default {
   },
   computed: {
     ...mapGetters(['user_info']),
-  },
-  methods:{
-	  gotoOrder(item){
-		  if(item.order){
-			this.$Router.push('/pages/order/order');
-		  }
-	  }
+  },
+  methods:{
+	  gotoOrder(item){
+		  if(item.order){
+			this.$Router.push('/pages/order/order');
+		  }
+	  }
   }
 };
 </script>

+ 1 - 1
src/pages/user/collect/list.vue

@@ -3,7 +3,7 @@
     <view class="text">以下是您收藏的商品服务</view>
 
     <!-- 收藏的服务 -->
-    <service v-for="item in 10" />
+    <service v-for="item in 10" :key="item"/>
   </view>
 </template>