From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 h5/pages/staff/memberSel.vue |   43 ++++++++++++++++++++++++-------------------
 1 files changed, 24 insertions(+), 19 deletions(-)

diff --git a/h5/pages/staff/memberSel.vue b/h5/pages/staff/memberSel.vue
index 8a51c0a..8405ca0 100644
--- a/h5/pages/staff/memberSel.vue
+++ b/h5/pages/staff/memberSel.vue
@@ -10,22 +10,15 @@
         v-model="param.name"
         @blur="initData()"
         type="text"
-        placeholder="鎼滅储"
+        placeholder="璇疯緭鍏ュ鍚嶈繘琛屾悳绱�"
         placeholder-style="color: #999999;"
       />
     </view>
     <view class="member_list">
       <checkbox-group @change="changeMem">
         <view v-for="item in memberList" :key="item.id" class="line">
-          <image
-            :src="
-              item.faceImgFull
-                ? item.faceImgFull
-                : require('@/static/logo@2x.png')
-            "
-            class="avatar"
-            mode=""
-          ></image>
+          <image v-if="item.faceImgFull" :src="item.faceImgFull" class="avatar" ></image>
+          <span v-else class="img_name">{{item.name && item.name.slice(0,1)}}</span>
           <view class="content">
             <view class="info">
               <text class="name">{{ item.name }}</text>
@@ -105,7 +98,8 @@
       isShowSelMem: false
     }
   },
-  onLoad() {
+  onLoad(option) {
+    this.$set(this.param, 'id', option.areaId || '')
     this.initData()
   },
   methods: {
@@ -116,15 +110,14 @@
 			console.log( e.detail.value[0]);
 			const id = Number(e.detail.value[0])
 			const item = this.memberList.find(i => i.id === id)
-			console.log('item', item);
-			uni.navigateTo({
-				url: `/pages/staff/snapshot?id=${item.id}&name=${item.name}`
-			})
+      this.$eventBus.$emit('snapshotSel', item)
+			uni.navigateBack()
     },
     initData() {
       const { param } = this
       findHiddenAreaMemberList({
-        name: param.name
+        name: param.name,
+        id: param.id
       }).then(res => {
         this.memberList = res.data || []
       })
@@ -144,7 +137,7 @@
       font-weight: 600;
     }
     .btn {
-      color: #279baa;
+      color: $uni-color-primary;
     }
   }
   .modal_mem_list {
@@ -199,7 +192,7 @@
     align-items: center;
     .members {
       width: 500rpx;
-      color: #4d98a7;
+      color: $uni-color-primary;
       white-space: nowrap;
       overflow: hidden; //鏂囨湰瓒呭嚭闅愯棌
       text-overflow: ellipsis;
@@ -214,7 +207,7 @@
     width: 690rpx;
     height: 88rpx;
     line-height: 88rpx;
-    background: #279baa;
+    background: $uni-color-primary;
     border-radius: 44rpx;
     color: #fff;
     text-align: center;
@@ -234,6 +227,18 @@
       overflow: hidden;
       margin-right: 20rpx;
     }
+		.img_name{
+			width: 64rpx;
+			height: 64rpx;
+			line-height: 64rpx;
+			text-align: center;
+			border-radius: 50%;
+			overflow: hidden;
+			margin-right: 20rpx;
+			background: $uni-color-primary;
+			color: #fff;
+			border: 1rpx solid $uni-color-primary;
+		}
     .content {
       flex: 1;
       .depart {

--
Gitblit v1.9.3