13404089107
2025-03-14 a6b15483b832fc1fc27a050c93a3a6f371b57a19
H5/pages/index/index.vue
@@ -17,6 +17,10 @@
            </swiper>
         </view>
      </view>
      <view class="flex fs-27 font-bold a-center pt-38 pl-31">
         <image src="/static/home/社区@2x.png" mode="aspectFill" class="w-31 h-31 mr-12"></image>
         服务社区:文化社区
      </view>
      <view class="pt-38 pl-31 pr-31 flex flex-column">
         <view class="flex j-between a-center">
            <text class="color1 fs-31 font-bold">工作台</text>
@@ -39,7 +43,7 @@
               <image class="w-79 h-77 ml-38" src="/static/home/img1.png" mode=""></image>
               <text class="ml-37 font-bold">回访评价</text>
            </view>
            <view class="pt-38 pb-38 bg1 w-333 br-19 mt-19 flex a-center" v-if="showData">
               <image class="w-81 h-77 ml-38" src="/static/home/img8.png" mode=""></image>
               <text class="ml-37 font-bold">统计分析</text>
@@ -98,6 +102,23 @@
         </view>
      </view>
      <popupCertificate :show="isClick" @onCancel="isClick=false"></popupCertificate>
      <!-- 用户多个角色时切换角色弹窗 -->
      <u-popup :show="changeRolePopup" round="16rpx" @close="changeRolePopup = false">
         <view class="relative">
            <image @tap.stop="changeRolePopup = false" src="@/static/closeImg.png" class="w-35 h-35 absolute"
               style="right: 31rpx;top: 46rpx;" />
            <view class="txt-center pt-38 pb-40 fs-35 lh-48 font-bold">选择角色</view>
            <view class="lineBox mb-10"></view>
            <view style="height: 546rpx;overflow-y: auto;">
               <view @tap.stop="changeRole(item)" v-for="(item,index) in 10" :key="index"
                  :class="index == activeRole && 'bgcolor2'"
                  class="mt-38 bgcolor1 br-58 fs-31 ml-54 mr-62 py-37 txt-center">
                  <view>XXXXXXXX管理员</view>
               </view>
            </view>
         </view>
      </u-popup>
   </view>
</template>
@@ -130,6 +151,8 @@
            isLoading: false,
            noreadlist: [],
            noreadlists: [],
            changeRolePopup: true,
            activeRole: 1,
         }
      },
      onPullDownRefresh() {
@@ -153,6 +176,10 @@
         this.getappletcinfo()
      },
      methods: {
         changeRole(item) {
            this.activeRole = item - 1
            this.changeRolePopup = false
         },
         Allread() {
            getread().then(resp => {
@@ -290,6 +317,16 @@
   .color4 {
      color: rgba(0, 0, 0, 0.4);
   }
   .bgcolor1 {
      background: #F7F7F7;
   }
   .bgcolor2 {
      color: #fff;
      background: #FC8D55;
      box-shadow: 0rpx 4rpx 19rpx 0rpx rgba(239, 119, 58, 0.5);
   }
   .bg1 {
@@ -465,4 +502,10 @@
      color: #FFFFFF;
      font-weight: 600;
   }
   .lineBox {
      width: 100%;
      height: 1rpx;
      background: #E5E5E5;
   }
</style>