惺惺惜惺惺
惺惺惜惺惺
  • 发布:2025-08-01 11:15
  • 更新:2025-08-01 11:19
  • 阅读:205

打包成微信小程序 在鸿蒙next 微信中页面空白 安卓和iOS版本的微信打开小程序正常的

分类:uni-app

<template>
<view>
<!-- 微信之外的平台-->
<!-- #ifndef MP-WEIXIN-->
<view class="changeTeam-box">
<!-- #ifdef APP-HARMONY -->
<u-gap :height="44" bg-color="#FFFFFFF"></u-gap>
<!-- #endif -->

  <!-- #ifdef APP-PLUS -->  
  <u-gap :height="24" bg-color="#FFFFFFF"></u-gap>  
  <!-- #endif -->  

  <view class="changeTeam">  

    <view class="changeTeam-content" @click.stop="changeShowTeam">  
      <view class="title-imgbox">  
        <image class="img-title" src="@/static/logo.png"></image>  
      </view>  
      <view class="title-text-box">  
        <view class="go-title-text ">{{ tenantName }}</view>  
      </view>  
      <div v-if="userDataStatus=='已激活'" class="margin-lr-xs item-tag"><span>{{ tenantType }}</span></div>  
      <div v-if="userDataStatus=='未激活'" class="margin-lr-xs item-tag"><span>未激活</span></div>  
      <view class="right-icon">  
        <u-icon name="arrow-down" size="14" v-if="showSelTeamFlag===false"></u-icon>  
        <u-icon name="arrow-up" size="14" v-if="showSelTeamFlag===true"></u-icon>  
      </view>  

    </view>  

    <view class="message-box" @click="toMessage">  

      <up-icon name="email" size="22"></up-icon>  
      <u-badge v-if="dataNumber>0" :absolute="true" :type="type" :offset="[-5,-10]"  
               numberType="overflow"  
               max="99" :value="dataNumber"></u-badge>  

    </view>  
  </view>  

</view>  
<!--      #endif-->  

<!-- 微信小程序-->
<!-- #ifdef MP-WEIXIN-->
<view class="changeTeam-box">
<u-gap :height="20" bg-color="#FFFFFFF"></u-gap>
<view class="changeTeam-wx">
<u-gap :height="38" bg-color="#FFFFFFF"></u-gap>
<view class="changeTeam-content-wx" @click.stop="changeShowTeam">
<view class="title-imgbox">
<image class="img-title" src="@/static/logo.png"></image>
</view>
<view class="title-text-box">
<view class="go-title-text ">{{ tenantName }}</view>
</view>
<div v-if="userDataStatus=='已激活'" class="margin-lr-xs item-tag"><span>{{ tenantType }}</span></div>
<div v-if="userDataStatus=='未激活'" class="margin-lr-xs item-tag"><span>未激活</span></div>
<view class="right-icon">
<u-icon name="arrow-down" size="14" v-if="showSelTeamFlag===false"></u-icon>
<u-icon name="arrow-up" size="14" v-if="showSelTeamFlag===true"></u-icon>
</view>

    </view>  

    <view class="message-box-wx" @click="toMessage">  
      <view>  
        <up-icon name="email" size="22"></up-icon>  
        <u-badge v-if="dataNumber>0" :absolute="true" :type="type" :offset="[-5,80]"  
                 numberType="overflow"  
                 max="99" :value="dataNumber"></u-badge>  
      </view>  
      <view style="width: 140rpx;height: 20rpx;opacity:0;">顶部部占位盒子</view>  

    </view>  

  </view>  

</view>  
<!--      #endif-->  

<!-- #ifdef APP-PLUS -->  
<u-gap :height="iStatusBarHeight" bg-color="#FFFFFFF"></u-gap>  

<!-- #endif -->  

