Commit b66ddb57 by 张立顺

fix bug修复

1 parent 56c9cfa8
...@@ -205,7 +205,7 @@ Component({ ...@@ -205,7 +205,7 @@ Component({
api api
.getConversionEmployeeList({ .getConversionEmployeeList({
merchantId, merchantId,
sceneList: type == 1 ? [1] : "", sceneList: type == 1 ? [0] : "",
}) })
.then(async (res) => { .then(async (res) => {
wx.$util.hideLoading(); wx.$util.hideLoading();
......
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 0; let index = 2;
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;
......
...@@ -380,8 +380,9 @@ Page({ ...@@ -380,8 +380,9 @@ Page({
wx.$dateListRefresh = false; wx.$dateListRefresh = false;
let { searchObj, userInfo } = this.data; let { searchObj, userInfo } = this.data;
let merchantId; let merchantId;
// && !userInfo?.isSuper
// 判断是不是超管,不是只能筛选当前4s店的 // 判断是不是超管,不是只能筛选当前4s店的
if (!searchObj.merchantId && !userInfo?.isSuper) { if (!searchObj.merchantId) {
merchantId = userInfo?.shopMerchantId; merchantId = userInfo?.shopMerchantId;
this.setData({ this.setData({
["searchObj.merchantId"]: merchantId, ["searchObj.merchantId"]: merchantId,
...@@ -530,32 +531,32 @@ Page({ ...@@ -530,32 +531,32 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () {}, onShow: function () { },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
scrollonReachBottom() { scrollonReachBottom() {
let { total, pageNum } = this.data; let { total, pageNum } = this.data;
wx.$util.onReachBottom( wx.$util.onReachBottom(
...@@ -578,5 +579,5 @@ Page({ ...@@ -578,5 +579,5 @@ Page({
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {}, onShareAppMessage: function () { },
}); });
...@@ -458,6 +458,7 @@ Page({ ...@@ -458,6 +458,7 @@ Page({
wx.scanCode({ wx.scanCode({
success(res) { success(res) {
let { result } = res; let { result } = res;
console.log(result, 'result');
that.showSelectType({ scene: result }); that.showSelectType({ scene: result });
// wx.$router.go("tabWorkOrder.createOrder", { // wx.$router.go("tabWorkOrder.createOrder", {
// scene: result, // scene: result,
......
...@@ -885,14 +885,13 @@ page ::-webkit-scrollbar { ...@@ -885,14 +885,13 @@ page ::-webkit-scrollbar {
color: #666666; color: #666666;
} }
/* test css */
.table { .table {
display: block; display: block;
position: relative; position: relative;
overflow: scroll; overflow: scroll;
width: 100%; width: 100%;
// height: 100%; height: 100%;
height: 800rpx; // height: 800rpx;
} }
...@@ -1293,6 +1292,7 @@ page ::-webkit-scrollbar { ...@@ -1293,6 +1292,7 @@ page ::-webkit-scrollbar {
color: #292D33; color: #292D33;
padding-left: 24rpx; padding-left: 24rpx;
margin: 0 auto; margin: 0 auto;
&+.modalbox { &+.modalbox {
margin-top: 16rpx; margin-top: 16rpx;
} }
......
...@@ -855,7 +855,7 @@ page { ...@@ -855,7 +855,7 @@ page {
.meal-bd-head .price { .meal-bd-head .price {
font-family: "numberNor"; font-family: "numberNor";
margin-left:auto; margin-left: auto;
} }
.meal-bd-bottom { .meal-bd-bottom {
...@@ -927,3 +927,7 @@ page { ...@@ -927,3 +927,7 @@ page {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) 0; padding: var(--fontSize48) 0;
} }
.modatcontentOrder {
padding: 30rpx 50rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
</modal> </modal>
<order-popup orderType="4" show="{{ showPopup }}" /> <order-popup orderType="4" show="{{ showPopup }}" />
<modal id="modal" class="modal" custom="true" btns="{{ ['返回','确定'] }}"> <modal id="modal" class="modal" custom="true" btns="{{ ['返回','确定'] }}">
<view class="modatcontent"> <view class="modatcontentOrder">
<view class="orderCode"> <view class="orderCode">
<text class="code">订单编号:</text> <text class="code">订单编号:</text>
<text>{{orderInfo.orderCode}}</text> <text>{{orderInfo.orderCode}}</text>
......
...@@ -444,68 +444,7 @@ Page({ ...@@ -444,68 +444,7 @@ Page({
this.setGoodsTotal(goodsList); this.setGoodsTotal(goodsList);
}, },
// staffDailyReportMerchantValid(userInfo) {
// // let { userInfo } = this.data
// return new Promise((resolve, reject) => {
// // console.log(userInfo, 'userInfo')
// api
// .staffDailyReportMerchantValid({
// // merchantId: userInfo.shopMerchantId
// merchantId: userInfo.shopMerchantId,
// yqMerchantId: userInfo.merchantId,
// staffUuid: userInfo.uuid,
// sceneType: 1
// })
// .then(res => {
// if (res.data) {
// // 获取当前日期
// let currentDate = new Date()
// // 获取上一天的日期
// let previousDate = new Date(currentDate)
// previousDate.setDate(currentDate.getDate() - 1)
// // toISOString 方法会丢失时区 导致与北京时间差八小时
// let hour = previousDate.getHours() + 8
// previousDate.setHours(hour)
// // 格式化日期为"yyyy-mm-dd"
// let formattedDate = previousDate.toISOString().split('T')[0]
// if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false
// wx.__HAS_NOREPORT_MODAL = true
// wx.showModal({
// title: '日报提醒',
// content: '您有未填写的日报,请点击前往。',
// showCancel: false,
// // cancelText: '取消', // '取消
// cancelColor: '#292D33',
// confirmText: '前往填写',
// confirmColor: '#347BFF',
// success(res) {
// if (res.confirm) {
// wx.$router.go('tabWorkOrder.upgradeStaffDaily', {
// // reportDate: hasNeedReport.date
// reportDate: formattedDate
// })
// }
// },
// complete: () => {
// // 这个延迟的目的是为了避免短时间内重复弹出
// // 你要是没有这个需要也可以去掉,直接把标志位改成 false 就行
// setTimeout(() => {
// wx.__HAS_NOREPORT_MODAL = false
// }, 2000)
// }
// })
// // return false
// resolve(res.data)
// } else {
// resolve(res.data)
// }
// })
// .catch(err => {
// console.log(err)
// })
// })
// },
async submit(i) { async submit(i) {
// 校验是否填写昨日日报 // 校验是否填写昨日日报
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!