Commit 29ff15c6 by 张立顺

Merge branch 'SAAS+V4.53.1-0610' into 'SAAS+V4.54.0-0630'

上线合并

See merge request !402
2 parents 5717055f 986a946b
Showing 59 changed files with 2494 additions and 466 deletions
......@@ -79,14 +79,12 @@ Component({
cancel:点击选择按钮的操作;只有选中后,取消才可以触发
*/
watchAllChose(index, cancel) {
async watchAllChose(index, cancel) {
let {
goodsList,
strTemp
} = this.data;
let result = goodsList[index].multipleSpecificationsGoods.specificationList.every(item => item.value)
console.log(result, goodsList[index], 1)
if (result) {
if (!cancel) {
let arr = []
......@@ -95,16 +93,40 @@ Component({
})
let str = arr.join(';~;')
// strTemp用来存储上一次选中的值,判断规格是否重新选择 ,避免页面交互闪烁
// if (type && str != strTemp) {
//获取该规格的商品是否存在
console.log(str)
goodsList[index].multipleSpecificationsGoods.skuGoodsList = []
if (goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]) {
goodsList[index].active = true
console.log(goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str], 'str')
goodsList[index].multipleSpecificationsGoods.goods = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
goodsList[index].multipleSpecificationsGoods.goods.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId
goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/')
let goodsArr = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
//当多规格商品只有一个时,直接选中
if (goodsArr.length == 1) {
goodsList[index].active = true
goodsList[index].multipleSpecificationsGoods.goods = goodsArr[0]
goodsList[index].multipleSpecificationsGoods.goods.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId
goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/')
} else {
//多个多规格商品时出现弹窗
goodsList[index].active = false
goodsArr.forEach(item => {
item.count = 1
item.active = false
item.goodsId = item.merchantGoodsId
item.specificationStr = item.specificationData.replace(/;~;/g, '/')
})
goodsList[index].multipleSpecificationsGoods.skuGoodsList = goodsArr
let chooseList = await this.getChooseList(false);
this.setData({
show: false,
goodsList
}, () => {
let thisPage = wx.$router.getPageInstance();
thisPage.setData({
skuGoodsData: goodsList[index],
skuGoodsBox: true,
goodsList: chooseList
})
thisPage?.setGoodsTotal && thisPage.setGoodsTotal(chooseList);
});
}
} else {
console.log(88888)
wx.$util.showToast('暂无该规格商品')
......@@ -138,7 +160,6 @@ Component({
}
}
}
return result
},
......@@ -164,7 +185,7 @@ Component({
"goodsId"
);
console.log(arr, arr.length, 'arr')
console.log(chooseGoodsList, 'chooseGoodsList')
// console.log(chooseGoodsList, 'chooseGoodsList')
if (arr.length == 0) {
goodsList.forEach(e => {
e.active = false
......@@ -172,7 +193,7 @@ Component({
})
} else {
goodsList.map((e, index) => {
e.active = false
// e.active = false
arr.map(s => {
if (s.goods && e.goods) {
if (s.goods.goodsId == e.goods.goodsId) {
......@@ -182,27 +203,21 @@ Component({
}
}
//初始化进来不显示标识
if (!s.isFlag) {
if (s.multipleSpecificationsGoods && e.multipleSpecificationsGoods) {
if (s.multipleSpecificationsGoods.id == e.multipleSpecificationsGoods.id) {
e.active = true
e.count = s.count
// e.multipleSpecificationsGoods.goods = JSON.parse(JSON.stringify(s.multipleSpecificationsGoods.goods))
// e.multipleSpecificationsGoods.goods.goodsId = JSON.parse(JSON.stringify(s.multipleSpecificationsGoods.goods.merchantGoodsId))
// e.multipleSpecificationsGoods.goods.sellPrice = s.multipleSpecificationsGoods.goods.sellPrice
// e.multipleSpecificationsGoods.specificationList = {
// ...s.multipleSpecificationsGoods.specificationList
// }
}
// if (!s.isFlag) {
if (s.multipleSpecificationsGoods && e.multipleSpecificationsGoods) {
if (s.multipleSpecificationsGoods.id == e.multipleSpecificationsGoods.id) {
e.count = s.count
// e.active=s.acitve
}
}
//多规格初始化不需要回显逻辑
})
})
}
console.log(goodsList, 'goodsList999')
this.setData({
goodsList,
// recordList
......@@ -268,7 +283,7 @@ Component({
return acc;
}, []);
},
async getChooseList() {
async getChooseList(isValid) {
let {
goodsList,
chooseGoodsList,
......@@ -281,13 +296,15 @@ Component({
chooseList.push(e)
}
});
if (!chooseList?.length) return wx.$util.showToast("请勾选商品");
//处理多规格选择重复商品时,数量相加逻辑
console.log(chooseGoodsList.length, 'chooseGoodsList.length')
if (chooseGoodsList.length > 0) {
await this.addMMultipleSpecificationsGoods(chooseList, chooseGoodsList)
if (isValid) {
if (!chooseList?.length) return wx.$util.showToast("请勾选商品");
}
// 处理多规格选择重复商品时,数量相加逻辑
// if (chooseGoodsList.length > 0) {
// await this.addMMultipleSpecificationsGoods(chooseList, chooseGoodsList)
// }
// debugger
let arr = this.removeDuplicates(
chooseList.concat(chooseGoodsList),
......@@ -346,7 +363,7 @@ Component({
})
},
choose(e) {
async choose(e) {
let {
item,
ind
......@@ -359,7 +376,7 @@ Component({
} = this.data;
//单独处理多规格商品点击事件
if (item.goodsFlag == 2) {
if (!this.watchAllChose(ind, true)) {
if (!await this.watchAllChose(ind, true)) {
wx.$util.showToast('请先选择该商品规格')
return
}
......@@ -441,8 +458,8 @@ Component({
if (value < 1) value = 1;
if (value > 999) value = 999;
this.setData({
[target]: Number(value),
},
[target]: Number(value),
},
() => {
this.synchronousChange(this.data.goodsList[ind])
}
......@@ -497,7 +514,7 @@ Component({
});
},
async confirm() {
let chooseList = await this.getChooseList();
let chooseList = await this.getChooseList(true);
console.log(chooseList, '99999')
let {
goodsList
......
......@@ -6,6 +6,7 @@
bottom: 0;
right: 0;
z-index: 998;
transform: translateZ(2px);
}
.popup-bg {
......
// packageEquity/pages/carQuotation/components/skuGoods/Goods.js
Component({
/**
* 组件的属性列表
*/
properties: {
//1:精品升级 0 会员权益
sceneType: {
type: String,
},
show: {
type: Boolean,
observer: function (n) { }
},
goodsData: {
type: Object,
observer: function (n) {
console.log(n, '999', this.data.chooseGoodsList)
this.setGoodsActive();
}
},
chooseGoodsList: {
type: Array,
observer: function (n) {
// this.setGoodsActive();
},
},
},
observers: {
'show': function (value, old) {
console.log(value, old, 'show');
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
scrollDisabled: value
})
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
setGoodsActive() {
//同步数量
let {
chooseGoodsList,
goodsData
} = this.data;
goodsData.multipleSpecificationsGoods.skuGoodsList.forEach(c => {
if (chooseGoodsList.length > 0) {
chooseGoodsList.map(x => {
if (x.goodsFlag == 2) {
if (x.multipleSpecificationsGoods.goods && x.multipleSpecificationsGoods.goods.goodsId == c.goodsId) {
c.count = x.count || 0
}
}
})
}
})
this.setData({
goodsData
})
},
hidePopup() {
this.setData({
show: false
})
this.triggerEvent('cancel')
},
choose(e) {
let {
item,
index
} = e.currentTarget.dataset
let {
goodsData
} = this.data
let {
active
} = item
//全部取消选择
goodsData.multipleSpecificationsGoods.skuGoodsList.forEach(item => item.active = false)
goodsData.multipleSpecificationsGoods.skuGoodsList[index].active = !active
this.setData({
goodsData
})
},
input(e) {
let {
index
} = e.currentTarget.dataset
let {
goodsData
} = this.data
console.log(e)
let {
value
} = e.detail
if (value < 1) value = 1
if (value > 999) value = 999
goodsData.multipleSpecificationsGoods.skuGoodsList[index].count = value
// this.setData({
// // goodsData
// })
},
blur() {
this.setData({
goodsData: this.data.goodsData
})
},
getChooseList() {
let {
chooseGoodsList,
goodsData
} = this.data;
console.log(chooseGoodsList, goodsData)
let chooseList = [],
selectList = []
goodsData.multipleSpecificationsGoods.skuGoodsList.forEach(c => {
if (c.active) {
//构建多规格需要的数据格式
selectList.push({
active: true,
count: c.count,
goods: null,
goodsFlag: 2,
isFlag: true,
multipleSpecificationsGoods: {
baseGoodsName: goodsData.multipleSpecificationsGoods.baseGoodsName,
id: goodsData.multipleSpecificationsGoods.id,
specificationGoodsMap: goodsData.multipleSpecificationsGoods.specificationGoodsMap,
specificationList: goodsData.multipleSpecificationsGoods.specificationList,
goods: c
}
})
}
})
console.log(selectList, 'selectList')
//精品升级需要处理数量,会员权益不需要
if (selectList.length) {
selectList.forEach(c => {
if (!c.count) c.count = 1
c.multipleSpecificationsGoods.goods.price = c.multipleSpecificationsGoods.goods.sellPrice || 0
if (chooseGoodsList.length > 0) {
chooseGoodsList.map(x => {
if (x.goodsFlag == 2 && x.multipleSpecificationsGoods) {
console.log(x.multipleSpecificationsGoods.goods && x.multipleSpecificationsGoods.goods.goodsId == c.multipleSpecificationsGoods.goods.goodsId, 'x.multipleSpecificationsGoods.goods && x.multipleSpecificationsGoods.goods.goodsId == c.multipleSpecificationsGoods.goods.goodsId')
if (x.multipleSpecificationsGoods.goods && x.multipleSpecificationsGoods.goods.goodsId == c.multipleSpecificationsGoods.goods.goodsId) {
console.log(c)
//精品升级需要处理数量,会员权益不需要
x.count = c.multipleSpecificationsGoods.goods.count || 0
}
}
})
let arr = chooseGoodsList.filter(item => item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods)
console.log(arr)
selectList.forEach(oldval => {
if (oldval.multipleSpecificationsGoods) {
if (!arr.some(newVal => newVal.multipleSpecificationsGoods.goods.goodsId == oldval.multipleSpecificationsGoods.goods.goodsId)) {
chooseList.push(oldval)
}
}
})
} else {
chooseList = selectList
}
})
}
console.log(chooseList, 'chooseList')
chooseList = chooseList.concat(chooseGoodsList)
console.log(chooseList, 'chooseList')
return [selectList, chooseList]
},
confirm() {
let [selectList, chooseList] = this.getChooseList()
console.log(selectList, chooseList)
if (!selectList.length) return wx.$util.showToast('请勾选商品')
this.triggerEvent('confirm', chooseList)
let thisPage = wx.$router.getPageInstance()
if (this.data.sceneType == 1) {
thisPage.setData({
goodsList: chooseList,
});
thisPage?.setGoodsTotal && thisPage.setGoodsTotal(chooseList);
} else {
thisPage.setData({
['orderInfo.vdQuotationGoodsList']: chooseList
}, () => {
//会员权益
thisPage.totalFee()
})
}
this.setData({
show: false
})
},
},
lifetimes: {
attached() {
console.log(77777)
this.setData({
windowHight: wx.getSystemInfoSync().windowHeight
})
}
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* packageEquity/pages/carQuotation/components/skuGoods/Goods.wxss */
.title {
width: 100%;
font-weight: 500;
font-size: 32rpx;
color: #222222;
text-align: center;
line-height: 48rpx;
padding: 32rpx 0;
border-bottom: 1rpx solid #EBEDF0;
}
.tips {
font-weight: 400;
font-size: 24rpx;
color: #999999;
line-height: 36rpx;
text-align: center;
padding: 20rpx 0;
}
.goods {
margin: 0 24rpx;
max-height:700rpx;
overflow-Y:scroll;
}
.goods .active {
background: #347bff14!important;
border: 2rpx solid #347BFF;
}
.goods .item-wrap {
background: #F7F8FA;
border-radius: 12rpx;
display: flex;
align-items: center;
padding: 24rpx;
box-sizing: border-box;
min-height: 184rpx;
margin-bottom:16rpx;
}
.item-wrap .icon {
display: block;
width: var(--fontSize32);
height: var(--fontSize32);
margin-right: 20rpx;
}
.item-wrap.active {
color: #347BFF;
}
.item-wrap .icon .arc {
width: var(--fontSize32);
height: var(--fontSize32);
border: var(--fontSize2) solid #979797;
border-radius: 100%;
box-sizing: border-box;
}
.value {
width: calc(100% - 56rpx);
}
.value .alias {
font-weight: 400;
font-size: 24rpx;
color: #222222;
line-height: 36rpx;
margin-bottom: 16rpx;
}
.bottom_box {
display: flex;
align-items: center;
justify-content: space-between;
}
.bottom_box .left {
margin-right:8rpx;
}
.bottom_box .left .name {
font-weight: 400;
font-size: 28rpx;
color: #EA6612;
margin-bottom: 8rpx;
}
.bottom_box .left .position {
font-weight: 400;
font-size: 24rpx;
color: #9B9B9E;
line-height: 36rpx;
}
.right {
display: flex;
align-items: center;
font-weight: 400;
font-size: 28rpx;
color: #333333;
}
.right .price-box {
display: flex;
align-items: center;
margin-right: 16rpx;
}
.input {
width: 84rpx;
height: 72rpx;
background: #FFFFFF;
border: 2rpx solid #EFF0F2;
border-radius: 12rpx;
text-align: center;
}
.popup-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--fontSize20) var(--fontSize32) ;
}
.popup-footer.isFullSucreen {
padding-bottom: var(--fontSize68) !important;
}
.popup-footer .btn {
width: var(--fontSize330);
height: var(--fontSize80);
box-sizing: border-box;
border-radius: var(--fontSize12);
font-size: var(--fontSize32);
}
.popup-footer .cancel {
/* color: #323233;
border: var(--fontSize2) solid #DCDEE0; */
color: #292D33;
background: #F7F8FA;
}
.popup-footer .confirm {
background: #347BFF;
color: #fff;
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
\ No newline at end of file
<van-popup lock-scroll catchtouchmove="noScroll" custom-style="min-height: 280px;width:var(--fontSize686);" round z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
<view class="title">确认需购买的商品</view>
<view class="tips">温馨提示:请仔细确认当前售价,避免录错单</view>
<view class="goods" catchtouchmove="noScroll">
<scroll-view scroll-y style="height:350px;">
<view class="item-wrap {{i.active?'active':''}}" wx:for="{{goodsData.multipleSpecificationsGoods.skuGoodsList}}" wx:key="ind" wx:for-index="index" wx:for-item="i">
<view class="icon" catchtap="choose" data-index="{{index}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="./images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
<view class="value">
<view class="alias" wx:if="{{i.goodsAlias}}">
商品别名:{{i.goodsAlias}}
</view>
<view class="bottom_box">
<view class="left">
<view class="name">{{goodsData.multipleSpecificationsGoods.baseGoodsName}}</view>
<view class="position" wx:if="{{ i.specificationStr }}">{{i.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box">
<text>¥</text>
<view class="price">
<!-- {{i}} -->
{{i.sellPrice}}
</view>
</view>
<view style="display:flex;align-items: center;" wx:if="{{i.active&&sceneType==1}}">x <input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" bindblur="blur" data-index="{{index}}" data-item="{{i}}" /></view>
<view class="count" catchtap="showPopup" wx:else data-show-name="goodsBox">x{{i.count||1}}</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认</view>
</view>
</van-popup>
\ No newline at end of file
......@@ -45,10 +45,10 @@ Component({
*/
let _this = this
// 获取屏幕宽度和高度
const { windowWidth, windowHeight } = wx.getSystemInfoSync();
const { windowWidth, windowHeight } = wx.getSystemInfoSync()
// 判断屏幕方向
const isLandscape = windowWidth > windowHeight; // '横屏' : '竖屏'
const isLandscape = windowWidth > windowHeight // '横屏' : '竖屏'
wx.getSystemInfo({
success(res) {
let {
......@@ -59,12 +59,9 @@ Component({
safeArea,
platform
} = res
const {
height,
right,
width,
top
} = wx.getMenuButtonBoundingClientRect()
console.log(safeArea, 'safeArea')
const { height, right, width, top } =
wx.getMenuButtonBoundingClientRect()
// 判断是否是华为平板设备
// && pixelRatio >= 2
let isPad = screenWidth >= 600
......@@ -72,19 +69,23 @@ Component({
if (isLandscape) statusBarHeight = 0
// console.log(isPad, screenWidth, 'screenWidth');
// let navigationBarHeight = height + (top - statusBarHeight) * 2 + 5
let navigationBarHeight = `var(--fontSize${(height + (top - statusBarHeight) * 2 + 5) * (isPad ? 1 : 2)})`
let navigationBarHeight = `var(--fontSize${
(height + (top - statusBarHeight) * 2) * (isPad ? 1 : 2)
})`
let navigationBarPadding = screenWidth - right
let navigationBarWidth = screenWidth - (navigationBarPadding * 2 + width) - width
let navigationBarWidth =
screenWidth - (navigationBarPadding * 2 + width) - width
// if(deviceOrientation == 'landscape') statusBarHeight = 0
_this.setData({
statusBarHeight: `var(--fontSize${statusBarHeight * (isPad ? 1 : 2)})`,
statusBarHeight: `var(--fontSize${
statusBarHeight * (isPad ? 1 : 2)
})`,
navigationBarHeight,
// navigationBarStyle: `font-size:${fontSizeSetting}px;`,
navigationBarStyle: 'font-size: var(--fontSize34)',
navigationBarTextWidth: `width:${navigationBarWidth}px;padding:0 ${navigationBarPadding}px; 0 ${navigationBarPadding}px;`
})
},
complete() {
// console.log('#navigation-bar');
......@@ -103,7 +104,6 @@ Component({
// }, 0)
}
})
}
},
pageLifetimes: {
......@@ -112,11 +112,11 @@ Component({
// this.setData({
// statusBarHeight: 0
// })
// else
// else
this.init()
}
},
ready() {
this.init()
}
})
\ No newline at end of file
})
<view class='navigation-bar' id='navigation-bar' style='padding-top:{{statusBarHeight}};height:{{navigationBarHeight}};{{navStyle}}'>
<!-- hidden="{{!showNavBar}}" wx:if="{{showNavBar}}" -->
<!-- <view class="navigation-bar-box" style="{{navigationBarStyle}}"> -->
<view class="navigation-bar-box">
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
<slot />
</view>
<block wx:if="{{showBack}}">
<view class="back-box" bindtap="back">
<view class="back">
<image src="../../images/back.png" />
</view>
</view>
</block>
<block wx:if="{{showMenu}}">
<view class="menu-box" bindtap="showMenuPopup">
<view class="menu-class">
<image wx:if="{{showWhiteMenu}}" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/nav-bar-menu.png" />
<image wx:else src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation-bar-menu.png" />
</view>
</view>
</block>
</view>
<view
class="navigation-bar"
id="navigation-bar"
style="padding-top:{{ statusBarHeight}};height:{{navigationBarHeight}};{{navStyle }}"
>
<!-- hidden="{{!showNavBar}}" wx:if="{{showNavBar}}" -->
<!-- <view class="navigation-bar-box" style="{{navigationBarStyle}}"> -->
<view class="navigation-bar-box">
<view class="navigation-bar-titleText" style="{{ navigationBarTextWidth }}">
<slot />
</view>
<block wx:if="{{ showBack }}">
<view class="back-box" bindtap="back">
<view class="back">
<image src="../../images/back.png" />
</view>
</view>
</block>
<block wx:if="{{ showMenu }}">
<view class="menu-box" bindtap="showMenuPopup">
<view class="menu-class">
<image wx:if="{{ showWhiteMenu }}" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/nav-bar-menu.png" />
<image wx:else src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation-bar-menu.png" />
</view>
</view>
</block>
</view>
</view>
\ No newline at end of file
......@@ -12,6 +12,7 @@
width: 100%;
color: #347BFF;
font-size: var(--fontSize24);
/* z-index: 1; */
}
.tipsIcon {
......
......@@ -54,7 +54,8 @@ Component({
// startTime: `2024-04-23 00:00:00`,
// endTime: `2024-04-23 23:59:59`
startTime: `${today} 00:00:00`,
endTime: `${today} 23:59:59`
endTime: `${today} 23:59:59`,
bussinessType: 1, //"业务类型 1.延保 2.轻改"
})
let list = data?.list || []
list?.length && list.map(e => {
......
......@@ -13,6 +13,11 @@ Component({
keyWord: '',
strTemp: ''
})
if (this.data.chooseGoodsList.length == 0) {
this.setData({
isFlag: true
})
}
// this.getOrderBaseGoodsList(n)
let thisPage = wx.$router.getPageInstance()
thisPage.getQuotationInfo(true)
......@@ -33,6 +38,8 @@ Component({
type: Array,
observer: function (n) {
console.log(n, 'chooseGoodsList');
// wx.showLoading('请求中...')
this.setGoodsActive()
}
},
......@@ -45,6 +52,7 @@ Component({
* 组件的初始数据
*/
data: {
isFlag: false,
goodsList: [],
recordList: [],
specificBox: false
......@@ -79,7 +87,7 @@ Component({
this.watchAllChose(index, true)
})
},
watchAllChose(index, type) {
async watchAllChose(index, type) {
let {
goodsList,
recordList,
......@@ -89,73 +97,108 @@ Component({
let active = goodsList[index].active
console.log(active, goodsList[index])
//规格全部选中逻辑处理
if (result) {
let arr = []
goodsList[index].multipleSpecificationsGoods.specificationList.forEach(spec => {
arr.push(spec.value)
})
let str = arr.join(';~;')
console.log(str)
goodsList[index].active = true
// strTemp用来存储上一次选中的值,判断规格是否重新选择 ,避免页面交互闪烁
// if (type && str != strTemp) {
if( goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]){
goodsList[index].multipleSpecificationsGoods.goods = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
goodsList[index].multipleSpecificationsGoods.goods.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId
goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/')
recordList.forEach(record => {
if (record.goodsFlag == 2) {
if (goodsList[index].multipleSpecificationsGoods.id ==record.multipleSpecificationsGoods.id) {
record.active=true
record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods
}
}
})
}else{
wx.$util.showToast('暂无该规格商品')
goodsList[index].active=false
goodsList[index].multipleSpecificationsGoods.goods = ''
goodsList[index].multipleSpecificationsGoods.specificationList.forEach(item => {
item.value = ''
})
recordList.forEach(record => {
if (record.goodsFlag == 2) {
if (goodsList[index].multipleSpecificationsGoods.id ==record.multipleSpecificationsGoods.id) {
record.active=false
record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods
}
if (result) {
let arr = []
goodsList[index].multipleSpecificationsGoods.specificationList.forEach(spec => {
arr.push(spec.value)
})
let str = arr.join(';~;')
console.log(str)
goodsList[index].active = true
// strTemp用来存储上一次选中的值,判断规格是否重新选择 ,避免页面交互闪烁
// if (type && str != strTemp) {
console.log(str)
console.log(goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str])
goodsList[index].multipleSpecificationsGoods.skuGoodsList = []
if (goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]) {
let goodsArr = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
//当多规格商品只有一个时,直接选中
if (goodsArr.length == 1) {
goodsList[index].active = true
goodsList[index].multipleSpecificationsGoods.goods = goodsArr[0]
goodsList[index].multipleSpecificationsGoods.goods.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId
goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/')
recordList.forEach(record => {
if (record.goodsFlag == 2) {
if (goodsList[index].multipleSpecificationsGoods.id == record.multipleSpecificationsGoods.id) {
record.active = true
record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods
}
}
})
} else {
goodsList[index].active = false
goodsArr.forEach(item => {
item.count = 1
item.active = false
item.goodsId = item.merchantGoodsId
item.specificationStr = item.specificationData.replace(/;~;/g, '/')
})
goodsList[index].multipleSpecificationsGoods.skuGoodsList = goodsArr
let chooseList = await this.getChooseList(false);
this.setData({
show: false,
goodsList
}, () => {
let thisPage = wx.$router.getPageInstance();
let secondPage = thisPage.selectComponent(`#SecondStep`)
thisPage.setData({
['orderInfo.vdQuotationGoodsList']: chooseList
}, () => {
thisPage.totalFee()
})
this.setData({
goodsList,
recordList
secondPage.setData({
skuGoodsData: goodsList[index],
skuGoodsBox: true
})
}
});
}
// }
} else {
wx.$util.showToast('暂无该规格商品')
goodsList[index].active = false
goodsList[index].multipleSpecificationsGoods.goods = ''
goodsList[index].multipleSpecificationsGoods.specificationList.forEach(item => {
item.value = ''
})
recordList.forEach(record => {
if (record.goodsFlag == 2) {
if (goodsList[index].multipleSpecificationsGoods.id == record.multipleSpecificationsGoods.id) {
record.active = false
record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods
}
}
})
this.setData({
goodsList,
strTemp: str
}, () => {
if (goodsList[index].multipleSpecificationsGoods.goods && type) {
this.handleGoods(index)
}
recordList
})
}
if(active&&!type){
// }
this.setData({
goodsList,
strTemp: str
}, () => {
if (goodsList[index].multipleSpecificationsGoods.goods && type) {
this.handleGoods(index)
}
})
}
if (active && !type) {
goodsList[index].multipleSpecificationsGoods.goods = ''
goodsList[index].multipleSpecificationsGoods.specificationList.forEach(item => {
item.value = ''
})
recordList.forEach(record => {
if (record.goodsFlag == 2) {
if (goodsList[index].multipleSpecificationsGoods.id ==record.multipleSpecificationsGoods.id) {
if (goodsList[index].multipleSpecificationsGoods.id == record.multipleSpecificationsGoods.id) {
record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods
}
}
......@@ -225,6 +268,7 @@ Component({
} = this.data
this.setData({
goodsList: goodsData,
isFlag: false
})
this.setGoodsActive()
},
......@@ -236,6 +280,8 @@ Component({
show
} = this.data
if (show) {
wx.$util.showLoading()
console.log(222222)
if (chooseGoodsList.length == 0) {
goodsList.forEach(e => {
e.active = false
......@@ -297,7 +343,10 @@ Component({
}
this.setData({
goodsList,
recordList
recordList,
isFlag: true
}, () => {
wx.hideLoading()
})
}
......@@ -324,7 +373,6 @@ Component({
chooseGoodsList
} = this.data
let chooseList = []
console.log(recordList,chooseGoodsList,'999999')
recordList.map(c => {
if (c.active) {
if (c.goods) {
......@@ -346,7 +394,7 @@ Component({
if (x.packageGoods && x.packageGoods.packageCode == c.packageGoods.packageCode) {
c.packageGoods.goodsList = c.packageGoods.goodsList.map(item => {
x.packageGoods.goodsList.map(ele => {
if (item.merchantGoodsId == ele.goodsId||item.upgradeGoodsId== ele.upgradeGoodsId) {
if (item.merchantGoodsId == ele.goodsId || item.upgradeGoodsId == ele.upgradeGoodsId) {
item.price = ele.price || 0
}
})
......@@ -392,15 +440,13 @@ Component({
let arr = chooseList.filter(item => item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods)
chooseGoodsList.forEach(oldval => {
if (oldval.multipleSpecificationsGoods) {
if (!arr.some(newVal => newVal.multipleSpecificationsGoods.goods.goodsId == oldval.multipleSpecificationsGoods.goods.goodsId))
chooseList.push(oldval)
}
})
console.log(chooseList, 'chooseList')
return chooseList
},
choose(e) {
async choose(e) {
let {
item,
index,
......@@ -416,7 +462,7 @@ Component({
} = this.data
//单独处理多规格商品点击事件
if (item.goodsFlag == 2) {
if (!this.watchAllChose(ind)) {
if (!await this.watchAllChose(ind)) {
wx.$util.showToast('请先选择该商品规格')
return
}
......@@ -522,7 +568,6 @@ Component({
},
confirm() {
let chooseList = this.getChooseList()
// console.log(chooseList, 'chooseList');
let {
goodsList
} = this.data
......@@ -542,7 +587,8 @@ Component({
})
this.setData({
show: false
show: false,
isFlag: false
})
}
}
......
......@@ -10,6 +10,7 @@
<!-- <text class="tips">|建议价</text>
</view> -->
<view class="box">
<block wx:if="{{isFlag}}">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
......@@ -82,6 +83,8 @@
</view>
</block>
</block>
</view>
<!-- </block> -->
</block>
......
......@@ -8,6 +8,7 @@
"van-checkbox": "@vant/weapp/checkbox/index",
"popup-input": "../PopupInput/PopupInput",
"goods": "../GoodsPackage/Goods",
"sku-goods": "/components/SkuGoods/Goods",
"date-select":"/components/DateSelect/dateSelect"
}
}
\ No newline at end of file
......@@ -276,11 +276,12 @@
position: relative;
color: #222222;
}
.goods-box .goods{
display: flex;
.goods-box .goods {
display: flex;
align-items: center;
justify-content: space-between;
min-height: var(--fontSize118);
justify-content: space-between;
min-height: var(--fontSize118);
border-bottom: var(--fontSize2) solid rgba(195, 195, 195, .3);
padding: 20rpx var(--fontSize28) 20rpx var(--fontSize90);
font-size: var(--fontSize28);
......@@ -320,7 +321,20 @@
position: relative;
margin-right: var(--fontSize32);
margin-left: auto;
min-width:160rpx;
min-width: 160rpx;
}
.price-box-Modify {
display: flex;
align-items: center;
justify-content: flex-end;
font-weight: 400;
font-size: 28rpx;
color: #333333;
width: var(--fontSize240);
min-width: 160rpx;
height: var(--fontSize64);
margin-right: var(--fontSize32);
}
.goods-box .goods .price-box text {
......@@ -557,20 +571,24 @@
display: block;
}
.alias{
.alias {
font-size: 12px;
color: #222222!important;
color: #222222 !important;
}
.bottom_box{
.bottom_box {
display: flex;
align-items: center;
justify-content: space-between;
}
.bottom_box .position {
.bottom_box .position {
color: #888888;
}
.bottom_box .right{
display: flex;
.bottom_box .right {
display: flex;
align-items: center;
justify-content: space-between;
}
\ No newline at end of file
......@@ -27,10 +27,17 @@
{{item.goods.goodsAlias || item.goods.goodsNameAlias|| filter.replaceItemText(item.goods.upgradeGoodsName ,( item.goods.specificationData? '/'+item.goods.specificationData:'')) || filter.replaceItemText(item.goods.goodsName, (item.goods.specificationData? '/'+item.goods.specificationData:''))}}
<!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
</view>
<view class="price-box">
<!-- goodsPriceModify:true 价格不可以修改,false价格可以修改 -->
<view class="price-box-Modify" wx:if="{{item.goods.goodsPriceModify}}">
<text>¥</text>
<view class="price">
<input type="digit" value="{{ item.goods.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
{{ item.goods.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{ item.goods.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0||item.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
......@@ -48,10 +55,17 @@
<view class="packageBox">
<view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="name ">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName , (item.specificationData? '/'+child.specificationData: '') ) ||filter.replaceItemText(child.goodsName ,( item.specificationData? '/'+child.specificationData: '') ) }}</view>
<view class="price-box">
<view class="price-box-Modify" wx:if="{{child.goodsPriceModify}}">
<text>¥</text>
<view class="price">
{{ child.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{ child.price }}" bindinput="changePricePackage" disabled="{{ orderObj.selectPayType ==0 }}" data-childind="{{ childind }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ child.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
<input type="digit" value="{{ child.price }}" bindinput="changePricePackage" disabled="{{ orderObj.selectPayType ==0 ||child.goodsPriceModify}}" data-childind="{{ childind }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ child.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{child.count||1}}</view>
......@@ -64,8 +78,8 @@
<image src="./images/del.png" />
</view>
<view class="goods-content" >
<view class="alias" wx:if="{{item.multipleSpecificationsGoods.goods.goodsAlias}}" >
<view class="goods-content">
<view class="alias" wx:if="{{item.multipleSpecificationsGoods.goods.goodsAlias}}">
商品别名:{{item.multipleSpecificationsGoods.goods.goodsAlias}}
</view>
<view class="bottom_box">
......@@ -74,12 +88,19 @@
<view class="position" wx:if="{{ item.multipleSpecificationsGoods.goods.specificationStr }}">{{item.multipleSpecificationsGoods.goods.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box">
<view class="price-box-Modify" wx:if="{{item.multipleSpecificationsGoods.goods.goodsPriceModify}}">
<text>¥</text>
<view class="price">
<input type="digit" value="{{item.multipleSpecificationsGoods.goods.price}}" bindinput="changeSpecific" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.multipleSpecificationsGoods.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
{{ item.multipleSpecificationsGoods.goods.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{item.multipleSpecificationsGoods.goods.price}}" bindinput="changeSpecific" disabled="{{ orderObj.selectPayType ==0||item.multipleSpecificationsGoods.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.multipleSpecificationsGoods.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
</view>
</view>
......@@ -150,5 +171,6 @@
</van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view>
<goods show="{{ goodsBox }}" wx:if="{{goodsBox}}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
<sku-goods show="{{ skuGoodsBox }}" wx:if="{{skuGoodsBox}}" sceneType="0" goodsData="{{ skuGoodsData }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"></sku-goods>
<date-select show="{{ showDateSelect }}" bind:close="closeDateModal" selectPay="{{orderInfo.payType}}" bind:confirm="onChanteSuccessDate"></date-select>
\ No newline at end of file
......@@ -11,6 +11,11 @@ page {
/* min-height: 100vh; */
}
.scroll-disabled {
height: 100vh;
overflow: hidden;
}
.navigation-title {
display: flex;
align-items: center;
......@@ -43,7 +48,7 @@ page {
display: flex;
flex-direction: column;
/* height: calc(100vh - 50px); */
overflow: scroll;
// overflow: scroll;
}
.btns {
......@@ -171,6 +176,7 @@ page {
// background: #EFF5FE;
background-color: #fff;
z-index: 9;
transform: translateZ(1px);
&.showTips {
bottom: 0rpx;
......
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- <scroll-view class="container" scroll-y style="height:{{windowHeight}}px"> -->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
......@@ -7,7 +8,8 @@
</view>
</view>
</navigation-bar>
<view class="layout {{(showTips||waitInputCount)?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;">
<!-- {{scrollDisabled? "": height:{{windowHeight}}px}} -->
<view class="layout {{(showTips||waitInputCount)?'fullSucreen-tips':'' }} {{scrollDisabled?'scroll-disabled':''}}" style="padding-top:{{ navBarHeight }}px; ">
<first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" mode="{{mode}}" />
<second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
</view>
......@@ -29,6 +31,7 @@
<!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> -->
</view>
</view>
<!-- </scroll-view> -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !orderInfo.resetOrder && !isErrorOrder&&!outTradeNo }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
......
......@@ -530,7 +530,7 @@ swiper{
position: sticky;
top: var(--fontSize168);
left: 0;
z-index: 1000;
z-index: 100;
}
.date {
flex-shrink: 0;
......
......@@ -292,12 +292,11 @@ Page({
startTime,
merchantNo,
batchId,
// receptionStartTime
receptionStartTimeTamp
} = record
console.log(record, 'record')
// 获取短链地址
const {receptionStartTime} = this.data
const res = await getShortUrl({merchantNo, batchId, receptionStartTime})
const res = await getShortUrl({merchantNo, batchId, receptionStartTime: receptionStartTimeTamp})
console.log(res, 'res')
if (res.code == '0') {
// 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址(更换成短链)
......
......@@ -133,10 +133,12 @@ Page({
},
],
packageBox: false,
skuGoodsBox: false,
djPayList: [], // 嘀加收款方对应支付方式
merchantPayList: [], // 门店收款方对应支付方式
configPayTypeList: [], // 园区店配置支持的支付方式
recordOrderFlag: true // 补录订单入口标识
recordOrderFlag: true, // 补录订单入口标识
skuGoodsData: {}, //多规格商品数据
},
closeTips() {
this.setData({
......@@ -251,6 +253,7 @@ Page({
wx.$router.go(`ocr?type=${type}`);
},
showPopup(e) {
console.log(e)
let {
copyGoodsData,
packageList,
......@@ -383,7 +386,12 @@ Page({
value
},
} = e.currentTarget.dataset
let { isErrorOrder, switchVlaue, merchantPayList, djPayList } = this.data
let {
isErrorOrder,
switchVlaue,
merchantPayList,
djPayList
} = this.data
if (isErrorOrder || switchVlaue) return
this.setData({
["orderObj.payeeType"]: value,
......@@ -1074,6 +1082,11 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
/*获取屏幕高度*/
this.setData({
windowHeight: wx.getSystemInfoSync().windowHeight
})
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig')
console.log(options, 'options');
if (options.scene) {
......@@ -1202,7 +1215,7 @@ Page({
message
} = result;
if (code == 0) {
console.log('data', data)
data.forEach(val => {
//单商品
if (val.goodsFlag == 1) {
......@@ -1267,6 +1280,8 @@ Page({
otherProduct.push(val)
}
})
console.log('otherProduct', otherProduct)
console.log('frontGearArr', frontGearArr)
this.setData({
goodsData: data,
copyGoodsData: data,
......@@ -1505,6 +1520,7 @@ Page({
})
}
if (e && !e.packageName) {
console.log(e.specificationData, e, e.specificationData.indexOf(';~;') > -1)
if (e.specificationData.indexOf(';~;') > -1) {
// 修复取值字段名字错误问题
if (!e.price) {
......@@ -1520,12 +1536,11 @@ Page({
e.count = e.number;
e.merchantGoodsId = e.merchantGoodsId || e.id;
let specificdata = this.handleSpecificationsEcho(e)
chooseList.push(specificdata)
chooseList = chooseList.concat(specificdata)
}
}
});
}
console.log(chooseList, 'chooseList')
this.setData({
goodsList: chooseList,
first: false,
......@@ -1533,7 +1548,7 @@ Page({
this.setGoodsTotal(chooseList);
},
handleSpecificationsEcho(item) {
console.log(item)
let skuArr = [];
let {
otherProduct
} = this.data,
......@@ -1550,26 +1565,30 @@ Page({
if (data.goodsFlag == 2) {
let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str]
if (tempData) {
if (tempData.merchantGoodsId == item.goodsId) {
obj.multipleSpecificationsGoods = {
...data.multipleSpecificationsGoods,
baseGoodsName: item.goodsName || item.upgradeGoodsName,
goods: {
...tempData,
price: item.price,
sellPrice: item.price,
goodsId: item.goodsId,
specificationStr: item.specificationData.replace(/;~;/g, '/')
tempData.forEach(temp => {
if (temp.merchantGoodsId == item.goodsId) {
obj.multipleSpecificationsGoods = {
...data.multipleSpecificationsGoods,
baseGoodsName: item.goodsName || item.upgradeGoodsName,
goods: {
...temp,
price: item.price,
sellPrice: item.price,
goodsId: item.goodsId,
specificationStr: item.specificationData.replace(/;~;/g, '/')
}
}
skuArr.push(obj)
}
}
})
}
}
})
console.log(obj)
return obj
console.log(skuArr)
return skuArr
},
divideByHundred: str => {
let floatVal = parseFloat(str)
......@@ -1639,7 +1658,12 @@ Page({
});
},
settingPayType(orderObj) {
let { configPayTypeList, isErrorOrder, switchVlaue, outTradeArr } = this.data
let {
configPayTypeList,
isErrorOrder,
switchVlaue,
outTradeArr
} = this.data
// 补录或标记错误订单
if (isErrorOrder || switchVlaue) {
this.setData({
......
......@@ -5,6 +5,7 @@
"merchant-seles": "/components/Merchant-Seles/Merchant-Seles",
"coupon": "/components/Coupon/Coupon",
"goods": "/components/Goods/Goods",
"sku-goods": "/components/SkuGoods/Goods",
"customerInfo": "/components/CustomerInfo/CustomerInfo",
"sub-shop-merchant": "/components/subShopMerchant/subShopMerchant",
"van-picker": "@vant/weapp/picker/index",
......
/* components/GlCell/GlCell.wxss */
.cell-box {
background: #fff;
font-size: var(--fontSize28);
color: #333333;
box-sizing: border-box;
}
.cell {
width: 100%;
box-sizing: border-box;
display: flex;
padding-left: var(--fontSize40);
align-items: center;
}
.cellHeight {
height: var(--fontSize120);
}
.cell.border {
border-bottom: var(--fontSize1) solid #EFF0F2;
}
.cell-label {
width: 25%;
}
.titleIcon {
width: var(--fontSize32);
height: var(--fontSize32);
margin-left: var(--fontSize8);
}
.titleBtn {
display: inline-block;
background: #FFFFFF;
border: var(--fontSize1) solid #347BFF;
border-radius: 26px;
color: #347BFF;
height: var(--fontSize48);
line-height: var(--fontSize48);
padding: 0 var(--fontSize24);
font-size: var(--fontSize24);
margin-left: var(--fontSize8);
}
.cell-value {
width: 75%;
position: relative;
height: 100%;
}
.cell-value .false {
padding-right: var(--fontSize0) !important;
}
.value {
width: 100%;
height: 100%;
display: flex;
align-items: center;
/* padding-right: var(--fontSize70); */
box-sizing: border-box;
}
.header {
display: flex;
/* justify-content: space-between; */
align-items: center;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
}
.required {
color: #f00;
}
.footer {
font-size: var(--fontSize24);
color: #999999;
margin-left: var(--fontSize10);
}
.details,
.placeholder {
display: none;
}
.slot:empty+.details,
.slot:empty+.placeholder {
display: block;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.placeholder {
color: #C3C3C3;
}
.cell-value .right {
justify-content: flex-end;
height: 100%;
box-sizing: border-box;
}
.cell-value .right .details,
.cell-value .right .placeholder {
text-align: right;
}
.slot {
width: 100%;
height: 100%;
}
.slot:empty {
display: none;
}
.arrow {
position: absolute;
right: var(--fontSize40);
top: 50%;
transform: translateY(-50%);
width: var(--fontSize28);
height: var(--fontSize26);
margin: 0 !important;
}
.headerSlot {
font-size: var(--fontSize28);
color: #347BFF;
max-width: var(--fontSize125);
/* max-width: 150rpx; */
/* margin-left: 3rpx; */
margin-left: var(--fontSize3);
/* max-width: 135rpx; */
white-space: nowrap;
/* 不换行 */
overflow: hidden;
/* 控制溢出部分的显示与否 */
text-overflow: ellipsis;
/* 添加省略号 */
/* components/GlCell/GlCell.wxss */
.cell-box {
background: #fff;
font-size: var(--fontSize28);
color: #333333;
box-sizing: border-box;
}
.cell {
width: 100%;
box-sizing: border-box;
display: flex;
padding-left: var(--fontSize40);
align-items: center;
}
.cellHeight {
height: var(--fontSize120);
}
.cell.border {
border-bottom: var(--fontSize1) solid #EFF0F2;
}
.cell-label {
width: 25%;
}
.titleIcon {
width: var(--fontSize32);
height: var(--fontSize32);
margin-left: var(--fontSize8);
}
.titleBtn {
display: inline-block;
background: #FFFFFF;
border: var(--fontSize1) solid #347BFF;
border-radius: 26px;
color: #347BFF;
height: var(--fontSize48);
line-height: var(--fontSize48);
padding: 0 var(--fontSize24);
font-size: var(--fontSize24);
margin-left: var(--fontSize8);
}
.cell-value {
width: 75%;
position: relative;
height: 100%;
}
.cell-value .false {
padding-right: var(--fontSize0) !important;
}
.value {
width: 100%;
height: 100%;
display: flex;
align-items: center;
/* padding-right: var(--fontSize70); */
box-sizing: border-box;
}
.header {
display: flex;
/* justify-content: space-between; */
align-items: center;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
}
.required {
color: #f00;
}
.footer {
font-size: var(--fontSize24);
color: #999999;
margin-left: var(--fontSize10);
}
.details,
.placeholder {
display: none;
}
.slot:empty+.details,
.slot:empty+.placeholder {
display: block;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.placeholder {
color: #C3C3C3;
}
.cell-value .right {
justify-content: flex-end;
height: 100%;
box-sizing: border-box;
}
.cell-value .right .details,
.cell-value .right .placeholder {
text-align: right;
}
.slot {
width: 100%;
height: 100%;
}
.slot:empty {
display: none;
}
.arrow {
position: absolute;
right: var(--fontSize40);
top: 50%;
transform: translateY(-50%);
width: var(--fontSize28);
height: var(--fontSize26);
margin: 0 !important;
}
.headerSlot {
font-size: var(--fontSize28);
color: #347BFF;
max-width: var(--fontSize125);
/* max-width: 150rpx; */
/* margin-left: 3rpx; */
margin-left: var(--fontSize3);
/* max-width: 135rpx; */
white-space: nowrap;
/* 不换行 */
overflow: hidden;
/* 控制溢出部分的显示与否 */
text-overflow: ellipsis;
/* 添加省略号 */
}
\ No newline at end of file
......@@ -16,6 +16,10 @@ Component({
},
index: {
type: Number
},
optionLabel: {
type: 'String',
default: 'confName'
}
},
......@@ -26,6 +30,12 @@ Component({
},
lifetimes: {
attached() {
console.log(this.data.optionList)
},
},
/**
* 组件的方法列表
*/
......
......@@ -33,7 +33,7 @@
height: var(--fontSize20);
}
}
.check-box:nth-child(n+3) {
.check-box:nth-child(3n+3) {
margin-right: 0;
}
.check-box:nth-child(n+4) {
......
<!--tabWorkOrder/pages/staffDaily/components/selectItemPopup/selectItemPopup.wxml-->
<popup class="date-background" popup-slot-class="popup-style" show="{{ show }}" bindcancel="cancel" bindconfirm="confirm" height="var(--fontSize500)" title="{{title}}">
<view class="check-block">
<scroll-view style="height: 200rpx;" scroll-y>
<view class="check-block" >
<view
class="check-box {{ subItem.active ? 'active' : '' }}"
wx:for="{{ optionList }}"
......@@ -11,8 +12,9 @@
data-pidx="{{ index }}"
data-idx="{{ idx }}"
>
{{subItem.confName}}
{{subItem[optionLabel]}}
<image wx:if="{{ subItem.active }}" class="mult" src="../../../../images/check-active.png"></image>
</view>
</view>
</view>
</scroll-view>
</popup>
\ No newline at end of file
// compoents/weekCalendar/weekCalendar.js
Component({
options: {
multipleSlots: true // 在组件定义时的选项中启用多slot支持
},
/** * 组件的属性列表 * 用于组件自定义设置 */
properties: {
timeBean: {
// 属性名 在wxml调用组件时利用该属性传递组件显示的数据
type: Object, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型)
value: '' // 属性初始值(可选),如果未指定则会根据类型选择一个
}
// weeklyList: {
// type: Array,
// value: []
// }
},
/**
* 组件的方法列表
*/
methods: {
lastWeek: function (e) {
//点击了上一周
this.triggerEvent('lastWeek')
},
nextWeek: function (e) {
//点击了下一周
this.triggerEvent('nextWeek')
},
itemClick: function (e) {
//点击了某一日,传递该日的下标
// 超过当前时间不可点击
if (e.currentTarget.dataset.disabled) {
return
}
var index = e.currentTarget.dataset.index
this.triggerEvent('dayClick', index)
}
}
})
// compoents/weekCalendar/weekCalendar.js
Component({
options: {
multipleSlots: true // 在组件定义时的选项中启用多slot支持
},
/** * 组件的属性列表 * 用于组件自定义设置 */
properties: {
timeBean: {
// 属性名 在wxml调用组件时利用该属性传递组件显示的数据
type: Object, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型)
value: '' // 属性初始值(可选),如果未指定则会根据类型选择一个
},
index: {
type: Number
}
// weeklyList: {
// type: Array,
// value: []
// }
},
/**
* 组件的方法列表
*/
methods: {
lastWeek: function (e) {
//点击了上一周
this.triggerEvent('lastWeek')
},
nextWeek: function (e) {
//点击了下一周
this.triggerEvent('nextWeek')
},
itemClick: function (e) {
//点击了某一日,传递该日的下标
// 超过当前时间不可点击
if (e.currentTarget.dataset.disabled) {
return
}
var index = e.currentTarget.dataset.index
this.triggerEvent('dayClick', index)
}
}
})
{
"component": true,
"usingComponents": {}
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!--tabWorkOrder/pages/staffDaily/weekCalendar/weekCalendar.wxml-->
<!--compoents/weekCalendar/weekCalendar.wxml-->
<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>
<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>
</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 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 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>
</view>
</view>
</view>
</view>
<!-- <view class="line-shadow"></view> -->
<view class="suspension" bindtap="addMenuClick">
<text class="iconfont icon-tianjia" style="font-size:var(--fontSize60); color:#fff;"></text>
<!--tabWorkOrder/pages/staffDaily/weekCalendar/weekCalendar.wxml-->
<!--compoents/weekCalendar/weekCalendar.wxml-->
<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>
<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>
</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 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 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>
</view>
</view>
</view>
</view>
<!-- <view class="line-shadow"></view> -->
<view class="suspension" bindtap="addMenuClick">
<text class="iconfont icon-tianjia" style="font-size:var(--fontSize60); color:#fff;"></text>
</view>
\ No newline at end of file
// 1-流量正常 2-流量不足 3-流量下降 4-门店关系欠佳
export const trafficProblemList = [
{ confId: 1, confName: '流量正常' },
{ confId: 2, confName: '流量不足' },
{ confId: 3, confName: '流量下降' },
{ confId: 4, confName: '门店关系欠佳' }
]
// 11-技能正常 12-驻店关系提升技巧 13-流量提升技巧 14-话术提升技巧
export const skillProblemList = [
{ confId: 11, confName: '技能正常' },
{ confId: 12, confName: '驻店关系提升技巧' },
{ confId: 13, confName: '流量提升技巧' },
{ confId: 14, confName: '话术提升技巧' }
]
export const formData = [
{
label: '流量问题',
isMult: true,
name: 'trafficProblemList',
optionList: trafficProblemList,
selectedList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'trafficProblemList'
},
{
label: '技能问题',
isMult: true,
name: 'skillProblemList',
optionList: skillProblemList,
selectedList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'skillProblemList'
}
]
// 1-流量正常 2-流量不足 3-流量下降 4-门店关系欠佳
export const trafficProblemList = [
{ confId: 1, confName: '流量正常' },
{ confId: 2, confName: '流量不足' },
{ confId: 3, confName: '流量下降' },
{ confId: 4, confName: '门店关系欠佳' }
]
// 11-技能正常 12-驻店关系提升技巧 13-流量提升技巧 14-话术提升技巧
export const skillProblemList = [
{ confId: 11, confName: '技能正常' },
{ confId: 12, confName: '驻店关系提升技巧' },
{ confId: 13, confName: '流量提升技巧' },
{ confId: 14, confName: '话术提升技巧' }
]
// 21-套餐正常 22-套餐不合适客户 23-需要增加套餐 24-套餐价格过高
export const packageProblemList = [
{ confId: 21, confName: '套餐正常' },
{ confId: 22, confName: '套餐不合适客户' },
{ confId: 23, confName: '需要增加套餐' },
{ confId: 24, confName: '套餐价格过高' }
]
export const formData = [
{
label: '流量问题',
isMult: true,
name: 'trafficProblemList',
optionList: trafficProblemList,
selectedList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'trafficProblemList'
},
{
label: '技能问题',
isMult: true,
name: 'skillProblemList',
optionList: skillProblemList,
selectedList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'skillProblemList'
},
{
label: '套餐问题',
isMult: true,
name: 'packageProblemList',
optionList: packageProblemList,
selectedList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'packageProblemList'
}
]
{
"navigationStyle": "custom",
"usingComponents": {
"weekCalendar": "./components/weekCalendar/weekCalendar",
"gl-cell-staff": "./components/GlCell/GlCell",
"store-picker": "./components/storePicker/storePicker",
"select-item-popup": "./components/selectItemPopup/selectItemPopup"
}
{
"navigationStyle": "custom",
"usingComponents": {
"weekCalendar": "./components/weekCalendar/weekCalendar",
"gl-cell-staff": "./components/GlCell/GlCell",
"store-picker": "./components/storePicker/storePicker",
"select-item-popup": "./components/selectItemPopup/selectItemPopup"
}
}
\ No newline at end of file
// components/GlCell/GlCell.js
Component({
options: {
styleIsolation: 'apply-shared'
// styleIsolation: 'shared'
},
/**
* 组件的属性列表
*/
properties: {
label: String,
border: Boolean,
haveArrow: Boolean,
value: String,
valueAlign: String,
required: Boolean,
placeholder: String,
iconSrc: String,
labelStyle: String,
cellStyle: String,
cellBoxStyle: String,
labelText: String,
headerSlot: String,
labelWidth: {
type: String,
value: 'var(--fontSize300)'
},
background: {
type: String,
value: '#FFFFFF'
},
cellHeight: {
type: Boolean,
value: true
},
requiredBefore: {
type: Boolean,
value: true
},
requiredAfter: {
type: Boolean,
value: false,
observer: function (n, o) {
if (n) {
this.setData({
requiredBefore: false
})
}
}
},
disabled: Boolean,
titleBtn: String
},
/**
* 组件的初始数据
*/
data: {},
/**
* 组件的方法列表
*/
methods: {
click(e) {
if (this.data.disabled) return
this.triggerEvent('click')
},
titleClick() {
this.triggerEvent('titleClick')
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<view class="cell-box" style="background:{{ background}};{{cellBoxStyle }}">
<view class="cell {{ cellHeight?'cellHeight': ''}} {{border?'border':'' }}" style="{{ cellStyle }}" bindtap="click">
<view class="cell-label title-style" style="width:{{ labelWidth}};{{labelStyle }}" bindtap="titleClick">
<view class="header">
<text wx:if="{{ required&&requiredBefore }}" class="required">*</text>
{{label||'标题'}}
<!-- <slot name='headerSlot'></slot> -->
<text class="headerSlot" wx:if="{{headerSlot}}">{{headerSlot}}</text>
<text wx:if="{{ required&&requiredAfter }}" class="required">*</text>
<image webp class="titleIcon" wx:if="{{ iconSrc }}" src="{{ iconSrc }}" />
<text class="titleBtn" wx:if="{{ titleBtn }}">{{titleBtn}}</text>
</view>
<view class="footer" wx:if="{{ labelText }}">{{labelText}}</view>
</view>
<view class="cell-value" style="width:calc(100% - {{ labelWidth }});">
<view class="value ">
<view class="slot">
<slot />
</view>
<block wx:if="{{ value }}">
<view class="details">{{value}}</view>
</block>
<block wx:if="{{ placeholder }}">
<view class="placeholder">{{placeholder}}</view>
</block>
</view>
<!-- <image wx:if="{{ haveArrow }}" class="arrow" src="../images/arrow-x.png" /> -->
</view>
</view>
</view>
\ No newline at end of file
/* components/GlCell/GlCell.wxss */
.cell-box {
background: #fff;
font-size: var(--fontSize28);
color: #333333;
box-sizing: border-box;
}
.cell {
width: 100%;
box-sizing: border-box;
display: flex;
padding-left: var(--fontSize40);
align-items: center;
}
.cellHeight {
height: var(--fontSize120);
}
.cell.border {
border-bottom: var(--fontSize1) solid #EFF0F2;
}
.cell-label {
width: 25%;
}
.titleIcon {
width: var(--fontSize32);
height: var(--fontSize32);
margin-left: var(--fontSize8);
}
.titleBtn {
display: inline-block;
background: #FFFFFF;
border: var(--fontSize1) solid #347BFF;
border-radius: 26px;
color: #347BFF;
height: var(--fontSize48);
line-height: var(--fontSize48);
padding: 0 var(--fontSize24);
font-size: var(--fontSize24);
margin-left: var(--fontSize8);
}
.cell-value {
width: 75%;
position: relative;
height: 100%;
}
.cell-value .false {
padding-right: var(--fontSize0) !important;
}
.value {
width: 100%;
height: 100%;
display: flex;
align-items: center;
/* padding-right: var(--fontSize70); */
box-sizing: border-box;
}
.header {
display: flex;
/* justify-content: space-between; */
align-items: center;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
}
.required {
color: #f00;
}
.footer {
font-size: var(--fontSize24);
color: #999999;
margin-left: var(--fontSize10);
}
.details,
.placeholder {
display: none;
}
.slot:empty+.details,
.slot:empty+.placeholder {
display: block;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.placeholder {
color: #C3C3C3;
}
.cell-value .right {
justify-content: flex-end;
height: 100%;
box-sizing: border-box;
}
.cell-value .right .details,
.cell-value .right .placeholder {
text-align: right;
}
.slot {
width: 100%;
height: 100%;
}
.slot:empty {
display: none;
}
.arrow {
position: absolute;
right: var(--fontSize40);
top: 50%;
transform: translateY(-50%);
width: var(--fontSize28);
height: var(--fontSize26);
margin: 0 !important;
}
.headerSlot {
font-size: var(--fontSize28);
color: #347BFF;
max-width: var(--fontSize125);
/* max-width: 150rpx; */
/* margin-left: 3rpx; */
margin-left: var(--fontSize3);
/* max-width: 135rpx; */
white-space: nowrap;
/* 不换行 */
overflow: hidden;
/* 控制溢出部分的显示与否 */
text-overflow: ellipsis;
/* 添加省略号 */
}
\ No newline at end of file
// tabWorkOrder/pages/staffDaily/components/selectItemPopup/selectItemPopup.js
Component({
/**
* 组件的属性列表
*/
properties: {
show: {
type: Boolean
},
title: {
type: String
},
optionList: {
type: Array
},
index: {
type: Number
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
click(e) {
let { pidx, idx } = e.currentTarget.dataset
this.triggerEvent('click', {pidx, idx})
},
confirm() {
this.triggerEvent('confirm')
},
cancel() {
this.triggerEvent('cancel')
}
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* tabWorkOrder/pages/staffDaily/components/selectItemPopup/selectItemPopup.wxss */
.check-block {
display: flex;
flex-wrap: wrap;
padding: var(--fontSize24) 0;
.check-box {
position: relative;
box-sizing: border-box;
width: calc((100% - var(--fontSize40)) / 3);
height: var(--fontSize64);
line-height: var(--fontSize64);
text-align: center;
// background: #F7F7F7;
font-size: var(--fontSize24);
// color: #666666;
color: #292D33;
margin-right: var(--fontSize16);
background: #F7F8FA;
border-radius: var(--fontSize4);
}
.check-box.active {
background: #347BFF14;
border: var(--fontSize2) solid #347BFF;
color: #347BFF;
font-family: PingFangSC-Medium;
font-weight: 500;
line-height: var(--fontSize60);
.mult {
position: absolute;
bottom: 0;
right: 0;
width: var(--fontSize20);
height: var(--fontSize20);
}
}
.check-box:nth-child(n+3) {
margin-right: 0;
}
.check-box:nth-child(n+4) {
margin-top: var(--fontSize10);
}
}
\ No newline at end of file
<!--tabWorkOrder/pages/staffDaily/components/selectItemPopup/selectItemPopup.wxml-->
<popup class="date-background" popup-slot-class="popup-style" show="{{ show }}" bindcancel="cancel" bindconfirm="confirm" height="var(--fontSize500)" title="{{title}}">
<view class="check-block">
<view
class="check-box {{ subItem.active ? 'active' : '' }}"
wx:for="{{ optionList }}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx"
bindtap="click"
data-pidx="{{ index }}"
data-idx="{{ idx }}"
>
{{subItem.confName}}
<image wx:if="{{ subItem.active }}" class="mult" src="../../../../images/check-active.png"></image>
</view>
</view>
</popup>
\ No newline at end of file
// packageEquity/components/storePicker/storePicker.js
Component({
options: {
// 在组件定义时的选项中启用多slot支持
multipleSlots: true
},
/**
* 组件的属性列表
*/
properties: {
subIndex: {
type: Number,
observer: function (n) {
this.setData({
selectStoreIndex: [n]
})
}
},
pickList: {
type: Array,
value: [],
observer: function (n) {
this.setData({
selectStoreIndex: this.data.selectStoreIndex
})
// selectStoreIndex: [0]
// if (n.length == 1) {
// }
}
},
show: {
type: Boolean,
observer: function(n) {
this.setData({
searchValue: ''
})
this.triggerEvent('search', { value: '' })
}
},
pickerType: {
type: String,
observer: function(n) {
let thisPage = wx.$router.getPageInstance()
// 有搜索内容 将门店弹窗选中值置为0
if (this.data.searchValue) thisPage.setData({subIndex: 0})
// 清空搜索框内容
this.setData({
searchValue: ''
})
this.triggerEvent('search', { value: '' })
}
}
},
/**
* 组件的初始数据
*/
data: {
searchValue: '',
selectStoreIndex: '',
edit: false
},
/**
* 组件的方法列表
*/
methods: {
open() {
if (this.data.disabled) return
this.setData({
edit: true,
inputFocus: true
})
},
setValue(value) {
if (this.properties.filterEmoji) {
if (wx.$util.haveEmoji(value)) value = wx.$util.replaceEmoji(value)
}
this.setData({
searchValue: value
})
},
input(e) {
let { value } = e.detail
this.setValue(value)
this.triggerEvent('input', {
value
})
// this.setData({
// selectStoreIndex: [0],
// // defaultSelectStoreIndex: [0]
// })
},
inputBlur(e) {
this.emit(e)
},
inputConfifm(e) {
this.emit(e)
},
emit(e) {
let {
detail: { value },
type
} = e
this.setData({
edit: false
})
if (type == 'confirm') {
this.setData({
selectStoreIndex: [0]
})
}
this.setValue(value)
this.triggerEvent(type == 'confirm' ? 'search' : 'blur', { value })
},
confirm() {
let { selectStoreIndex, pickList, subIndex, pickerType } = this.data
let value = selectStoreIndex[0]
console.log(value)
console.log(pickList)
if (!pickList[value]?.merchantName) {
let toastMessage = pickerType == 'merchant' ? '请选择门店' : '请选择员工'
return wx.$util.showToast(toastMessage)
}
// console.log(value)
this.triggerEvent('confirm', { value })
// this.triggerEvent('search', { value })
this.setData({
show: false
})
},
cancel() {
this.triggerEvent('cancel')
},
changeStore(e) {
// console.log(e.detail.value[0])
this.setData({
selectStoreIndex: [e.detail.value[0]]
})
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!--packageEquity/components/storePicker/storePicker.wxml-->
<popup class="date-background" popup-slot-class="popup-style" show="{{ show }}" bindconfirm="confirm" bindcancel="cancel" height="var(--fontSize800)">
<view class="date-container">
<view class="date-confirm">
<view class="search-box">
<view class="search-input">
<block wx:if="{{ !edit }}">
<view class="input {{ searchValue?'':'placeholder' }}" bindtap="open">
<block wx:if="{{ searchValue }}">{{searchValue}}</block>
<block wx:else>
<image src="/images/search.png" class="icon"></image>
{{ pickerType == 'merchant'? '请输入门店' : '请输入员工姓名'}}
</block>
</view>
</block>
<block wx:else>
<input type="text" class="input" value="{{ searchValue }}" focus="{{ inputFocus }}" confirm-type="search" bindinput="input" bindblur="inputBlur" bindconfirm="inputConfifm" />
</block>
</view>
</view>
</view>
<view class="picker-box">
<picker-view class="picker" value="{{ selectStoreIndex }}" immediate-change="true" indicator-class="indicator" bindchange="changeStore">
<picker-view-column>
<block wx:for="{{ pickList }}" wx:key="merchantId">
<view class="view pickViewColumn">{{pickerType == 'merchant'?item.merchantName:item.staffName}}</view>
</block>
</picker-view-column>
</picker-view>
</view>
</view>
</popup>
\ No newline at end of file
/* packageEquity/components/storePicker/storePicker.wxss */
.search-box {
height: var(--fontSize104);
display: flex;
align-items: center;
justify-content: center;
margin: 0 var(--fontSize32);
font-size: var(--fontSize28);
}
.search-box .search-input {
width: var(--fontSize686);
height: var(--fontSize72);
background: #F7F8FA;
border-radius: var(--fontSize38);
color: #333;
}
.search-input .input{
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
text-align: center;
}
.search-input .icon{
width: var(--fontSize28);
height: var(--fontSize28);
margin-right: var(--fontSize10);
}
.search-input .placeholder{
color: #C8C9CC;
}
.date-confirm {
display: flex;
justify-content: center;
align-items: center;
padding:0 var(--fontSize20);
font-size:var(--fontSize34);
line-height: var(--fontSize70);
}
.picker-box{
height: var(--fontSize450);
display: flex;
}
.picker-box .picker{
width: 100%;
}
.tbn_class{
font-size: var(--fontSize26);
color: #333;
}
.pickViewColumn{
text-align: center;
line-height: 34px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.popup-style{
height: calc(100% - var(--fontSize100))!important;
}
\ No newline at end of file
// compoents/weekCalendar/weekCalendar.js
Component({
options: {
multipleSlots: true // 在组件定义时的选项中启用多slot支持
},
/** * 组件的属性列表 * 用于组件自定义设置 */
properties: {
timeBean: {
// 属性名 在wxml调用组件时利用该属性传递组件显示的数据
type: Object, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型)
value: '' // 属性初始值(可选),如果未指定则会根据类型选择一个
}
// weeklyList: {
// type: Array,
// value: []
// }
},
/**
* 组件的方法列表
*/
methods: {
lastWeek: function (e) {
//点击了上一周
this.triggerEvent('lastWeek')
},
nextWeek: function (e) {
//点击了下一周
this.triggerEvent('nextWeek')
},
itemClick: function (e) {
//点击了某一日,传递该日的下标
// 超过当前时间不可点击
if (e.currentTarget.dataset.disabled) {
return
}
var index = e.currentTarget.dataset.index
this.triggerEvent('dayClick', index)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* tabWorkOrder/pages/staffDaily/weekCalendar/weekCalendar.wxss */
/* compoents/weekCalendar/weekCalendar.wxss */
.row {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
background: #fff;
.week_box{
height: var(--fontSize60);
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159;
}
.date_box{
height: var(--fontSize128);
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
}
}
.weekselect {
height: var(--fontSize80);
flex-direction: row;
justify-content: space-between;
}
.column {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
flex: 1;
}
.nextWeek {
font-family: PingFangSC-Regular;
font-weight: 400;
flex-direction: row;
color: #181A1F;
width: var(--fontSize180);
}
.dateType {
position: relative;
display: flex;
align-items: center;
justify-content: center;
font-size: var(--fontSize32);
color: #292D33;
border-radius: 50%;
width: var(--fontSize64);
height: var(--fontSize64);
.empty {
box-sizing: border-box;
position: absolute;
width: var(--fontSize38);
text-align: center;
height: var(--fontSize32);
background: #F24724;
border-radius: var(--fontSize16);
bottom: var(--fontSize40);
left: var(--fontSize40);
font-size: var(--fontSize22);
z-index: 2;
padding: 0 var(--fontSize4);
color: #fff;
}
}
.dateType.dateType_disabled{
color: #BEC1C7;
}
.weekType {
font-size: var(--fontSize28);
color: #292D33;
}
.select-column {
.dateType{
background: #347BFF;
color: #fff;
}
}
.disabled {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-bottom: var(--fontSize5);
padding-top: var(--fontSize5);
margin-left: var(--fontSize5);
margin-right: var(--fontSize5);
margin-top: var(--fontSize10);
flex: 1;
border-top-left-radius: var(--fontSize20);
border-top-right-radius: var(--fontSize20);
background: #F6FCFE;
color: #292D33;
}
.timeType {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize28);
color: #181A1F;
// font-size: var(--fontSize35);
// font-weight: bold;
// margin-right: auto;
}
.line {
height: var(--fontSize1);
width: 100%;
background-color: gainsboro;
}
.lastweek {
width: var(--fontSize180);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize28);
flex-direction: row;
color: #181A1F;
}
.line-shadow {
height: var(--fontSize3);
width: 100%;
background-color: gainsboro;
box-shadow: 5px 0px 5px 0px gainsboro;
}
@font-face {
font-family: "iconfont";
src: url('iconfont.eot?t=1533031583450');
/* IE9*/
src: url('iconfont.eot?t=1533031583450#iefix') format('embedded-opentype'),
/* IE6-IE8 */
url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAZsAAsAAAAACRQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFZW70iqY21hcAAAAYAAAAB4AAABwJvIBhZnbHlmAAAB+AAAAkwAAAKQdkD3EWhlYWQAAAREAAAAMQAAADYSKu8/aGhlYQAABHgAAAAgAAAAJAfdA4hobXR4AAAEmAAAABgAAAAYF+r//2xvY2EAAASwAAAADgAAAA4CUAFWbWF4cAAABMAAAAAfAAAAIAEVAF1uYW1lAAAE4AAAAUUAAAJtPlT+fXBvc3QAAAYoAAAAQgAAAFjpq2VXeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/sM4gYGVgYOpk+kMAwNDP4RmfM1gxMjBwMDEwMrMgBUEpLmmMDgwVDzbztzwv4EhhrmVoREozAiSAwAyfQ0teJzFkcENhDAMBMcEIoQo5T60cG9q4cWDyqAjt8GtYz5XAWtNZK8cOXKAASjiI3qwHSO0ybXmF6bm93xVT4x0isOrL37dt7zMz5anTH0ZkQ+628UUq7wme2/0v+Z2rk8V+z8e9ESvSfi+JPEvfibaI34llB8XahpqeJxlUTtoFGEQ/uf/s8/s43b39pm7vdtdb1cTvXCbuz0f5ILGQo+gEYOoVQQbidEqpFE8CAE1IQg2KbQRwdIuAUmTWNtaCBZBC1GwujK355/a4ZsPZoaBb75BDELDQ7JHHGSgk6iBLqN5hICdgFDBZQiSZh1PgBkwpl1USBIlAReFdTINdsgWrTRrxjbLsSoo4MNUkGZJHSfQanbwBUitMoA75t3UayWdvALRSfz1vIvfgVmJSmrnTH719EwxrRr8qqTrrq5v8izD8BiPqAos25bACCKbv2dUz9yrnMIVkNzEm7sjV8f0e8+bj8o1WwDo9cAYqyofZjRPo3jiWYbucgWZdzw5OlGE1Z+jjiGV4x+IBhwT7uO/CCMkgAYS/IJe/hp/+3+G+7kDPVgexAiR4XD4bASRdSQgGwUIufRam9FqMVvjNAVUqHWgrdWB0FRBa3cAQhc+5jfckBxsg2+vwKwX0uZ38K2dHcsn84NKqSFuk/vbvKNdGvilc4X5FaFRwocl9+g35YL64ujNS/X8sawR+qMB2SAsStA0mkVdKrcZJ1ErTurAUSjAsccUKWBSZWbRovZn09CBWmanWTvO2pll+0CF2ZYdZBC1aEGXk0ABsiGLqtbyUq3w4Nbc7cLFcd1hbVHGa8u63Fe0h2uDpeAsL2OYWegusEQVSaMcyoO3Imx9nXrcXNr6LOFP8gH8ESXA3UDloXEdc9cSPG5M2iCJT/cnFxXDUBYn978EROC4u6NwJRZHCUDBTINcmKUWVsnu5uYu+gfDb3VreJxjYGRgYADi/KUVefH8Nl8ZuFkYQOB6W+h8GP3///96FgbmViCXg4EJJAoATnwMXwAAAHicY2BkYGBu+N/AEMPC+P8/AwMLAwNQBAWwAQB19gRuBAAAAAPpAAAEAAAABAAAAAQB//8EAAAAAAAAAAB2AIQAkgDSAUgAAHicY2BkYGBgYwhkYGUAASYg5gJCBob/YD4DABFIAXMAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicY2BigAAuBuyAjZGJkZmRhZGVkY2RnYGxgrs4MS8rMzE/JzWthAfKLspMzyhhTcrPzzZkzc1MS8xjYAAAPg4OSAAA') format('woff'),
url('iconfont.ttf?t=1533031583450') format('truetype'),
/* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('iconfont.svg?t=1533031583450#iconfont') format('svg');
/* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/**
*字体图标,左右箭头,书,米饭,可以修改界面对图标进行修改替换
*/
.icon-sanjiaoleft:before {
content: "\e6b6";
}
.icon-sanjiaoright:before {
content: "\e6b7";
}
.icon-book1:before {
content: "\e631";
}
.icon-mifan:before {
content: "\e606";
}
\ No newline at end of file
<!--tabWorkOrder/pages/staffDaily/weekCalendar/weekCalendar.wxml-->
<!--compoents/weekCalendar/weekCalendar.wxml-->
<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>
<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>
</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 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 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>
</view>
</view>
</view>
</view>
<!-- <view class="line-shadow"></view> -->
<view class="suspension" bindtap="addMenuClick">
<text class="iconfont icon-tianjia" style="font-size:var(--fontSize60); color:#fff;"></text>
</view>
\ No newline at end of file
// 1-流量正常 2-流量不足 3-流量下降 4-门店关系欠佳
export const trafficProblemList = [
{ confId: 1, confName: '流量正常' },
{ confId: 2, confName: '流量不足' },
{ confId: 3, confName: '流量下降' },
{ confId: 4, confName: '门店关系欠佳' }
]
// 11-技能正常 12-驻店关系提升技巧 13-流量提升技巧 14-话术提升技巧
export const skillProblemList = [
{ confId: 11, confName: '技能正常' },
{ confId: 12, confName: '驻店关系提升技巧' },
{ confId: 13, confName: '流量提升技巧' },
{ confId: 14, confName: '话术提升技巧' }
]
export const formData = [
{
label: '流量问题',
isMult: true,
name: 'trafficProblemList',
optionList: trafficProblemList,
selectedList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'trafficProblemList'
},
{
label: '技能问题',
isMult: true,
name: 'skillProblemList',
optionList: skillProblemList,
selectedList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'skillProblemList'
}
]
{
"navigationStyle": "custom",
"usingComponents": {
"weekCalendar": "./components/weekCalendar/weekCalendar",
"gl-cell-staff": "./components/GlCell/GlCell",
"store-picker": "./components/storePicker/storePicker",
"select-item-popup": "./components/selectItemPopup/selectItemPopup"
}
}
\ No newline at end of file
/* tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.wxss */
page {
background-color: rgb(246, 247, 247);
}
.layout {
// height: 100%;
height: 100vh;
// display: flex;
// flex-direction: column;
}
// 去除滚动条样式
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
// max-width: calc(100% - var(--fontSize24));
}
.navigation-title .arrow {
width: var(--fontSize25);
height: var(--fontSize15);
margin-left: var(--fontSize4);
// transform: translateY(25%);
transition: all 0.5s;
}
.arrow {
width: var(--fontSize25);
height: var(--fontSize15);
margin-left: var(--fontSize12);
// transform: translateY(20%);
transition: all 0.5s;
}
.move {
transform: rotate(-180deg) translateY(0);
}
.opacity {
opacity: 1;
}
.layout {
.main {
padding: 0 var(--fontSize20) var(--fontSize236) !important;
}
}
.main {
.mainheader {
margin: var(--fontSize20) var(--fontSize10) 0;
display: flex;
justify-content: space-between;
align-items: center;
.navigation-title-text {
margin-right: var(--fontSize10);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize28);
color: #347BFF;
}
@media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
.navigation-title-text {
font-size: var(--fontSize23);
}
}
}
.title {
font-family: PingFangSC-SNaNrpxibold;
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
}
}
.isFullSucreen {
padding-bottom: 102px !important;
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
.box {
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16);
overflow: hidden;
margin-top: var(--fontSize20);
height: calc(100% - var(--fontSize100));
padding: var(--fontSize24) 0;
.carBandTitle {
padding: 0 var(--fontSize40) var(--fontSize24);
font-weight: 500;
color: #181a1f;
font-size: 28rpx;
border-bottom: 1rpx solid #dee0e3;
margin-bottom: var(--fontSize24);
}
.input-item {
padding: 0 var(--fontSize40);
color: #292D33;
font-size: var(--fontSize28);
.label {
margin-bottom: var(--fontSize16);
text {
color: #347BFF;
}
.required_text {
color: #F24724;
margin-right: var(--fontSize8);
}
}
.content-input {
height: var(--fontSize72);
background: #FFFFFF;
border: var(--fontSize2) solid #ECECEC;
padding: 0 var(--fontSize24);
border-radius: var(--fontSize8);
margin-bottom: var(--fontSize24);
}
.content-input.disabled {
background: #EFF0F2;
}
.content-input.flex {
display: flex;
align-items: center;
justify-content: space-between;
input {
width: calc(100% - var(--fontSize40))
}
}
.input-placeholder {
color: #BEC1C7;
}
}
.pickerCell {
.cell-label {
font-weight: 400;
font-size: var(--fontSize28);
color: #292D33;
}
.picker {
display: flex;
flex-direction: row-reverse;
height: var(--fontSize80);
line-height: var(--fontSize80);
text-align: right;
.placeholder {
font-weight: 400;
font-size: var(--fontSize28);
color: #B6B6B8;
}
.pickerArrow {
width: var(--fontSize28);
height: var(--fontSize26);
margin-top: var(--fontSize26);
flex-shrink: 0;
}
}
}
}
.remark_box {
padding: var(--fontSize20);
.label {
font-size: var(--fontSize28);
color: #292D33;
margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20);
}
.textArea_box {
font-size: var(--fontSize28);
background: #FFFFFF;
border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize16);
padding: var(--fontSize24);
.textarea {
height: var(--fontSize130);
}
.currentWordNumber {
color: #BEC1C7;
text-align: right;
}
}
.textArea_box.disabled {
background: #EFF0F2;
}
}
.btns {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: var(--fontSize100);
background: #FFFFFF;
box-sizing: border-box;
/* padding: var(--fontSize10) var(--fontSize32); */
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--fontSize32);
font-weight: 500;
z-index: 99;
flex-direction: column;
}
.btns-con {
width: 100%;
box-sizing: border-box;
display: flex;
flex-flow: column;
padding: var(--fontSize10) 0;
}
.tipsIcon,
.closeIcon {
width: var(--fontSize32);
height: var(--fontSize32);
}
.btns .btns-con view {
border: var(--fontSize2) solid #0075F9;
border-radius: var(--fontSize12);
height: var(--fontSize80);
box-sizing: border-box;
}
.btns .save,
.confirm {
border: var(--fontSize2) solid #0075F9;
border-radius: var(--fontSize12);
height: var(--fontSize80);
box-sizing: border-box;
}
.btns .save {
width: 100%;
margin-top: var(--fontSize20);
margin-right: var(--fontSize20);
color: #347BFF;
}
.btns .confirm {
// width: var(--fontSize480);
width: 100%;
color: #fff;
background-color: #347BFF;
}
.btns .tips {
box-sizing: border-box;
display: flex;
justify-content: space-between;
/* align-items: center; */
padding: var(--fontSize20);
font-weight: 500;
background: #EFF5FE;
height: var(--fontSize72);
width: 100%;
color: #347BFF;
font-size: var(--fontSize24);
}
.tips .contentText {
margin-left: var(--fontSize20);
margin-right: auto;
display: flex;
font-weight: 500;
flex-direction: column;
justify-content: space-between;
}
.user-portrait {
background: #ffffff;
// padding: var(--fontSize48) var(--fontSize40) var(--fontSize120);
}
.user-portrait .label {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
padding: var(--fontSize24) var(--fontSize40) 0;
}
.user-portrait .check-block {
display: flex;
flex-wrap: wrap;
padding: var(--fontSize24) var(--fontSize40);
border-bottom: var(--fontSize1) solid #EFF0F2;
}
.check-box:nth-child(n+4) {
margin-top: var(--fontSize10);
}
.user-portrait .check-box {
position: relative;
box-sizing: border-box;
width: calc((100% - var(--fontSize40)) / 3);
height: var(--fontSize64);
line-height: var(--fontSize64);
text-align: center;
// background: #F7F7F7;
font-size: var(--fontSize24);
// color: #666666;
color: #292D33;
margin-right: var(--fontSize20);
background: #F7F8FA;
border-radius: var(--fontSize4);
}
.user-portrait .check-box.active {
background: #347BFF14;
border: var(--fontSize2) solid #347BFF;
color: #347BFF;
font-family: PingFangSC-Medium;
font-weight: 500;
line-height: var(--fontSize60);
}
.user-portrait .check-box.active .mult {
position: absolute;
bottom: 0;
right: 0;
width: var(--fontSize20);
height: var(--fontSize20);
}
.input-box {
height: var(--fontSize280);
background: #F4F5F7;
border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize12);
padding: var(--fontSize32) var(--fontSize24);
margin-bottom: var(--fontSize16);
color: #323436;
}
.user-portrait .check-box:nth-child(3n) {
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;
}
.btn-default {
box-sizing: border-box;
width: var(--fontSize186);
height: var(--fontSize80);
line-height: var(--fontSize80);
background: #FFFFFF;
border: var(--fontSize2) solid #0075F9;
border-radius: var(--fontSize12);
margin-right: var(--fontSize20);
color: #347BFF;
}
.btn-blue {
width: calc(100% - var(--fontSize246));
height: var(--fontSize80);
line-height: var(--fontSize80);
background: #347BFF;
border-radius: var(--fontSize12);
color: #FFFFFF;
}
.approvalFromSuperiorsCon {
.title {
font-family: PingFangSC-SNaNrpxibold;
font-weight: 600;
font-size: var(--fontSize28);
color: #292D33;
margin: var(--fontSize32) 0 var(--fontSize12);
}
.data {
// font-weight: 400;
font-size: var(--fontSize24);
color: #292D33;
}
.tips {
// font-weight: 400;
font-size: var(--fontSize24);
color: #999EA8;
line-height: var(--fontSize36);
margin-bottom: var(--fontSize32);
}
.approvalBox {
width: 100%;
box-sizing: border-box;
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize16);
// padding-bottom: var(--fontSize100);
.title {
height: var(--fontSize88);
line-height: var(--fontSize88);
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
padding-left: var(--fontSize40);
border-bottom: var(--fontSize1) solid #EFF0F2;
}
.item {
box-sizing: border-box;
padding: var(--fontSize24);
border-bottom: var(--fontSize1) solid #EFF0F2;
.content {
font-size: var(--fontSize28);
color: #292D33;
}
.time {
font-size: var(--fontSize24);
color: #999EA8;
text-align: right;
}
}
}
}
.approvalFromSuperiorsCon {
box-sizing: border-box;
padding-bottom: var(--fontSize300);
}
.camera-icon {
width: var(--fontSize220);
height: var(--fontSize172);
padding-bottom: var(--fontSize20);
}
.nothingTips {
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 4var(--fontSize32);
font-size: var(--fontSize24);
color: #BEC1C7;
text-align: center;
padding: 16rpx 0;
}
\ 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!