Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
supervisor-miniprogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ecbaa823
authored
May 26, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style: 格式化
1 parent
825f7520
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
134 additions
and
87 deletions
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/index/index.js
View file @
ecbaa82
This diff is collapsed.
Click to expand it.
pages/tab/index/index.wxml
View file @
ecbaa82
<!--pages/tab/index/index.wxml-->
<!--pages/tab/index/index.wxml-->
<navigation-bar bindnavbarReady="navbarReady"
<navigation-bar bindnavbarReady="navbarReady"
class="navigation-header"
class="navigation-header"
navStyle="background-color:{{
isSticky ? '#FFFFFF' : 'transparent'
}};box-shadow:none;">
navStyle="background-color:{{
isSticky ? '#FFFFFF' : 'transparent'
}};box-shadow:none;">
<view class="page-title">
<view class="page-title">
工作台
工作台
</view>
</view>
</navigation-bar>
</navigation-bar>
<view class="bg" wx:if="{{!isSticky}}"></view>
<view class="bg" wx:if="{{ !isSticky }}"></view>
<scroll-view class="container" scroll-y enable-back-to-top
<scroll-view class="container"
scroll-top="{{setScrollTop}}"
scroll-y
bind:scroll="onScroll"
enable-back-to-top
bindrefresherrefresh="search"
scroll-top="{{ setScrollTop }}"
bindscrolltolower="scrollonReachBottom"
bind:scroll="onScroll"
enhanced="{{true}}"
bind:refresherrefresh="search"
show-scrollbar="{{false}}" style="padding-top: {{navBarHeight}}px;">
bind:scrolltolower="scrollonReachBottom"
enhanced="{{ true }}"
show-scrollbar="{{ false }}"
style="padding-top: {{ navBarHeight }}px;">
<view class="top-box">
<view class="top-box">
<view class="user-info">
<view class="user-info">
<image src="{{IMG_URL}}default-avatar.png" />
<image src="{{ IMG_URL }}default-avatar.png" />
<view>督导{{userInfo.name}}</view>
<view>
督导{{ userInfo.name }}
</view>
</view>
</view>
<view class="static-info">
<view class="static-info">
<view class="static-item" style="flex: {{item.width}}rpx 0 0;background: {{item.background}};" wx:for="{{staticList}}" wx:key="index">
<view class="static-item"
<view class="label">{{item.label}}</view>
style="flex: {{ item.width }}rpx 0 0;background: {{ item.background }};"
<view class="value">{{staticData[item.key]}}</view>
wx:for="{{ staticList }}"
wx:key="index">
<view class="label">
{{ item.label }}
</view>
<view class="value">
{{ staticData[item.key] }}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="data-container">
<view class="data-container">
<view class="sticky-box {{
isSticky ? 'is-sticky' : ''
}}">
<view class="sticky-box {{
isSticky ? 'is-sticky' : ''
}}">
<view class="tab-box">
<view class="tab-box">
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
<tab-bar tabList="{{ tabList }}"
bindclick="tabClick"
activeIndex="{{ tabIndex }}" />
</view>
</view>
<view class="date">
<view class="date">
<date-screen tabSelected="{{tabIndex}}" isSticky="{{isSticky}}" bind:search="search"></date-screen>
<date-screen tabSelected="{{ tabIndex }}"
isSticky="{{ isSticky }}"
bind:search="search"></date-screen>
</view>
<view class="number">
共{{ total || 0 }}条任务
</view>
</view>
<view class="number">共{{total || 0}}条任务</view>
</view>
</view>
<view class="content-box">
<view class="content-box">
<view class="list">
<view class="list">
<block wx:if="{{ list.length > 0 }}">
<block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:for-item="val" wx:for-index="sIndex" wx:key="sIndex">
<block wx:for="{{ list }}"
<block wx:for="{{val}}" wx:key="index">
wx:for-item="val"
<view class="item content">
wx:for-index="sIndex"
<!-- 顶部状态和标题 -->
wx:key="sIndex">
<view class="item-top">
<block wx:for="{{ val }}" wx:key="index">
<view
<view class="item content">
class="status text-center"
<!-- 顶部状态和标题 -->
style="color: {{statusMap[item.taskStatus].color}}; background-color: {{statusMap[item.taskStatus].background}};"
<view class="item-top">
>
<view class="status text-center"
{{statusMap[item.taskStatus].name}}
style="color: {{ statusMap[item.taskStatus].color }}; background-color: {{ statusMap[item.taskStatus].background }};">
</view>
{{ statusMap[item.taskStatus].name }}
</view>
<view class="name" wx:if="{{item.taskType != 4}}">
<view class="name" wx:if="{{ item.taskType != 4 }}">
{{missionMap[item.taskType].name}}
{{ missionMap[item.taskType].name }}<text wx:if="{{ item.taskType == 5 }}">-{{ item.storeManagerName || '-' }}</text>
<text wx:if="{{item.taskType == 5}}">-{{item.storeManagerName || '-'}}</text>
</view>
<view class="name" wx:else>{{item.merchantName || '-'}}</view>
</view>
</view>
<view wx:if="{{(item.taskType == 0 || item.taskType == 1 || item.taskType == 2) && item.taskStatus == 2}}" class="list-item">
<view class="name" wx:else>
<image class="icon" src="{{IMG_URL}}task-icon.png" mode="" />
{{ item.merchantName || '-' }}
<view class="label">{{['日报内容:', '复盘内容:', '月度计划:'][item.taskType]}}</view>
<view class="text-hide">{{item.taskContext || '-'}}</view>
</view>
</view>
<block wx:if="{{item.taskType == 4}}">
</view>
<view class="list-item">
<view wx:if="{{ (item.taskType == 0 || item.taskType == 1 || item.taskType == 2) && item.taskStatus == 2 }}"
<image class="icon" src="{{IMG_URL}}matter-icon.png" mode="" />
class="list-item">
<view class="label">事项描述:</view>
<image class="icon"
<view class="text-hide">{{item.taskDesc || '-'}}</view>
src="{{ IMG_URL }}task-icon.png"
mode="" />
<view class="label">
{{ ['日报内容:', '复盘内容:', '月度计划:'][item.taskType] }}
</view>
<view class="text-hide">
{{ item.taskContext || '-' }}
</view>
</view>
<block wx:if="{{ item.taskType == 4 }}">
<view class="list-item">
<image class="icon"
src="{{ IMG_URL }}matter-icon.png"
mode="" />
<view class="label">
事项描述:
</view>
</view>
<view class="text-hide">
<view wx:if="{{item.taskStatus == 2}}" class="list-item">
{{ item.taskDesc || '-' }}
<image class="icon" src="{{IMG_URL}}task-icon.png" mode="" />
<view class="label">专项任务:</view>
<view class="text-hide">{{item.taskContext || '-'}}</view>
</view>
</view>
</view>
<view wx:else class="list-item">
<view wx:if="{{ item.taskStatus == 2 }}" class="list-item">
<image class="icon" src="{{IMG_URL}}time-icon.png" mode="" />
<image class="icon"
<view class="label">创建时间:</view>
src="{{ IMG_URL }}task-icon.png"
<view>{{item.createTime || '-'}}</view>
mode="" />
<view class="label">
专项任务:
</view>
<view class="text-hide">
{{ item.taskContext || '-' }}
</view>
</view>
</block>
<view wx:if="{{item.taskType != 4 || (item.taskType == 4 && item.taskStatus == 2)}}" class="list-item">
<image class="icon" src="{{IMG_URL}}time-icon.png" mode="" />
<view class="label">完成时间:</view>
<view>{{item.updatedDate || '-'}}</view>
</view>
</view>
<view wx:if="{{item.taskType == 3}}" class="list-item">
<view wx:else class="list-item">
<view class="progress">
<image class="icon"
<view class="progress-line"></view>
src="{{ IMG_URL }}time-icon.png"
<view
mode="" />
class="progress-item"
<view class="label">
style="width: {{ (item.audioReviewCompletedCount / item.audioReviewTotalCount * 100) + '%' }}"
创建时间:
></view>
<view class="num">{{item.audioReviewCompletedCount + '/' + item.audioReviewTotalCount}}</view>
</view>
</view>
<view>
{{ item.createTime || '-' }}
</view>
</view>
</block>
<view wx:if="{{ item.taskType != 4 || (item.taskType == 4 && item.taskStatus == 2) }}"
class="list-item">
<image class="icon"
src="{{ IMG_URL }}time-icon.png"
mode="" />
<view class="label">
完成时间:
</view>
</view>
<view>
<!-- 底部按钮 -->
{{ item.updatedDate || '-' }}
<view class="btn-box">
</view>
<view
</view>
bindtap="jump"
<view wx:if="{{ item.taskType == 3 }}" class="list-item">
data-target="{{item}}"
<view class="progress">
class="btn {{item.taskStatus == 2 ? '' : 'primary'}}"
<view class="progress-line"></view>
>
<view class="progress-item"
{{item.taskStatus == 2 ? '查看' : '去执行'}}
style="width: {{ (item.audioReviewCompletedCount / item.audioReviewTotalCount * 100) + '%' }}"></view>
<view class="num">
{{ item.audioReviewCompletedCount + '/' + item.audioReviewTotalCount }}
</view>
</view>
</view>
</view>
</view>
</view>
</block>
<!-- 底部按钮 -->
<view class="btn-box">
<view bindtap="jump"
data-target="{{ item }}"
class="btn {{ item.taskStatus == 2 ? '' : 'primary' }}">
{{ item.taskStatus == 2 ? '查看' : '去执行' }}
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
</block>
<view class="list-nothing">到底了~</view>
<block wx:if="{{ nothing }}">
</block>
<view class="list-nothing">
</block>
到底了~
<block wx:else>
</view>
<empty-data />
</block>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
\ No newline at end of file
\ No newline at end of file
</scroll-view>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment