Commit 3d6c39de by zhangxw

样式修改

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