Commit df5fec87 by 张立顺

fix bug

1 parent 4d24627c
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index = 0;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -778,7 +778,7 @@ ...@@ -778,7 +778,7 @@
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) var(--fontSize50); padding: var(--fontSize48) 0;
} }
.modal text, .modal text,
......
...@@ -223,6 +223,7 @@ ...@@ -223,6 +223,7 @@
font-size: 28rpx; font-size: 28rpx;
color: #292D33; color: #292D33;
padding-left: 24rpx; padding-left: 24rpx;
margin: 0 auto;
&+.modalbox { &+.modalbox {
margin-top: 16rpx; margin-top: 16rpx;
...@@ -238,5 +239,5 @@ ...@@ -238,5 +239,5 @@
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) var(--fontSize50); padding: var(--fontSize48) 0;
} }
\ No newline at end of file \ No newline at end of file
/* tabMine/pages/index/index.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
<image class="icon_image" src="{{IMG_URL}}mine_icon_7.png" mode="" /> <image class="icon_image" src="{{IMG_URL}}mine_icon_7.png" mode="" />
</view> --> </view> -->
</view> </view>
<view class="logout-box"> <view class="logout-box {{!isForbidden?'fixbtn':''}}">
<view class="logout text-center" bindtap="logout">退出账号</view> <view class="logout text-center" bindtap="logout">退出账号</view>
<view class="message-box"> <view class="message-box">
<!-- <view class="message">为保障你的合法权益,请阅读并同意</view> --> <!-- <view class="message">为保障你的合法权益,请阅读并同意</view> -->
......
...@@ -488,4 +488,10 @@ page { ...@@ -488,4 +488,10 @@ page {
.message-box text { .message-box text {
color: #5092FF; color: #5092FF;
}
.fixbtn {
position: fixed;
bottom: 100rpx;
width: 100%;
} }
\ No newline at end of file \ No newline at end of file
...@@ -575,7 +575,7 @@ page { ...@@ -575,7 +575,7 @@ page {
font-size: 28rpx; font-size: 28rpx;
color: #292D33; color: #292D33;
padding-left: 24rpx; padding-left: 24rpx;
margin: 0 auto;
&+.modalbox { &+.modalbox {
margin-top: 16rpx; margin-top: 16rpx;
} }
...@@ -590,5 +590,5 @@ page { ...@@ -590,5 +590,5 @@ page {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) var(--fontSize50); padding: var(--fontSize48) 0;
} }
\ No newline at end of file \ No newline at end of file
...@@ -383,7 +383,7 @@ page { ...@@ -383,7 +383,7 @@ page {
font-size: 28rpx; font-size: 28rpx;
color: #292D33; color: #292D33;
padding-left: 24rpx; padding-left: 24rpx;
margin: 0 auto;
&+.modalbox { &+.modalbox {
margin-top: 16rpx; margin-top: 16rpx;
} }
...@@ -398,5 +398,5 @@ page { ...@@ -398,5 +398,5 @@ page {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) var(--fontSize50); padding: var(--fontSize48) 0;
} }
\ No newline at end of file \ No newline at end of file
...@@ -1292,7 +1292,7 @@ page ::-webkit-scrollbar { ...@@ -1292,7 +1292,7 @@ page ::-webkit-scrollbar {
font-size: 28rpx; font-size: 28rpx;
color: #292D33; color: #292D33;
padding-left: 24rpx; padding-left: 24rpx;
margin: 0 auto;
&+.modalbox { &+.modalbox {
margin-top: 16rpx; margin-top: 16rpx;
} }
...@@ -1307,5 +1307,5 @@ page ::-webkit-scrollbar { ...@@ -1307,5 +1307,5 @@ page ::-webkit-scrollbar {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) var(--fontSize50); padding: var(--fontSize48) 0;
} }
\ No newline at end of file \ No newline at end of file
...@@ -98,7 +98,7 @@ Page({ ...@@ -98,7 +98,7 @@ Page({
}); });
} }
}, },
error: () => {}, error: () => { },
}, },
"#modal3" "#modal3"
); );
...@@ -121,8 +121,8 @@ Page({ ...@@ -121,8 +121,8 @@ Page({
item.status == 3 item.status == 3
? "confirmOrder" ? "confirmOrder"
: item.status == 1 : item.status == 1
? "createOrder" ? "createOrder"
: "orderDetail"; : "orderDetail";
if (item.constructionFlag == "Y" && item.status != 10) { if (item.constructionFlag == "Y" && item.status != 10) {
wx.$router.go("constructionOrderDetail", item); wx.$router.go("constructionOrderDetail", item);
} else { } else {
...@@ -152,7 +152,10 @@ Page({ ...@@ -152,7 +152,10 @@ Page({
}); });
}, },
// 确定是否要显示 // 确定是否要显示
targetError() { async targetError() {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return false;
wx.$modal(this, { wx.$modal(this, {
show: true, show: true,
title: "工单标记", title: "工单标记",
...@@ -160,7 +163,7 @@ Page({ ...@@ -160,7 +163,7 @@ Page({
success: (res) => { success: (res) => {
this.showErrorType(); this.showErrorType();
}, },
error: () => {}, error: () => { },
}); });
}, },
// 确定是否要显示 // 确定是否要显示
...@@ -206,7 +209,7 @@ Page({ ...@@ -206,7 +209,7 @@ Page({
}); });
} }
}, },
error: () => {}, error: () => { },
}, },
"#modal2" "#modal2"
); );
...@@ -406,9 +409,8 @@ Page({ ...@@ -406,9 +409,8 @@ Page({
if (data.orderTime) if (data.orderTime)
data.time = new Date(data.orderTime).format("yyyy-MM-dd hh:mm:ss"); data.time = new Date(data.orderTime).format("yyyy-MM-dd hh:mm:ss");
if (data.customer && data.customer.carSeriesName) { if (data.customer && data.customer.carSeriesName) {
data.carType = `${data.customer.carBrand || ""}-${ data.carType = `${data.customer.carBrand || ""}-${data.customer.carChildsBrandName || ""
data.customer.carChildsBrandName || "" }-${data.customer.carSeriesName || ""}`;
}-${data.customer.carSeriesName || ""}`;
} }
// 处理订单是否显示 操作按钮 支付方式为pos和微信 并且订单状态是 4和6 // 处理订单是否显示 操作按钮 支付方式为pos和微信 并且订单状态是 4和6
// data.failureFlag != 'Y' // data.failureFlag != 'Y'
...@@ -526,7 +528,7 @@ Page({ ...@@ -526,7 +528,7 @@ Page({
}); });
} }
}); });
} catch (err) {} } catch (err) { }
}, },
isArtificer(data) { isArtificer(data) {
let { customerObj, orderInfo } = this.data; let { customerObj, orderInfo } = this.data;
...@@ -568,7 +570,7 @@ Page({ ...@@ -568,7 +570,7 @@ Page({
warrantyCardList, warrantyCardList,
}); });
}) })
.catch((err) => {}); .catch((err) => { });
}, 500 * index); }, 500 * index);
}); });
}, },
...@@ -737,7 +739,7 @@ Page({ ...@@ -737,7 +739,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -750,20 +752,20 @@ Page({ ...@@ -750,20 +752,20 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
}); });
...@@ -737,7 +737,7 @@ page { ...@@ -737,7 +737,7 @@ page {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) var(--fontSize50); padding: var(--fontSize48) 0;
} }
.modal text, .modal text,
...@@ -778,6 +778,7 @@ page { ...@@ -778,6 +778,7 @@ page {
font-size: 28rpx; font-size: 28rpx;
color: #292D33; color: #292D33;
padding-left: 24rpx; padding-left: 24rpx;
margin: 0 auto;
&+.modalbox { &+.modalbox {
margin-top: 16rpx; margin-top: 16rpx;
...@@ -907,6 +908,7 @@ page { ...@@ -907,6 +908,7 @@ page {
font-size: 28rpx; font-size: 28rpx;
color: #292D33; color: #292D33;
padding-left: 24rpx; padding-left: 24rpx;
margin: 0 auto;
&+.modalbox { &+.modalbox {
margin-top: 16rpx; margin-top: 16rpx;
...@@ -922,5 +924,5 @@ page { ...@@ -922,5 +924,5 @@ page {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) var(--fontSize50); padding: var(--fontSize48) 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!