Commit b0163978 by 李伟康

commit 修复BUG

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