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 2403 additions and 207 deletions
...@@ -79,14 +79,12 @@ Component({ ...@@ -79,14 +79,12 @@ Component({
cancel:点击选择按钮的操作;只有选中后,取消才可以触发 cancel:点击选择按钮的操作;只有选中后,取消才可以触发
*/ */
watchAllChose(index, cancel) { async watchAllChose(index, cancel) {
let { let {
goodsList, goodsList,
strTemp strTemp
} = this.data; } = this.data;
let result = goodsList[index].multipleSpecificationsGoods.specificationList.every(item => item.value) let result = goodsList[index].multipleSpecificationsGoods.specificationList.every(item => item.value)
console.log(result, goodsList[index], 1)
if (result) { if (result) {
if (!cancel) { if (!cancel) {
let arr = [] let arr = []
...@@ -95,17 +93,41 @@ Component({ ...@@ -95,17 +93,41 @@ Component({
}) })
let str = arr.join(';~;') let str = arr.join(';~;')
// strTemp用来存储上一次选中的值,判断规格是否重新选择 ,避免页面交互闪烁
// if (type && str != strTemp) {
//获取该规格的商品是否存在 //获取该规格的商品是否存在
console.log(str) goodsList[index].multipleSpecificationsGoods.skuGoodsList = []
if (goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]) { if (goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]) {
let goodsArr = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
//当多规格商品只有一个时,直接选中
if (goodsArr.length == 1) {
goodsList[index].active = true goodsList[index].active = true
console.log(goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str], 'str') goodsList[index].multipleSpecificationsGoods.goods = goodsArr[0]
goodsList[index].multipleSpecificationsGoods.goods = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
goodsList[index].multipleSpecificationsGoods.goods.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId goodsList[index].multipleSpecificationsGoods.goods.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId
goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/') goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/')
} else { } 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) console.log(88888)
wx.$util.showToast('暂无该规格商品') wx.$util.showToast('暂无该规格商品')
goodsList[index].active = false goodsList[index].active = false
...@@ -138,7 +160,6 @@ Component({ ...@@ -138,7 +160,6 @@ Component({
} }
} }
} }
return result return result
}, },
...@@ -164,7 +185,7 @@ Component({ ...@@ -164,7 +185,7 @@ Component({
"goodsId" "goodsId"
); );
console.log(arr, arr.length, 'arr') console.log(arr, arr.length, 'arr')
console.log(chooseGoodsList, 'chooseGoodsList') // console.log(chooseGoodsList, 'chooseGoodsList')
if (arr.length == 0) { if (arr.length == 0) {
goodsList.forEach(e => { goodsList.forEach(e => {
e.active = false e.active = false
...@@ -172,7 +193,7 @@ Component({ ...@@ -172,7 +193,7 @@ Component({
}) })
} else { } else {
goodsList.map((e, index) => { goodsList.map((e, index) => {
e.active = false // e.active = false
arr.map(s => { arr.map(s => {
if (s.goods && e.goods) { if (s.goods && e.goods) {
if (s.goods.goodsId == e.goods.goodsId) { if (s.goods.goodsId == e.goods.goodsId) {
...@@ -182,27 +203,21 @@ Component({ ...@@ -182,27 +203,21 @@ Component({
} }
} }
//初始化进来不显示标识 //初始化进来不显示标识
if (!s.isFlag) { // if (!s.isFlag) {
if (s.multipleSpecificationsGoods && e.multipleSpecificationsGoods) { if (s.multipleSpecificationsGoods && e.multipleSpecificationsGoods) {
if (s.multipleSpecificationsGoods.id == e.multipleSpecificationsGoods.id) { if (s.multipleSpecificationsGoods.id == e.multipleSpecificationsGoods.id) {
e.active = true
e.count = s.count e.count = s.count
// e.multipleSpecificationsGoods.goods = JSON.parse(JSON.stringify(s.multipleSpecificationsGoods.goods)) // e.active=s.acitve
// 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
// }
}
} }
} }
//多规格初始化不需要回显逻辑
}) })
}) })
} }
console.log(goodsList, 'goodsList999')
this.setData({ this.setData({
goodsList, goodsList,
// recordList // recordList
...@@ -268,7 +283,7 @@ Component({ ...@@ -268,7 +283,7 @@ Component({
return acc; return acc;
}, []); }, []);
}, },
async getChooseList() { async getChooseList(isValid) {
let { let {
goodsList, goodsList,
chooseGoodsList, chooseGoodsList,
...@@ -281,13 +296,15 @@ Component({ ...@@ -281,13 +296,15 @@ Component({
chooseList.push(e) chooseList.push(e)
} }
}); });
if (isValid) {
if (!chooseList?.length) return wx.$util.showToast("请勾选商品"); if (!chooseList?.length) return wx.$util.showToast("请勾选商品");
//处理多规格选择重复商品时,数量相加逻辑
console.log(chooseGoodsList.length, 'chooseGoodsList.length')
if (chooseGoodsList.length > 0) {
await this.addMMultipleSpecificationsGoods(chooseList, chooseGoodsList)
} }
// 处理多规格选择重复商品时,数量相加逻辑
// if (chooseGoodsList.length > 0) {
// await this.addMMultipleSpecificationsGoods(chooseList, chooseGoodsList)
// }
// debugger // debugger
let arr = this.removeDuplicates( let arr = this.removeDuplicates(
chooseList.concat(chooseGoodsList), chooseList.concat(chooseGoodsList),
...@@ -346,7 +363,7 @@ Component({ ...@@ -346,7 +363,7 @@ Component({
}) })
}, },
choose(e) { async choose(e) {
let { let {
item, item,
ind ind
...@@ -359,7 +376,7 @@ Component({ ...@@ -359,7 +376,7 @@ Component({
} = this.data; } = this.data;
//单独处理多规格商品点击事件 //单独处理多规格商品点击事件
if (item.goodsFlag == 2) { if (item.goodsFlag == 2) {
if (!this.watchAllChose(ind, true)) { if (!await this.watchAllChose(ind, true)) {
wx.$util.showToast('请先选择该商品规格') wx.$util.showToast('请先选择该商品规格')
return return
} }
...@@ -497,7 +514,7 @@ Component({ ...@@ -497,7 +514,7 @@ Component({
}); });
}, },
async confirm() { async confirm() {
let chooseList = await this.getChooseList(); let chooseList = await this.getChooseList(true);
console.log(chooseList, '99999') console.log(chooseList, '99999')
let { let {
goodsList goodsList
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
bottom: 0; bottom: 0;
right: 0; right: 0;
z-index: 998; z-index: 998;
transform: translateZ(2px);
} }
.popup-bg { .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 \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ 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 \ 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 \ No newline at end of file
...@@ -45,10 +45,10 @@ Component({ ...@@ -45,10 +45,10 @@ Component({
*/ */
let _this = this let _this = this
// 获取屏幕宽度和高度 // 获取屏幕宽度和高度
const { windowWidth, windowHeight } = wx.getSystemInfoSync(); const { windowWidth, windowHeight } = wx.getSystemInfoSync()
// 判断屏幕方向 // 判断屏幕方向
const isLandscape = windowWidth > windowHeight; // '横屏' : '竖屏' const isLandscape = windowWidth > windowHeight // '横屏' : '竖屏'
wx.getSystemInfo({ wx.getSystemInfo({
success(res) { success(res) {
let { let {
...@@ -59,12 +59,9 @@ Component({ ...@@ -59,12 +59,9 @@ Component({
safeArea, safeArea,
platform platform
} = res } = res
const { console.log(safeArea, 'safeArea')
height, const { height, right, width, top } =
right, wx.getMenuButtonBoundingClientRect()
width,
top
} = wx.getMenuButtonBoundingClientRect()
// 判断是否是华为平板设备 // 判断是否是华为平板设备
// && pixelRatio >= 2 // && pixelRatio >= 2
let isPad = screenWidth >= 600 let isPad = screenWidth >= 600
...@@ -72,19 +69,23 @@ Component({ ...@@ -72,19 +69,23 @@ Component({
if (isLandscape) statusBarHeight = 0 if (isLandscape) statusBarHeight = 0
// console.log(isPad, screenWidth, 'screenWidth'); // console.log(isPad, screenWidth, 'screenWidth');
// let navigationBarHeight = height + (top - statusBarHeight) * 2 + 5 // 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 navigationBarPadding = screenWidth - right
let navigationBarWidth = screenWidth - (navigationBarPadding * 2 + width) - width let navigationBarWidth =
screenWidth - (navigationBarPadding * 2 + width) - width
// if(deviceOrientation == 'landscape') statusBarHeight = 0 // if(deviceOrientation == 'landscape') statusBarHeight = 0
_this.setData({ _this.setData({
statusBarHeight: `var(--fontSize${statusBarHeight * (isPad ? 1 : 2)})`, statusBarHeight: `var(--fontSize${
statusBarHeight * (isPad ? 1 : 2)
})`,
navigationBarHeight, navigationBarHeight,
// navigationBarStyle: `font-size:${fontSizeSetting}px;`, // navigationBarStyle: `font-size:${fontSizeSetting}px;`,
navigationBarStyle: 'font-size: var(--fontSize34)', navigationBarStyle: 'font-size: var(--fontSize34)',
navigationBarTextWidth: `width:${navigationBarWidth}px;padding:0 ${navigationBarPadding}px; 0 ${navigationBarPadding}px;` navigationBarTextWidth: `width:${navigationBarWidth}px;padding:0 ${navigationBarPadding}px; 0 ${navigationBarPadding}px;`
}) })
}, },
complete() { complete() {
// console.log('#navigation-bar'); // console.log('#navigation-bar');
...@@ -103,7 +104,6 @@ Component({ ...@@ -103,7 +104,6 @@ Component({
// }, 0) // }, 0)
} }
}) })
} }
}, },
pageLifetimes: { pageLifetimes: {
......
<view class='navigation-bar' id='navigation-bar' style='padding-top:{{statusBarHeight}};height:{{navigationBarHeight}};{{navStyle}}'> <view
class="navigation-bar"
id="navigation-bar"
style="padding-top:{{ statusBarHeight}};height:{{navigationBarHeight}};{{navStyle }}"
>
<!-- hidden="{{!showNavBar}}" wx:if="{{showNavBar}}" --> <!-- hidden="{{!showNavBar}}" wx:if="{{showNavBar}}" -->
<!-- <view class="navigation-bar-box" style="{{navigationBarStyle}}"> --> <!-- <view class="navigation-bar-box" style="{{navigationBarStyle}}"> -->
<view class="navigation-bar-box"> <view class="navigation-bar-box">
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}"> <view class="navigation-bar-titleText" style="{{ navigationBarTextWidth }}">
<slot /> <slot />
</view> </view>
<block wx:if="{{showBack}}"> <block wx:if="{{ showBack }}">
<view class="back-box" bindtap="back"> <view class="back-box" bindtap="back">
<view class="back"> <view class="back">
<image src="../../images/back.png" /> <image src="../../images/back.png" />
</view> </view>
</view> </view>
</block> </block>
<block wx:if="{{showMenu}}"> <block wx:if="{{ showMenu }}">
<view class="menu-box" bindtap="showMenuPopup"> <view class="menu-box" bindtap="showMenuPopup">
<view class="menu-class"> <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: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" /> <image wx:else src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation-bar-menu.png" />
</view> </view>
</view> </view>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
width: 100%; width: 100%;
color: #347BFF; color: #347BFF;
font-size: var(--fontSize24); font-size: var(--fontSize24);
/* z-index: 1; */
} }
.tipsIcon { .tipsIcon {
......
...@@ -54,7 +54,8 @@ Component({ ...@@ -54,7 +54,8 @@ Component({
// startTime: `2024-04-23 00:00:00`, // startTime: `2024-04-23 00:00:00`,
// endTime: `2024-04-23 23:59:59` // endTime: `2024-04-23 23:59:59`
startTime: `${today} 00:00:00`, startTime: `${today} 00:00:00`,
endTime: `${today} 23:59:59` endTime: `${today} 23:59:59`,
bussinessType: 1, //"业务类型 1.延保 2.轻改"
}) })
let list = data?.list || [] let list = data?.list || []
list?.length && list.map(e => { list?.length && list.map(e => {
......
...@@ -13,6 +13,11 @@ Component({ ...@@ -13,6 +13,11 @@ Component({
keyWord: '', keyWord: '',
strTemp: '' strTemp: ''
}) })
if (this.data.chooseGoodsList.length == 0) {
this.setData({
isFlag: true
})
}
// this.getOrderBaseGoodsList(n) // this.getOrderBaseGoodsList(n)
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
thisPage.getQuotationInfo(true) thisPage.getQuotationInfo(true)
...@@ -33,6 +38,8 @@ Component({ ...@@ -33,6 +38,8 @@ Component({
type: Array, type: Array,
observer: function (n) { observer: function (n) {
console.log(n, 'chooseGoodsList'); console.log(n, 'chooseGoodsList');
// wx.showLoading('请求中...')
this.setGoodsActive() this.setGoodsActive()
} }
}, },
...@@ -45,6 +52,7 @@ Component({ ...@@ -45,6 +52,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
isFlag: false,
goodsList: [], goodsList: [],
recordList: [], recordList: [],
specificBox: false specificBox: false
...@@ -79,7 +87,7 @@ Component({ ...@@ -79,7 +87,7 @@ Component({
this.watchAllChose(index, true) this.watchAllChose(index, true)
}) })
}, },
watchAllChose(index, type) { async watchAllChose(index, type) {
let { let {
goodsList, goodsList,
recordList, recordList,
...@@ -100,30 +108,65 @@ Component({ ...@@ -100,30 +108,65 @@ Component({
goodsList[index].active = true goodsList[index].active = true
// strTemp用来存储上一次选中的值,判断规格是否重新选择 ,避免页面交互闪烁 // strTemp用来存储上一次选中的值,判断规格是否重新选择 ,避免页面交互闪烁
// if (type && str != strTemp) { // if (type && str != strTemp) {
if( goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]){ console.log(str)
goodsList[index].multipleSpecificationsGoods.goods = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[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.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId
goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/') goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/')
recordList.forEach(record => { recordList.forEach(record => {
if (record.goodsFlag == 2) { if (record.goodsFlag == 2) {
if (goodsList[index].multipleSpecificationsGoods.id ==record.multipleSpecificationsGoods.id) { if (goodsList[index].multipleSpecificationsGoods.id == record.multipleSpecificationsGoods.id) {
record.active=true record.active = true
record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods
} }
} }
}) })
}else{ } 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()
})
secondPage.setData({
skuGoodsData: goodsList[index],
skuGoodsBox: true
})
});
}
} else {
wx.$util.showToast('暂无该规格商品') wx.$util.showToast('暂无该规格商品')
goodsList[index].active=false goodsList[index].active = false
goodsList[index].multipleSpecificationsGoods.goods = '' goodsList[index].multipleSpecificationsGoods.goods = ''
goodsList[index].multipleSpecificationsGoods.specificationList.forEach(item => { goodsList[index].multipleSpecificationsGoods.specificationList.forEach(item => {
item.value = '' item.value = ''
}) })
recordList.forEach(record => { recordList.forEach(record => {
if (record.goodsFlag == 2) { if (record.goodsFlag == 2) {
if (goodsList[index].multipleSpecificationsGoods.id ==record.multipleSpecificationsGoods.id) { if (goodsList[index].multipleSpecificationsGoods.id == record.multipleSpecificationsGoods.id) {
record.active=false record.active = false
record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods
} }
} }
...@@ -148,14 +191,14 @@ Component({ ...@@ -148,14 +191,14 @@ Component({
}) })
} }
if(active&&!type){ if (active && !type) {
goodsList[index].multipleSpecificationsGoods.goods = '' goodsList[index].multipleSpecificationsGoods.goods = ''
goodsList[index].multipleSpecificationsGoods.specificationList.forEach(item => { goodsList[index].multipleSpecificationsGoods.specificationList.forEach(item => {
item.value = '' item.value = ''
}) })
recordList.forEach(record => { recordList.forEach(record => {
if (record.goodsFlag == 2) { 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 record.multipleSpecificationsGoods = goodsList[index].multipleSpecificationsGoods
} }
} }
...@@ -225,6 +268,7 @@ Component({ ...@@ -225,6 +268,7 @@ Component({
} = this.data } = this.data
this.setData({ this.setData({
goodsList: goodsData, goodsList: goodsData,
isFlag: false
}) })
this.setGoodsActive() this.setGoodsActive()
}, },
...@@ -236,6 +280,8 @@ Component({ ...@@ -236,6 +280,8 @@ Component({
show show
} = this.data } = this.data
if (show) { if (show) {
wx.$util.showLoading()
console.log(222222)
if (chooseGoodsList.length == 0) { if (chooseGoodsList.length == 0) {
goodsList.forEach(e => { goodsList.forEach(e => {
e.active = false e.active = false
...@@ -297,7 +343,10 @@ Component({ ...@@ -297,7 +343,10 @@ Component({
} }
this.setData({ this.setData({
goodsList, goodsList,
recordList recordList,
isFlag: true
}, () => {
wx.hideLoading()
}) })
} }
...@@ -324,7 +373,6 @@ Component({ ...@@ -324,7 +373,6 @@ Component({
chooseGoodsList chooseGoodsList
} = this.data } = this.data
let chooseList = [] let chooseList = []
console.log(recordList,chooseGoodsList,'999999')
recordList.map(c => { recordList.map(c => {
if (c.active) { if (c.active) {
if (c.goods) { if (c.goods) {
...@@ -346,7 +394,7 @@ Component({ ...@@ -346,7 +394,7 @@ Component({
if (x.packageGoods && x.packageGoods.packageCode == c.packageGoods.packageCode) { if (x.packageGoods && x.packageGoods.packageCode == c.packageGoods.packageCode) {
c.packageGoods.goodsList = c.packageGoods.goodsList.map(item => { c.packageGoods.goodsList = c.packageGoods.goodsList.map(item => {
x.packageGoods.goodsList.map(ele => { 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 item.price = ele.price || 0
} }
}) })
...@@ -392,15 +440,13 @@ Component({ ...@@ -392,15 +440,13 @@ Component({
let arr = chooseList.filter(item => item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods) let arr = chooseList.filter(item => item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods)
chooseGoodsList.forEach(oldval => { chooseGoodsList.forEach(oldval => {
if (oldval.multipleSpecificationsGoods) { if (oldval.multipleSpecificationsGoods) {
if (!arr.some(newVal => newVal.multipleSpecificationsGoods.goods.goodsId == oldval.multipleSpecificationsGoods.goods.goodsId)) if (!arr.some(newVal => newVal.multipleSpecificationsGoods.goods.goodsId == oldval.multipleSpecificationsGoods.goods.goodsId))
chooseList.push(oldval) chooseList.push(oldval)
} }
}) })
console.log(chooseList, 'chooseList')
return chooseList return chooseList
}, },
choose(e) { async choose(e) {
let { let {
item, item,
index, index,
...@@ -416,7 +462,7 @@ Component({ ...@@ -416,7 +462,7 @@ Component({
} = this.data } = this.data
//单独处理多规格商品点击事件 //单独处理多规格商品点击事件
if (item.goodsFlag == 2) { if (item.goodsFlag == 2) {
if (!this.watchAllChose(ind)) { if (!await this.watchAllChose(ind)) {
wx.$util.showToast('请先选择该商品规格') wx.$util.showToast('请先选择该商品规格')
return return
} }
...@@ -522,7 +568,6 @@ Component({ ...@@ -522,7 +568,6 @@ Component({
}, },
confirm() { confirm() {
let chooseList = this.getChooseList() let chooseList = this.getChooseList()
// console.log(chooseList, 'chooseList');
let { let {
goodsList goodsList
} = this.data } = this.data
...@@ -542,7 +587,8 @@ Component({ ...@@ -542,7 +587,8 @@ Component({
}) })
this.setData({ this.setData({
show: false show: false,
isFlag: false
}) })
} }
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<!-- <text class="tips">|建议价</text> <!-- <text class="tips">|建议价</text>
</view> --> </view> -->
<view class="box"> <view class="box">
<block wx:if="{{isFlag}}">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i"> <block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap"> <view class="item-wrap">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}"> <view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
...@@ -82,6 +83,8 @@ ...@@ -82,6 +83,8 @@
</view> </view>
</block> </block>
</block>
</view> </view>
<!-- </block> --> <!-- </block> -->
</block> </block>
......
// packageEquity/pages/carEquity/components/SecondStep/SecondStep.js // packageEquity/pages/carEquity/components/SecondStep/SecondStep.js
import data from "../constant/stepData"; import data from "../constant/stepData";
// import fn from '../constant/ruleFn' // import fn from '../constant/ruleFn'
import { priceCounter } from "~/packageEquity/api"; import {
priceCounter
} from "~/packageEquity/api";
import NP from "number-precision"; import NP from "number-precision";
const defaultLabelWidth = "var(--fontSize140)"; const defaultLabelWidth = "var(--fontSize140)";
const djPayTypeList = [ const djPayTypeList = [{
{
value: 1, value: 1,
name: "线上支付", name: "线上支付",
}, },
...@@ -18,12 +19,10 @@ const djPayTypeList = [ ...@@ -18,12 +19,10 @@ const djPayTypeList = [
name: "其它收款", name: "其它收款",
}, },
] ]
const merchantPayTypeList = [ const merchantPayTypeList = [{
{
value: 2, value: 2,
name: "门店收款", name: "门店收款",
} }]
]
Component({ Component({
options: { options: {
// styleIsolation: 'apply-shared' // styleIsolation: 'apply-shared'
...@@ -88,8 +87,7 @@ Component({ ...@@ -88,8 +87,7 @@ Component({
// if (value) { // if (value) {
paytype && paytype &&
this.setData({ this.setData({
["textNameObj.confirmName"]: ["textNameObj.confirmName"]: paytype == 1 ? "下一步·去支付(1/2)" : "下一步·上传凭证",
paytype == 1 ? "下一步·去支付(1/2)" : "下一步·上传凭证",
payTypeList: paytype == 2 ? merchantPayTypeList : djPayTypeList payTypeList: paytype == 2 ? merchantPayTypeList : djPayTypeList
}); });
// } // }
...@@ -131,7 +129,8 @@ Component({ ...@@ -131,7 +129,8 @@ Component({
}, },
// '1', '2', '3', // '1', '2', '3',
activeNames: ["1", "2", "3", "4"], activeNames: ["1", "2", "3", "4"],
goodsBox:false, goodsBox: false,
skuGoodsBox: false,
showPicker: false, showPicker: false,
// optionsSelect: Object.freeze(optionsSelect), // optionsSelect: Object.freeze(optionsSelect),
popObj: { popObj: {
...@@ -152,6 +151,8 @@ Component({ ...@@ -152,6 +151,8 @@ Component({
}], }],
payTypeList: djPayTypeList, payTypeList: djPayTypeList,
successDateTime: "", successDateTime: "",
skuGoodsData: {
}, //多规格商品数据
}, },
/** /**
...@@ -159,8 +160,13 @@ Component({ ...@@ -159,8 +160,13 @@ Component({
*/ */
methods: { methods: {
changePrice(e) { changePrice(e) {
let { value } = e.detail; let {
let { index, item } = e.currentTarget.dataset; value
} = e.detail;
let {
index,
item
} = e.currentTarget.dataset;
console.log(item, "item"); console.log(item, "item");
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
let target = `orderInfo.vdQuotationGoodsList[${index}].goods.price`; let target = `orderInfo.vdQuotationGoodsList[${index}].goods.price`;
...@@ -186,9 +192,14 @@ Component({ ...@@ -186,9 +192,14 @@ Component({
this.setGoodsListTotal(); this.setGoodsListTotal();
}, },
//多规格单价修改 //多规格单价修改
changeSpecific(e){ changeSpecific(e) {
let { value } = e.detail; let {
let { index, item } = e.currentTarget.dataset; value
} = e.detail;
let {
index,
item
} = e.currentTarget.dataset;
console.log(item, "item"); console.log(item, "item");
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
let target = `orderInfo.vdQuotationGoodsList[${index}].multipleSpecificationsGoods.goods.price`; let target = `orderInfo.vdQuotationGoodsList[${index}].multipleSpecificationsGoods.goods.price`;
...@@ -199,12 +210,20 @@ Component({ ...@@ -199,12 +210,20 @@ Component({
this.setGoodsListTotal(); this.setGoodsListTotal();
}, },
changePricePackage(e) { changePricePackage(e) {
let { value } = e.detail; let {
let { index, item, childind } = e.currentTarget.dataset; value
} = e.detail;
let {
index,
item,
childind
} = e.currentTarget.dataset;
// console.log(item, 'item'); // console.log(item, 'item');
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
let { let {
orderInfo: { vdQuotationGoodsList }, orderInfo: {
vdQuotationGoodsList
},
} = thisPage.data; } = thisPage.data;
// console.log(childind, 'childind'); // console.log(childind, 'childind');
// console.log(thisPage.data.orderInfo.vdQuotationGoodsList[index].packageGoods.goodsList[childind], 'orderInfo.vdQuotationGoodsList[${index}].packageGoods[${childind}]'); // console.log(thisPage.data.orderInfo.vdQuotationGoodsList[index].packageGoods.goodsList[childind], 'orderInfo.vdQuotationGoodsList[${index}].packageGoods[${childind}]');
...@@ -261,9 +280,13 @@ Component({ ...@@ -261,9 +280,13 @@ Component({
this.setGoodsListTotal(); this.setGoodsListTotal();
}, },
delGoodsList(e) { delGoodsList(e) {
let { index } = e.currentTarget.dataset; let {
index
} = e.currentTarget.dataset;
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
let { orderInfo } = thisPage.data; let {
orderInfo
} = thisPage.data;
// console.log(orderInfo,'orderInfo'); // console.log(orderInfo,'orderInfo');
orderInfo.vdQuotationGoodsList.splice(index, 1); orderInfo.vdQuotationGoodsList.splice(index, 1);
thisPage.setData({ thisPage.setData({
...@@ -274,8 +297,10 @@ Component({ ...@@ -274,8 +297,10 @@ Component({
}, },
setGoodsListTotal() { setGoodsListTotal() {
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
let { orderInfo } = thisPage.data; let {
console.log(orderInfo,'orderInfo'); orderInfo
} = thisPage.data;
console.log(orderInfo, 'orderInfo');
let total = 0; let total = 0;
orderInfo.vdQuotationGoodsList.map((i) => { orderInfo.vdQuotationGoodsList.map((i) => {
if (i.goods) { if (i.goods) {
...@@ -296,7 +321,7 @@ Component({ ...@@ -296,7 +321,7 @@ Component({
}); });
} }
//多规格 //多规格
if(i.multipleSpecificationsGoods){ if (i.multipleSpecificationsGoods) {
if (i.multipleSpecificationsGoods.goods) { if (i.multipleSpecificationsGoods.goods) {
// total += parseFloat(i.goods.count || 1) * parseFloat(i.goods.price) // total += parseFloat(i.goods.count || 1) * parseFloat(i.goods.price)
total = NP.plus( total = NP.plus(
...@@ -320,8 +345,12 @@ Component({ ...@@ -320,8 +345,12 @@ Component({
// chooseGoods // chooseGoods
}, },
showPopup(e) { showPopup(e) {
let { quotationGoodsList } = this.data; let {
let { showName } = e.currentTarget.dataset; quotationGoodsList
} = this.data;
let {
showName
} = e.currentTarget.dataset;
if (showName == "goodsBox" && quotationGoodsList.length < 1) { if (showName == "goodsBox" && quotationGoodsList.length < 1) {
// if (!data.length) // if (!data.length)
return wx.showModal({ return wx.showModal({
...@@ -345,12 +374,18 @@ Component({ ...@@ -345,12 +374,18 @@ Component({
}, },
onChangeInsurance(e) { onChangeInsurance(e) {
console.log(e); console.log(e);
let { detail } = e; let {
let { id } = e.currentTarget.dataset; detail
} = e;
let {
id
} = e.currentTarget.dataset;
if (!detail) return false; if (!detail) return false;
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
// console.log(detail, 'detail') // console.log(detail, 'detail')
let { quotationGoodsList } = this.data; let {
quotationGoodsList
} = this.data;
let goodsItem = quotationGoodsList.find((item) => item.id == id); let goodsItem = quotationGoodsList.find((item) => item.id == id);
let params = thisPage.getInsurance(); let params = thisPage.getInsurance();
...@@ -378,7 +413,11 @@ Component({ ...@@ -378,7 +413,11 @@ Component({
.then((result) => { .then((result) => {
wx.hideLoading(); wx.hideLoading();
console.log("result", result); console.log("result", result);
let { data, code, message } = result; let {
data,
code,
message
} = result;
if (code) { if (code) {
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
...@@ -387,7 +426,10 @@ Component({ ...@@ -387,7 +426,10 @@ Component({
// }) // })
// 如果是补录订单,还要做一个订单最低价格对比 // 如果是补录订单,还要做一个订单最低价格对比
let { orderInfo, totalFee } = thisPage.data; let {
orderInfo,
totalFee
} = thisPage.data;
let minEquityPrice = wx.$util.divideByHundred(data.minEquityPrice); let minEquityPrice = wx.$util.divideByHundred(data.minEquityPrice);
// debugger // debugger
if (orderInfo.outTradeNo && data.minEquityPrice > totalFee) { if (orderInfo.outTradeNo && data.minEquityPrice > totalFee) {
...@@ -431,7 +473,9 @@ Component({ ...@@ -431,7 +473,9 @@ Component({
// 弹出框确认事件 // 弹出框确认事件
onConfirm(e) { onConfirm(e) {
// console.log(e, 1111) // console.log(e, 1111)
let { value } = e.detail; let {
value
} = e.detail;
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
console.log(value, "value"); console.log(value, "value");
thisPage.setData({ thisPage.setData({
...@@ -474,16 +518,12 @@ Component({ ...@@ -474,16 +518,12 @@ Component({
let currentDate = new Date(); let currentDate = new Date();
console.log(currentDate.getFullYear()); console.log(currentDate.getFullYear());
for ( for (
let j = currentDate.getFullYear() - 25; let j = currentDate.getFullYear() - 25; j < currentDate.getFullYear(); j++
j < currentDate.getFullYear();
j++
) { ) {
year.push(j); year.push(j);
} }
for ( for (
let i = currentDate.getFullYear(); let i = currentDate.getFullYear(); i <= currentDate.getFullYear() + 25; i++
i <= currentDate.getFullYear() + 25;
i++
) { ) {
year.push(i); year.push(i);
} }
...@@ -494,10 +534,16 @@ Component({ ...@@ -494,10 +534,16 @@ Component({
}, },
handlePopupShow(e) { handlePopupShow(e) {
// console.log(e) // console.log(e)
let { disable } = this.data; let {
disable
} = this.data;
if (disable) return false; //修改权益价时,不可修改 if (disable) return false; //修改权益价时,不可修改
// let { attrtype, attrname, typename } = e.target.dataset // let { attrtype, attrname, typename } = e.target.dataset
let { attrtype, attrname, typename } = e.currentTarget.dataset; let {
attrtype,
attrname,
typename
} = e.currentTarget.dataset;
console.log(attrtype, attrname, typename, "attrType, attrName"); console.log(attrtype, attrname, typename, "attrType, attrName");
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
let popValue = thisPage.data.orderInfo?.[attrtype]?.[attrname] || ""; let popValue = thisPage.data.orderInfo?.[attrtype]?.[attrname] || "";
...@@ -514,10 +560,15 @@ Component({ ...@@ -514,10 +560,15 @@ Component({
}, },
handlePopInputShow(e) { handlePopInputShow(e) {
// console.log(e) // console.log(e)
let { disable } = this.data; let {
disable
} = this.data;
if (disable) return false; //修改权益价时,不可修改 if (disable) return false; //修改权益价时,不可修改
let { handletype, index } = e.target.dataset; let {
handletype,
index
} = e.target.dataset;
console.log(handletype, index, "type, index"); console.log(handletype, index, "type, index");
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
let popValue = ""; let popValue = "";
...@@ -537,10 +588,17 @@ Component({ ...@@ -537,10 +588,17 @@ Component({
}, },
btnTap(e) { btnTap(e) {
// console.log(e) // console.log(e)
let { name } = e.detail; let {
name
} = e.detail;
// debugger // debugger
// let { attrtype, attrname, typename } = this.data.tableObj // let { attrtype, attrname, typename } = this.data.tableObj
let { showError, insuranceCheck, orderInfo, successDateTime } = this.data; let {
showError,
insuranceCheck,
orderInfo,
successDateTime
} = this.data;
if (successDateTime && !orderInfo.resetOrder) { if (successDateTime && !orderInfo.resetOrder) {
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
const _temp = new Date(successDateTime).format("yyyy-MM-dd hh:mm:ss"); const _temp = new Date(successDateTime).format("yyyy-MM-dd hh:mm:ss");
...@@ -600,9 +658,13 @@ Component({ ...@@ -600,9 +658,13 @@ Component({
}, },
// 切换收款方式 // 切换收款方式
changePayee(e) { changePayee(e) {
let { payee } = e.currentTarget.dataset let {
let { orderInfo } = this.data payee
if (orderInfo.resetOrder||orderInfo.outTradeArr) return } = e.currentTarget.dataset
let {
orderInfo
} = this.data
if (orderInfo.resetOrder || orderInfo.outTradeArr) return
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
thisPage.setData({ thisPage.setData({
["orderInfo.payee"]: payee ["orderInfo.payee"]: payee
...@@ -626,7 +688,9 @@ Component({ ...@@ -626,7 +688,9 @@ Component({
// 切换支付方式 // 切换支付方式
changePayType(e) { changePayType(e) {
console.log(e); console.log(e);
let { paytype } = e.currentTarget.dataset; let {
paytype
} = e.currentTarget.dataset;
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
thisPage.setData({ thisPage.setData({
// ['orderInfo.quotedPriceUpdate']: '', // ['orderInfo.quotedPriceUpdate']: '',
...@@ -639,7 +703,11 @@ Component({ ...@@ -639,7 +703,11 @@ Component({
handleInput(e) { handleInput(e) {
let value = e.detail; let value = e.detail;
console.log(e); console.log(e);
let { attrname, attrtype, type } = e.currentTarget.dataset; let {
attrname,
attrtype,
type
} = e.currentTarget.dataset;
value = type == "number" ? wx.$util.numberFixedDigit(value) : value; value = type == "number" ? wx.$util.numberFixedDigit(value) : value;
if (type == "number") { if (type == "number") {
...@@ -650,7 +718,9 @@ Component({ ...@@ -650,7 +718,9 @@ Component({
// onChangeInsurance // onChangeInsurance
// onChangeInsurance // onChangeInsurance
if (attrname == "quotedPriceUpdate") { if (attrname == "quotedPriceUpdate") {
let { orderInfo } = this.data; let {
orderInfo
} = this.data;
let showError = orderInfo.minEquityPrice <= value ? false : true; let showError = orderInfo.minEquityPrice <= value ? false : true;
this.setData({ this.setData({
showError, showError,
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
"van-checkbox": "@vant/weapp/checkbox/index", "van-checkbox": "@vant/weapp/checkbox/index",
"popup-input": "../PopupInput/PopupInput", "popup-input": "../PopupInput/PopupInput",
"goods": "../GoodsPackage/Goods", "goods": "../GoodsPackage/Goods",
"sku-goods": "/components/SkuGoods/Goods",
"date-select":"/components/DateSelect/dateSelect" "date-select":"/components/DateSelect/dateSelect"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -276,7 +276,8 @@ ...@@ -276,7 +276,8 @@
position: relative; position: relative;
color: #222222; color: #222222;
} }
.goods-box .goods{
.goods-box .goods {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -320,7 +321,20 @@ ...@@ -320,7 +321,20 @@
position: relative; position: relative;
margin-right: var(--fontSize32); margin-right: var(--fontSize32);
margin-left: auto; 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 { .goods-box .goods .price-box text {
...@@ -557,19 +571,23 @@ ...@@ -557,19 +571,23 @@
display: block; display: block;
} }
.alias{
.alias {
font-size: 12px; font-size: 12px;
color: #222222!important; color: #222222 !important;
} }
.bottom_box{
.bottom_box {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.bottom_box .position {
.bottom_box .position {
color: #888888; color: #888888;
} }
.bottom_box .right{
.bottom_box .right {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
......
...@@ -27,10 +27,17 @@ ...@@ -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:''))}} {{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)}} --> <!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
</view> </view>
<view class="price-box"> <!-- goodsPriceModify:true 价格不可以修改,false价格可以修改 -->
<view class="price-box-Modify" wx:if="{{item.goods.goodsPriceModify}}">
<text>¥</text> <text>¥</text>
<view class="price"> <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> </view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view> <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
...@@ -48,10 +55,17 @@ ...@@ -48,10 +55,17 @@
<view class="packageBox"> <view class="packageBox">
<view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child"> <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="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> <text>¥</text>
<view class="price"> <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> </view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{child.count||1}}</view> <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{child.count||1}}</view>
...@@ -64,8 +78,8 @@ ...@@ -64,8 +78,8 @@
<image src="./images/del.png" /> <image src="./images/del.png" />
</view> </view>
<view class="goods-content" > <view class="goods-content">
<view class="alias" wx:if="{{item.multipleSpecificationsGoods.goods.goodsAlias}}" > <view class="alias" wx:if="{{item.multipleSpecificationsGoods.goods.goodsAlias}}">
商品别名:{{item.multipleSpecificationsGoods.goods.goodsAlias}} 商品别名:{{item.multipleSpecificationsGoods.goods.goodsAlias}}
</view> </view>
<view class="bottom_box"> <view class="bottom_box">
...@@ -74,12 +88,19 @@ ...@@ -74,12 +88,19 @@
<view class="position" wx:if="{{ item.multipleSpecificationsGoods.goods.specificationStr }}">{{item.multipleSpecificationsGoods.goods.specificationStr}}</view> <view class="position" wx:if="{{ item.multipleSpecificationsGoods.goods.specificationStr }}">{{item.multipleSpecificationsGoods.goods.specificationStr}}</view>
</view> </view>
<view class="right"> <view class="right">
<view class="price-box"> <view class="price-box-Modify" wx:if="{{item.multipleSpecificationsGoods.goods.goodsPriceModify}}">
<text>¥</text> <text>¥</text>
<view class="price"> <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> </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 class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
</view> </view>
</view> </view>
...@@ -150,5 +171,6 @@ ...@@ -150,5 +171,6 @@
</van-collapse> </van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" /> <Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view> </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> <date-select show="{{ showDateSelect }}" bind:close="closeDateModal" selectPay="{{orderInfo.payType}}" bind:confirm="onChanteSuccessDate"></date-select>
\ No newline at end of file \ No newline at end of file
...@@ -28,6 +28,7 @@ Page({ ...@@ -28,6 +28,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
scrollDisabled: false,
tipsProps: { tipsProps: {
tipsText: "该门店产生异常订单,请点击补录!", tipsText: "该门店产生异常订单,请点击补录!",
showTips: true, showTips: true,
...@@ -280,7 +281,10 @@ Page({ ...@@ -280,7 +281,10 @@ Page({
supplementaryFlag: true supplementaryFlag: true
}) // 补录订单标识 }) // 补录订单标识
// 获取保险信息 // 获取保险信息
let { outTradeNo, userInfo } = this.data let {
outTradeNo,
userInfo
} = this.data
let orderInfo = this.getInsurance() let orderInfo = this.getInsurance()
let owner = this.getOwnerInfo() let owner = this.getOwnerInfo()
owner.salesType = owner.salesType == '售后' ? 1 : 0 owner.salesType = owner.salesType == '售后' ? 1 : 0
...@@ -697,7 +701,7 @@ Page({ ...@@ -697,7 +701,7 @@ Page({
item = item.multipleSpecificationsGoods.goods item = item.multipleSpecificationsGoods.goods
const obj = { const obj = {
goodsId: item.merchantGoodsId, goodsId: item.merchantGoodsId,
goodsName: item.upgradeGoodsName||item.goodsName, goodsName: item.upgradeGoodsName || item.goodsName,
goodsNameAlias: item.goodsAlias || item.goodsNameAlias, goodsNameAlias: item.goodsAlias || item.goodsNameAlias,
specificationsName: item.specificationNameSequence, specificationsName: item.specificationNameSequence,
specificationsValue: item.specificationData ? specificationsValue: item.specificationData ?
...@@ -733,7 +737,9 @@ Page({ ...@@ -733,7 +737,9 @@ Page({
// 获取保险信息 // 获取保险信息
let orderInfo = this.getInsurance() let orderInfo = this.getInsurance()
let owner = this.getOwnerInfo() let owner = this.getOwnerInfo()
let { userInfo } = this.data let {
userInfo
} = this.data
owner.salesType = owner.salesType == '售后' ? 1 : 0 owner.salesType = owner.salesType == '售后' ? 1 : 0
orderInfo.owner = owner orderInfo.owner = owner
orderInfo.check = check orderInfo.check = check
...@@ -886,7 +892,7 @@ Page({ ...@@ -886,7 +892,7 @@ Page({
)?.goods?.validMinSellPrice // 按商品数据对比补充详情商品校验最低价字段 )?.goods?.validMinSellPrice // 按商品数据对比补充详情商品校验最低价字段
} }
pre.push({ pre.push({
goodsFlag:1, goodsFlag: 1,
goods: obj, goods: obj,
packageGoods: null packageGoods: null
}) })
...@@ -929,7 +935,7 @@ Page({ ...@@ -929,7 +935,7 @@ Page({
} else { } else {
pre.push({ pre.push({
goods: null, goods: null,
goodsFlag:3, goodsFlag: 3,
price: item.price, price: item.price,
packageGoods: { packageGoods: {
...item, ...item,
...@@ -942,10 +948,9 @@ Page({ ...@@ -942,10 +948,9 @@ Page({
} }
} }
//多规格商品 //多规格商品
if (!item.packageName&&item.specificationsValue) { if (!item.packageName && item.specificationsValue) {
console.log(item)
let specificdata = this.handleSpecificationsEcho(item) let specificdata = this.handleSpecificationsEcho(item)
pre.push(specificdata) pre = pre.concat(specificdata)
} }
// item.price = // item.price =
...@@ -978,41 +983,52 @@ Page({ ...@@ -978,41 +983,52 @@ Page({
orderInfo.vdQuotationGoodsList.length && this.totalFee() orderInfo.vdQuotationGoodsList.length && this.totalFee()
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
handleSpecificationsEcho(item) { handleSpecificationsEcho(item) {
let {quotationGoodsList} = this.data, console.log('item', item)
let {
quotationGoodsList
} = this.data, skuArr = [],
arr = item.specificationsValue.split('/'), arr = item.specificationsValue.split('/'),
str = arr.join(';~;'), str = arr.join(';~;');
obj = {
goodsFlag:2,
goods: null,
};
quotationGoodsList.forEach(data => { quotationGoodsList.forEach(data => {
if (data.goodsFlag == 2) { if (data.goodsFlag == 2) {
let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str] let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str]
if (tempData) { if (tempData) {
if (tempData.merchantGoodsId == item.goodsId) { tempData.forEach(temp => {
tempData.price = this.divideByHundred(item.goodsPrice)
tempData.goodsId= item.goodsId
tempData.specificationStr=item.specificationsValue
data.multipleSpecificationsGoods.goods = tempData
data.multipleSpecificationsGoods.baseGoodsName = item.goodsName
data.multipleSpecificationsGoods.specificationList.forEach((value, index) => {
value.value = arr[index]
})
obj.multipleSpecificationsGoods = data.multipleSpecificationsGoods if (temp.merchantGoodsId == item.goodsId) {
let obj = {
goodsFlag: 2,
goods: null,
} }
obj.multipleSpecificationsGoods = {
goods: temp,
baseGoodsName: item.goodsName
}
temp.price = this.divideByHundred(item.goodsPrice)
temp.goodsId = item.goodsId
temp.specificationStr = item.specificationsValue
// data.multipleSpecificationsGoods.goods = temp
// data.multipleSpecificationsGoods.baseGoodsName = item.goodsName
// data.multipleSpecificationsGoods.specificationList.forEach((value, index) => {
// value.value = arr[index]
// })
// obj.multipleSpecificationsGoods = data.multipleSpecificationsGoods
console.log('🚀', obj)
skuArr.push(obj)
}
})
} }
} }
}) })
console.log(obj) console.log(skuArr)
return obj return skuArr
}, },
totalFee() { totalFee() {
let { let {
...@@ -1358,7 +1374,7 @@ Page({ ...@@ -1358,7 +1374,7 @@ Page({
navBarHeight navBarHeight
}) })
}, },
init() {}, init() { },
onRoute(options) { onRoute(options) {
console.log(options, 'options') console.log(options, 'options')
// options.id = 9047 // options.id = 9047
...@@ -1597,7 +1613,7 @@ Page({ ...@@ -1597,7 +1613,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
setTime() { setTime() {
let _this = this; let _this = this;
...@@ -1628,13 +1644,18 @@ Page({ ...@@ -1628,13 +1644,18 @@ Page({
}); });
} }
}) })
.catch((err) => {}); .catch((err) => { });
// } // }
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
/*获取屏幕高度*/
this.setData({
windowHeight: wx.getSystemInfoSync().windowHeight
})
const that = this const that = this
wx.$eventbus.on('set_car_info', res => { wx.$eventbus.on('set_car_info', res => {
that.setData({ that.setData({
...@@ -1650,7 +1671,7 @@ Page({ ...@@ -1650,7 +1671,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
...@@ -1674,13 +1695,13 @@ Page({ ...@@ -1674,13 +1695,13 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -11,6 +11,11 @@ page { ...@@ -11,6 +11,11 @@ page {
/* min-height: 100vh; */ /* min-height: 100vh; */
} }
.scroll-disabled {
height: 100vh;
overflow: hidden;
}
.navigation-title { .navigation-title {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -43,7 +48,7 @@ page { ...@@ -43,7 +48,7 @@ page {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
/* height: calc(100vh - 50px); */ /* height: calc(100vh - 50px); */
overflow: scroll; // overflow: scroll;
} }
.btns { .btns {
...@@ -171,6 +176,7 @@ page { ...@@ -171,6 +176,7 @@ page {
// background: #EFF5FE; // background: #EFF5FE;
background-color: #fff; background-color: #fff;
z-index: 9; z-index: 9;
transform: translateZ(1px);
&.showTips { &.showTips {
bottom: 0rpx; bottom: 0rpx;
......
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml --> <!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <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"> <navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title"> <view class="navigation-title">
<view class="navigation-title-text text-hide"> <view class="navigation-title-text text-hide">
...@@ -7,7 +8,8 @@ ...@@ -7,7 +8,8 @@
</view> </view>
</view> </view>
</navigation-bar> </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}}" /> <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" /> <second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
</view> </view>
...@@ -29,6 +31,7 @@ ...@@ -29,6 +31,7 @@
<!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> --> <!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> -->
</view> </view>
</view> </view>
<!-- </scroll-view> -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !orderInfo.resetOrder && !isErrorOrder&&!outTradeNo }}"> <view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !orderInfo.resetOrder && !isErrorOrder&&!outTradeNo }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" /> <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view> </view>
......
...@@ -530,7 +530,7 @@ swiper{ ...@@ -530,7 +530,7 @@ swiper{
position: sticky; position: sticky;
top: var(--fontSize168); top: var(--fontSize168);
left: 0; left: 0;
z-index: 1000; z-index: 100;
} }
.date { .date {
flex-shrink: 0; flex-shrink: 0;
......
...@@ -292,12 +292,11 @@ Page({ ...@@ -292,12 +292,11 @@ Page({
startTime, startTime,
merchantNo, merchantNo,
batchId, batchId,
// receptionStartTime receptionStartTimeTamp
} = record } = record
console.log(record, 'record') console.log(record, 'record')
// 获取短链地址 // 获取短链地址
const {receptionStartTime} = this.data const res = await getShortUrl({merchantNo, batchId, receptionStartTime: receptionStartTimeTamp})
const res = await getShortUrl({merchantNo, batchId, receptionStartTime})
console.log(res, 'res') console.log(res, 'res')
if (res.code == '0') { if (res.code == '0') {
// 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址(更换成短链) // 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址(更换成短链)
......
...@@ -133,10 +133,12 @@ Page({ ...@@ -133,10 +133,12 @@ Page({
}, },
], ],
packageBox: false, packageBox: false,
skuGoodsBox: false,
djPayList: [], // 嘀加收款方对应支付方式 djPayList: [], // 嘀加收款方对应支付方式
merchantPayList: [], // 门店收款方对应支付方式 merchantPayList: [], // 门店收款方对应支付方式
configPayTypeList: [], // 园区店配置支持的支付方式 configPayTypeList: [], // 园区店配置支持的支付方式
recordOrderFlag: true // 补录订单入口标识 recordOrderFlag: true, // 补录订单入口标识
skuGoodsData: {}, //多规格商品数据
}, },
closeTips() { closeTips() {
this.setData({ this.setData({
...@@ -251,6 +253,7 @@ Page({ ...@@ -251,6 +253,7 @@ Page({
wx.$router.go(`ocr?type=${type}`); wx.$router.go(`ocr?type=${type}`);
}, },
showPopup(e) { showPopup(e) {
console.log(e)
let { let {
copyGoodsData, copyGoodsData,
packageList, packageList,
...@@ -383,7 +386,12 @@ Page({ ...@@ -383,7 +386,12 @@ Page({
value value
}, },
} = e.currentTarget.dataset } = e.currentTarget.dataset
let { isErrorOrder, switchVlaue, merchantPayList, djPayList } = this.data let {
isErrorOrder,
switchVlaue,
merchantPayList,
djPayList
} = this.data
if (isErrorOrder || switchVlaue) return if (isErrorOrder || switchVlaue) return
this.setData({ this.setData({
["orderObj.payeeType"]: value, ["orderObj.payeeType"]: value,
...@@ -1074,6 +1082,11 @@ Page({ ...@@ -1074,6 +1082,11 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
/*获取屏幕高度*/
this.setData({
windowHeight: wx.getSystemInfoSync().windowHeight
})
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig') // console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig')
console.log(options, 'options'); console.log(options, 'options');
if (options.scene) { if (options.scene) {
...@@ -1202,7 +1215,7 @@ Page({ ...@@ -1202,7 +1215,7 @@ Page({
message message
} = result; } = result;
if (code == 0) { if (code == 0) {
console.log('data', data)
data.forEach(val => { data.forEach(val => {
//单商品 //单商品
if (val.goodsFlag == 1) { if (val.goodsFlag == 1) {
...@@ -1267,6 +1280,8 @@ Page({ ...@@ -1267,6 +1280,8 @@ Page({
otherProduct.push(val) otherProduct.push(val)
} }
}) })
console.log('otherProduct', otherProduct)
console.log('frontGearArr', frontGearArr)
this.setData({ this.setData({
goodsData: data, goodsData: data,
copyGoodsData: data, copyGoodsData: data,
...@@ -1505,6 +1520,7 @@ Page({ ...@@ -1505,6 +1520,7 @@ Page({
}) })
} }
if (e && !e.packageName) { if (e && !e.packageName) {
console.log(e.specificationData, e, e.specificationData.indexOf(';~;') > -1)
if (e.specificationData.indexOf(';~;') > -1) { if (e.specificationData.indexOf(';~;') > -1) {
// 修复取值字段名字错误问题 // 修复取值字段名字错误问题
if (!e.price) { if (!e.price) {
...@@ -1520,12 +1536,11 @@ Page({ ...@@ -1520,12 +1536,11 @@ Page({
e.count = e.number; e.count = e.number;
e.merchantGoodsId = e.merchantGoodsId || e.id; e.merchantGoodsId = e.merchantGoodsId || e.id;
let specificdata = this.handleSpecificationsEcho(e) let specificdata = this.handleSpecificationsEcho(e)
chooseList.push(specificdata) chooseList = chooseList.concat(specificdata)
} }
} }
}); });
} }
console.log(chooseList, 'chooseList')
this.setData({ this.setData({
goodsList: chooseList, goodsList: chooseList,
first: false, first: false,
...@@ -1533,7 +1548,7 @@ Page({ ...@@ -1533,7 +1548,7 @@ Page({
this.setGoodsTotal(chooseList); this.setGoodsTotal(chooseList);
}, },
handleSpecificationsEcho(item) { handleSpecificationsEcho(item) {
console.log(item) let skuArr = [];
let { let {
otherProduct otherProduct
} = this.data, } = this.data,
...@@ -1550,26 +1565,30 @@ Page({ ...@@ -1550,26 +1565,30 @@ Page({
if (data.goodsFlag == 2) { if (data.goodsFlag == 2) {
let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str] let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str]
if (tempData) { if (tempData) {
if (tempData.merchantGoodsId == item.goodsId) { tempData.forEach(temp => {
if (temp.merchantGoodsId == item.goodsId) {
obj.multipleSpecificationsGoods = { obj.multipleSpecificationsGoods = {
...data.multipleSpecificationsGoods, ...data.multipleSpecificationsGoods,
baseGoodsName: item.goodsName || item.upgradeGoodsName, baseGoodsName: item.goodsName || item.upgradeGoodsName,
goods: { goods: {
...tempData, ...temp,
price: item.price, price: item.price,
sellPrice: item.price, sellPrice: item.price,
goodsId: item.goodsId, goodsId: item.goodsId,
specificationStr: item.specificationData.replace(/;~;/g, '/') specificationStr: item.specificationData.replace(/;~;/g, '/')
} }
} }
skuArr.push(obj)
} }
})
} }
} }
}) })
console.log(obj) console.log(skuArr)
return obj return skuArr
}, },
divideByHundred: str => { divideByHundred: str => {
let floatVal = parseFloat(str) let floatVal = parseFloat(str)
...@@ -1639,7 +1658,12 @@ Page({ ...@@ -1639,7 +1658,12 @@ Page({
}); });
}, },
settingPayType(orderObj) { settingPayType(orderObj) {
let { configPayTypeList, isErrorOrder, switchVlaue, outTradeArr } = this.data let {
configPayTypeList,
isErrorOrder,
switchVlaue,
outTradeArr
} = this.data
// 补录或标记错误订单 // 补录或标记错误订单
if (isErrorOrder || switchVlaue) { if (isErrorOrder || switchVlaue) {
this.setData({ this.setData({
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"merchant-seles": "/components/Merchant-Seles/Merchant-Seles", "merchant-seles": "/components/Merchant-Seles/Merchant-Seles",
"coupon": "/components/Coupon/Coupon", "coupon": "/components/Coupon/Coupon",
"goods": "/components/Goods/Goods", "goods": "/components/Goods/Goods",
"sku-goods": "/components/SkuGoods/Goods",
"customerInfo": "/components/CustomerInfo/CustomerInfo", "customerInfo": "/components/CustomerInfo/CustomerInfo",
"sub-shop-merchant": "/components/subShopMerchant/subShopMerchant", "sub-shop-merchant": "/components/subShopMerchant/subShopMerchant",
"van-picker": "@vant/weapp/picker/index", "van-picker": "@vant/weapp/picker/index",
......
...@@ -16,6 +16,10 @@ Component({ ...@@ -16,6 +16,10 @@ Component({
}, },
index: { index: {
type: Number type: Number
},
optionLabel: {
type: 'String',
default: 'confName'
} }
}, },
...@@ -26,6 +30,12 @@ Component({ ...@@ -26,6 +30,12 @@ Component({
}, },
lifetimes: {
attached() {
console.log(this.data.optionList)
},
},
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
height: var(--fontSize20); height: var(--fontSize20);
} }
} }
.check-box:nth-child(n+3) { .check-box:nth-child(3n+3) {
margin-right: 0; margin-right: 0;
} }
.check-box:nth-child(n+4) { .check-box:nth-child(n+4) {
......
<!--tabWorkOrder/pages/staffDaily/components/selectItemPopup/selectItemPopup.wxml--> <!--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}}"> <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 <view
class="check-box {{ subItem.active ? 'active' : '' }}" class="check-box {{ subItem.active ? 'active' : '' }}"
wx:for="{{ optionList }}" wx:for="{{ optionList }}"
...@@ -11,8 +12,9 @@ ...@@ -11,8 +12,9 @@
data-pidx="{{ index }}" data-pidx="{{ index }}"
data-idx="{{ idx }}" data-idx="{{ idx }}"
> >
{{subItem.confName}} {{subItem[optionLabel]}}
<image wx:if="{{ subItem.active }}" class="mult" src="../../../../images/check-active.png"></image> <image wx:if="{{ subItem.active }}" class="mult" src="../../../../images/check-active.png"></image>
</view> </view>
</view> </view>
</scroll-view>
</popup> </popup>
\ No newline at end of file \ No newline at end of file
...@@ -10,6 +10,9 @@ Component({ ...@@ -10,6 +10,9 @@ Component({
// 属性名 在wxml调用组件时利用该属性传递组件显示的数据 // 属性名 在wxml调用组件时利用该属性传递组件显示的数据
type: Object, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型) type: Object, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型)
value: '' // 属性初始值(可选),如果未指定则会根据类型选择一个 value: '' // 属性初始值(可选),如果未指定则会根据类型选择一个
},
index: {
type: Number
} }
// weeklyList: { // weeklyList: {
// type: Array, // type: Array,
......
...@@ -14,6 +14,14 @@ export const skillProblemList = [ ...@@ -14,6 +14,14 @@ export const skillProblemList = [
{ confId: 14, 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 = [ export const formData = [
{ {
label: '流量问题', label: '流量问题',
...@@ -34,5 +42,15 @@ export const formData = [ ...@@ -34,5 +42,15 @@ export const formData = [
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'skillProblemList' optionsName: 'skillProblemList'
},
{
label: '套餐问题',
isMult: true,
name: 'packageProblemList',
optionList: packageProblemList,
selectedList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'packageProblemList'
} }
] ]
/* tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.wxss */ /* tabWorkOrder/pages/staffDaily/staffDaily.wxss */
page { page {
background-color: rgb(246, 247, 247); background-color: rgb(246, 247, 247);
} }
...@@ -40,8 +40,14 @@ page { ...@@ -40,8 +40,14 @@ page {
width: var(--fontSize25); width: var(--fontSize25);
height: var(--fontSize15); height: var(--fontSize15);
margin-left: var(--fontSize12); margin-left: var(--fontSize12);
// transform: translateY(20%); // transform: translateY(-52%);
transition: all 0.5s; transition: all 0.5s;
// .img {
// // width: 36rpx;
// // height: 36rpx;
// // margin-bottom: 25rpx;
// }
} }
.move { .move {
...@@ -52,13 +58,10 @@ page { ...@@ -52,13 +58,10 @@ page {
opacity: 1; opacity: 1;
} }
.layout {
.main {
padding: 0 var(--fontSize20) var(--fontSize236) !important;
}
}
.main { .main {
// padding: 0 var(--fontSize20) var(--fontSize256);
padding: 0 20rpx 100rpx;
.mainheader { .mainheader {
margin: var(--fontSize20) var(--fontSize10) 0; margin: var(--fontSize20) var(--fontSize10) 0;
display: flex; display: flex;
...@@ -88,8 +91,8 @@ page { ...@@ -88,8 +91,8 @@ page {
} }
} }
.isFullSucreen { page .isFullSucreen {
padding-bottom: 102px !important; padding-bottom: 160px !important;
} }
.isFullSucreen-btn { .isFullSucreen-btn {
...@@ -103,7 +106,16 @@ page { ...@@ -103,7 +106,16 @@ page {
overflow: hidden; overflow: hidden;
margin-top: var(--fontSize20); margin-top: var(--fontSize20);
height: calc(100% - var(--fontSize100)); height: calc(100% - var(--fontSize100));
padding: var(--fontSize24) 0;
// padding: var(--fontSize24) 0;
.presonBox {
height: 66rpx;
background: #e7f3ff;
text-align: center;
line-height: 66rpx;
color: #347bff;
font-size: 24rpx;
}
.carBandTitle { .carBandTitle {
padding: 0 var(--fontSize40) var(--fontSize24); padding: 0 var(--fontSize40) var(--fontSize24);
...@@ -114,14 +126,33 @@ page { ...@@ -114,14 +126,33 @@ page {
margin-bottom: var(--fontSize24); margin-bottom: var(--fontSize24);
} }
.input-item { .input-item {
padding: 0 var(--fontSize40); // padding: 0 var(--fontSize40);
color: #292D33; color: #292D33;
font-size: var(--fontSize28); font-size: var(--fontSize28);
border-bottom: 1rpx solid #dee0e3;
display: flex;
justify-content: space-between;
padding: 24rpx 40rpx;
.left {
display: flex;
flex-direction: column;
justify-content: center;
.tips {
color: #d0d2d6;
font-size: 22rpx;
}
}
.label { .label {
margin-bottom: var(--fontSize16); margin-bottom: var(--fontSize16);
// display: flex;
color: #292d33;
font-size: 28rpx;
text { text {
color: #347BFF; color: #347BFF;
...@@ -133,19 +164,29 @@ page { ...@@ -133,19 +164,29 @@ page {
} }
} }
.disabled {
color: #5a5e66;
}
.content-input { .content-input {
height: var(--fontSize72); height: var(--fontSize91);
background: #FFFFFF; text-align: right;
border: var(--fontSize2) solid #ECECEC; font-size: var(--fontSize28);
padding: 0 var(--fontSize24); flex: 1;
border-radius: var(--fontSize8); line-height: 100%;
margin-bottom: var(--fontSize24); color: #292d33;
}
.inputerror {
color: #F24724;
} }
.content-input.disabled { .content-input.disabled {
background: #EFF0F2; color: #5a5e66;
} }
.content-input.flex { .content-input.flex {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -159,6 +200,29 @@ page { ...@@ -159,6 +200,29 @@ page {
.input-placeholder { .input-placeholder {
color: #BEC1C7; color: #BEC1C7;
} }
.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;
}
.arrow {
width: var(--fontSize28);
height: var(--fontSize26);
margin-top: var(--fontSize26);
flex-shrink: 0;
}
} }
.pickerCell { .pickerCell {
...@@ -191,8 +255,21 @@ page { ...@@ -191,8 +255,21 @@ page {
} }
} }
.templateNameTitle {
margin-right: 20rpx;
.templateName {
color: #347BFF;
font-size: 28rpx;
font-weight: 400;
margin-right: 10rpx;
}
}
.remark_box { .remark_box {
padding: var(--fontSize20); padding: var(--fontSize20);
background-color: #fff;
.label { .label {
font-size: var(--fontSize28); font-size: var(--fontSize28);
......
// 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 \ 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 \ 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 \ 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 \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ 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 \ 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 \ 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 \ 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 \ 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 \ 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 \ 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 \ 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 \ 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 \ 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 \ 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!