Commit 770f38d0 by zhangxw

专项带教和专项任务需求

1 parent 72c00d60
...@@ -92,5 +92,51 @@ module.exports = { ...@@ -92,5 +92,51 @@ module.exports = {
*/ */
getMentorRequireList(data) { getMentorRequireList(data) {
return api.post('dj.api.supervisor.mini.page.teachingRecords', data, [], '/rop-dj-supervisor-mini/router') return api.post('dj.api.supervisor.mini.page.teachingRecords', data, [], '/rop-dj-supervisor-mini/router')
},
/**
* 获取任务中心的专项带教任务列表数据
*/
getTaskCenterPageData(data) {
return api.post('dj.api.supervisor.mini.taskCenter.page', data, [], '/rop-dj-supervisor-mini/router')
},
/**
* 获取任务中心专项带教任务详情
*/
getTaskCenterDetail(data) {
return api.post('dj.api.supervisor.mini.taskCenter.getDetail',data, [], '/rop-dj-supervisor-mini/router')
},
/**
* 执行任务中心专项带教任务
*/
executeTaskCenter(data) {
return api.post('dj.api.supervisor.mini.taskCenter.execute',data, [], '/rop-dj-supervisor-mini/router')
},
/**
* 获取我发起的专项任务列表
*/
getSpecialTaskList(data) {
return api.post('dj.api.supervisor.mini.specialTask.page', data, [], '/rop-dj-supervisor-mini/router')
},
/**
* 发起专项任务
*/
createSpecialTask(data) {
return api.post('dj.api.supervisor.mini.specialTask.create', data, [], '/rop-dj-supervisor-mini/router')
},
// 获取门店配置的区域运营(D+平台)
getAreaOperatorList(data) {
return api.post('dj.api.supervisor.mini.list.regionOperator', data, [], '/rop-dj-supervisor-mini/router')
},
/**
* 获取专项任务详情
*/
getSpecialTaskDetail(data) {
return api.post('dj.api.supervisor.mini.specialTask.getDetail', data, [], '/rop-dj-supervisor-mini/router')
},
/**
* 获取我发起的专项任务统计数据
*/
getSpecialTaskCount(data) {
return api.post('dj.api.supervisor.mini.specialTask.count', data, [], '/rop-dj-supervisor-mini/router')
} }
} }
...@@ -63,6 +63,8 @@ ...@@ -63,6 +63,8 @@
"pages/weeklyReview/weeklyReview", "pages/weeklyReview/weeklyReview",
"pages/monthlyPlan/monthlyPlan", "pages/monthlyPlan/monthlyPlan",
"pages/specialTask/specialTask", "pages/specialTask/specialTask",
"pages/mySpecialTaskList/mySpecialTaskList",
"pages/specialTaskApply/specialTaskApply",
"pages/mentorRequirements/mentorRequirements", "pages/mentorRequirements/mentorRequirements",
"pages/caseAudioList/caseAudioList" "pages/caseAudioList/caseAudioList"
] ]
...@@ -75,7 +77,8 @@ ...@@ -75,7 +77,8 @@
"pages/storeTransfer/storeTransfer", "pages/storeTransfer/storeTransfer",
"pages/receptionRecording/receptionRecording", "pages/receptionRecording/receptionRecording",
"pages/recordingDetail/recordingDetail", "pages/recordingDetail/recordingDetail",
"pages/mentoring/mentoring" "pages/mentoring/mentoring",
"pages/specialMentoring/specialMentoring"
] ]
}, },
{ {
...@@ -118,4 +121,4 @@ ...@@ -118,4 +121,4 @@
"desc": "你的位置信息将用于小程序位置接口的效果展示" "desc": "你的位置信息将用于小程序位置接口的效果展示"
} }
} }
}
\ No newline at end of file \ No newline at end of file
}
{
"usingComponents": {
"van-icon": "@vant/weapp/icon/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"select-popup": "/components/selectPopup/selectPopup"
},
"navigationStyle": "custom"
}
/* packageCrew/pages/specialMentoring/specialMentoring.wxss */
page{
background: #F2F3F7;
}
.required {
color: #F24724;
margin-left: 8rpx;
}
.container {
height: 100vh;
box-sizing: border-box;
width: calc(100% - 48rpx);
margin: 0 24rpx;
.box {
border-radius: 32rpx;
background: #FFFFFF;
padding: 32rpx;
margin-bottom: 24rpx;
font-size: 28rpx;
&.padding-0 {
padding: 0;
}
.name {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16rpx;
.staff {
display: flex;
align-items: center;
font-size: 36rpx;
width: 100%;
color: #333333;
.staff-name {
max-width: calc(100% - 40rpx);
word-break: break-all;
}
.sex-icon {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-left: 12rpx;
}
}
}
.items {
display: flex;
flex-wrap: wrap;
column-gap: 24rpx;
row-gap: 18rpx;
.item {
width: 100%;
display: flex;
align-items: center;
font-size: 26rpx;
color: #79859E;
.label {
flex-shrink: 0;
}
}
.inline {
flex: 1;
min-width: 0;
.value {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.item-box {
height: 96rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32rpx;
border-bottom: 1rpx solid #eff0f2;
.label {
color: #292D33;
}
.value {
display: flex;
align-items: center;
justify-content: flex-end;
width: calc(100% - 158rpx);
.value-text {
text-align: right;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.placeholder {
color: #BEC1C7;
font-size: 28rpx;
}
.input {
text-align: right;
font-size: 28rpx;
padding: 16rpx 0;
width: 100%;
}
image {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
transform: rotate(-90deg);
}
}
.value_box {
display: flex;
align-items: center;
gap: 32rpx;
.radio-box {
display: flex;
align-items: center;
gap: 16rpx;
.radio-icon {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
}
.circle {
flex-shrink: 0;
width: 28rpx;
height: 28rpx;
border-radius: 50%;
border: 2rpx solid #d0d2d6;
}
.text {
color: #292D33;
font-size: 28rpx;
}
}
}
}
.multi-select {
padding: 0 32rpx;
border-bottom: 1rpx solid #eff0f2;
.multi-select__header {
height: 96rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.multi-select__label {
color: #292D33;
}
.multi-select__arrow {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
transform: rotate(-90deg);
}
.multi-select__body {
margin-bottom: 12rpx;
}
.multi-placeholder {
color: #BEC1C7;
font-size: 28rpx;
}
.multi-tags {
display: flex;
flex-wrap: wrap;
gap: 24rpx;
}
.multi-tag {
display: inline-flex;
align-items: center;
max-width: 100%;
padding: 0 20rpx;
height: 44rpx;
border-radius: 8rpx;
background: #F6F7F9;
border: 2rpx solid #E6E8EC;
box-sizing: border-box;
}
.multi-tag__text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 28rpx;
color: #292D33;
}
.multi-tag__close {
margin-left: 16rpx;
color: #999EA8;
font-size: 32rpx;
line-height: 1;
}
}
.remark_box {
height: 382rpx;
align-items: flex-start;
justify-content: flex-start;
flex-flow: column;
.label {
margin: 28rpx 0;
}
.textArea_box {
box-sizing: border-box;
width: 100%;
border-radius: 16rpx;
padding: 24rpx 24rpx 42rpx;
background: #FFFFFF;
border: 2rpx solid #eff0f2;
height: 262rpx;
position: relative;
font-size: 28rpx;
.textarea {
height: 100%;
width: 100%;
}
.currentWordNumber {
position: absolute;
right: 26rpx;
bottom: 8rpx;
color: #CCCCCC;
}
}
}
.image-box {
margin: 0 32rpx;
padding-bottom: 28rpx;
.label{
margin: 28rpx 0;
}
.upload_box{
display: flex;
flex-wrap: wrap;
gap: 28rpx;
.payVoucher_image{
flex-shrink: 0;
width: 192rpx;
height: 192rpx;
border-radius: 12rpx;
position: relative;
overflow: hidden;
image{
width: 100%;
height: 100%;
}
.del_icon{
width: 40rpx;
height: 40rpx;
position: absolute;
top: 16rpx;
right: 16rpx;
}
}
.upload-item {
width: 196rpx;
height: 196rpx;
border-radius: 12rpx;
background: #f5f5f7;
display: flex;
align-items: center;
justify-content: center;
flex-flow: column;
.icon-uploadAdd {
width: 40rpx;
height: 40rpx;
&.custom-icon-uploadAdd {
width: 100%;
height: 100%;
}
}
.upload-text {
margin-top: 16rpx;
color: #999EA8;
font-size: 24rpx;
}
}
}
}
}
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
.footer-btn {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: 100rpx;
background: #FFFFFF;
box-sizing: border-box;
display: flex;
align-items: center;
font-weight: 500;
z-index: 99;
.btn {
margin: 16rpx 32rpx;
width: calc(100% - 64rpx);
height: 88rpx;
text-align: center;
line-height: 88rpx;
background: #2C66F7;
border-radius: 24rpx;
font-size: 32rpx;
color: #FFFFFF;
font-weight: 500;
}
}
<!--packageCrew/pages/specialMentoring/specialMentoring.wxml-->
<glsx-privacy appletName="嘀加门店管理助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar bindnavbarReady="navbarReady"
class="navigation-header"
showBack="{{true}}"
bindback="back"
navStyle="background-color: transparent;box-shadow:none;">
<view class="page-title">
专项带教
</view>
</navigation-bar>
<scroll-view class="container" scroll-y show-scrollbar="{{false}}" enhanced style="padding-top: calc({{navBarHeight}}px + 8rpx);padding-bottom: {{!isCompleted ? (isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx') : '0'}};">
<view style="width: 100%;height: 8rpx;"></view>
<view class="box padding-0">
<block wx:for="{{formItems}}" wx:key="index">
<block wx:if="{{!item.hide}}">
<view class="multi-select" wx:if="{{item.type == 'select' && item.selectMultiple}}" data-item="{{item}}">
<view class="multi-select__header">
<view class="multi-select__label">{{item.label}}<text class='required'>*</text></view>
<view bindtap="chooseSelect" data-item="{{item}}" style="display: flex;align-items: center;">
<text class="multi-placeholder" wx:if="{{!isCompleted && !lockedFields[item.value]}}">点击选择(可多选)</text>
<image wx:if="{{!isCompleted && !lockedFields[item.value]}}" class="multi-select__arrow" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="aspectFit" />
</view>
</view>
<view class="multi-select__body" wx:if="{{orderObj[item.value] && orderObj[item.value].length}}">
<view class="multi-tags">
<block wx:for="{{orderObj[item.value]}}" wx:for-item="tag" wx:key="tagIndex" wx:for-index="tagIndex">
<view class="multi-tag">
<text class="multi-tag__text" style="max-width: {{(isCompleted || lockedFields[item.value]) ? '100%' : 'calc(100% - 36rpx)'}};">{{tag[item.itemName]}}</text>
<text class="multi-tag__close" wx:if="{{!isCompleted && !lockedFields[item.value]}}" catchtap="removeMultiSelected" data-field="{{item.value}}" data-index="{{tagIndex}}">×</text>
</view>
</block>
</view>
</view>
</view>
<view class="item-box" wx:else>
<view class="label">{{item.label}}<text class='required'>*</text></view>
<view wx:if="{{item.type == 'select'}}" class="value" bindtap="chooseSelect" data-item="{{item}}">
<block wx:if="{{orderObj[item.valueText]}}">
<text class="value-text">{{orderObj[item.valueText]}}</text>
</block>
<block wx:else>
<text wx:if="{{!isCompleted && !lockedFields[item.value]}}" class="placeholder">点击选择</text>
<text wx:else class="placeholder">-</text>
</block>
<image wx:if="{{!isCompleted && !lockedFields[item.value]}}" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
<view class="value_box" wx:elif="{{item.type == 'radio'}}">
<view class="radio-box" wx:for="{{teaching_scene_list}}" wx:for-item="subItem" wx:for-index="subIndex" wx:key="subIndex" bindtap="changeScene" data-value="{{subItem.itemValue}}">
<image wx:if="{{orderObj.teachingSceneCode == subItem.itemValue}}" class="radio-icon" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/radio-checked.png" mode=""/>
<view wx:else class="circle"></view>
<view class="text">{{subItem.itemName}}</view>
</view>
</view>
<view wx:else class="value" bindtap="chooseTime">
<text wx:if="{{orderObj[item.value]}}" class="value-text">{{orderObj[item.value]}}</text>
<block wx:else>
<text wx:if="{{!isCompleted && !lockedFields[item.value]}}" class="placeholder">点击选择</text>
<text wx:else class="placeholder">-</text>
</block>
<image wx:if="{{!isCompleted && !lockedFields[item.value]}}" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
</view>
</block>
</block>
<view class="item-box remark_box">
<view class="label">带教内容摘要<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{isCompleted || lockedFields.assigneeDetail}}" value="{{ orderObj.assigneeDetail }}" maxlength="1000" placeholder="请输入" class="textarea" bindinput="assigneeDetailInput" />
<view class="currentWordNumber">{{assigneeDetailLength || 0}} / 1000</view>
</view>
</view>
<view class="image-box">
<view class="label">带教照片佐证<text class='required'>*</text></view>
<view class="upload_box">
<block wx:if="{{orderObj.assigneeImages.length > 0}}">
<view class="payVoucher_image" wx:for="{{orderObj.assigneeImages}}" wx:key="index">
<image bindtap="previewImage" data-index="{{index}}" data-url="{{orderObj.assigneeImages}}" src="{{item.imageUrl}}"/>
<image class="del_icon" wx:if="{{!isCompleted && !lockedFields.assigneeImages}}" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/zy_paf_del_icon.png" mode="" bindtap="delPhoto" data-index="{{index}}"/>
</view>
</block>
<block wx:if="{{orderObj.assigneeImages.length < 9 && !isCompleted && !lockedFields.assigneeImages}}">
<view class="upload-item" bindtap="handleImageUpload">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/{{item.uploadIcon || 'zy-upload_icon.png'}}" class="icon-uploadAdd {{item.uploadIcon ? 'custom-icon-uploadAdd' : ''}}"></image>
<view class="upload-text">
{{orderObj.assigneeImages.length + '/' + 9}}
</view>
</view>
</block>
</view>
</view>
</view>
<view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>
<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{!isCompleted}}">
<view class="btn" bindtap="submit">提交</view>
</view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{selectMultiple}}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" labelKey="{{labelKey}}" valueKey="{{valueKey}}" height="{{selectPopupHeight}}" title="{{selectTitle}}" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>
<popup bindcancel="cancel" bindconfirm="confirm" wx:if="{{dateShow}}" show="{{dateShow}}" title="时间选择" height="60vh">
<van-datetime-picker id="datePicker" show-toolbar="{{false}}" model:value="{{ currentDate }}" bind:change="onChange" bind:input="onInput" />
</popup>
import api from '~/api/index/index'
import dayjs from 'dayjs'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
Page({
data: {
IMG_URL,
navBarHeight: 84,
statusMap: {
0: { name: '待完成', color: '#2C66F7', background: '#2c66f71a' },
1: { name: '已完成', color: '#35C376', background: '#35c3761a' }
},
list: [],
total: 0,
pageNum: 1,
pageSize: 10,
nothing: false,
flag: false
},
navbarReady(e) {
const navBarHeight = e.detail?.height
if (!navBarHeight) return
this.setData({ navBarHeight })
},
onLoad() {
this.reload()
},
onShow() {},
reload() {
this.setData(
{
list: [],
total: 0,
pageNum: 1,
nothing: false,
flag: false
},
() => {
this.getList(true)
}
)
},
onBottom() {
this.getList()
},
getList(reload) {
const { pageNum, pageSize, nothing } = this.data
if (nothing) return
const params = {
pageNum,
pageSize
}
wx.$util.showLoading()
api
.getSpecialTaskList(params)
.then(res => {
wx.$util.hideLoading()
const { code, data, message } = res || {}
if (code != 0) {
wx.$util.showToast(message || '加载失败')
this.setData({ flag: true })
return
}
const pageList = Array.isArray(data?.list) ? data.list : []
pageList.forEach(val => {
val.completeTime = val.completeTime ? dayjs(val.completeTime).format('YYYY-MM-DD HH:mm:ss') : ''
})
const nextList = reload ? pageList : this.data.list.concat(pageList)
const total = data?.total || 0
const isNothing = pageNum == data?.pages
this.setData({
list: nextList,
total,
pageNum: pageNum + 1,
nothing: !!isNothing,
flag: true
})
})
.catch(() => {
wx.$util.hideLoading()
this.setData({ flag: true })
})
},
viewDetail(e) {
const item = e.currentTarget?.dataset?.item || {}
wx.navigateTo({
url: `/packageIndex/pages/specialTaskApply/specialTaskApply?id=${item.id}`
})
},
goCreate() {
wx.navigateTo({
url: '/packageIndex/pages/specialTaskApply/specialTaskApply'
})
},
back() {
wx.navigateBack()
}
})
{
"usingComponents": {},
"navigationStyle": "custom"
}
page {
background: #F2F3F7;
}
.page-title {
font-size: var(--fontSize34);
color: #222222;
font-weight: 600;
}
.container {
height: 100vh;
box-sizing: border-box;
}
.count {
padding: 16rpx 24rpx;
font-size: 24rpx;
color: #999999;
}
.list {
padding: 0 24rpx 24rpx;
box-sizing: border-box;
}
.item {
border-radius: 24rpx;
background: #FFFFFF;
padding: 24rpx;
margin-bottom: 24rpx;
box-sizing: border-box;
}
.item-top {
display: flex;
align-items: center;
}
.status {
font-size: 22rpx;
padding: 8rpx 12rpx;
border-radius: 8rpx;
flex-shrink: 0;
}
.name {
margin-left: 12rpx;
font-size: 28rpx;
font-weight: 500;
color: #222222;
flex: 1 1 auto;
min-width: 0;
}
.btn {
flex: 0 0 auto;
text-align: center;
padding: 12rpx 34rpx;
border-radius: 60rpx;
color: #2C66F7;
font-size: 26rpx;
font-weight: 500;
background: #2c66f71a;
box-sizing: border-box;
}
.item-actions {
margin-top: 24rpx;
display: flex;
justify-content: flex-end;
}
.row {
margin-top: 24rpx;
display: flex;
align-items: center;
font-size: 24rpx;
color: #999999;
}
.icon {
margin-right: 8rpx;
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
}
.label {
flex: 0 0 auto;
}
.value {
flex: 1 1 auto;
min-width: 0;
}
.list-nothing {
text-align: center;
color: #999999;
font-size: 24rpx;
padding: 24rpx 0;
}
<navigation-bar
bindnavbarReady="navbarReady"
class="navigation-header"
showBack
bindback="back"
navStyle="background-color: #FFFFFF;box-shadow:none;"
>
<view class="page-title">我发起的专项任务</view>
</navigation-bar>
<scroll-view
scroll-y
class="container"
enhanced="{{true}}"
show-scrollbar="{{false}}"
style="padding-top: {{navBarHeight}}px;padding-bottom: 40rpx;"
bindscrolltolower="onBottom"
>
<view class="count">共{{ total || 0 }}条任务</view>
<view class="list">
<block wx:for="{{ list }}" wx:key="id">
<view class="item">
<view class="item-top">
<view
class="status text-center"
style="color: {{statusMap[item.taskStatus].color}}; background-color: {{statusMap[item.taskStatus].background}};"
>
{{statusMap[item.taskStatus].name}}
</view>
<view class="name text-hide">{{ item.categoryName || '-' }}</view>
</view>
<view class="row" wx:if="{{ item.merchantName }}">
<image class="icon" src="{{IMG_URL}}special-task-merchant.png" mode="" />
<view class="label">归属门店:</view>
<view class="value text-hide">{{ item.merchantName }}</view>
</view>
<view class="row" wx:if="{{ item.regionOperatorName }}">
<image class="icon" src="{{IMG_URL}}special-task-staff.png" mode="" />
<view class="label">指定区域运营:</view>
<view class="value text-hide">{{ item.regionOperatorName || '-' }}</view>
</view>
<view class="row" wx:if="{{ item.taskStatus == 1 }}">
<image class="icon" src="{{IMG_URL}}time-icon.png" mode="" />
<view class="label">完成时间:</view>
<view class="value">{{ item.completeTime || '-' }}</view>
</view>
<view class="item-actions">
<view class="btn" bindtap="viewDetail" data-item="{{ item }}">查看</view>
</view>
</view>
</block>
<view class="list-nothing" wx:if="{{ nothing && list.length }}">到底了~</view>
<empty-data wx:if="{{ flag && !list.length }}" />
</view>
</scroll-view>
{
"usingComponents": {
"select-popup": "/components/selectPopup/selectPopup"
},
"navigationStyle": "custom"
}
page {
background: #F2F3F7;
}
.page-title {
font-size: var(--fontSize34);
color: #222222;
font-weight: 600;
}
.required {
color: #F24724;
margin-left: 8rpx;
}
.container {
height: 100vh;
box-sizing: border-box;
width: calc(100% - 48rpx);
margin: 0 24rpx;
}
.box {
border-radius: 32rpx;
background: #FFFFFF;
padding: 32rpx;
margin-bottom: 24rpx;
font-size: 28rpx;
&.padding-0 {
padding: 0;
}
}
.item-box {
height: 96rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32rpx;
border-bottom: 1rpx solid #eff0f2;
box-sizing: border-box;
.label {
color: #292D33;
flex: 0 0 auto;
}
.value {
display: flex;
align-items: center;
justify-content: flex-end;
width: calc(100% - 158rpx);
min-width: 0;
image {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
transform: rotate(-90deg)
}
}
.value-text {
text-align: right;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #292D33;
}
.placeholder {
color: #BEC1C7;
font-size: 28rpx;
}
}
.value_box {
flex: 1 1 auto;
min-width: 0;
display: flex;
justify-content: flex-end;
gap: 24rpx;
.radio-box {
display: flex;
align-items: center;
gap: 10rpx;
.radio-icon {
width: 32rpx;
height: 32rpx;
}
.circle {
width: 28rpx;
height: 28rpx;
border-radius: 50%;
border: 2rpx solid #D9DDE3;
box-sizing: border-box;
}
.text {
color: #292D33;
font-size: 28rpx;
}
}
}
.multi-select {
padding: 0 32rpx;
border-bottom: 1rpx solid #eff0f2;
.multi-select__header {
height: 96rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.multi-select__label {
color: #292D33;
}
.multi-select__arrow {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
transform: rotate(-90deg);
}
.multi-select__body {
margin-bottom: 12rpx;
}
.multi-placeholder {
color: #BEC1C7;
font-size: 28rpx;
}
}
.multi-tags {
display: flex;
flex-wrap: wrap;
gap: 24rpx;
}
.multi-tag {
display: inline-flex;
align-items: center;
max-width: 100%;
padding: 0 12rpx;
height: 44rpx;
border-radius: 8rpx;
background: #F6F7F9;
border: 2rpx solid #E6E8EC;
box-sizing: border-box;
}
.multi-tag__text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 28rpx;
color: #292D33;
}
.multi-tag__close {
margin-left: 16rpx;
color: #999EA8;
font-size: 32rpx;
line-height: 1;
}
.remark_box {
height: 382rpx;
align-items: flex-start;
justify-content: flex-start;
flex-flow: column;
border-bottom: none;
.label {
margin: 28rpx 0;
width: 100%;
}
.textArea_box {
box-sizing: border-box;
width: 100%;
border-radius: 16rpx;
padding: 24rpx 24rpx 42rpx;
background: #FFFFFF;
border: 2rpx solid #eff0f2;
height: 262rpx;
position: relative;
font-size: 28rpx;
.textarea {
height: 100%;
width: 100%;
}
.currentWordNumber {
position: absolute;
right: 26rpx;
bottom: 8rpx;
color: #CCCCCC;
}
}
}
.footer-btn {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: 100rpx;
background: #FFFFFF;
box-sizing: border-box;
display: flex;
align-items: center;
font-weight: 500;
z-index: 99;
.btn {
margin: 16rpx 32rpx;
width: calc(100% - 64rpx);
height: 88rpx;
text-align: center;
line-height: 88rpx;
background: #2C66F7;
border-radius: 24rpx;
font-size: 32rpx;
color: #FFFFFF;
font-weight: 500;
}
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
<glsx-privacy appletName="嘀加门店管理助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar
bindnavbarReady="navbarReady"
class="navigation-header"
showBack="{{true}}"
bindback="back"
navStyle="background-color: transparent;box-shadow:none;"
>
<view class="page-title">{{ pageTitle }}</view>
</navigation-bar>
<scroll-view
class="container"
scroll-y
show-scrollbar="{{false}}"
enhanced
style="padding-top: calc({{navBarHeight}}px + 8rpx);padding-bottom: {{ readonly ? '0' : (isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx') }};"
>
<view style="width: 100%;height: 8rpx;"></view>
<view class="box padding-0">
<view class="item-box" bindtap="openbizType">
<view class="label">任务类型<text class="required">*</text></view>
<view class="value">
<text wx:if="{{ form.categoryName }}" class="value-text">{{ form.categoryName }}</text>
<text wx:else class="placeholder">点击选择</text>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="" />
</view>
</view>
<view class="item-box" bindtap="openMerchant">
<view class="label">归属门店<text class="required">*</text></view>
<view class="value">
<text wx:if="{{ form.merchantName }}" class="value-text">{{ form.merchantName }}</text>
<text wx:else class="placeholder">点击选择</text>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="" />
</view>
</view>
<view class="item-box">
<view class="label">归属业务<text class="required">*</text></view>
<view class="value_box">
<view class="radio-box" wx:for="{{ businessList }}" wx:key="value" bindtap="changeBusiness" data-value="{{ item.value }}">
<image wx:if="{{ form.businessType == item.value }}" class="radio-icon" src="{{IMG_URL}}radio-checked.png" mode="" />
<view wx:else class="circle" style="background: {{readonly ? '#EEE' : ''}};"></view>
<view class="text">{{ item.label }}</view>
</view>
</view>
</view>
<view class="multi-select" wx:if="{{ form.bizType == 'staff-replace-access' }}">
<view class="multi-select__header">
<view class="multi-select__label">问题驻店销售<text class="required">*</text></view>
<view bindtap="openProblemSales" style="display: flex;align-items: center;">
<text class="multi-placeholder" wx:if="{{ !readonly }}">点击选择(可多选)</text>
<image class="multi-select__arrow" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="aspectFit" />
</view>
</view>
<view class="multi-select__body" wx:if="{{ form.problemStaffList && form.problemStaffList.length }}">
<view class="multi-tags">
<block wx:for="{{ form.problemStaffList }}" wx:key="phone">
<view class="multi-tag">
<text class="multi-tag__text" style="max-width: {{ readonly ? '100%' : 'calc(100% - 36rpx)'}};">{{ item.name || item.staffName || item.participantName || '-' }}</text>
<text class="multi-tag__close" wx:if="{{ !readonly }}" catchtap="removeProblemSales" data-index="{{ index }}">×</text>
</view>
</block>
</view>
</view>
</view>
<view class="item-box" bindtap="openOperator">
<view class="label">指定区域运营<text class="required">*</text></view>
<view class="value">
<text wx:if="{{ form.regionOperatorName }}" class="value-text">{{ form.regionOperatorName }}</text>
<text wx:else class="placeholder">点击选择</text>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="" />
</view>
</view>
<view class="item-box remark_box">
<view class="label">任务事项描述<text class="required">*</text></view>
<view class="textArea_box">
<textarea
placeholder-style="color: #999EA8;"
disabled="{{ readonly }}"
value="{{ form.description }}"
maxlength="500"
placeholder="请输入"
class="textarea"
bindinput="descriptionInput"
/>
<view class="currentWordNumber">{{ descriptionLength || 0 }} / 500</view>
</view>
</view>
</view>
<view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>
<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{ !readonly }}">
<view class="btn" bindtap="submit">提交</view>
</view>
<select-popup
show="{{ showSelectPopup }}"
options="{{ selectOptions }}"
multiple="{{ selectMultiple }}"
values="{{ selectValues }}"
value="{{ selectValue }}"
bindconfirm="handlePopupConfirm"
bindcancel="hideSelectPopup"
labelKey="{{ labelKey }}"
valueKey="{{ valueKey }}"
height="{{ selectPopupHeight }}"
title="{{ selectTitle }}"
allowSearch="{{ allowSearch }}"
/>
...@@ -73,12 +73,53 @@ page { ...@@ -73,12 +73,53 @@ page {
} }
} }
} }
.count-row {
display: flex;
align-items: center;
justify-content: space-between;
background: #F2F3F7;
padding: 16rpx 24rpx;
}
.number { .number {
height: 30rpx; height: 30rpx;
font-size: 24rpx; font-size: 24rpx;
color: #999999; color: #999999;
background: #F2F3F7; }
padding: 16rpx 24rpx;
.sub-tab {
display: flex;
align-items: center;
gap: 24rpx;
padding: 8rpx;
border-radius: 16rpx;
background: #FFFFFF;
}
.center-switch {
display: flex;
align-items: center;
padding: 4rpx 8rpx;
border-radius: 8rpx;
&.active {
background: #E7EDFE;
}
}
.center-switch__text {
font-size: 26rpx;
color: #292D33;
&.active {
color: #2C66F7;
font-weight: 600;
}
}
.center-switch__icon {
font-size: 26rpx;
color: #BEC1C7;
line-height: 1;
margin: 0 6rpx;
} }
.content-box { .content-box {
padding: 0 24rpx; padding: 0 24rpx;
...@@ -232,4 +273,4 @@ page { ...@@ -232,4 +273,4 @@ page {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
} }
}
\ No newline at end of file \ No newline at end of file
}
...@@ -12,6 +12,11 @@ Page({ ...@@ -12,6 +12,11 @@ Page({
navStyle: 'background-color: rgba(0,0,0,0);box-shadow:none;', navStyle: 'background-color: rgba(0,0,0,0);box-shadow:none;',
isForbidden: false isForbidden: false
}, },
goMySpecialTask() {
wx.navigateTo({
url: '/packageIndex/pages/mySpecialTaskList/mySpecialTaskList'
})
},
jump(e) { jump(e) {
let { let {
url url
...@@ -109,4 +114,4 @@ Page({ ...@@ -109,4 +114,4 @@ Page({
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { }, onReachBottom: function () { },
})
\ No newline at end of file \ No newline at end of file
})
...@@ -19,12 +19,20 @@ ...@@ -19,12 +19,20 @@
</view> </view>
</view> </view>
<view class="set_box"> <view class="set_box">
<view class="set_item" bindtap="goMySpecialTask">
<image class="icon" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/special-task-icon.png" mode=""/>
<view class="right">
<view class="title">我发起的专项任务</view>
<view class="set_tips"></view>
<image class="icon_image" src="{{IMG_URL}}arrow-left.png" mode="" />
</view>
</view>
<view class="set_item " bindtap="jump" data-url="agreement"> <view class="set_item " bindtap="jump" data-url="agreement">
<image class="icon" src="{{IMG_URL}}user-agreement.png" mode=""/> <image class="icon" src="{{IMG_URL}}user-agreement.png" mode=""/>
<view class="right"> <view class="right">
<view class="title">用户协议</view> <view class="title">用户协议</view>
<view class="set_tips"></view> <view class="set_tips"></view>
<image class="icon_image" src="./images/right.png" mode="" /> <image class="icon_image" src="{{IMG_URL}}arrow-left.png" mode="" />
</view> </view>
</view> </view>
<view class="set_item " bindtap="jump" data-url="privacy"> <view class="set_item " bindtap="jump" data-url="privacy">
...@@ -32,7 +40,7 @@ ...@@ -32,7 +40,7 @@
<view class="right"> <view class="right">
<view class="title">隐私协议</view> <view class="title">隐私协议</view>
<view class="set_tips"></view> <view class="set_tips"></view>
<image class="icon_image" src="./images/right.png" mode="" /> <image class="icon_image" src="{{IMG_URL}}arrow-left.png" mode="" />
</view> </view>
</view> </view>
<!-- <view class="set_item " bindtap="goVersionPage"> <!-- <view class="set_item " bindtap="goVersionPage">
......
...@@ -266,7 +266,8 @@ export const checkScene = options => { ...@@ -266,7 +266,8 @@ export const checkScene = options => {
'recruitDetail': 'packageEquity/pages/recruitManage/recruitDetail/recruitDetail', 'recruitDetail': 'packageEquity/pages/recruitManage/recruitDetail/recruitDetail',
'performanceRate': 'packageWorkspace/pages/performanceRating/rateList/retaList', 'performanceRate': 'packageWorkspace/pages/performanceRating/rateList/retaList',
'validReferralCount': 'packageWorkspace/pages/validReferralCount/referralCountList/referralCountList', 'validReferralCount': 'packageWorkspace/pages/validReferralCount/referralCountList/referralCountList',
'orderApprovalDetail': '/packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail' 'orderApprovalDetail': '/packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail',
'supervisorIndex': 'pages/tab/index/index'
} }
options.path = pagePath[query.page] options.path = pagePath[query.page]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!