Commit 3d6c39de by zhangxw

样式修改

1 parent 6edae0d0
...@@ -50,13 +50,12 @@ ...@@ -50,13 +50,12 @@
.scroll .tab-item { .scroll .tab-item {
width: fit-content; width: fit-content;
min-width: var(--fontSize144);
height: 100%; height: 100%;
flex-shrink: 0; flex-shrink: 0;
font-size: var(--fontSize28); font-size: var(--fontSize28);
text-align: center; text-align: center;
position: relative; position: relative;
padding: 0 var(--fontSize10); padding: 0 var(--fontSize24);
} }
.scroll .tab-item .text-item { .scroll .tab-item .text-item {
......
...@@ -57,10 +57,7 @@ Component({ ...@@ -57,10 +57,7 @@ Component({
} }
// 埋点 // 埋点
wx.$track.setTrackData(0, 'delivery_arrive_shop', {}, '', 7) wx.$track.setTrackData(0, 'delivery_arrive_shop', {}, '', 7)
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
// 设置加载状态 // 设置加载状态
this.setData({ this.setData({
isLoading: true isLoading: true
......
...@@ -78,10 +78,7 @@ Component({ ...@@ -78,10 +78,7 @@ Component({
loadingFlag: true loadingFlag: true
}) })
const uploadImages = async (tempFiles) => { const uploadImages = async (tempFiles) => {
wx.showLoading({ wx.$util.showLoading('上传中')
title: '上传中',
mask: true
})
try { try {
for (const item of tempFiles) { for (const item of tempFiles) {
const val = item.path const val = item.path
...@@ -134,10 +131,7 @@ Component({ ...@@ -134,10 +131,7 @@ Component({
// 埋点 // 埋点
wx.$track.setTrackData(0, 'delivery_arrive_shop', {}, '', 7) wx.$track.setTrackData(0, 'delivery_arrive_shop', {}, '', 7)
// 显示加载 // 显示加载
wx.showLoading({ wx.$util.showLoading('提交中...')
title: '提交中...',
mask: true
})
const res = await newApi.deliveryConfirmDelivery({ const res = await newApi.deliveryConfirmDelivery({
confirmImages, confirmImages,
deliveryOrderId: detail?.deliveryOrderId, deliveryOrderId: detail?.deliveryOrderId,
......
...@@ -51,10 +51,7 @@ Page({ ...@@ -51,10 +51,7 @@ Page({
async getDeliveryOrderDetail (id) { async getDeliveryOrderDetail (id) {
try { try {
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const data = await newApi.getDeliveryOrderDetail({ const data = await newApi.getDeliveryOrderDetail({
id: Number(id) id: Number(id)
}) })
......
...@@ -115,7 +115,7 @@ Component({ ...@@ -115,7 +115,7 @@ Component({
async getList(isReset = false) { async getList(isReset = false) {
let { searchText, orderStatus, createdStartDate, createdEndDate, currentPage, nothing } = this.data let { searchText, orderStatus, createdStartDate, createdEndDate, currentPage, nothing } = this.data
if (nothing) return if (nothing) return
wx.showLoading() wx.$util.showLoading('加载中')
const res = await newApi.getDeliveryOrderPageList({ const res = await newApi.getDeliveryOrderPageList({
t: { searchText, orderStatus, createdStartDate, createdEndDate }, t: { searchText, orderStatus, createdStartDate, createdEndDate },
currentPage: currentPage, currentPage: currentPage,
......
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
width: calc(100% - var(--fontSize256)); width: calc(100% - var(--fontSize256));
.car-type-name { .car-type-name {
// width: calc(100% - var(--fontSize256)); // width: calc(100% - var(--fontSize256));
font-size: 28rpx;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
...@@ -112,6 +113,11 @@ ...@@ -112,6 +113,11 @@
color: #999EA8; color: #999EA8;
font-size: var(--fontSize24); font-size: var(--fontSize24);
margin: var(--fontSize16) 0; margin: var(--fontSize16) 0;
margin-right: 12rpx;
}
.text-gray {
color: #999EA8;
margint-right: 12rpx;
} }
.text-blue { .text-blue {
color: #347BFF; color: #347BFF;
......
...@@ -239,10 +239,7 @@ Page({ ...@@ -239,10 +239,7 @@ Page({
} }
} }
const upload = async (tempFiles) => { const upload = async (tempFiles) => {
wx.showLoading({ wx.$util.showLoading('上传中')
title: '上传中',
mask: true
})
try { try {
for (const item of tempFiles) { for (const item of tempFiles) {
const val = item.path const val = item.path
...@@ -296,10 +293,7 @@ Page({ ...@@ -296,10 +293,7 @@ Page({
}) })
} }
const upload = async (tempFiles) => { const upload = async (tempFiles) => {
wx.showLoading({ wx.$util.showLoading('上传中')
title: '上传中',
mask: true
})
try { try {
for (const item of tempFiles) { for (const item of tempFiles) {
const val = item.tempFilePath const val = item.tempFilePath
...@@ -368,10 +362,7 @@ Page({ ...@@ -368,10 +362,7 @@ Page({
} }
} }
const upload = async (tempFiles) => { const upload = async (tempFiles) => {
wx.showLoading({ wx.$util.showLoading('上传中')
title: '上传中',
mask: true
})
try { try {
for (const item of tempFiles) { for (const item of tempFiles) {
const val = item.tempFilePath const val = item.tempFilePath
...@@ -515,10 +506,7 @@ Page({ ...@@ -515,10 +506,7 @@ Page({
let { key } = e.currentTarget.dataset let { key } = e.currentTarget.dataset
const loc = await wx.getLocation() const loc = await wx.getLocation()
const { latitude, longitude } = loc const { latitude, longitude } = loc
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await mapApi.detailedAdrress([latitude, longitude]) const res = await mapApi.detailedAdrress([latitude, longitude])
const locationName = `${res?.addressComponent?.province}${res?.addressComponent?.city}` || res?.formatted_address || "已定位" const locationName = `${res?.addressComponent?.province}${res?.addressComponent?.city}` || res?.formatted_address || "已定位"
wx.hideLoading() wx.hideLoading()
...@@ -574,10 +562,7 @@ Page({ ...@@ -574,10 +562,7 @@ Page({
if (formData.supplementaryClauseText) { if (formData.supplementaryClauseText) {
if (this.data.confirmRepealFlag) return if (this.data.confirmRepealFlag) return
this.setData({confirmRepealFlag: true}) this.setData({confirmRepealFlag: true})
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
newApi.salesAgreementPreview({ newApi.salesAgreementPreview({
evalOrderNo: query.evalOrderNo, evalOrderNo: query.evalOrderNo,
supplementaryClauseText: formData.supplementaryClauseText supplementaryClauseText: formData.supplementaryClauseText
...@@ -702,10 +687,7 @@ Page({ ...@@ -702,10 +687,7 @@ Page({
confirmColor: '#347BFF', confirmColor: '#347BFF',
complete: async (res) => { complete: async (res) => {
if (res.confirm) { if (res.confirm) {
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.confirmDelivery({ const res = await newApi.confirmDelivery({
evalOrderNo: query.evalOrderNo, evalOrderNo: query.evalOrderNo,
...formData ...formData
......
...@@ -122,10 +122,7 @@ Component({ ...@@ -122,10 +122,7 @@ Component({
let { keyWord, status, currentPage, nothing } = this.data let { keyWord, status, currentPage, nothing } = this.data
const userInfo = wx.$util.getUserInfo() const userInfo = wx.$util.getUserInfo()
if (nothing) return if (nothing) return
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.evalOrderList({ const res = await newApi.evalOrderList({
t: { keyWord, status, sellerMerchantId: userInfo?.shopMerchantId }, t: { keyWord, status, sellerMerchantId: userInfo?.shopMerchantId },
currentPage: currentPage, currentPage: currentPage,
...@@ -276,10 +273,7 @@ Component({ ...@@ -276,10 +273,7 @@ Component({
} }
if (this.data.ownerReQuoteFlag) return if (this.data.ownerReQuoteFlag) return
this.setData({ownerReQuoteFlag: true}) this.setData({ownerReQuoteFlag: true})
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.evalOrderOwnerReQuote(requoteObj) const res = await newApi.evalOrderOwnerReQuote(requoteObj)
if (res.data.code == 0) { if (res.data.code == 0) {
...@@ -338,10 +332,7 @@ Component({ ...@@ -338,10 +332,7 @@ Component({
confirmColor: "#347BFF", confirmColor: "#347BFF",
complete: async (res) => { complete: async (res) => {
if (res.confirm) { if (res.confirm) {
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.evalOrderCancelContract(cancelSignObj) const res = await newApi.evalOrderCancelContract(cancelSignObj)
if (res.data.code == 0) { if (res.data.code == 0) {
wx.hideLoading() wx.hideLoading()
...@@ -377,10 +368,7 @@ Component({ ...@@ -377,10 +368,7 @@ Component({
confirmColor: '#347BFF', confirmColor: '#347BFF',
complete: (res) => { complete: (res) => {
if (res.confirm) { if (res.confirm) {
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
newApi.revokeSaleContract({ newApi.revokeSaleContract({
saleContractNo: item.saleContractNo saleContractNo: item.saleContractNo
}).then(res => { }).then(res => {
...@@ -433,10 +421,7 @@ Component({ ...@@ -433,10 +421,7 @@ Component({
this.setData({ this.setData({
'payPopupObj.paymentMethod': 1 'payPopupObj.paymentMethod': 1
}) })
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.getContractDetail({ const res = await newApi.getContractDetail({
contractNo: item?.saleContractNo, contractNo: item?.saleContractNo,
}); });
...@@ -462,10 +447,7 @@ Component({ ...@@ -462,10 +447,7 @@ Component({
async confirmAmountRequested() { async confirmAmountRequested() {
let { payPopupObj } = this.data let { payPopupObj } = this.data
if (payPopupObj.type == 'payDeposit') { if (payPopupObj.type == 'payDeposit') {
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.payDepositApplication({ const res = await newApi.payDepositApplication({
evalOrderNo: payPopupObj.evalOrderNo, evalOrderNo: payPopupObj.evalOrderNo,
paymentMethod: payPopupObj.paymentMethod paymentMethod: payPopupObj.paymentMethod
...@@ -486,10 +468,7 @@ Component({ ...@@ -486,10 +468,7 @@ Component({
wx.$util.showToast(res.data.msg || "请求失败"); wx.$util.showToast(res.data.msg || "请求失败");
} }
} else { } else {
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.signAgreement({ const res = await newApi.signAgreement({
evalOrderNo: payPopupObj.evalOrderNo, evalOrderNo: payPopupObj.evalOrderNo,
paymentMethod: payPopupObj.paymentMethod paymentMethod: payPopupObj.paymentMethod
...@@ -522,10 +501,7 @@ Component({ ...@@ -522,10 +501,7 @@ Component({
this.setData({ this.setData({
signAgreementObjDetail: item signAgreementObjDetail: item
}) })
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
newApi.checkSignAgreement({ newApi.checkSignAgreement({
evalOrderNo: item.evalOrderNo evalOrderNo: item.evalOrderNo
}) })
...@@ -567,10 +543,7 @@ Component({ ...@@ -567,10 +543,7 @@ Component({
wx.$util.showToast("请选择代保管人"); wx.$util.showToast("请选择代保管人");
return; return;
} }
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
newApi.sendCustodyAgreement({ ...signAgreementObj, evalOrderNo: signAgreementObjDetail.evalOrderNo }).then(res => { newApi.sendCustodyAgreement({ ...signAgreementObj, evalOrderNo: signAgreementObjDetail.evalOrderNo }).then(res => {
if (res.data.code == 0) { if (res.data.code == 0) {
wx.hideLoading() wx.hideLoading()
...@@ -667,10 +640,7 @@ Component({ ...@@ -667,10 +640,7 @@ Component({
wx.$util.showToast("请输入地址") wx.$util.showToast("请输入地址")
return return
} }
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
newApi.addCustodyAgreement(addSignAgreementObj).then(async res => { newApi.addCustodyAgreement(addSignAgreementObj).then(async res => {
if (res.data.code == 0) { if (res.data.code == 0) {
wx.hideLoading(); wx.hideLoading();
...@@ -701,10 +671,7 @@ Component({ ...@@ -701,10 +671,7 @@ Component({
let { item } = e.currentTarget.dataset let { item } = e.currentTarget.dataset
if (this.data.reSubmitFlag) return if (this.data.reSubmitFlag) return
this.setData({reSubmitFlag: true}) this.setData({reSubmitFlag: true})
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.evalOrderConfirmVehicleDelivery({ const res = await newApi.evalOrderConfirmVehicleDelivery({
evalOrderNo: item?.evalOrderNo, evalOrderNo: item?.evalOrderNo,
}); });
......
...@@ -264,10 +264,7 @@ Page({ ...@@ -264,10 +264,7 @@ Page({
async getEvalOrderSimpleDetail() { async getEvalOrderSimpleDetail() {
let { query } = this.data let { query } = this.data
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await newApi.evalOrderSimpleDetail({ const res = await newApi.evalOrderSimpleDetail({
evalOrderNo: query.evalOrderNo evalOrderNo: query.evalOrderNo
}) })
...@@ -614,10 +611,7 @@ Page({ ...@@ -614,10 +611,7 @@ Page({
let { key } = e.currentTarget.dataset let { key } = e.currentTarget.dataset
const loc = await wx.getLocation() const loc = await wx.getLocation()
const { latitude, longitude } = loc const { latitude, longitude } = loc
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
const res = await mapApi.detailedAdrress([latitude, longitude]) const res = await mapApi.detailedAdrress([latitude, longitude])
const locationName = `${res?.addressComponent?.province}${res?.addressComponent?.city}` || res?.formatted_address || "已定位" const locationName = `${res?.addressComponent?.province}${res?.addressComponent?.city}` || res?.formatted_address || "已定位"
wx.hideLoading() wx.hideLoading()
...@@ -645,10 +639,7 @@ Page({ ...@@ -645,10 +639,7 @@ Page({
} }
} }
const upload = async (tempFiles) => { const upload = async (tempFiles) => {
wx.showLoading({ wx.$util.showLoading('上传中')
title: '上传中',
mask: true
})
try { try {
for (const item of tempFiles) { for (const item of tempFiles) {
const val = item.path const val = item.path
...@@ -698,10 +689,7 @@ Page({ ...@@ -698,10 +689,7 @@ Page({
}) })
} }
const upload = async (tempFiles) => { const upload = async (tempFiles) => {
wx.showLoading({ wx.$util.showLoading('上传中')
title: '上传中',
mask: true
})
try { try {
for (const item of tempFiles) { for (const item of tempFiles) {
const val = item.tempFilePath const val = item.tempFilePath
...@@ -769,10 +757,7 @@ Page({ ...@@ -769,10 +757,7 @@ Page({
} }
} }
const upload = async (tempFiles) => { const upload = async (tempFiles) => {
wx.showLoading({ wx.$util.showLoading('上传中')
title: '上传中',
mask: true
})
try { try {
for (const item of tempFiles) { for (const item of tempFiles) {
const val = item.tempFilePath const val = item.tempFilePath
...@@ -1030,10 +1015,7 @@ Page({ ...@@ -1030,10 +1015,7 @@ Page({
delete formData.depositPrice delete formData.depositPrice
delete formData.finalPrice delete formData.finalPrice
} }
wx.showLoading({ wx.$util.showLoading('加载中')
title: '加载中',
mask: true
})
if (this.data.confirmFlag) return if (this.data.confirmFlag) return
this.setData({confirmFlag: true}) this.setData({confirmFlag: true})
newApi.evalOrderSignContract({ ...formData, evalOrderNo: query.evalOrderNo }).then(res => { newApi.evalOrderSignContract({ ...formData, evalOrderNo: query.evalOrderNo }).then(res => {
......
...@@ -226,7 +226,7 @@ Page({ ...@@ -226,7 +226,7 @@ Page({
weeklyList } = this.data, weeklyList } = this.data,
item = weeklyList?.find(item => item.date == currentDate) item = weeklyList?.find(item => item.date == currentDate)
if (item && item.id) { if (item && item.id) {
wx.showLoading() wx.$util.showLoading('加载中')
const data = await newApi.getCarDailyReportDetail({ const data = await newApi.getCarDailyReportDetail({
id: item.id, id: item.id,
}) })
...@@ -396,9 +396,7 @@ Page({ ...@@ -396,9 +396,7 @@ Page({
// 提交/保存 // 提交/保存
async submit () { async submit () {
wx.showLoading({ wx.$util.showLoading('提交中')
title: '提交中'
})
// 二手车日报提交埋点 // 二手车日报提交埋点
// wx.$track.setTrackData(0, 'submit_used_car_daily_report', {}, '', 1) // wx.$track.setTrackData(0, 'submit_used_car_daily_report', {}, '', 1)
try { try {
......
...@@ -4,7 +4,7 @@ page { ...@@ -4,7 +4,7 @@ page {
} }
.report-view { .report-view {
box-sizing: border-box; box-sizing: border-box;
height: calc(100vh - var(--fontSize300)); height: calc(100% - var(--fontSize300));
position: relative; position: relative;
.flex { .flex {
display: flex; display: flex;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="title-text">驻店日报</view> <view class="title-text">驻店日报</view>
</navigation-bar> </navigation-bar>
<wxs src="./index.wxs" module="filter" /> <wxs src="./index.wxs" module="filter" />
<view style="padding-top:{{ navBarHeight }}px;height: 100vh;"> <view style="padding-top:{{ navBarHeight }}px;height: 100vh;box-sizing: border-box;">
<weekCalendar timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar> <weekCalendar timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar>
<view class="report-view"> <view class="report-view">
<block wx:if="{{loadComplete}}"> <block wx:if="{{loadComplete}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!