Commit b0163978 by 李伟康

commit 修复BUG

1 parent 318c2d95
......@@ -72,7 +72,7 @@ Page({
},
async getInspectionList(conversationDateId) {
try {
if(!conversationDateId) throw false
if (!conversationDateId) throw false
wx.$util.showLoading()
const {
searchDate
......@@ -83,12 +83,14 @@ Page({
} = await carLifeApi.getInspectionList({
startTime: `${searchDate} 00:00:00`,
endTime: `${searchDate} 23:59:59`,
conversationDateId
conversationDateId,
pageSize: 99999
})
if (code == 0) {
wx.hideLoading()
const rex = /\b\d{2}:\d{2}:\d{2}\b/
data.list?.map(e => {
data.list?.map((e,index) => {
e.batchNum = data.list.length - index
if (e.startTime && e.endTime) e.time = `${e.startTime.match(rex)[0]}-${e.endTime.match(rex)[0]}`
if (e.duration) e._duration = this.formatTime(e.duration)
if (!e.estimatedResult) {
......@@ -105,10 +107,10 @@ Page({
wx.hideLoading()
this.setData({
flag: true,
list:[]
list: []
})
console.log(error)
if(error) wx.$util.showToast(error)
if (error) wx.$util.showToast(error)
}
},
......
......@@ -9,7 +9,7 @@
<block wx:else>
<view class="sub">
接待批次
<view class="num">{{item.num}}</view>
<view class="num">{{item.batchNum}}</view>
</view>
</block>
<view class="sub score">
......
......@@ -12,39 +12,51 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.$router.getData(res =>{
wx.$router.getData(res => {
this.setData(res)
})
this.getSystemInfo()
},
getSystemInfo() {
let _this = this
wx.getRendererUserAgent({
success(res) {
console.log(res)
let isPad = /iPad|Android.*Tablet|Kindle|Silk/i.test(res.userAgent)
_this.setData({
isPad
})
}
})
wx.getSystemInfo({
success(res) {
console.log(res)
const deviceOrientation = res.deviceOrientation,
isPad = (deviceOrientation == 'landscape' ? res.screenHeight : res.screenWidth) >= 600
const deviceOrientation = res.deviceOrientation
_this.setData({
deviceOrientation,
isPad
})
}
})
},
onResize(e) {
console.log(e)
this.setData({
deviceOrientation: e.deviceOrientation
})
},
jump(){
const {mode} = this.data
jump() {
const {
mode
} = this.data
wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation')
},
open(){
const {isPad} = this.data
if(!isPad) return wx.$util.showToast('为保证使用体验,快来工作平板上使用该功能吧')
open() {
const {
isPad
} = this.data
if (!isPad) return wx.$util.showToast('为保证使用体验,快来工作平板上使用该功能吧')
this.setData({
showPopup:true
showPopup: true
})
},
/**
......
......@@ -15,7 +15,7 @@
box-sizing: border-box;
padding-left: var(--fontSize64);
position: relative;
.title {
margin-bottom: var(--fontSize20);
font-weight: 600;
......@@ -29,6 +29,7 @@
margin-left: var(--fontSize12);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/recommend.png');
background-size: 100%;
background-repeat: no-repeat;
}
}
......@@ -71,32 +72,31 @@
padding-top: 0;
.item {
width: var(--fontSize420);
height: var(--fontSize200);
margin: 0 var(--fontSize6);
width: var(--fontSize546);
height: var(--fontSize260);
margin: 0 var(--fontSize8);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/default-bg-hd.png');
padding-left: var(--fontSize32);
padding-left: var(--fontSize42);
transform: translateY(-20%);
.title {
font-size: var(--fontSize24);
margin-bottom: var(--fontSize12);
font-size: var(--fontSize32);
margin-bottom: var(--fontSize16);
.recommend {
width: var(--fontSize48);
height: var(--fontSize24);
margin-left: var(--fontSize6);
width: var(--fontSize62);
height: var(--fontSize32);
margin-left: var(--fontSize8);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/recommend-hd.png');
background-size: 100%;
}
}
.text {
font-size: var(--fontSize16);
font-size: var(--fontSize20);
}
.icon {
width: var(--fontSize110);
height: var(--fontSize110);
right: var(--fontSize32);
width: var(--fontSize143);
height: var(--fontSize143);
right: var(--fontSize42);
}
}
......
......@@ -80,6 +80,7 @@ Component({
item.salesUuid = item.salesUuid
item.salesName = item.salesName
item.customerPhone = item.phoneNumber
if(item.orderFlag) return wx.$util.showToast('您已为当前客户提单,请进入订单列表查看。')
this.hidePopup()
wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation', {
customerInfo: item
......
......@@ -118,7 +118,7 @@
.goods-name {
font-size: var(--fontSize28);
color: #347BFF;
margin-bottom: var(--fontSize8);
margin-bottom: var(--fontSize24);
}
.info {
......@@ -160,68 +160,70 @@
.landscape {
.popup-title {
height: var(--fontSize48);
font-size: var(--fontSize16);
height: var(--fontSize62);
font-size: var(--fontSize18);
.close {
width: var(--fontSize50);
width: var(--fontSize65);
&-image {
width: var(--fontSize12);
height: var(--fontSize12);
width: var(--fontSize16);
height: var(--fontSize16);
}
}
}
.popup-sub-title {
padding: var(--fontSize12) 0;
padding: var(--fontSize16) 0;
text-align: center;
font-size: var(--fontSize12);
font-size: var(--fontSize16);
color: #999EA8;
}
.popup-slot {
height: calc(100% - var(--fontSize90));
height: calc(100% - var(--fontSize117));
padding: 0 var(--fontSize26) var(--fontSize20);
gap: var(--fontSize16);
align-content: flex-start;
.item {
width: calc(25% - var(--fontSize24));
height: var(--fontSize166);
border-radius: var(--fontSize8);
padding: var(--fontSize12);
width: calc(25% - var(--fontSize12));
height: var(--fontSize215);
border-radius: var(--fontSize10);
padding: var(--fontSize16);
.status {
right: var(--fontSize12);
top: var(--fontSize11);
width: var(--fontSize44);
height: var(--fontSize22);
border-radius: var(--fontSize2);
font-size: var(--fontSize12);
right: var(--fontSize16);
top: var(--fontSize14);
width: var(--fontSize57);
height: var(--fontSize29);
border-radius: var(--fontSize3);
font-size: var(--fontSize16);
}
.name {
font-size: var(--fontSize14);
margin-bottom: var(--fontSize20);
font-size: var(--fontSize18);
margin-bottom: var(--fontSize26);
}
.goods-name {
font-size: var(--fontSize14);
margin-bottom: var(--fontSize4);
font-size: var(--fontSize18);
margin-bottom: var(--fontSize12);
}
.info {
font-size: var(--fontSize12);
margin-bottom: var(--fontSize8);
font-size: var(--fontSize16);
margin-bottom: var(--fontSize10);
.value {
margin-left: var(--fontSize12);
margin-left: var(--fontSize16);
}
}
}
}
.nothing {
margin-top: var(--fontSize56);
font-size: var(--fontSize14);
margin-top: var(--fontSize73);
font-size: var(--fontSize18);
.icon {
width: var(--fontSize338);
......
<block wx:if="{{showPopup}}">
<view class="popup {{deviceOrientation == 'landscape'?'landscape':''}}" catchtouchmove="noScroll">
<view class="popup {{deviceOrientation == 'landscape'?'landscape':''}}" >
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content">
<view class="popup-title text-center">
......
......@@ -11,6 +11,13 @@
"scene": null
},
{
"name": "packageEquity/pages/beforeCreate/beforeCreate",
"pathName": "packageEquity/pages/beforeCreate/beforeCreate",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "质检",
"pathName": "packageEquity/pages/aiInspection/aiInspection",
"query": "badgeId=4827E2F0CD24",
......@@ -119,7 +126,7 @@
}
},
"setting": {
"compileHotReLoad": true
"compileHotReLoad": false
},
"projectname": "dj-car-boutique-work-wechat",
"libVersion": "3.2.5"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!