Commit 7a27d46c by 张立顺

fix 6月版本bug修复

1 parent f4e26982
......@@ -17,7 +17,7 @@ Component({
* 组件的方法列表
*/
methods: {
noScroll() {},
noScroll() { },
/** 日期手动改 */
resetData(date) {
// let _this = this[_CalendarObject_]
......@@ -56,6 +56,8 @@ Component({
},
showCalendar(e) {
console.log(e)
let { disabled } = this.data
if (disabled) return false;
let type = (e && e.currentTarget && e.currentTarget.dataset.type) || ''
let result = type === 'show'
if (!result) {
......
......@@ -7,6 +7,10 @@ export default {
// optionalTypes: [String]
},
title: String, // 标题名称
disabled: {
type: Boolean,
value: false
}, //是否能选中
hasRadius: {
type: Boolean,
value: true
......
......@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let index = 1;
let index = 2;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -142,7 +142,8 @@
关联尾款单
</view>
<!-- 待支付/已支付/退定金 -->
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
<!-- || item.tailOrderStatus == '1' || item.tailOrderStatus == '4' 去除退款功能 -->
<view wx:if="{{item.tailOrderStatus == '0' }}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.tailOrderStatus]}}
</view>
</view>
......
......@@ -22,17 +22,17 @@ Component({
*/
data: {
itemObject: [{
label: '联系方式',
key: 'phoneNumber'
},
{
label: '销售姓名',
key: 'salesName'
},
{
label: '开始接待',
key: 'startTime'
},
label: '联系方式',
key: 'phoneNumber'
},
{
label: '销售姓名',
key: 'salesName'
},
{
label: '开始接待',
key: 'startTime'
},
],
},
......@@ -62,7 +62,7 @@ Component({
})
this.setData({
list,
flag:true
flag: true
})
},
hidePopup() {
......@@ -80,7 +80,7 @@ Component({
item.salesUuid = item.salesUuid
item.salesName = item.salesName
item.customerPhone = item.phoneNumber
if(item.orderFlag) return wx.$util.showToast('您已为当前客户提单,请进入订单列表查看。')
if (item.orderFlag) return wx.$util.showToast('您已为当前客户提单,请进入订单列表查看。')
this.hidePopup()
wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation', {
customerInfo: item
......
......@@ -121,7 +121,8 @@
display: flex;
align-items: center;
}
.search-box .filter{
.search-box .filter {
margin-left: auto;
display: flex;
align-items: center;
......@@ -272,7 +273,7 @@
align-items: center;
font-size: var(--fontSize32);
font-weight: 600;
max-width: 60%;
max-width: 59%;
color: #333333;
word-break: break-all;
}
......@@ -280,6 +281,7 @@
.list .icon-sex {
width: var(--fontSize24);
height: var(--fontSize24);
min-width: var(--fontSize24);
margin-left: var(--fontSize12);
}
......@@ -653,7 +655,7 @@
text-align: center;
}
.list-nothing{
.list-nothing {
padding: var(--fontSize40) 0;
}
......
......@@ -42,6 +42,23 @@ Page({
name: "售后",
},
],
navBarHeight: 0,
},
closeScreen() {
let { showSubmitPage } = this.data
if (!showSubmitPage) {
this.goEquityPage()
} else {
wx.$router.redirectTo("packageEquity.equityPage", {
tabIndex: 0,
});
}
},
navbarReady(e) {
let navBarHeight = e.detail.height;
this.setData({
navBarHeight,
});
},
getSystemInfo() {
let _this = this;
......@@ -118,7 +135,7 @@ Page({
});
this.getDefencedetail(id);
}
this.getDefencedetail(45);
// this.getDefencedetail(858);
},
onShow: function () { },
getDefencedetail(id) {
......@@ -161,6 +178,7 @@ Page({
let { deafeatReason } = this.data;
const { item, index } = e.currentTarget.dataset;
let str = deafeatReason;
if (deafeatReason) deafeatReason = deafeatReason + ','
str = deafeatReason + item.name;
if (str.length > 50) {
str = deafeatReason;
......@@ -454,15 +472,15 @@ Page({
wx.hideLoading();
console.log(res);
if (res && res.code == 0) {
if (type == 1) {
wx.$util.showToast("提交成功");
this.resetData();
} else {
wx.$util.showToast("提交成功");
this.setData({
showSubmitPage: false,
});
}
// if (type == 1) {
// wx.$util.showToast("提交成功");
// this.resetData();
// } else {
// wx.$util.showToast("提交成功");
this.setData({
showSubmitPage: false,
});
// }
} else {
wx.$util.showToast(res.message);
}
......
......@@ -5,5 +5,5 @@
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index"
},
"navigationBarTitleText":"战败下单"
"navigationStyle": "custom"
}
\ No newline at end of file
......@@ -3,9 +3,28 @@
page {
background-color: #F7F8FA;
transition: none !important;
// height: 100vh;
}
// @media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
// .layout {
// height: calc(100vh - var(--fontSize70) - var(--constantSafeAreaInsetBottom));
// height: calc(100vh - var(--fontSize70) - var(--envSafeAreaInsetBottom));
// }
// .tipsHeigh {
// height: calc(100vh - var(--fontSize70) - var(--fontSize72) var(--constantSafeAreaInsetBottom));
// height: calc(100vh - var(--fontSize70) - var(--fontSize72) - var(--envSafeAreaInsetBottom));
// }
// }
.layout {
height: 100vh;
}
.main {
box-sizing: border-box;
position: relative;
padding: 0 0 var(--fontSize136);
}
......@@ -84,6 +103,10 @@ page {
}
.placeholder-class {
color: #666;
}
.placeholder-class {
color: #BEC1C7;
}
......@@ -229,7 +252,7 @@ page {
.userAvatar {
width: var(--fontSize40);
height: var(--fontSize40);
// margin-right: var(--fontSize16);
margin-right: var(--fontSize20);
}
.polish {
......@@ -347,7 +370,28 @@ page {
margin: 0 auto var(--fontSize20);
}
}
.required {
color: #f00;
}
.isPad {
.body {
.contentText {
margin-left: var(--fontSize40);
}
}
.footer {
margin: 0 var(--fontSize64);
width: var(--fontSize1528);
}
}
.phonenumber {
color: #999;
}
.required {
color: #f00;
}
\ No newline at end of file
......@@ -48,8 +48,8 @@ Component({
{ data } = await carLifeApi.getReceptionList({
merchantId: shopMerchantId,
pageNum: 1,
// startTime: `2024-01-23 00:00:00`,
// endTime: `2024-04-23 23:59:59`
// startTime: `2024-06-19 00:00:00`,
// endTime: `2024-06-19 23:59:59`
startTime: `${today} 00:00:00`,
endTime: `${today} 23:59:59`,
bussinessType: 1, //"业务类型 1.延保 2.轻改"
......@@ -73,15 +73,16 @@ Component({
},
jump(e) {
console.log(e);
const { item } = e.currentTarget.dataset,
{ mode } = this.data;
item.salesUuid = item.salesUuid;
item.salesName = item.salesName;
item.customerPhone = item.phoneNumber;
if (item.orderFlag)
const { item } = e.currentTarget.dataset
// { mode } = this.data;
// item.salesUuid = item.salesUuid;
// item.salesName = item.salesName;
// item.customerPhone = item.phoneNumber;
if (item.orderFlag) {
return wx.$util.showToast("您已为当前客户提单,请进入订单列表查看。");
}
this.hidePopup();
wx.$router.go("createDeafeatOrderAi", { detailInfo: item });
wx.$router.redirectTo("createDeafeatOrderAi", { detailInfo: item });
},
},
});
......@@ -49,12 +49,12 @@ Page({
);
},
open() {
const { isPad } = this.data;
if (!isPad)
// return wx.$util.showToast("为保证使用体验,快来工作平板上使用该功能吧");
this.setData({
showPopup: true,
});
// const { isPad } = this.data;
// if (!isPad)
// return wx.$util.showToast("为保证使用体验,快来工作平板上使用该功能吧");
this.setData({
showPopup: true,
});
},
/**
* 生命周期函数--监听页面初次渲染完成
......
{
"usingComponents": {
"record-list":"./components/recordList/recordList"
"record-list": "./components/recordList/recordList"
},
"navigationBarTitleText": "新建工单"
"navigationBarTitleText": "新建工单",
"enablePullDownRefresh": false,
"disableScroll": true
}
\ No newline at end of file
......@@ -113,7 +113,8 @@
关联尾款单
</view>
<!-- 待支付/已支付/退定金 -->
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
<!-- || item.tailOrderStatus == '1' || item.tailOrderStatus == '4' 去除退款功能 -->
<view wx:if="{{item.tailOrderStatus == '0' }}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.tailOrderStatus]}}
</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!