宋飞扬 1 vuosi sitten
vanhempi
commit
9329b414ad

+ 1 - 0
src/pages/client/clientPackage/search.vue

@@ -49,6 +49,7 @@
         <view
           class="item-box layered"
           v-for="(item, index) of favourite_list"
+          :key="index"
           @click="$Router.push(`/pages/client/clientPackage/storeDetail?id=${item.id}`)"
         >
           <view class="item-left">

+ 1 - 1
src/pages/client/clientUser/myGroup.vue

@@ -11,7 +11,7 @@
         <view class="top-r">></view>
       </view>
       <view class="item-content">
-        <view class="person-item" v-for="item of teamPersonList">
+        <view class="person-item" v-for="item of teamPersonList" :key="item.inviteUserAvatar">
           <image class="item-img" :src="item.inviteUserAvatar" mode="aspectFill" />
           <view class="item-name">{{ item.name }}</view>
         </view>

+ 2 - 2
src/pages/client/clientUser/serviceCenter.vue

@@ -9,10 +9,10 @@
         <view class="item-r"> 如何注销账户? </view>
       </view>
     </view> -->
-    <view v-for='item of init_list'>
+    <view v-for='item,index of init_list' :key="index">
       <view class="title"> {{ item.name }} </view>
       <view class="item-box hote-box" >
-        <view class="item" v-for='(itm,idx) of item.helpList' @click='handlerSkipDetail(itm)'>
+        <view class="item" v-for='(itm,idx) of item.helpList' :key="idx" @click='handlerSkipDetail(itm)'>
           <view class="item-l">
             <img class="img" :src=" itm.icon ? itm.icon : require('@/static/logo.png')" alt="" />
           </view>

+ 1 - 1
src/pages/client/tabBar/community/index.vue

@@ -43,7 +43,7 @@
             {{ item.textContent }}
           </view>
           <view class="center-img-box">
-            <image v-for="itm of item.resourceVos" class="center-img" :src="itm.resourceKey" @click='reviewImg(itm)'></image>
+            <image v-for="itm,index of item.resourceVos" :key="index" class="center-img" :src="itm.resourceKey" @click='reviewImg(itm)'></image>
           </view>
         </view>
         <view class="item-bottom">

+ 1 - 1
src/pages/client/tabBar/message/index.vue

@@ -26,7 +26,7 @@
 
         <!-- 消息通知 -->
         <view v-if="current == 1">
-          <view class="message" @click="notification" v-for="item in 5">
+          <view class="message" @click="notification" v-for="item,index in 5" :key="index">
             <view class="img">
               <image src="/static/icon/tools.png" style="width: 45px; height: 45px" />
             </view>

+ 1 - 1
src/pages/client/tabBar/mine/index.vue

@@ -79,7 +79,7 @@
 		collectList,
 		oderList,
 		incomeList,
-		listData
+		// listData
 	} from './mine';
 	import {
 		mapGetters

+ 2 - 2
src/pages/merchant/message/systemNotice.vue

@@ -1,7 +1,7 @@
 <template>
   <view class="container">
     <!-- 系统通知 /  订单通知-->
-    <view class="content-item" v-for="item of 2" v-show="type == 1 || type == 2">
+    <view class="content-item" v-for="item,index of 2" :key="index"  v-show="type == 1 || type == 2">
       <p class="item-time">2023-10-26 23:35</p>
       <view class="item">
         <view class="item-box">
@@ -16,7 +16,7 @@
     </view>
 
     <!-- 活动通知 -->
-    <view class="content-item2" v-for="item of 2" v-show='type == 3'>
+    <view class="content-item2" v-for="item,index of 2" :key="index" v-show='type == 3'>
       <p class="item-time">2023-10-26 23:35</p>
       <view class="item">
         <view class="item-box">

+ 2 - 2
src/pages/merchant/mine/index.vue

@@ -72,7 +72,7 @@
 
       <view class="mine__main--setting">
         <template v-for="item in list1">
-          <u-cell size="large" :border="false" :title="item.name" isLink :url="item.url">
+          <u-cell size="large" :border="false" :key="item.name" :title="item.name" isLink :url="item.url">
             <image slot="icon" src="@/static/tools.jpg" style="width: 60rpx; height: 60rpx" />
           </u-cell>
         </template>
@@ -80,7 +80,7 @@
 
       <view class="mine__main--setting">
         <template v-for="item in list2" @click="tap(item)">
-          <u-cell size="large" :border="false" @tap="" :title="item.name" isLink :url="item.url">
+          <u-cell size="large" :border="false" @tap="" :key="item.name" :title="item.name" isLink :url="item.url">
             <image slot="icon" src="@/static/tools.jpg" style="width: 60rpx; height: 60rpx" />
           </u-cell>
         </template>

+ 1 - 1
src/pages/merchant/store/evaluateManagement.vue

@@ -29,7 +29,7 @@
           }"></u-tabs>
       </view>
       <view class="item-box">
-        <view class="item" :class="current == index ? 'act-item' : ''" v-for="(item,index) of contentList" @click="handlerSelectItem(item,index)">{{ item.name }}{{ item.numb }}</view>
+        <view class="item" :class="current == index ? 'act-item' : ''" v-for="(item,index) of contentList" :key="index" @click="handlerSelectItem(item,index)">{{ item.name }}{{ item.numb }}</view>
       </view>
       <view class="item-radio-box">
         <u-radio-group v-model="radiovalue1" placement="row" >

+ 2 - 2
src/pages/merchant/store/shopManage.vue

@@ -72,7 +72,7 @@
             <view class="item-title">
               <text>{{ item.name }}</text>
             </view>
-            <view class="item-box" v-for="itm of item.foods">
+            <view class="item-box" v-for="itm of item.foods" :key="idx">
               <view class="item-l">
                 <img class="l-img" src="@/static/QR57a.jpg" alt="" />
               </view>
@@ -104,7 +104,7 @@
             v-for="(item, index) in tabbar"
             :key="index"
           >
-            <view class="item-box" v-for="itm of item.foods">
+            <view class="item-box" v-for="itm of item.foods" :key="idx">
               <u-checkbox-group>
                 <u-checkbox v-model="checked" shape="circle"></u-checkbox>
               </u-checkbox-group>