Commit 5d0b3191 by 张立顺

Merge branch 'SAAS+V5.4.2-1130' into 'develop'

上线合并

See merge request !451
2 parents daf883d6 8edebe50
Showing 27 changed files with 1048 additions and 226 deletions
......@@ -27,7 +27,7 @@ const checkRequired = function (obj, formRule) {
attr
}
}
if (validFn) {
if (validFn && obj[attr] != null) {
let validObj = validFn.validator({}, obj[attr], obj)
if (validObj) {
return {
......
......@@ -109,23 +109,23 @@ Component({
statisticsObj: {},
dataActive: "today",
staticDataList: [{
label: "今日营业额",
value: "todayTurnover",
tipsLabel: "今日成交量",
tipsValue: "todayOrderNumber",
},
{
label: "本月营业额",
value: "monthTurnover",
tipsLabel: "本月成交量",
tipsValue: "monthOrderNumber",
},
{
label: "累计营业额",
value: "totalTurnover",
tipsLabel: "累计成交量",
tipsValue: "totalOrderNumber",
},
label: "今日营业额",
value: "todayTurnover",
tipsLabel: "今日成交量",
tipsValue: "todayOrderNumber",
},
{
label: "本月营业额",
value: "monthTurnover",
tipsLabel: "本月成交量",
tipsValue: "monthOrderNumber",
},
{
label: "累计营业额",
value: "totalTurnover",
tipsLabel: "累计成交量",
tipsValue: "totalOrderNumber",
},
],
itemDataList: [
// {
......@@ -179,7 +179,7 @@ Component({
menuText: "培训资料",
icon: "peixun_icon",
path: "packageEquity.trainingMaterials",
}, ],
},],
loginRoleLabel: {
1: "超管",
2: "商户管理员",
......@@ -217,17 +217,17 @@ Component({
track_event_code: 'staff_reception_list', //埋点动作类型
violationStatus: 1, //默认疑似违规
recordTabList: [{
text: '疑似违规',
value: 1
},
{
text: '未违规',
value: 0
},
{
text: '已违规',
value: 2
}
text: '疑似违规',
value: 1
},
{
text: '未违规',
value: 0
},
{
text: '已违规',
value: 2
}
]
},
......@@ -372,10 +372,10 @@ Component({
changeSwiper(e) {
let name =
e.detail.current == 0 ?
"today" :
e.detail.current == 1 ?
"month" :
"total";
"today" :
e.detail.current == 1 ?
"month" :
"total";
this.setData({
current: e.detail.current,
dataActive: name,
......@@ -984,8 +984,8 @@ Component({
}
orderStaffValid({
sceneType: userInfo.sceneType,
})
sceneType: userInfo.sceneType,
})
.then((result) => {
console.log(result, "orderStaffValid");
if (result.data) {
......@@ -1024,7 +1024,7 @@ Component({
});
}
})
.catch((err) => {});
.catch((err) => { });
},
getStaffTargetTask() {
return new Promise(resolve => {
......@@ -1075,7 +1075,7 @@ Component({
.setTaskDialog({
id: data[0]?.id,
})
.then(() => {});
.then(() => { });
}
} else {
wx.$util.showToast(message);
......@@ -1349,8 +1349,8 @@ Component({
if (payFlag == 1 || payType == 3 || payType == 4 || payType == 6) {
wx.$router.go(
mode ? "createOrderCarQuotationSimple" : "createOrderCarQuotation", {
paymentMethod
}
paymentMethod
}
);
} else {
thisPage.tipsEvent &&
......@@ -1654,6 +1654,7 @@ Component({
},
// 筛选确认
searchScreen(e) {
console.log(e, 'searchScreen');
let searchForm = e.detail
const orderResult = searchForm?.orderResult || []
this.setData({
......
......@@ -80,7 +80,7 @@
<text>接待缺失报备</text>
</view>
<view class="todo-item-info">请报备缺失接待客户的原因</view>
<view class="todo-item-btn" bindtap="gotoMissingReception">去报备</view>
<view class="todo-item-btn" bindtap="gotoMissingReception">去报备</view>
</view>
</block>
</view>
......@@ -119,7 +119,9 @@
<view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}">
<view>
<!-- <text class="title">接待记录</text> -->
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper && userInfo.loginRole != 3 ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text>
<!-- {{searchForm.merchantNames.length}}
{{userInfo.default4SStoreInfo.merchantName}} -->
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper && userInfo.loginRole != 3 ? userInfo.default4SStoreInfo.merchantName|| '全部门店' : '全部门店'}}</text>
</view>
<view bindtap="showScreenPop">
<text class="text">筛选</text>
......
......@@ -187,6 +187,18 @@ var btnPermissions = function (permissionsArr, key) {
}
return false
}
// 品牌化标签,如 "售前整车延保成交数(鸿蒙)" → "售前整车延保成交数(品牌名)"
var formatBrandLabel = function (label, brandName) {
if (!label) return ''
var name = '鸿蒙' || '' // 先固定取鸿蒙
// 优先替换括号内容
var bracketReg = getRegExp('\\(.*?\\)', 'g')
var replaced = label.replace(bracketReg, '(' + name + ')')
// 若原文不含括号或替换未生效,则兜底替换特定关键字
var hmReg = getRegExp('鸿蒙', 'g')
return replaced != label ? replaced : label.replace(hmReg, name)
}
/*
* 导出
*/
......@@ -204,5 +216,6 @@ module.exports = {
techicianName: techicianName,
subStatus: subStatus,
subStatusName: subStatusName,
btnPermissions: btnPermissions
btnPermissions: btnPermissions,
formatBrandLabel: formatBrandLabel
}
......@@ -502,7 +502,9 @@ Page({
if ([5, 6, 7].includes(subVal.merchantGoodsPosition)) {
skylightArr.push(subVal)
}
if (![1, baseConfigData?.selfBuildFilmType].includes(val.goodsType)) {
if (
![1, baseConfigData?.selfBuildFilmType].includes(val.goodsType)
) {
otherGoodsArr.push(subVal)
}
})
......@@ -538,7 +540,10 @@ Page({
})
// 仅有一件商品 默认选中
// console.log(goodsData.length == 1 && goodsData[0].upgradeGoodsList.length == 1, 'goodsData.length == 1 && goodsData[0].upgradeGoodsList.length == 1');
if (goodsData.length == 1 && goodsData[0].upgradeGoodsList.length == 1) {
if (
goodsData.length == 1 &&
goodsData[0].upgradeGoodsList.length == 1
) {
this.defaultChoose(0)
}
} else {
......@@ -548,11 +553,18 @@ Page({
},
defaultChoose(index) {
let { frontGearArr, sideRearGearArr, skylightArr, sideBeforeRearGearArr, sideAfterRearGearArr, otherGoodsArr } = this.data
let {
frontGearArr,
sideRearGearArr,
skylightArr,
sideBeforeRearGearArr,
sideAfterRearGearArr,
otherGoodsArr
} = this.data
// 仅有一个商品直接选中
otherGoodsArr = otherGoodsArr.map((item) => {
otherGoodsArr = otherGoodsArr.map(item => {
item.otherFlag = true
return item;
return item
})
let arr = [].concat(
sideRearGearArr.length == 1 ? sideRearGearArr : [],
......@@ -560,9 +572,9 @@ Page({
skylightArr.length == 1 ? skylightArr : [],
sideBeforeRearGearArr.length == 1 ? sideBeforeRearGearArr : [],
sideAfterRearGearArr.length == 1 ? sideAfterRearGearArr : [],
otherGoodsArr.length == 1 ? otherGoodsArr : [],
otherGoodsArr.length == 1 ? otherGoodsArr : []
)
console.log(arr, 'defaultChoose');
console.log(arr, 'defaultChoose')
arr.forEach(val => {
val.count = 1
val.active = true
......@@ -1047,11 +1059,11 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function (res) { },
onReady: function (res) {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function (res) { },
onShow: function (res) {},
onRoute(res) {
console.log(res, 'onroute')
this.setData({ isExpiredTraffic: res?.isExpiredTraffic })
......@@ -1078,25 +1090,25 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () { },
onUnload: () => { },
onHide: function () {},
onUnload: () => {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () { },
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () { },
onPullDownRefresh: function () {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () { },
onReachBottom: function () {},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () { }
onShareAppMessage: function () {}
})
// components/TabBar/TabBar.js
Component({
/**
* 组件的属性列表
*/
properties: {
tabList: {
type: Array,
observer: function (list) {
// 规范化 tab 列表为对象数组,支持字符串与多种字段名
this.normalizeTabList(list)
}
},
activeIndex: {
type: Number,
observer: function (n) {
console.log(this.data.tabIndex, 'activeIndex', n)
console.log(this.data.tabIndex != n)
if (this.data.tabIndex != n) {
this.setData({
tabIndex: this.data.activeIndex
})
this.setTab(this.data.tabIndex)
}
}
},
scroll: Boolean
},
/**
* 组件的初始数据
*/
data: {
tabIndex: 0,
tabItems: []
},
lifetimes: {
ready() {
// console.log('lifetimes',this.data.tabIndex);
// console.log('lifetimes',this.data.activeIndex);
// 确保首屏渲染有规范化后的 tabItems
this.normalizeTabList(this.data.tabList)
this.setTab(this.data.tabIndex)
let that = this
wx.$eventbus.on('page_show', n => {
!that.data.width && that.setTab(that.data.tabIndex)
})
}
},
/**
* 组件的方法列表
*/
methods: {
normalizeTabList(list = []) {
const tabItems = (list || []).map(item => {
let label = ''
let count
if (typeof item === 'string') {
label = item
} else if (item && typeof item === 'object') {
label =
item.text ??
item.label ??
item.name ??
item.title ??
item.brandName ??
''
if (item.firstBrandId == -1) {
label = item.firstBrandName
}
count = item.count
} else {
label = ''
}
return { label, count, _raw: item }
})
this.setData({ tabItems })
},
change(e) {
let { index } = e.currentTarget.dataset
this.setTab(index)
},
setTab(index = 0) {
let { tabIndex } = this.data
wx.$util.getViewInfo(
`#tab-${tabIndex}`,
old => {
let oldLeft = old.left
let oldWidth = old.width
wx.$util.getViewInfo(
`#tab-${index}`,
res => {
let { left, width } = res
if (tabIndex != index) {
let readyLeft = oldLeft > left ? left : oldLeft
let readyWidth =
oldLeft > left ? oldLeft - left : left - oldLeft
this.setData({
activeStyle: `width: var(--fontSize64);background-color:#347BFF;border-radius:3rpx;left:${readyLeft + readyWidth / 2
}px;transition: all .1s;`
})
}
setTimeout(() => {
this.setData({
activeStyle: `width: var(--fontSize64);left:${left + (width - 32) / 2
}px;background-color:#347BFF;`,
tabIndex: index,
to: `to-${index}`,
width
})
const itemObj =
this.data.tabItems && this.data.tabItems[index]
? this.data.tabItems[index]._raw ??
this.data.tabItems[index]
: undefined
this.triggerEvent('click', { index, item: itemObj })
}, 100)
},
this
)
},
this
)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<block wx:if="{{ scroll }}">
<scroll-view class="scroll" scroll-x enable-flex scroll-with-animation scroll-into-view="{{ to }}">
<block wx:for="{{ tabItems }}" wx:key="index">
<view class="tab-item {{ tabIndex==index?'active':'' }}" bindtap="change" data-index="{{ index }}" id="to-{{ index }}">
<text id="tab-{{ index }}"><text class="tab-item-text">{{item.label}}</text><text wx:if="{{ item.count >= 0 }}" style="font-size: var(--fontSize20);">({{item.count}})</text></text>
</view>
</block>
<!-- <view class="active-doc" style="{{activeStyle}}" /> -->
</scroll-view>
</block>
<block wx:else>
<view
class="tab"
style="grid-template-columns: repeat({{ tabItems.length}}, 1fr);font-size:{{tabItems.length>5?'var(--fontSize24)':'' }} ;"
>
<block wx:for="{{ tabItems }}" wx:key="index">
<!-- style="color:{{tabIndex==index?'#347BFF':''}};" -->
<view class="tab-item {{ tabIndex==index?'active':'' }}" bindtap="change" data-index="{{ index }}">
<text id="tab-{{ index }}"><text class="tab-item-text">{{item.label}}</text><text wx:if="{{ item.count >= 0 }}" style="font-size: var(--fontSize20);">({{item.count}})</text></text>
</view>
</block>
<view class="active-doc" style="{{ activeStyle }}" />
</view>
</block>
\ No newline at end of file
/* components/TabBar/TabBar.wxss */
.tab {
/* background-color: #fff; */
height: var(--fontSize72);
box-sizing: border-box;
display: grid;
align-items: center;
font-size: var(--fontSize28);
color: #347bff;
border-bottom: var(--fontSize1) solid #F2F3F5;
}
.scroll {
/* background-color: #fff; */
height: var(--fontSize104);
box-sizing: border-box;
/* color: #347bff; */
color: #5a5e66;
border-bottom: var(--fontSize1) solid #F2F3F5;
width: 100%;
display: flex;
line-height: var(--fontSize104);
font-size: 0;
}
.active {
/* font-size: var(--fontSize32); */
font-weight: 600;
color: #347BFF;
}
.active-doc {
position: absolute;
bottom: var(--fontSize1);
height: var(--fontSize4);
border-radius: var(--fontSize2) var(--fontSize2) 0 0;
transition: all .25s;
}
.tab .tab-item {
text-align: center;
}
.scroll .tab-item {
width: fit-content;
min-width: var(--fontSize97);
height: 100%;
flex-shrink: 0;
font-size: var(--fontSize28);
text-align: center;
position: relative;
padding: 0 var(--fontSize10);
font-weight: 600;
}
.scroll .active::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 64rpx;
height: var(--fontSize4);
background-color: #347BFF;
content: '';
}
\ No newline at end of file
......@@ -6,7 +6,8 @@
justify-content: space-around;
align-items: center;
background: #fff;
.week_box{
.week_box {
height: var(--fontSize60);
width: 100%;
display: flex;
......@@ -14,14 +15,24 @@
align-items: center;
box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159;
}
.date_box{
.date_box {
height: var(--fontSize128);
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
}
.left {
margin-left: 10rpx;
}
.right {
margin-right: 20rpx;
}
}
.weekselect {
height: var(--fontSize80);
flex-direction: row;
......@@ -41,7 +52,8 @@
font-weight: 400;
flex-direction: row;
color: #181A1F;
width: var(--fontSize180);
width: var(--fontSize200);
font-size: 28rpx;
}
.dateType {
......@@ -54,6 +66,7 @@
border-radius: 50%;
width: var(--fontSize64);
height: var(--fontSize64);
.empty {
box-sizing: border-box;
position: absolute;
......@@ -70,7 +83,8 @@
color: #fff;
}
}
.dateType.dateType_disabled{
.dateType.dateType_disabled {
color: #BEC1C7;
}
......@@ -81,7 +95,7 @@
.select-column {
.dateType{
.dateType {
background: #347BFF;
color: #fff;
}
......@@ -109,9 +123,12 @@
font-weight: 500;
font-size: var(--fontSize28);
color: #181A1F;
// font-size: var(--fontSize35);
// font-weight: bold;
// margin-right: auto;
width: 280rpx;
height: 64rpx;
text-align: center;
line-height: 64rpx;
border-radius: 20px;
background: #f2f3f5;
}
.line {
......@@ -121,7 +138,7 @@
}
.lastweek {
width: var(--fontSize180);
width: var(--fontSize200);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize28);
......@@ -149,6 +166,12 @@
/* iOS 4.1- */
}
.icon {
width: 36rpx;
height: 36rpx;
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
......
......@@ -3,25 +3,27 @@
<view class="line"></view>
<view class="row weekselect">
<view class="row lastweek" bindtap="lastWeek">
<text class="iconfont icon-sanjiaoleft" style="padding:var(--fontSize15);color: #bec1c7;"></text>
<!-- <text class="iconfont icon-sanjiaoleft" style="padding:var(--fontSize15);color: #bec1c7;"></text> -->
<gl-image class="icon left" src="{{ '/miniProgram/arrow-left.png' }}" webp></gl-image>
<view style="">上一周</view>
</view>
<view class="timeType">{{timeBean.yearMonth}}</view>
<view class="row nextWeek" bindtap="nextWeek">
<block wx:if="{{ !timeBean.isInCurrentWeek }}">
<view style=" ">下一周</view>
<text class="iconfont icon-sanjiaoright" style="padding:var(--fontSize15);color: #bec1c7;"></text>
<gl-image class="icon right" src="{{ '/miniProgram/arrow-right.png' }}" webp></gl-image>
<!-- <text class="iconfont icon-sanjiaoright" style="padding:var(--fontSize15);color: #bec1c7;"></text> -->
</block>
</view>
</view>
<view class="row">
<view class="week_box">
<view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item column" bindtap="itemClick" wx:key="index">
<view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item column" bindtap="itemClick" wx:key="index">
<view class="weekType">{{timeBean.weekDayList[index].week}}</view>
</view>
</view>
<view class="date_box">
<view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item column {{ index==timeBean.selectDay?'select-column':'' }}" bindtap="itemClick" wx:key="index">
<view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item column {{ index==timeBean.selectDay?'select-column':'' }}" bindtap="itemClick" wx:key="index">
<view class="dateType {{timeBean.weekDayList[index].disabled ? 'dateType_disabled' : ''}}">
{{timeBean.weekDayList[index].day}}
<view class="empty" wx:if="{{ !timeBean.weekDayList[index].disabled && !timeBean.weekDayList[index].hasDailyValue }}">空</view>
......
......@@ -32,11 +32,11 @@ Page({
pickerdateList: [
{
id: 'N',
name: '否'
name: '在岗'
},
{
id: 'Y',
name: '是'
name: '调休'
}
],
pickerTemplateList: [
......@@ -135,8 +135,16 @@ Page({
inputPlaceholder: ''
},
{
name: 'person'
},
label: '未触客返店人数',
key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
],
hwObjArrayLabelList: [
{
label: '售前整车延保成交数(问界)',
key: 'extendedWarrantyCount',
......@@ -218,15 +226,6 @@ Page({
templateValue: 3,
disabled: true,
inputPlaceholder: '自动填入系统数据'
},
{
label: '未触客返店人数',
key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
],
hwOhterObjArray: [
......@@ -267,8 +266,19 @@ Page({
inputPlaceholder: ''
},
{
name: 'person'
},
label: '未触客返店人数',
key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
],
hwOhterObjArrayLabelList: [
// {
// name: 'person'
// },
{
label: '售前整车延保成交数(鸿蒙)',
key: 'extendedWarrantyCount',
......@@ -290,15 +300,6 @@ Page({
templateValue: 3,
disabled: true,
inputPlaceholder: '自动填入系统数据'
},
{
label: '未触客返店人数',
key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
],
otherObjArray: [
......@@ -339,8 +340,19 @@ Page({
inputPlaceholder: ''
},
{
name: 'person'
},
label: '未触客返店人数',
key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
// {
// name: 'person'
// },
],
otherObjArrayLableList: [
{
label: '北汽无忧成交数',
key: 'bqWorryFreeCount',
......@@ -362,17 +374,44 @@ Page({
disabled: true,
templateValue: 3,
inputPlaceholder: '自动填入系统数据'
},
{
label: '未触客返店人数',
key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
]
],
tabIndex: 0
},
tabClick(e) {
let { index } = e.detail
let { searchObj } = this.data
// delete searchObj.statusList
this.setData({
tabIndex: index
// searchObj
})
// this.search()
},
handleOnBreakCheckboxChange(e) {
const { value = [] } = e.detail
console.log(e, value, 'handleOnBreakCheckboxChange')
// 由于受控 checked 绑定,change 时可能出现同时包含旧值与新值的情况(['N','Y'])
// 使用前一个选中值与当前 value 比较,取“发生变化”的那个值作为新选中项
const prev = this.data.orderObj.onBreak
let selected
if (value.length === 0) {
// 防止全不选导致状态不可用,默认回退为 'N'
selected = 'N'
} else if (value.length === 1) {
selected = value[0]
} else {
// 两个都存在时,取与之前不同的那个;若未找到则取最后一个兜底
selected = value.find(v => v !== prev) || value[value.length - 1]
}
// 根据选中值更新 onBreak 和 pickerValue
const pickerIndex = this.data.pickerdateList.findIndex(
v => v.id === selected
)
this.setData({
['orderObj.onBreak']: selected,
['orderObj.pickerValue']: pickerIndex >= 0 ? pickerIndex : 0
})
},
handleTemplagePickerChange(e) {
const { value } = e.detail
......@@ -399,23 +438,23 @@ Page({
},
showStorePicker() {
let { userInfo } = this.data
;(userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) &&
this.setData({
showPicker: true,
pickerType: 'merchant'
})
; (userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) &&
this.setData({
showPicker: true,
pickerType: 'merchant'
})
},
showStaffPicker() {
let { userInfo } = this.data
;(userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) &&
this.setData({
showPicker: true,
pickerType: 'staff'
})
; (userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) &&
this.setData({
showPicker: true,
pickerType: 'staff'
})
},
navbarReady(e) {
let navBarHeight = e.detail.height
......@@ -540,7 +579,7 @@ Page({
showCancel: false,
confirmText: '确定',
confirmColor: '#347BFF',
success(res) {}
success(res) { }
})
} else {
wx.$util.showToast(message)
......@@ -594,13 +633,15 @@ Page({
// }
// }
let checkFlag = false
carBandList.forEach(item => {
let firstInvalidIndex = -1
carBandList.forEach((item, index) => {
if (orderObj.onBreak == 'N') {
// 必填校验
hwObjArray = hwObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) {
el.error = true
checkFlag = true
if (firstInvalidIndex === -1) firstInvalidIndex = index
}
return el
})
......@@ -608,6 +649,7 @@ Page({
if (el.required && ['', null].includes(item[el.key])) {
el.error = true
checkFlag = true
if (firstInvalidIndex === -1) firstInvalidIndex = index
}
return el
})
......@@ -615,6 +657,7 @@ Page({
if (el.required && ['', null].includes(item[el.key])) {
el.error = true
checkFlag = true
if (firstInvalidIndex === -1) firstInvalidIndex = index
}
return el
})
......@@ -632,8 +675,11 @@ Page({
this.setData({
hwObjArray,
otherObjArray,
hwOhterObjArray
hwOhterObjArray,
tabIndex:
firstInvalidIndex !== -1 ? firstInvalidIndex : this.data.tabIndex
})
wx.$util.showToast('必填不能为空')
return false //必填校验没过
}
orderObj.isAdmin = role == 'super' ? true : false
......@@ -672,7 +718,7 @@ Page({
showCancel: false,
confirmText: '确定',
confirmColor: '#347BFF',
success(res) {}
success(res) { }
})
} else {
wx.$util.showToast(message)
......@@ -781,11 +827,8 @@ Page({
0: '问界',
1: '鸿蒙'
}
context += `【${
bandType[el.brandType] || item.firstBrandName
}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${
item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n`
// bandType[el.brandType] ||
context += `【${item.brandName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue},请相关驻店销售对齐核销再次提交\t\n`
el.deliveryCountinputError = true
el.equityToShopCountinputError = true
el.notDeliveryCountinputError = true
......@@ -1182,7 +1225,7 @@ Page({
if (brandDataList && brandDataList.length) {
carBandList = carBandList.map(item => {
let carBand = brandDataList.find(ele => {
if ([0, 1].includes(ele.brandType)) {
if ([0, 1, 3, 4, 5, 6].includes(ele.brandType)) {
return ele.brandType == item.brandType
} else if (ele.brandType == 2) {
return ele.firstBrandId == item.firstBrandId
......@@ -1272,6 +1315,7 @@ Page({
['orderObj.onBreak']: data.onBreak || 'N',
['orderObj.pickerValue']: data.onBreak == 'Y' ? 1 : 0,
['orderObj.staffCountError']: false,
['orderObj.staffCountEmptyError']: false,
approvalList: data.approvalList || [],
currentWordNumber: data?.remark?.length
})
......@@ -1394,7 +1438,7 @@ Page({
wx.$util.message(message)
}
})
.catch(err => {})
.catch(err => { })
},
inputSearch(e) {
let { pickerType } = this.data
......@@ -1603,7 +1647,7 @@ Page({
}
// }
})
.catch(err => {})
.catch(err => { })
},
/**
* 生命周期函数--监听页面加载
......@@ -1725,5 +1769,5 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {}
onReady: function () { }
})
......@@ -4,6 +4,7 @@
"weekCalendar": "./components/weekCalendar/weekCalendar",
"gl-cell-staff": "./components/GlCell/GlCell",
"store-picker": "./components/storePicker/storePicker",
"select-item-popup": "./components/selectItemPopup/selectItemPopup"
"select-item-popup": "./components/selectItemPopup/selectItemPopup",
"tab-bar": "./components/TabBar/TabBar"
}
}
\ No newline at end of file
}
......@@ -60,10 +60,11 @@ page {
.main {
// padding: 0 var(--fontSize20) var(--fontSize256);
padding: 0 20rpx 300rpx;
padding: 0 20rpx 52rpx;
.mainheader {
margin: var(--fontSize20) var(--fontSize10) 0;
margin-top: 28rpx;
margin: var(--fontSize28) 0 12rpx 32rpx;
display: flex;
justify-content: space-between;
align-items: center;
......@@ -85,26 +86,34 @@ page {
.title {
font-family: PingFangSC-SNaNrpxibold;
font-weight: 500;
font-weight: 600;
font-size: var(--fontSize28);
color: #292D33;
}
}
page .isFullSucreen {
padding-bottom: 160px !important;
padding-bottom: 160rpx !important;
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
padding-bottom: 150rpx !important;
}
// page .isFullSucreen {
// padding-bottom: 160px !important;
// }
// .isFullSucreen-btn {
// padding-bottom: 34px !important;
// }
.box {
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
// box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16);
overflow: hidden;
margin-top: var(--fontSize20);
// margin-top: var(--fontSize20);
height: calc(100% - var(--fontSize100));
// padding: var(--fontSize24) 0;
......@@ -130,10 +139,13 @@ page .isFullSucreen {
// padding: 0 var(--fontSize40);
color: #292D33;
font-size: var(--fontSize28);
border-bottom: 1rpx solid #dee0e3;
// border-bottom: 1rpx solid #dee0e3;
border-bottom: 1rpx solid #eff0f2;
display: flex;
justify-content: space-between;
padding: 24rpx 40rpx;
padding: 0rpx 40rpx;
height: 88rpx;
box-sizing: border-box;
.left {
display: flex;
......@@ -149,8 +161,9 @@ page .isFullSucreen {
.label {
margin-bottom: var(--fontSize16);
// display: flex;
// margin-bottom: var(--fontSize16);
display: flex;
align-items: center;
color: #292d33;
font-size: 28rpx;
......@@ -159,8 +172,12 @@ page .isFullSucreen {
}
.required_text {
display: inline-block;
color: #F24724;
margin-right: var(--fontSize8);
margin-left: var(--fontSize8);
// 与父元素行高一致,避免上移或下移
line-height: 20rpx;
// 移除 vertical-align,交由 flex 居中对齐
}
}
......@@ -169,7 +186,7 @@ page .isFullSucreen {
}
.content-input {
height: var(--fontSize91);
height: var(--fontSize88);
text-align: right;
font-size: var(--fontSize28);
flex: 1;
......@@ -208,7 +225,6 @@ page .isFullSucreen {
line-height: var(--fontSize80);
text-align: right;
}
.placeholder {
......@@ -255,8 +271,14 @@ page .isFullSucreen {
}
}
.templatePicker {
// height: 90rpx;
// width: 160rpx;
}
.templateNameTitle {
margin-right: 20rpx;
// margin-right: 20rpx;
margin-left: auto;
.templateName {
color: #347BFF;
......@@ -268,13 +290,15 @@ page .isFullSucreen {
.remark_box {
padding: var(--fontSize20);
// padding: var(--fontSize20);
background-color: #fff;
padding: 24rpx 32rpx 24rpx;
.label {
font-size: var(--fontSize28);
color: #292D33;
margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20);
// margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20);
margin-bottom: 20rpx
}
.textArea_box {
......@@ -283,9 +307,12 @@ page .isFullSucreen {
border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize16);
padding: var(--fontSize24);
background: #f4f5f7;
.textarea {
height: var(--fontSize130);
height: var(--fontSize100);
// width: 335rpx;
width: 100%;
}
.currentWordNumber {
......@@ -299,15 +326,26 @@ page .isFullSucreen {
}
}
.staffBox {
// margin-left: auto;
// margin-right: 10rpx;
margin-left: 16rpx;
}
.staffName {
// margin-left: auto;
color: #347bff;
font-size: 28rpx;
}
.btns {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: var(--fontSize100);
background: #FFFFFF;
// background: #FFFFFF;
box-sizing: border-box;
/* padding: var(--fontSize10) var(--fontSize32); */
margin-bottom: 100rpx;
display: flex;
align-items: center;
justify-content: space-between;
......@@ -318,7 +356,8 @@ page .isFullSucreen {
}
.btns-con {
width: 100%;
// width: 100%;
width: 622rpx;
box-sizing: border-box;
display: flex;
flex-flow: column;
......@@ -351,6 +390,7 @@ page .isFullSucreen {
margin-top: var(--fontSize20);
margin-right: var(--fontSize20);
color: #347BFF;
background-color: #fff;
}
.btns .confirm {
......@@ -456,17 +496,17 @@ page .isFullSucreen {
margin-right: 0;
}
.btns {
position: fixed;
bottom: 0;
width: 100%;
padding: var(--fontSize20);
background: #ffffff;
display: flex;
text-align: center;
font-size: var(--fontSize32);
font-weight: 500;
}
// .btns {
// position: fixed;
// bottom: 0;
// width: 100%;
// padding: var(--fontSize20);
// background: #ffffff;
// display: flex;
// text-align: center;
// font-size: var(--fontSize32);
// font-weight: 500;
// }
.btn-default {
box-sizing: border-box;
......@@ -575,4 +615,97 @@ page .isFullSucreen {
color: #BEC1C7;
text-align: center;
padding: 16rpx 0;
}
.templateNameBox {
margin-top: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40rpx;
margin-bottom: 20rpx;
box-sizing: border-box;
.title {
color: #383838;
font-size: 28rpx;
font-weight: 600;
}
.template {
color: #347bff;
font-size: 28rpx;
margin-left: 16rpx;
}
}
// 自定义 checkbox 组样式(隐藏原生勾选,使用 gl-image 图标)
.checkbox-group {
display: flex;
gap: var(--fontSize24);
}
.checkbox-item {
display: inline-flex;
align-items: center;
gap: var(--fontSize12);
}
.checkbox-item .icon {
width: var(--fontSize36);
height: var(--fontSize36);
}
.hidden-checkbox {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.checkbox-item.disabled {
opacity: 0.6;
}
.presonBox {
color: #292d33;
font-size: 28rpx;
padding: 28rpx 32rpx 12rpx;
font-weight: 600;
}
.totalBox {
// width: 100%;
// height: 126rpx;
box-sizing: border-box;
margin-top: 16rpx;
display: flex;
padding: 24rpx 32rpx;
border-radius: 16rpx;
background: #ffffff;
flex-wrap: wrap;
.con {
// flex: 1;
width: 50%;
display: flex;
flex-direction: column;
// margin-bottom: 16rpx;
.label {
color: #757b85;
font-size: 24rpx;
margin-bottom: 8rpx;
}
.num {
font-family: 'numberBold';
font-size: 28rpx;
}
}
// 第3个开始
.con:nth-child(n+3) {
margin-top: 16rpx;
}
}
\ No newline at end of file
......@@ -106,7 +106,7 @@ Page({
let {
attr
} = e.detail
let { tmlpFormData, tmlpObj, trainTmlpSuffix } = this.data
let { tmlpFormData, tmlpObj, trainTmlpSuffix, tmlpCode } = this.data
tmlpObj['organizeTraining' + trainTmlpSuffix]?.forEach(item => {
if (!item.name.includes('isTrainingOrganized')) {
item.isHide = tmlpFormData[attr] == '否' ? true : false
......@@ -120,6 +120,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({
tmlpObj
})
......@@ -732,6 +750,11 @@ Page({
formJson: this.dealParams()
}
console.log(JSON.parse(params.formJson), 'params-----')
// 删----要给新字段加校验++++
// this.setData({
// isConfirm: false
// })
// wx.$util.showToast('提交成功')
this.secondConfirm(params)
},
......
// components/TabBar/TabBar.js
Component({
/**
* 组件的属性列表
*/
properties: {
tabList: {
type: Array,
observer: function (list) {
// 规范化 tab 列表为对象数组,支持字符串与多种字段名
this.normalizeTabList(list)
}
},
activeIndex: {
type: Number,
observer: function (n) {
console.log(this.data.tabIndex, 'activeIndex', n)
console.log(this.data.tabIndex != n)
if (this.data.tabIndex != n) {
this.setData({
tabIndex: this.data.activeIndex
})
this.setTab(this.data.tabIndex)
}
}
},
scroll: Boolean
},
/**
* 组件的初始数据
*/
data: {
tabIndex: 0,
tabItems: []
},
lifetimes: {
ready() {
// console.log('lifetimes',this.data.tabIndex);
// console.log('lifetimes',this.data.activeIndex);
// 确保首屏渲染有规范化后的 tabItems
this.normalizeTabList(this.data.tabList)
this.setTab(this.data.tabIndex)
let that = this
wx.$eventbus.on('page_show', n => {
!that.data.width && that.setTab(that.data.tabIndex)
})
}
},
/**
* 组件的方法列表
*/
methods: {
normalizeTabList(list = []) {
const tabItems = (list || []).map(item => {
let label = ''
let count
if (typeof item === 'string') {
label = item
} else if (item && typeof item === 'object') {
label =
item.text ??
item.label ??
item.name ??
item.title ??
item.brandName ??
''
if (item.firstBrandId == -1) {
label = item.firstBrandName
}
count = item.count
} else {
label = ''
}
return { label, count, _raw: item }
})
this.setData({ tabItems })
},
change(e) {
let { index } = e.currentTarget.dataset
this.setTab(index)
},
setTab(index = 0) {
let { tabIndex } = this.data
wx.$util.getViewInfo(
`#tab-${tabIndex}`,
old => {
let oldLeft = old.left
let oldWidth = old.width
wx.$util.getViewInfo(
`#tab-${index}`,
res => {
let { left, width } = res
if (tabIndex != index) {
let readyLeft = oldLeft > left ? left : oldLeft
let readyWidth =
oldLeft > left ? oldLeft - left : left - oldLeft
this.setData({
activeStyle: `width: var(--fontSize64);background-color:#347BFF;border-radius:3rpx;left:${readyLeft + readyWidth / 2
}px;transition: all .1s;`
})
}
setTimeout(() => {
this.setData({
activeStyle: `width: var(--fontSize64);left:${left + (width - 32) / 2
}px;background-color:#347BFF;`,
tabIndex: index,
to: `to-${index}`,
width
})
const itemObj =
this.data.tabItems && this.data.tabItems[index]
? this.data.tabItems[index]._raw ??
this.data.tabItems[index]
: undefined
this.triggerEvent('click', { index, item: itemObj })
}, 100)
},
this
)
},
this
)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<block wx:if="{{ scroll }}">
<scroll-view class="scroll" scroll-x enable-flex scroll-with-animation scroll-into-view="{{ to }}">
<block wx:for="{{ tabItems }}" wx:key="index">
<view class="tab-item {{ tabIndex==index?'active':'' }}" bindtap="change" data-index="{{ index }}" id="to-{{ index }}">
<text id="tab-{{ index }}"><text class="tab-item-text">{{item.label}}</text><text wx:if="{{ item.count >= 0 }}" style="font-size: var(--fontSize20);">({{item.count}})</text></text>
</view>
</block>
<!-- <view class="active-doc" style="{{activeStyle}}" /> -->
</scroll-view>
</block>
<block wx:else>
<view
class="tab"
style="grid-template-columns: repeat({{ tabItems.length}}, 1fr);font-size:{{tabItems.length>5?'var(--fontSize24)':'' }} ;"
>
<block wx:for="{{ tabItems }}" wx:key="index">
<!-- style="color:{{tabIndex==index?'#347BFF':''}};" -->
<view class="tab-item {{ tabIndex==index?'active':'' }}" bindtap="change" data-index="{{ index }}">
<text id="tab-{{ index }}"><text class="tab-item-text">{{item.label}}</text><text wx:if="{{ item.count >= 0 }}" style="font-size: var(--fontSize20);">({{item.count}})</text></text>
</view>
</block>
<view class="active-doc" style="{{ activeStyle }}" />
</view>
</block>
\ No newline at end of file
/* components/TabBar/TabBar.wxss */
.tab {
/* background-color: #fff; */
height: var(--fontSize72);
box-sizing: border-box;
display: grid;
align-items: center;
font-size: var(--fontSize28);
color: #347bff;
border-bottom: var(--fontSize1) solid #F2F3F5;
}
.scroll {
/* background-color: #fff; */
height: var(--fontSize104);
box-sizing: border-box;
/* color: #347bff; */
color: #5a5e66;
border-bottom: var(--fontSize1) solid #F2F3F5;
width: 100%;
display: flex;
line-height: var(--fontSize104);
font-size: 0;
}
.active {
/* font-size: var(--fontSize32); */
font-weight: 600;
color: #347BFF;
}
.active-doc {
position: absolute;
bottom: var(--fontSize1);
height: var(--fontSize4);
border-radius: var(--fontSize2) var(--fontSize2) 0 0;
transition: all .25s;
}
.tab .tab-item {
text-align: center;
}
.scroll .tab-item {
width: fit-content;
min-width: var(--fontSize97);
height: 100%;
flex-shrink: 0;
font-size: var(--fontSize28);
text-align: center;
position: relative;
padding: 0 var(--fontSize10);
font-weight: 600;
}
.scroll .active::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 64rpx;
height: var(--fontSize4);
background-color: #347BFF;
content: '';
}
\ No newline at end of file
......@@ -6,7 +6,8 @@
justify-content: space-around;
align-items: center;
background: #fff;
.week_box{
.week_box {
height: var(--fontSize60);
width: 100%;
display: flex;
......@@ -14,14 +15,24 @@
align-items: center;
box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159;
}
.date_box{
.date_box {
height: var(--fontSize128);
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
}
.left {
margin-left: 10rpx;
}
.right {
margin-right: 20rpx;
}
}
.weekselect {
height: var(--fontSize80);
flex-direction: row;
......@@ -41,7 +52,8 @@
font-weight: 400;
flex-direction: row;
color: #181A1F;
width: var(--fontSize180);
width: var(--fontSize200);
font-size: 28rpx;
}
.dateType {
......@@ -54,6 +66,7 @@
border-radius: 50%;
width: var(--fontSize64);
height: var(--fontSize64);
.empty {
box-sizing: border-box;
position: absolute;
......@@ -70,7 +83,8 @@
color: #fff;
}
}
.dateType.dateType_disabled{
.dateType.dateType_disabled {
color: #BEC1C7;
}
......@@ -81,7 +95,7 @@
.select-column {
.dateType{
.dateType {
background: #347BFF;
color: #fff;
}
......@@ -109,9 +123,12 @@
font-weight: 500;
font-size: var(--fontSize28);
color: #181A1F;
// font-size: var(--fontSize35);
// font-weight: bold;
// margin-right: auto;
width: 280rpx;
height: 64rpx;
text-align: center;
line-height: 64rpx;
border-radius: 20px;
background: #f2f3f5;
}
.line {
......@@ -121,7 +138,7 @@
}
.lastweek {
width: var(--fontSize180);
width: var(--fontSize200);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize28);
......@@ -149,6 +166,12 @@
/* iOS 4.1- */
}
.icon {
width: 36rpx;
height: 36rpx;
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
......
......@@ -3,25 +3,27 @@
<view class="line"></view>
<view class="row weekselect">
<view class="row lastweek" bindtap="lastWeek">
<text class="iconfont icon-sanjiaoleft" style="padding:var(--fontSize15);color: #bec1c7;"></text>
<!-- <text class="iconfont icon-sanjiaoleft" style="padding:var(--fontSize15);color: #bec1c7;"></text> -->
<gl-image class="icon left" src="{{ '/miniProgram/arrow-left.png' }}" webp></gl-image>
<view style="">上一周</view>
</view>
<view class="timeType">{{timeBean.yearMonth}}</view>
<view class="row nextWeek" bindtap="nextWeek">
<block wx:if="{{ !timeBean.isInCurrentWeek }}">
<view style=" ">下一周</view>
<text class="iconfont icon-sanjiaoright" style="padding:var(--fontSize15);color: #bec1c7;"></text>
<gl-image class="icon right" src="{{ '/miniProgram/arrow-right.png' }}" webp></gl-image>
<!-- <text class="iconfont icon-sanjiaoright" style="padding:var(--fontSize15);color: #bec1c7;"></text> -->
</block>
</view>
</view>
<view class="row">
<view class="week_box">
<view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item column" bindtap="itemClick" wx:key="index">
<view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item column" bindtap="itemClick" wx:key="index">
<view class="weekType">{{timeBean.weekDayList[index].week}}</view>
</view>
</view>
<view class="date_box">
<view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item column {{ index==timeBean.selectDay?'select-column':'' }}" bindtap="itemClick" wx:key="index">
<view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item column {{ index==timeBean.selectDay?'select-column':'' }}" bindtap="itemClick" wx:key="index">
<view class="dateType {{timeBean.weekDayList[index].disabled ? 'dateType_disabled' : ''}}">
{{timeBean.weekDayList[index].day}}
<view class="empty" wx:if="{{ !timeBean.weekDayList[index].disabled && !timeBean.weekDayList[index].hasDailyValue }}">空</view>
......
......@@ -4,6 +4,7 @@
"weekCalendar": "./components/weekCalendar/weekCalendar",
"gl-cell-staff": "./components/GlCell/GlCell",
"store-picker": "./components/storePicker/storePicker",
"select-item-popup": "./components/selectItemPopup/selectItemPopup"
"select-item-popup": "./components/selectItemPopup/selectItemPopup",
"tab-bar": "./components/TabBar/TabBar"
}
}
\ No newline at end of file
}
......@@ -42,12 +42,17 @@ page {
margin-left: var(--fontSize12);
// transform: translateY(-52%);
transition: all 0.5s;
}
// .img {
// // width: 36rpx;
// // height: 36rpx;
// // margin-bottom: 25rpx;
// }
.staffBox {
// margin-left: auto;
margin-left: 16rpx;
}
.staffName {
color: #347bff;
font-size: 28rpx;
}
.move {
......@@ -60,7 +65,7 @@ page {
.main {
// padding: 0 var(--fontSize20) var(--fontSize256);
padding: 0 20rpx 300rpx;
padding: 0 20rpx 52rpx;
.mainheader {
margin: var(--fontSize20) var(--fontSize10) 0;
......@@ -101,21 +106,14 @@ page .isFullSucreen {
.box {
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
// box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16);
overflow: hidden;
margin-top: var(--fontSize20);
// margin-top: var(--fontSize20);
height: calc(100% - var(--fontSize100));
// padding: var(--fontSize24) 0;
.presonBox {
height: 66rpx;
background: #e7f3ff;
text-align: center;
line-height: 66rpx;
color: #347bff;
font-size: 24rpx;
}
.carBandTitle {
padding: 0 var(--fontSize40) var(--fontSize24);
......@@ -130,10 +128,13 @@ page .isFullSucreen {
// padding: 0 var(--fontSize40);
color: #292D33;
font-size: var(--fontSize28);
border-bottom: 1rpx solid #dee0e3;
// border-bottom: 1rpx solid #dee0e3;
border-bottom: 1rpx solid #eff0f2;
display: flex;
justify-content: space-between;
padding: 24rpx 40rpx;
padding: 0rpx 40rpx;
height: 88rpx;
box-sizing: border-box;
.left {
display: flex;
......@@ -149,8 +150,9 @@ page .isFullSucreen {
.label {
margin-bottom: var(--fontSize16);
// display: flex;
// margin-bottom: var(--fontSize16);
display: flex;
align-items: center;
color: #292d33;
font-size: 28rpx;
......@@ -159,8 +161,12 @@ page .isFullSucreen {
}
.required_text {
display: inline-block;
color: #F24724;
margin-right: var(--fontSize8);
margin-left: var(--fontSize8);
// 与父元素行高一致,避免上移或下移
line-height: 20rpx;
// 移除 vertical-align,交由 flex 居中对齐
}
}
......@@ -169,7 +175,7 @@ page .isFullSucreen {
}
.content-input {
height: var(--fontSize91);
height: var(--fontSize88);
text-align: right;
font-size: var(--fontSize28);
flex: 1;
......@@ -208,7 +214,6 @@ page .isFullSucreen {
line-height: var(--fontSize80);
text-align: right;
}
.placeholder {
......@@ -264,17 +269,22 @@ page .isFullSucreen {
font-weight: 400;
margin-right: 10rpx;
}
margin-bottom: var(--fontSize20);
}
.remark_box {
padding: var(--fontSize20);
// padding: var(--fontSize20);
background-color: #fff;
padding: 24rpx 32rpx 24rpx;
border-radius: 16rpx;
.label {
font-size: var(--fontSize28);
color: #292D33;
margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20);
// margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20);
margin-bottom: 20rpx
}
.textArea_box {
......@@ -283,9 +293,12 @@ page .isFullSucreen {
border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize16);
padding: var(--fontSize24);
background: #f4f5f7;
.textarea {
height: var(--fontSize130);
height: var(--fontSize100);
// width: 335rpx;
width: 100%;
}
.currentWordNumber {
......@@ -300,14 +313,13 @@ page .isFullSucreen {
}
.btns {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: var(--fontSize100);
background: #FFFFFF;
// background: #FFFFFF;
box-sizing: border-box;
/* padding: var(--fontSize10) var(--fontSize32); */
margin-bottom: 100rpx;
display: flex;
align-items: center;
justify-content: space-between;
......@@ -318,7 +330,8 @@ page .isFullSucreen {
}
.btns-con {
width: 100%;
// width: 100%;
width: 622rpx;
box-sizing: border-box;
display: flex;
flex-flow: column;
......@@ -351,6 +364,7 @@ page .isFullSucreen {
margin-top: var(--fontSize20);
margin-right: var(--fontSize20);
color: #347BFF;
background-color: #fff;
}
.btns .confirm {
......@@ -374,6 +388,7 @@ page .isFullSucreen {
font-size: var(--fontSize24);
}
.tips .contentText {
margin-left: var(--fontSize20);
margin-right: auto;
......@@ -456,17 +471,17 @@ page .isFullSucreen {
margin-right: 0;
}
.btns {
position: fixed;
bottom: 0;
width: 100%;
padding: var(--fontSize20);
background: #ffffff;
display: flex;
text-align: center;
font-size: var(--fontSize32);
font-weight: 500;
}
// .btns {
// position: fixed;
// bottom: 0;
// width: 100%;
// padding: var(--fontSize20);
// background: #ffffff;
// display: flex;
// text-align: center;
// font-size: var(--fontSize32);
// font-weight: 500;
// }
.btn-default {
box-sizing: border-box;
......@@ -575,4 +590,89 @@ page .isFullSucreen {
color: #BEC1C7;
text-align: center;
padding: 16rpx 0;
}
.templateNameBox {
margin-top: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40rpx;
margin-bottom: 20rpx;
box-sizing: border-box;
.title {
color: #383838;
font-size: 28rpx;
font-weight: 600;
}
.template {
color: #347bff;
font-size: 28rpx;
margin-left: auto;
}
}
// 自定义 checkbox 组样式(隐藏原生勾选,使用 gl-image 图标)
.checkbox-group {
display: flex;
gap: var(--fontSize24);
}
.checkbox-item {
display: inline-flex;
align-items: center;
gap: var(--fontSize12);
}
.checkbox-item .icon {
width: var(--fontSize36);
height: var(--fontSize36);
}
.hidden-checkbox {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.checkbox-item.disabled {
opacity: 0.6;
}
.presonBox {
color: #292d33;
font-size: 28rpx;
padding: 28rpx 32rpx 12rpx;
font-weight: 600;
}
.totalBox {
// width: 100%;
// height: 126rpx;
margin-top: 16rpx;
display: flex;
padding: 24rpx 32rpx;
border-radius: 16rpx;
background: #ffffff;
.con {
flex: 1;
display: flex;
flex-direction: column;
.label {
color: #757b85;
font-size: 24rpx;
margin-bottom: 8rpx;
}
.num {
font-family: 'numberBold';
font-size: 28rpx;
}
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!