Commit 17408bb5 by zhangxw

修改

1 parent 610399e6
Showing 34 changed files with 896 additions and 29 deletions
...@@ -76,7 +76,9 @@ ...@@ -76,7 +76,9 @@
"pages/recruitManage/recruitResult/recruitResult", "pages/recruitManage/recruitResult/recruitResult",
"pages/recruitManage/recruitManage/recruitManage", "pages/recruitManage/recruitManage/recruitManage",
"pages/supervisorDaily/supervisorDaily", "pages/supervisorDaily/supervisorDaily",
"pages/talentAnalysis/talentAnalysis" "pages/talentAnalysis/talentAnalysis",
"pages/carBrands/carBrands",
"pages/carSeries/carSeries"
] ]
}, },
{ {
......
...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 1 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion const envName = accountInfo.miniProgram.envVersion
......
// packageEquity/pages/aiCheck/chat/chat.js // packageEquity/pages/aiCheck/chat/chat.js
import carLifeApi from "../../../carEquityApi"; import carLifeApi from "~/packageStudy/studyApi";
import api from '~/api/api.js' import api from '~/api/api.js'
const VOICE = { const VOICE = {
1: "zhifeng_emo", 1: "zhifeng_emo",
...@@ -11,7 +11,7 @@ const VOICE = { ...@@ -11,7 +11,7 @@ const VOICE = {
}; };
let timer = null; let timer = null;
let duration = 0; let duration = 0;
import aiApi from "../../../aiApi"; import aiApi from "~/packageStudy/aiApi";
const linkChainList = [{ const linkChainList = [{
id: 1, id: 1,
name: "接待", name: "接待",
......
/* packageStudy/pages/aiCheck/chat/chat.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ const formatTime = require("~/utils/aliyun/util").formatTime ...@@ -10,7 +10,7 @@ const formatTime = require("~/utils/aliyun/util").formatTime
const fs = wx.getFileSystemManager() const fs = wx.getFileSystemManager()
import getSignature from '../../upload/signature' import getSignature from '../../upload/signature'
import uploadFile from '../../upload/uploadFile' import uploadFile from '../../upload/uploadFile'
import aiApi from "../../../../aiApi"; import aiApi from "~/packageStudy/aiApi";
import { import {
speechEmoji, speechEmoji,
soundEmoji, soundEmoji,
......
// packageEquity/pages/aiCheck/defense/defense.js // packageEquity/pages/aiCheck/defense/defense.js
// import { defenseData, typeList } from './constants/data' // import { defenseData, typeList } from './constants/data'
import carLifeApi from '../../../carEquityApi' import carLifeApi from '~/packageStudy/studyApi'
import { import {
setConfigInfo setConfigInfo
} from "~/store/index"; } from "~/store/index";
......
// packageEquity/pages/aiCheck/result/result.js // packageEquity/pages/aiCheck/result/result.js
var wxCharts = require("../../../../utils/wxcharts"); var wxCharts = require("../../../../utils/wxcharts");
import aiApi from "../../../aiApi"; import aiApi from "~/packageStudy/aiApi";
import carLifeApi from "../../../carEquityApi"; import carLifeApi from "~/packageStudy/studyApi";
var windowW = 0; var windowW = 0;
import { import {
speechEmoji, speechEmoji,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @LastEditTime: 2024-10-22 15:33:21 * @LastEditTime: 2024-10-22 15:33:21
*/ */
// packageEquity/pages/aiCheck/scene/scene.js // packageEquity/pages/aiCheck/scene/scene.js
import carLifeApi from '../../../carEquityApi' import carLifeApi from '~/packageStudy/studyApi'
import { import {
setConfigInfo setConfigInfo
} from "~/store/index"; } from "~/store/index";
......
// packageEquity/pages/aiCheck/start/components/RecordList.js // packageEquity/pages/aiCheck/start/components/RecordList.js
import aiApi from '../../../../../aiApi' import aiApi from '~/packageStudy/aiApi'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
* @LastEditTime: 2024-10-22 15:22:57 * @LastEditTime: 2024-10-22 15:22:57
*/ */
// packageEquity/pages/aiCheck/start/components/introduction.js // packageEquity/pages/aiCheck/start/components/introduction.js
import aiApi from "../../../../../aiApi" import aiApi from "~/packageStudy/aiApi"
import util from "../../../../../../utils/util" import util from "~/utils/util"
Component({ Component({
lifetimes: { lifetimes: {
attached: function () { attached: function () {
......
import base64 from "./base64.js"; import base64 from "./base64.js";
import Crypto from "./crypto.js"; import Crypto from "./crypto.js";
import aiApi from "../../../aiApi"; import aiApi from "~/packageStudy/aiApi";
import config from './config' import config from './config'
const getPolicyBase64 = function () { const getPolicyBase64 = function () {
let date = new Date(); let date = new Date();
......
// packageEquity/pages/carEquity/carBrands/carBrands.js
import carLifeApi from '~/packageWorkspace/workspaceApi'
Page({
/**
* 页面的初始数据
*/
data: {
inputHeight: 0,
searchValue: '',
scrollTop: 0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.$util.getViewInfo('#search-input', res => {
this.setData({
inputHeight: res.height
})
})
if (options.level == 2) this.level = 2
carLifeApi.getCarBrandList().then(res => {
// this.setLocalStorage('wx_scrm_car_brand_list', carInfo)
const carInfo = res.data
this.formatData(carInfo)
})
},
formatData(data) {
let letterList = Array.from(new Set([...data.map(e => e.letter)])),
brandList = letterList.map(e => {
let list = []
data.map(i => {
if (e === i.letter) {
list.push(i)
}
})
return {
letter: e,
list
}
})
this.setCarData(brandList)
},
setCarData(brandList) {
wx.$util.showLoading('加载中...')
let count = 0
let settime = setInterval(() => {
if (null != brandList[count].list && brandList[count].list.length > 0)
this.setData({
[`brandList[${count}]`]: brandList[count]
})
count++
if (count >= brandList.length) {
wx.hideLoading()
clearInterval(settime)
this.getLetter()
}
}, 10)
},
getLetter() {
wx.hideLoading()
let {
brandList,
letter
} = this.data
let arr = []
if (brandList.length > 0) {
brandList.forEach(e => {
arr.push(e.letter)
})
this.setData({
arr,
letter,
flag: true
})
}
setTimeout(() => {
this.getSideBarInfo()
}, 500)
},
getSideBarInfo() {
let _this = this
wx.$util.getViewInfo('#letter-A', res => {
wx.$util.getViewInfo('#side-bar', _res => {
_this.setData({
letterHeight: res.height,
toTop: res.height + _res.top,
height: _res.bottom
})
})
})
},
start(e) {
let {
letter
} = e.target.dataset
this.setData({
showTip: true,
letter
})
},
move(e) {
let {
letterHeight,
showTip,
height,
toTop,
arr
} = this.data
let {
y,
num,
isNum
} = this
if (showTip) {
y = e.touches[0].clientY
num = Math.ceil((y - toTop) / letterHeight)
if (num < 0) num = 0
if (y < height && isNum != num) {
clearTimeout(this.time)
isNum = num
this.time = setTimeout(() => {
this.setData({
letter: arr[num]
})
}, 1000 / 60)
}
}
},
end(e) {
clearTimeout(this.time)
this.setData({
showTip: false
})
},
showCarSeries(e) {
const {
level
} = this
let {
item
} = e.currentTarget.dataset,
brandInfo = {
vehicleBrandId: item.id,
vehicleBrandName: item.name
}
if (item.childs && item.childs.length) {
if (level) {
this.setData({
carSeriesList: item.childs
})
return
}
wx.$router.go('carSeries', {
brandInfo,
list: item.childs,
})
} else this.showToast('暂无该品牌车系')
},
cancel() {
this.setData({
carSeriesList: []
})
},
choose(e) {
const {
item
} = e.currentTarget.dataset
wx.$router.back(page => {
page.changeCarBrand && page.changeCarBrand(item)
})
},
scroll(e) {
this.setData({
scrollTop: e.detail.scrollTop
})
},
search(e) {
try {
let {
value
} = e.detail, {
brandList
} = this.data
brandList.map(i => {
i.list.map(k => {
if (k.name.includes(value)) throw k.id
})
})
} catch (id) {
this.setData({
letter: `brand-${id}`,
})
setTimeout(() => {
let {
scrollTop
} = this.data
this.setData({
scrollTopNum: scrollTop - 32
})
}, 200)
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
// onShareAppMessage() {}
})
\ No newline at end of file \ No newline at end of file
{
"navigationBarTitleText": "选择品牌",
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<!--packageEquity/pages/carEquity/carBrands/carBrands.wxml-->
<view class="car-brands-box">
<view class="car-brands">
<search-input bindsearch="search" value="{{searchValue}}" id="search-input" />
<scroll-view style="height:calc(100vh - {{inputHeight}}px);" scroll-y scroll-into-view="{{letter}}" scroll-top="{{scrollTopNum}}" bindscroll="scroll">
<block wx:if="{{flag}}">
<block wx:if="{{brandList.length}}">
<block wx:for="{{brandList}}" wx:key="index">
<view id="{{item.letter}}">
<view class="title car-y-center">{{item.letter}}</view>
<view class="box">
<block wx:for="{{item.list}}" wx:for-item="i" wx:key="ind" wx:for-index="ind">
<view class="brands" catchtap="showCarSeries" data-item="{{i}}" id="brand-{{i.id}}">
<view class="list car-y-center">
<image src="{{i.logoUrl}}" class="icon" />
{{i.name}}
</view>
</view>
</block>
</view>
</view>
</block>
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</block>
</scroll-view>
<view class="side-bar" id="side-bar">
<block wx:for="{{brandList}}" wx:key="index">
<view data-letter="{{item.letter}}" class="view {{item.active?'active':''}}" capture-catch:touchstart="start" id="letter-{{item.letter}}" data-index="{{index}}" capture-catch:touchmove="move" capture-catch:touchend="end">{{item.letter}}
</view>
</block>
</view>
<!-- 提示 -->
<view class='tips' hidden='{{!showTip}}'>{{letter}}</view>
</view>
<block wx:if="{{carSeriesList.length}}">
<view class="car-type-box">
<view class="bg" bindtap="cancel" ></view>
<view class="brands-box">
<block wx:for="{{carSeriesList}}" wx:key="index">
<view class="title" bindtap="choose" data-item="{{item}}">{{item.name}}
</view>
</block>
</view>
</view>
</block>
</view>
/* packageEquity/pages/carEquity/carBrands/carBrands.wxss */
.car-y-center {
display: flex;
align-items: center;
transform: translateY(0);
}
.car-brands-box {
width: 100%;
height: 100vh;
}
.car-brands {
height: 100%;
position: relative;
}
.car-brands .title {
position: sticky;
top: 0;
z-index: 2;
background: #F7F8FA;
font-size: var(--fontSize24);
color: #323233;
padding-left: var(--fontSize32);
height: var(--fontSize64);
line-height: var(--fontSize64);
}
.list {
height: var(--fontSize110);
padding: 0 var(--fontSize32);
font-weight: 500;
background-color: #fff;
}
.list::after {
position: absolute;
box-sizing: border-box;
content: ' ';
pointer-events: none;
right: var(--fontSize32);
bottom: 0;
left: var(--fontSize32);
border-bottom: var(--fontSize1) solid #ebedf0;
}
.list .icon{
width: var(--fontSize68);
height: var(--fontSize68);
margin-right: var(--fontSize8);
}
.side-bar {
z-index: 999;
position: absolute;
top: 50%;
transform: translateY(-50%);
color: #4c4c4c;
width: 10%;
opacity: 0;
animation: show-side-bar .5s forwards;
}
@keyframes show-side-bar {
0% {
opacity: 0;
right: -100%;
}
100% {
opacity: 1;
right: 0;
}
}
.side-bar .view {
width: 100%;
text-align: center;
}
.tips {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: var(--fontSize140);
height: var(--fontSize140);
border-radius: 50%;
color: #fff;
background: rgba(153, 153, 153, 0.7);
z-index: 9999;
font-size: var(--fontSize60);
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
}
.nothing {
padding: var(--fontSize100);
text-align: center;
color: #999;
}
@keyframes move {
from {
right: -60.5%;
}
to {
right: 0;
}
}
@media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
.side-bar{
font-size: var(--fontSize18);
}
}
.car-type-box {
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
font-size: 28rpx;
color: #333;
z-index: 9999;
}
.car-type-box .bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}
.car-type-box .brands-box {
position: absolute;
top: 0;
right: 0;
width: 60.5%;
height: 100%;
overflow-y: scroll;
background: #fff;
-webkit-overflow-scrolling: touch;
animation: move 0.4s;
box-sizing: border-box;
padding-bottom: 40rpx;
}
.car-type-box .title {
width: 100%;
height: 108rpx;
line-height: 108rpx;
box-sizing: border-box;
padding-left: 32rpx;
color: #969799;
background: #F7F8FA;
}
.car-type-box .brands-box .brands-list {
width: 100%;
box-sizing: border-box;
padding-left: 32rpx;
border-bottom: 1rpx solid #e9e9e9;
animation: show-car-type .25s forwards;
}
@keyframes show-car-type{
0%{
min-height: 0;
opacity: 0;
}
100%{
min-height: 100rpx;
opacity: 1;
}
}
\ No newline at end of file \ No newline at end of file
// packageEquity/pages/carEquity/carSeries/carSeries.js
import carLifeApi from '~/packageWorkspace/workspaceApi'
Page({
/**
* 页面的初始数据
*/
data: {},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.$router.getData(res => {
this.setData(res)
wx.setNavigationBarTitle({
title: res.brandInfo.vehicleBrandName || ''
})
res.list.map((e, index) => {
this.getCarSeriesList(e, {
index,
brandId: res.brandInfo.vehicleBrandId
})
})
})
},
getCarSeriesList(e, { index, brandId }) {
carLifeApi
.getCarSeriesList({
brandId,
childBrandId: e.id
})
.then(res => {
let { data } = res
if (!data) data = []
this.setData({
[`list[${index}].done`]: true,
[`list[${index}].childs`]: data
})
})
},
showCarType(e) {
console.log(e)
let { i, item } = e.currentTarget.dataset,
{ brandInfo, carTypeList } = this.data
if (brandInfo.vehicleSeriesId == i.id && carTypeList && carTypeList.length) {
this.setData({
showType: true
})
return
}
brandInfo = {
...brandInfo,
vehicleSubBrandId: item.id,
vehicleSubBrandName: item.name,
vehicleSeriesId: i.id,
vehicleSeriesName: i.name
}
carTypeList = []
wx.$util.showLoading()
carLifeApi.getCarTypeList(i.id).then(res => {
let { data } = res
wx.hideLoading()
if (!data || !data.length) wx.$util.showToast('暂无该车型')
else carTypeList = data || []
this.setData({
brandInfo,
carTypeList,
showType: data && data.length
})
})
},
cancel() {
this.setData({
showType: false
})
},
go(e) {
let { index } = e.currentTarget.dataset
this.setData({
letter: `series-${index}`
})
},
choose(e) {
this.setData({
showType: false
})
const prePage = wx.$router.getPageInstance(2)
let { brandInfo } = this.data,
{ i } = e.currentTarget.dataset,
carInfo = {
...brandInfo,
vehicleShapeId: i.id,
vehicleShapeName: i.name
}
wx.$eventbus.emit('set_car_info', carInfo)
console.log(carInfo, '?????')
wx.$router.back(
pre => {
console.log(pre)
},
prePage.route == 'packageEquity/pages/carEquity/carBrands/carBrands' ? 2 : 1
)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
// onShareAppMessage() {}
})
{
"navigationBarTitleText": "加载中...",
"usingComponents": {
"page-loading": "./components/PageLoading/PageLoading"
}
}
\ No newline at end of file \ No newline at end of file
<!--packageEquity/pages/carEquity/carSeries/carSeries.wxml-->
<view class="car-brands-box">
<view class="car-brands">
<scroll-view style="height:100%;" scroll-y scroll-into-view="{{letter}}">
<block wx:for="{{list}}" wx:key="index">
<view id="series-{{index}}">
<view class="title car-y-center">{{item.name}}</view>
<view class="box">
<block wx:if="{{item.done}}">
<block wx:for="{{item.childs}}" wx:for-item="i" wx:key="ind" wx:for-index="ind">
<view class="brands" catchtap="showCarType" data-item="{{item}}" data-i="{{i}}">
<view class="list car-y-center">
{{i.name}}
</view>
</view>
</block>
</block>
<block wx:else>
<page-loading>加载中...</page-loading>
</block>
</view>
</view>
</block>
</scroll-view>
<view class="side-bar" id="side-bar">
<block wx:for="{{list}}" wx:key="index">
<view class="view" data-index="{{index}}" bindtap="go">{{item.name}}
</view>
</block>
</view>
</view>
</view>
<block wx:if="{{showType}}">
<view class="car-type-box">
<view class="bg" bindtap="cancel" catchtouchmove="noScroll"></view>
<view class="car-view">
<block wx:for="{{carTypeList}}" wx:key="index">
<view class="flex item" bindtap="choose" data-i="{{item}}">
{{item.name}}
</view>
</block>
</view>
</view>
</block>
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/carEquity/carSeries/carSeries.wxss */
@import "../carBrands/carBrands.wxss";
.car-y-center{
display: flex;
align-items: center;
transform: translateY(0);
}
.side-bar {
width: auto;
}
.side-bar .view{
padding:0 var(--fontSize16) 0 var(--fontSize32);
font-size: var(--fontSize20);
width: auto;
}
.car-type-box {
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
font-size: var(--fontSize28);
color: #333;
z-index: 9999;
}
.car-type-box .bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}
.car-view {
position: absolute;
top: 0;
right: 0;
height: 100vh;
width: 75vw;
padding-bottom: constant(safe-area-inset-bottom) !important;
padding-bottom: env(safe-area-inset-bottom) !important;
background: #fff;
-webkit-overflow-scrolling: touch;
animation: move 0.4s;
box-sizing: border-box;
overflow-y: scroll;
}
.car-view .item {
padding: var(--fontSize20) var(--fontSize32);
border-bottom: var(--fontSize2) solid #e9e9e9;
}
\ No newline at end of file \ No newline at end of file
// components/PageLoading/PageLoading.js
Component({
/**
* 组件的属性列表
*/
properties: {
color: {
type: String,
value: '#347BFF'
},
isFullScreen: Boolean
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* components/PageLoading/PageLoading.wxss */
.nothing {
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1/1;
flex-direction: column;
font-size: var(--fontSize28);
color: rgb(40, 40, 41);
}
.nothing.true{
position: fixed;
top: 50%;
width: 100%;
transform: translateY(-50%);
}
.loading {
height: var(--fontSize48);
margin-bottom: var(--fontSize16);
}
.loading view {
width: var(--fontSize16);
height: 100%;
display: inline-block;
animation: stretchdelay 1.2s infinite ease-in-out;
margin: 0 var(--fontSize4);
}
.loading view:nth-child(2) {
animation-delay: -1.1s;
}
.loading view:nth-child(3) {
animation-delay: -1s;
}
.loading view:nth-child(4) {
animation-delay: -.9s;
}
@keyframes stretchdelay {
0%,
100%,
40% {
transform: scaley(.33);
}
20% {
transform: scaley(1);
}
}
\ No newline at end of file \ No newline at end of file
<view class="nothing {{isFullScreen}}">
<view class="loading ">
<block wx:for="{{4}}" wx:key="index">
<view style="background-color: {{color}};"></view>
</block>
</view>
<slot></slot>
</view>
\ No newline at end of file \ No newline at end of file
// packageEquity/pages/receptionDetail/components/quality/index.js // packageEquity/pages/receptionDetail/components/quality/index.js
import api from "../../../../workspaceApi"; import api from "../../../../workspaceApi";
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
import watchScrollMixin from '../watchScrollMixin' import watchScrollMixin from '../watchScrollMixin'
Component({ Component({
behaviors: [watchScrollMixin], behaviors: [watchScrollMixin],
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</block> </block>
<block wx:else> <block wx:else>
<view class="no-data"> <view class="no-data">
<gl-image class="no-data-img" webp src="/equity/empty.png" /> <image class="no-data-img" src="{{IMG_URL}}empty-data.png" mode=""/>
<view class="list-not"> {{ <view class="list-not"> {{
defenceResultFlag === 1 || defenceResultFlag === 1 ||
defenceResultFlag === 0 || defenceResultFlag === 0 ||
......
...@@ -299,7 +299,7 @@ page { ...@@ -299,7 +299,7 @@ page {
// 当只有一个按钮时,自动扩展宽度 // 当只有一个按钮时,自动扩展宽度
&:only-child { &:only-child {
width: var(--fontSize670); width: var(--fontSize180);
} }
} }
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<view class="recruit_plan"> <view class="recruit_plan">
<view class="block_title"> <view class="block_title">
招聘计划 招聘计划
<view class="sub_title">请及时跟进简历处理结果:获取简历后,若人员初评不匹配可及时退回;若简历合适,可在面试完成后完善面试结果。</view> <view class="sub_title">获取简历后,若人员初评不匹配可及时退回;若简历合适,可在面试完成后完善面试结果。</view>
</view> </view>
<block wx:if="{{ recruitmentPlans.length }}"> <block wx:if="{{ recruitmentPlans.length }}">
<block wx:for="{{ recruitmentPlans }}" wx:key="index"> <block wx:for="{{ recruitmentPlans }}" wx:key="index">
......
...@@ -8,7 +8,7 @@ page{ ...@@ -8,7 +8,7 @@ page{
margin: var(--fontSize20); margin: var(--fontSize20);
width: calc(100% - var(--fontSize40)); width: calc(100% - var(--fontSize40));
background: #FFFFFF; background: #FFFFFF;
border-radius: var(--fontSize16); border-radius: var(--fontSize28);
box-shadow: 0 var(--fontSize6) var(--fontSize16) 0 #cdcdd159; box-shadow: 0 var(--fontSize6) var(--fontSize16) 0 #cdcdd159;
overflow: hidden; overflow: hidden;
.item_title{ .item_title{
...@@ -45,7 +45,7 @@ page{ ...@@ -45,7 +45,7 @@ page{
margin-top: var(--fontSize20); margin-top: var(--fontSize20);
.item{ .item{
background: #F7F8FA; background: #F7F8FA;
border-radius: var(--fontSize12); border-radius: var(--fontSize20);
padding: var(--fontSize24); padding: var(--fontSize24);
margin-bottom: var(--fontSize16); margin-bottom: var(--fontSize16);
font-size: var(--fontSize24); font-size: var(--fontSize24);
...@@ -115,7 +115,7 @@ page{ ...@@ -115,7 +115,7 @@ page{
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
.log_item{ .log_item{
background: #EFF5FE; background: #EFF5FE;
border-radius: var(--fontSize12); border-radius: var(--fontSize20);
padding: var(--fontSize10) var(--fontSize24); padding: var(--fontSize10) var(--fontSize24);
margin-bottom: var(--fontSize24); margin-bottom: var(--fontSize24);
.title{ .title{
...@@ -144,7 +144,7 @@ page{ ...@@ -144,7 +144,7 @@ page{
margin-top: var(--fontSize20); margin-top: var(--fontSize20);
.item{ .item{
background: #F7F8FA; background: #F7F8FA;
border-radius: var(--fontSize12); border-radius: var(--fontSize20);
padding: var(--fontSize24); padding: var(--fontSize24);
margin-bottom: var(--fontSize16); margin-bottom: var(--fontSize16);
font-size: var(--fontSize24); font-size: var(--fontSize24);
...@@ -251,7 +251,7 @@ page{ ...@@ -251,7 +251,7 @@ page{
margin-top: var(--fontSize16); margin-top: var(--fontSize16);
background: #FFFFFF; background: #FFFFFF;
border: var(--fontSize2) solid #EFF0F2; border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize12); border-radius: var(--fontSize24);
padding: var(--fontSize24) var(--fontSize20); padding: var(--fontSize24) var(--fontSize20);
.textarea{ .textarea{
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
......
// tabWorkOrder/pages/residentManage/components/accountAllocation/index.js // tabWorkOrder/pages/residentManage/components/accountAllocation/index.js
const IMG_URL = const IMG_URL =
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/"; "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/";
const IMG_URL2 = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
import api from '../../api' import api from '../../api'
Component({ Component({
/** /**
...@@ -24,6 +25,7 @@ Component({ ...@@ -24,6 +25,7 @@ Component({
keyword:'', keyword:'',
staffNameOrPhone: "", staffNameOrPhone: "",
IMG_URL, IMG_URL,
IMG_URL2,
accountList: [], accountList: [],
businessType: ['会员权益/升级', '轻改'], businessType: ['会员权益/升级', '轻改'],
disableObj: {} disableObj: {}
......
...@@ -40,7 +40,8 @@ ...@@ -40,7 +40,8 @@
<view class="store" wx:for="{{account.unfold?account.checkList:account.staffConfigList}}" wx:for-item="store" wx:for-index="s" wx:key="s"> <view class="store" wx:for="{{account.unfold?account.checkList:account.staffConfigList}}" wx:for-item="store" wx:for-index="s" wx:key="s">
<view class="choose"> <view class="choose">
<view class="choose-open" wx:if="{{ account.deletedState}}" catch:tap="updateConfig" data-index="{{index}}" data-account-index="{{i}}" data-store-index="{{s}}"> <view class="choose-open" wx:if="{{ account.deletedState}}" catch:tap="updateConfig" data-index="{{index}}" data-account-index="{{i}}" data-store-index="{{s}}">
<gl-image webp mode="widthFix" wx:if="{{store.deferredOpenState}}" class="select" src="/check.png" /> <!-- <gl-image webp mode="widthFix" wx:if="{{store.deferredOpenState}}" class="select" src="/check.png" /> -->
<image mode="widthFix" wx:if="{{store.deferredOpenState}}" class="select" src="{{IMG_URL2}}checkbox-checked.png" />
<gl-image webp mode="widthFix" wx:else class="select" src="/no-check.png" /> <gl-image webp mode="widthFix" wx:else class="select" src="/no-check.png" />
</view> </view>
<view class="choose-open" wx:else> <view class="choose-open" wx:else>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
border-bottom: none; border-bottom: none;
} }
.merchant-box .item.active{ .merchant-box .item.active{
color: #2C66F7; color: #347BFF;
} }
.item .merchant_item{ .item .merchant_item{
......
...@@ -22,6 +22,7 @@ Page({ ...@@ -22,6 +22,7 @@ Page({
IMG_URL, IMG_URL,
imgShow: false, imgShow: false,
isDisable: false, isDisable: false,
hasDailyValue: false,
isUpload: false, isUpload: false,
// userInfo: {}, // userInfo: {},
// 模版表单提交数据 // 模版表单提交数据
...@@ -106,7 +107,7 @@ Page({ ...@@ -106,7 +107,7 @@ Page({
let { let {
attr attr
} = e.detail } = e.detail
let { tmlpFormData, tmlpObj, trainTmlpSuffix } = this.data let { tmlpFormData, tmlpObj, trainTmlpSuffix, tmlpCode } = this.data
tmlpObj['organizeTraining' + trainTmlpSuffix]?.forEach(item => { tmlpObj['organizeTraining' + trainTmlpSuffix]?.forEach(item => {
if (!item.name.includes('isTrainingOrganized')) { if (!item.name.includes('isTrainingOrganized')) {
item.isHide = tmlpFormData[attr] == '否' ? true : false item.isHide = tmlpFormData[attr] == '否' ? true : false
...@@ -120,6 +121,24 @@ Page({ ...@@ -120,6 +121,24 @@ Page({
} }
}) })
} }
const pAttrList = Object.keys(allRuleObj)
console.log(tmlpCode, 'pAttrList---')
if (tmlpCode == 'uuid-temp-001') {
pAttrList.forEach(pAttrItem => {
tmlpObj[pAttrItem].forEach(item => {
if (!item.name.includes('dayOffStatus')) {
item.required = tmlpFormData['dayOffStatus'] == '是' ? false : true
}
})
let keyList = Object.keys(allRuleObj[pAttrItem])
keyList.forEach(item => {
if (item != 'dayOffStatus' && allRuleObj[pAttrItem][item]) {
allRuleObj[pAttrItem][item][0].required = tmlpFormData['dayOffStatus'] == '是' ? false : true
}
})
})
}
console.log(tmlpObj, attr)
this.setData({ this.setData({
tmlpObj tmlpObj
}) })
...@@ -189,6 +208,9 @@ Page({ ...@@ -189,6 +208,9 @@ Page({
sDate: timeBean.reportStartDate, sDate: timeBean.reportStartDate,
eDate: timeBean.reportEndDate eDate: timeBean.reportEndDate
} }
this.setData({
hasDailyValue: false
})
wx.$util.showLoading() wx.$util.showLoading()
api.getDateRecord(params).then(res => { api.getDateRecord(params).then(res => {
console.log(res, 'res-----') console.log(res, 'res-----')
...@@ -203,10 +225,10 @@ Page({ ...@@ -203,10 +225,10 @@ Page({
if (timeBean.weekDayList[timeBean.selectDay].date == new Date().format('yyyy-MM-dd')) { if (timeBean.weekDayList[timeBean.selectDay].date == new Date().format('yyyy-MM-dd')) {
//改---------------- //改----------------
this.setData({ this.setData({
isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false,
hasDailyValue: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false
}) })
} else if (tmlpEditList.includes(tmlpCode)) { } else if (tmlpEditList.includes(tmlpCode)) {
console.log('???')
// 往期编辑 // 往期编辑
this.setData({ this.setData({
isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false
...@@ -648,7 +670,7 @@ Page({ ...@@ -648,7 +670,7 @@ Page({
let that = this let that = this
wx.showModal({ wx.showModal({
title: "确认提示", title: "确认提示",
content: "日报提交后将无法二次修改并将触发群消息推送,是否确认提交?", content: "日报提交后将触发群消息推送,是否确认提交?",
// showCancel: false, // showCancel: false,
cancelText: '取消', // '取消 cancelText: '取消', // '取消
cancelColor: "#292D33", cancelColor: "#292D33",
...@@ -696,6 +718,21 @@ Page({ ...@@ -696,6 +718,21 @@ Page({
} }
}, },
changeVal(attr, val) {
this.setData({
[attr]: val
})
},
handleEdit() {
this.changeVal('isDisable', false)
},
handleCancel() {
this.changeVal('isDisable', true)
this.onLoad()
},
handleConfirm() { handleConfirm() {
let { isConfirm } = this.data let { isConfirm } = this.data
if (isConfirm) { if (isConfirm) {
...@@ -732,6 +769,11 @@ Page({ ...@@ -732,6 +769,11 @@ Page({
formJson: this.dealParams() formJson: this.dealParams()
} }
console.log(JSON.parse(params.formJson), 'params-----') console.log(JSON.parse(params.formJson), 'params-----')
// 删----要给新字段加校验++++
// this.setData({
// isConfirm: false
// })
// wx.$util.showToast('提交成功')
this.secondConfirm(params) this.secondConfirm(params)
}, },
......
...@@ -59,6 +59,15 @@ ...@@ -59,6 +59,15 @@
<view class="confirm text-center" bindtap="handleConfirm">提交</view> <view class="confirm text-center" bindtap="handleConfirm">提交</view>
</view> </view>
</view> </view>
<view class="btns two-btns {{ isFullSucreen ? 'isFullSucreen-btn':'' }}" wx:if="{{tmlpCode == 'uuid-temp-001' && hasDailyValue}}">
<view class="btns-con" wx:if="{{isDisable}}">
<view class="confirm text-center" style="width: 100%;" bindtap="handleEdit">修改</view>
</view>
<view wx:else class="btns-con">
<view class="cancel text-center" bindtap="handleCancel">取消</view>
<view class="edit text-center" bindtap="handleConfirm">提交</view>
</view>
</view>
</view> </view>
<!-- 未配置模版 --> <!-- 未配置模版 -->
<view wx:else class="empty-box"> <view wx:else class="empty-box">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!