<u-gap :height="60" bg-color="#FFFFFFF"></u-gap>  
<!--    <view>{{clientId}}</view>-->  
<view class="workPlan ">  
  <!--       全局组件 所有界面需要引入-->  
  <go-common-module></go-common-module>  
  <!-- #ifdef H5 -->  

  <!-- #endif -->  

  <!--    选择团队-->  

  <uni-popup ref="showTop" type="top" border-radius="10px 10px 0 0"  
             @maskClick="popupMaskClick"  

  >  
    <view class="popup-box">  
      <!-- #ifdef H5 -->  
      <view style="height:60px;width: 100%"></view>  
      <!-- #endif -->  
      <!-- #ifdef APP-PLUS -->  
      <view :style="{height:iStatusBarHeight 60 'px',width: '100%'}"></view>  
      <!-- #endif -->  
      <!-- #ifdef APP-HARMONY    -->  
      <u-gap :height="104" bg-color="#FFFFFFF"></u-gap>  
      <!-- #endif -->  
      <!--    #ifdef MP-WEIXIN-->  
      <u-gap :height="80" bg-color="#FFFFFFF"></u-gap>  
      <!-- #endif -->  

      <view v-for="(item,index) in tenantList" :key="item.id"  
            @click="selectTeam(item,true)"  
            class="team-item-box"  
      >  
        <view class="flex-start team-item">  
          <view class=" flex-start-start" style="margin-right: 12px">  
            <image class="logo-item" src="@/static/logo.png"></image>  
          </view>  
          <view class="flex-row item-left-content">  
            <view>  
              <view class="item-tenantName">{{ item.tenantName }}</view>  
              <view class="item-tenantType margin-top-xs"><span>{{ item.tenantType }}</span> <span  
                  v-if="item.selfTenant===true"> - 所有者</span></view>  
            </view>  
            <view class="padding-xs flex-center" v-if="item.isSelect">  
              <u-icon name="checkbox-mark" size="18" color="#297FFB"></u-icon>  
            </view>  

          </view>  

        </view>  

      </view>  

    </view>  
  </uni-popup>  

  <!--    任务待办区域-->  
  <!-- #ifdef APP-HARMONY    -->  
  <u-gap :height="44" bg-color="#FFFFFFF"></u-gap>  
  <!-- #endif -->  

  <!--    #ifdef MP-WEIXIN-->  
  <u-gap :height="20" bg-color="#FFFFFFF"></u-gap>  
  <!-- #endif -->  
  <view class="report-box ">  
    <view class="report-left flex-3">  
      <view class="report-title-text margin-top-sm margin-left-sm">我的任务</view>  

      <view class="w-100 flex-start my-box">  
        <view class="report-list">  
          <view @click="goMyTodoList('today')">  
            <u--text type="primary" :text="countData.countOfMyTaskToday" size="30"></u--text>  
          </view>  
          <view class="report-list-line" style="background:#3c9cFF"></view>  
          <view class="report-list-text">当天</view>  
        </view>  
        <view class="report-list">  
          <view @click="goMyTodoList('thisWeek')">  
            <u--text type="success" :text="countData.countOfMyTaskThisWeek" size="30"></u--text>  
          </view>  
          <view class="report-list-line" style="background:#5AC725"></view>  
          <view class="report-list-text">本周</view>  
        </view>  
        <view class="report-list">  
          <view @click="goMyTodoList('thisMonth')">  
            <u--text type="warning" :text="countData.countOfMyTaskThisMonth" size="30"></u--text>  
          </view>  
          <view class="report-list-line" style="background:#F9AE3D"></view>  
          <view class="report-list-text">本月</view>  
        </view>  
      </view>  

    </view>  
    <view class="report-right flex-1">  
      <view class="report-title-text margin-top-sm margin-left-sm">团队任务</view>  
      <view class="report-list-right">  

        <view @click="goTeamTodoList">  
          <u--text color='#fcb300' :text="countData.countOfTenantTaskTotal" size="30"></u--text>  
        </view>  
        <view class="report-list-line" style="background:#fcb300"></view>  
        <view class="report-list-text">总数</view>  
      </view>  
    </view>  

  </view>  

  <u-gap height="12" bg-color="#f5f6fa"></u-gap>  

  <!--      <button @click="checkVersion">当前通知权限状态:{{isNotifications}}</button>-->  
  <!--      流程待办区域-->  
  <view class="daiban-box" v-if="showFlowflag===true">  

    <!--    功能模块-->  
    <view class=" ">  

      <view class="flex-row margin-bottom-xs ">  
        <view class="go-com-text main-text">流程待办</view>  
        <!--            <view class="go-gray-text  flex" @click="goProAgency">  
                      <view style="cursor: pointer;font-size: 12px">  
                        <text class="margin-lr-xs ">查看全部</text>  
                        <img  src="~@/static/mainPage/right-arrow.png" alt="">  
                      </view>  
                    </view>-->  
      </view>  

      <!-- 待办列表 -->  
      <view v-for="(item, index) in processToDoData" :key="index">  
        <view class="menu-item" @click="goTodoList(item)">  
          <view class="menu-item-left">  
            <image v-if="item.processLogType == '驳回'" style="width: 72rpx;height: 72rpx"  
                   src="@/static/mainPage/bohui.png" alt=""></image>  
            <image v-if="item.processLogType != '驳回'" style="width: 72rpx;height: 72rpx"  
                   src="@/static/mainPage/shenpi.png" alt=""></image>  
          </view>  
          <view class="margin-left-sm">  
            <view>  
              <!--                <u--text :text="item.processName" color='#333333' size="14"></u--text>-->  
              <!--                  【{{ item.insCount }}】 {{ item.processTypeForShow }}-->  
              <text>  
                {{ item.processTypeForShow }}  
              </text>  
            </view>  
            <view>  
              <text style="font-size: 14px;color:#888888">  
                {{ item.insCount }} 个  
              </text>  
              <!--                <u--text style="margin:4px 0 0 6px" :text="item.createTime" color='#888888' size="13"></u--text>-->  
            </view>  
          </view>  
        </view>  
      </view>  
      <view v-for="(item) in forwardList" :key="item.id">  
        <view class="menu-item" @click="goTransferDetail(item)">  
          <view class="menu-item-left">  
            <image style="width: 72rpx;height: 72rpx" src="@/static/mainPage/shenpi.png" alt=""></image>  
          </view>  
          <view class="margin-left-sm">  
            <view>  
              <text>  

                【{{ item.creatorName }}】转发给您一条【{{ item.busName }}】流程  
              </text>  
            </view>  
            <view>  
              <text style="font-size: 14px;color:#888888">  
                {{ item.createTime }}  
              </text>  
            </view>  
            <!--              <u--text :text="`【${item.parentUserName}】转发给您一个【${item.CpageName}】流程`" color='#333333' size="14"></u--text>  
                          <u--text style="margin:4px 0 0 6px" :text="item.createTime" color='#888888' size="13"></u--text>-->  
          </view>  
        </view>  
      </view>  

      <view v-for="(item) in ccList" :key="item.id">  
        <view class="menu-item" @click="goCcDetail(item)">  
          <view class="menu-item-left">  
            <image style="width: 72rpx;height: 72rpx" src="@/static/mainPage/shenpi.png" alt=""></image>  
          </view>  
          <view class="margin-left-sm">  

            <view>  
              <text>  
                【{{ item.creatorName }}】抄送给您一条【{{  
                  item.processDefName  
                }}】  
              </text>  
            </view>  
            <view>  
              <text style="font-size: 14px;color:#888888">  
                {{ item.createTime }}  
              </text>  
            </view>  
            <!--              <u--text :text="`【${item.logUserName}】抄送给您一个【${item.processName}】流程`" color='#333333' size="14"></u--text>  
                          <u--text style="margin:4px 0 0 6px" :text="item.createTime" color='#888888' size="13"></u--text>-->  
          </view>  
        </view>  
      </view>  

      <u-toast ref="uToast"></u-toast>  

    </view>  
  </view>  
  <u-gap height="12" bg-color="#f5f6fa" v-if="showFlowflag===true"></u-gap>  
  <view class="daiban-box">  

    <view class="daiban-box-view">  
      <view class="flex-row margin-bottom-xs ">  
        <view class="go-com-text main-text">项目</view>  

        <view class="flex-row-start">  
          <up-icon @click="showAddProject" name="plus-circle-fill" color="#2979ff" size="22"></up-icon>  
        </view>  
      </view>  
      <!--    功能模块-->  
      <view class=" ">  

        <!--          <u-subsection :list="list" :current="curNow" @change="sectionChange"></u-subsection>-->  
        <view class="flex-row">  
          <view class="left-box">  
            <uni-data-checkbox mode="tag" class="" v-model="queryType"  

                               @change="getProjectData"  
                               :localdata="queryTypeData"></uni-data-checkbox>  

            <!--                <view v-for="(item,index) in queryTypeData" class="margin-right-xs go-sub-text query-tag">  
                              {{item.text}}  
                            </view>-->  

          </view>  

          <view class="flex-row go-nomal-text" @click="changeFilterFlag">  
            <span class="text-blue margin-right-xs">筛选</span>  
            <!--              <u-icon name="arrow-down" size="14" v-show="showSelTeamFlag===false"></u-icon>-->  
            <image style="width: 28rpx;height: 28rpx"  
                   src="@/static/shaixuan.svg" alt=""></image>  
          </view>  
        </view>  

        <!-- 待办列表 有数据 -->  
        <view v-for="(item, index) in projectData" :key="index">  
          <view class="menu-item-project">  

            <view style="display: flex;align-items: center;justify-content: space-between">  
              <view class="menu-item-left" @click="goProItemList(item)">  

                <image style="width: 72rpx;height: 72rpx"  
                       src="@/static/mainPage/jihua.png" alt=""></image>  
              </view>  
              <view class="margin-left-sm " @click="goProItemList(item)">  
                <view class="go-com-text ite">  
                  {{ item.name }}  
                </view>  
                <view class="flex-start margin-top-xs">  

                  <uni-icons type="person-filled" size="18" color="#888888"></uni-icons>  

                  <text class="margin-lr-xs" style="font-size: 14px;color:#888888">  
                    {{ item.doneUserNames }}  
                  </text>  
                  <!--                  <text style="font-size: 14px;color:#888888">  
                                      {{ item.createTime }}  
                                    </text>-->  
                  <!--                <u--text style="margin:4px 0 0 6px" :text="item.createTime" color='#888888' size="13"></u--text>-->  
                </view>  
                <view class="flex-start margin-top-xs">  

                  <text style="font-size: 14px;color:#888888">  
                    {{ item.createTime }}  
                  </text>  
                  <!--                <u--text style="margin:4px 0 0 6px" :text="item.createTime" color='#888888' size="13"></u--text>-->  
                </view>  
              </view>  

            </view>  

            <view class="margin-left-xs" @click.stop="showOption(item)">  

              <!--                  <u-icon v-show="item.attentionFlag==='已关注'" name="star-fill" size="20" color="#2979ff"  
                                        @click="unAttention(item)"></u-icon>  
                                <u-icon v-show="item.attentionFlag==='未关注'" name="star" size="20" color="#2979ff"  
                                        @click="attention(item)"></u-icon>  

                                <up-icon v-show="item.editAuth"  class="margin-tb-sm" @click="editProject(item)" name="edit-pen-fill" color="#2979ff" size="20"></up-icon>  
                                <up-icon v-show="item.editAuth"  @click="deleteProject(item)" name="trash-fill" color="#2979ff" size="20"></up-icon>-->  

              <u-icon name="more-dot-fill" color="#666666 "  
                      size="24"></u-icon>  

            </view>  

          </view>  
        </view>  

        <view v-if="projectData.length===0
2025-08-01 11:15 负责人:无 分享
已邀请:
DCloud_UNI_JBB

DCloud_UNI_JBB

控制台有报错吗?

要回复问题请先登录注册