diff --git a/pages.json b/pages.json index c4d96ba..5e55fb1 100644 --- a/pages.json +++ b/pages.json @@ -3,7 +3,6 @@ "^u-(.*)": "uni_modules/uview-ui/components/u-$1/u-$1.vue" }, "pages": [ - { "path": "pages/login", "style": { @@ -11,12 +10,11 @@ } }, { - "path": "pages/system", - "style": { - "navigationBarTitleText": "皖送e餐" - } + "path": "pages/system", + "style": { + "navigationBarTitleText": "皖送e餐" + } }, - { "path": "pages/shared-station", "style": { @@ -140,24 +138,12 @@ "navigationBarTitleText": "修改密码" } }, - { - "path": "pages/mine/setting/index", - "style": { - "navigationBarTitleText": "应用设置" - } - }, { "path": "pages/mine/help/index", "style": { "navigationBarTitleText": "常见问题" } }, - { - "path": "pages/mine/about/index", - "style": { - "navigationBarTitleText": "关于我们" - } - }, { "path": "pages/common/webview/index", "style": { diff --git a/pages/advanceOrder/index.vue b/pages/advanceOrder/index.vue index 3b48a48..5d9302e 100644 --- a/pages/advanceOrder/index.vue +++ b/pages/advanceOrder/index.vue @@ -106,11 +106,11 @@ - + {{ canteenName }}/{{stallName}} {{ canteenType }} - + {{ newDate2 }} @@ -137,21 +137,19 @@ - + {{ food.quantity || 0 }} - + @@ -262,7 +260,8 @@ export default { async getMenuListData() { let param = { "recipeId":this.recipeId, - "applyDate":this.newDate2, + "applyDate":this.newDate2, + // "applyDate":"2025-02-11", } const res = await getAdvanceDetailListAPI(param) console.log(res, '预订餐菜谱') @@ -838,7 +837,7 @@ page { display: flex; justify-content: center; align-items: center; - font-size: 12px; + font-size: 14px; color: #0f274b; // 第二个展示左右边框 @@ -881,6 +880,8 @@ page { color: #0f274b; .name-type { + width: 42px; + text-align: center; margin-left: 5px; font-weight: 400; font-size: 10px; diff --git a/pages/code/index.vue b/pages/code/index.vue index 4b1b755..61bcdce 100644 --- a/pages/code/index.vue +++ b/pages/code/index.vue @@ -18,7 +18,7 @@ 有效时间15分钟 - + @@ -105,10 +105,10 @@ } .refresh-button { - width: 70%; + width: 100%; height: auto; display: flex; - justify-self: center; + justify-content: center; } .login-btn { diff --git a/pages/index.vue b/pages/index.vue index 5a0699c..7f1c8cf 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -6,14 +6,16 @@ placeholder @leftClick="leftClick" leftIconColor="#000" - rightIcon="list" - @rightClick="onRefreshPages" + bgColor="#fff" :titleStyle="{ color: '#000', fontSize: '32rpx' }" > - + 皖送e餐 @@ -21,17 +23,59 @@ - + + + + + + + + 个人二维码 + 核身、支付、核销 + + + + + + + 个人余额 + + ¥ + {{ (walletBal/100).toFixed(2) }} + + + + + + + + + 一周菜谱 + 营养、时令、定制 + + + + + + + 预定餐 + 智能、预定、鲜活 + + + + + + - + - - - - 个人二维码 - 核身、支付、核销 - - - - - - - - - 余额/充值 - - ¥ - {{ (walletBal/100).toFixed(2) }} - - - - - - - + @@ -117,7 +158,7 @@ export default { noticeData:{} } }, - onLoad() { + onShow() { this.getUserInfo() this.getWalletBalanceData(uni.getStorageSync('custId') || '') this.getOrderQRCodeData(uni.getStorageSync('custId') || '') @@ -125,114 +166,127 @@ export default { this.timer = setInterval(() => { this.getWalletBalanceData(uni.getStorageSync('custId')||'') }, 10000) - }, + console.log(uni.getStorageSync('remember')) + }, onUnload() { clearInterval(this.timer) - this.timer = null + this.timer = null; + uni.navigateBack() + // uni.navigateTo({ url: '/pages/system' }) }, methods: { - leftClick() { - // console.log('返回') - uni.navigateTo({ url: '/pages/system' }) - }, - /* 刷新页面 */ - onRefreshPages() { - uni.reLaunch({ - url: '/pages/index' - }) - }, - //获取用户信息 - getUserInfo(){ - getInfoNewAPI({'custId':uni.getStorageSync('custId'),"sourceType":7}).then(result => { - // console.log(result) - uni.setStorageSync('openId', result.data.openid) - uni.setStorageSync('placeId', result.data.placeId) + leftClick() { + // console.log('返回') + uni.navigateTo({ url: '/pages/system' }) + }, + /* 刷新页面 */ + onRefreshPages() { + uni.reLaunch({ + url: '/pages/index' + }) + }, + //获取用户信息 + getUserInfo(){ + getInfoNewAPI({'custId':uni.getStorageSync('custId'),"sourceType":7}).then(result => { + // console.log(result) + uni.setStorageSync('openId', result.data.openid) + uni.setStorageSync('placeId', result.data.placeId) + }) + }, + changeSwiper(e) { + this.current = e.detail.current + }, + goToMenu() { + // 跳转到菜单页面 + uni.navigateTo({ + url: '/pages/weeklyMenu/index' }) - }, - changeSwiper(e) { - this.current = e.detail.current - }, - goToMenu() { - // 跳转到菜单页面 - uni.navigateTo({ - url: '/pages/weeklyMenu/index' - }) - }, - goToOrder() { - // 跳转到订餐页面 - uni.navigateTo({ - // url: '/pages/advanceOrder/index' - url: '/pages/advanceOrder/stopperSelection/index' - }) - }, - goCode() { - // 跳转到订餐页面 - uni.navigateTo({ - url: '/pages/code/index' - }) - }, - handleSwiperChange(e) { - this.current = e.current // 更新当前活动的指示点索引 - }, - goToRemainingSum() { - // 跳转到余额/充值页面 - uni.navigateTo({ - url: '/pages/remainingSum/index' - }) - }, - // 获取钱包余额 - async getWalletBalanceData(custId) { - let param = { - "custId": custId.toString(), - "openid": uni.getStorageSync('openId'), - "sourceType": "1" + }, + goToOrder() { + // 跳转到订餐页面 + uni.navigateTo({ + // url: '/pages/advanceOrder/index' + url: '/pages/advanceOrder/stopperSelection/index' + }) + }, + goCode() { + // 跳转到订餐页面 + uni.navigateTo({ + url: '/pages/code/index' + }) + }, + handleSwiperChange(e) { + this.current = e.current // 更新当前活动的指示点索引 + }, + goToRemainingSum() { + // 跳转到余额/充值页面 + uni.navigateTo({ + url: '/pages/remainingSum/index' + }) + }, + // 获取钱包余额 + async getWalletBalanceData(custId) { + let param = { + "custId": custId.toString(), + "openid": uni.getStorageSync('openId'), + "sourceType": "1" + } + const { data: res } = await getWalletBalanceAPI(param) + this.walletBal = res.walletBal + // console.log(res, '余额信息--') + }, + // 获取二维码 + async getOrderQRCodeData(custId) { + const res = await getOrderQRCodeAPI({ custId }) + // console.log(res, '二维码信息--') + }, + //通知消息数量 + async getUnReadNoticeNum() { + let param = { + "custId": uni.getStorageSync('custId'), + } + const res = await queryUnreadInformNumApi(param) + console.log(res, '通知消息数量--') + this.messageNumber = Number(res.data) + if(this.messageNumber>0){ + this.getqueryUserInform() + } + + }, + //获取通知消息 + async getqueryUserInform() { + let param = { + "current": 1, + "size": 10, + "custId": uni.getStorageSync('custId'), + } + const res = await queryUserInformApi(param) + console.log(res, '通知消息--') + if(res.records.length>0){ + this.noticeData=res.records[0] + this.showNotice=true + } + }, + open() { + // console.log('open'); + }, + close() { + this.showNotice = false + // console.log('close'); } - const { data: res } = await getWalletBalanceAPI(param) - this.walletBal = res.walletBal - // console.log(res, '余额信息--') - }, - // 获取二维码 - async getOrderQRCodeData(custId) { - const res = await getOrderQRCodeAPI({ custId }) - // console.log(res, '二维码信息--') - }, - //通知消息数量 - async getUnReadNoticeNum() { - let param = { - "custId": uni.getStorageSync('custId'), - } - const res = await queryUnreadInformNumApi(param) - console.log(res, '通知消息数量--') - this.messageNumber = Number(res.data) - if(this.messageNumber>0){ - this.getqueryUserInform() - } - }, - //获取通知消息 - async getqueryUserInform() { - let param = { - "current": 1, - "size": 10, - "custId": uni.getStorageSync('custId'), - } - const res = await queryUserInformApi(param) - console.log(res, '通知消息--') - if(res.records.length>0){ - this.noticeData=res.records[0] - this.showNotice=true - } - - - }, - open() { - // console.log('open'); - }, - close() { - this.showNotice = false - // console.log('close'); - } - }, + // onUnload() { + // uni.navigateTo({ url: '/pages/system' }) + // }, + // onBackPress(e) { + // //e.from === 'backbutton' 说明如果点击的是物理返回键或导航栏的返回键就进行以下操作 + // if (e.from === 'backbutton') { + // //返回值为true 时,表示不执行默认的返回(默认返回上一页),执行自定义的返回 + // uni.redirectTo({ url: '/pages/system' }) + // //如果要限制必须写成true + // return true; + // } + // } } @@ -304,6 +358,49 @@ view { } } +.handle-box{ + margin-top: 30rpx; + width: 100%; + height: auto; + display: flex; + flex-wrap: wrap; + margin-bottom: 30rpx; + + .handle-box-item { + width: 44%; + margin: 3%; + background-color: #ffffff; + border-radius: 12rpx; + padding: 40rpx; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04); + + .image-box{ + width: 160rpx; + height: 140rpx; + margin-bottom: 20rpx; + } + .box-title{ + font-size: 28rpx; + margin-bottom: 20rpx; + } + .box-subtitle{ + font-size: 24rpx; + } + + } + + + + + +} + + + .function-area { margin-top: 30rpx; border-radius: 16rpx; diff --git a/pages/login.vue b/pages/login.vue index f64f154..6776e1a 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -1,24 +1,29 @@ - diff --git a/pages/work/index.vue b/pages/work/index.vue index eb71ed2..5752a31 100644 --- a/pages/work/index.vue +++ b/pages/work/index.vue @@ -47,7 +47,7 @@ {{ item.canteenName }} {{ item.mealtimeName }} - 就餐时间:{{ item.orderDate }} + 就餐日期:{{ item.orderDate }} @@ -63,7 +63,7 @@ - + 评价 @@ -188,7 +188,7 @@ export default { searchValue: '', searchType:'', status: 'loadmore', - tabList: ['全部订单', '待评价', '退款'], + tabList: ['全部订单', '待评价', '待支付', '退款'], dateValue:new Date(), dateValue2:new Date(), sourceTypeList:[], @@ -355,6 +355,8 @@ export default { if(index==1){ this.searchType="3" }else if(index==2){ + this.searchType="4" + }else if(index==3){ this.searchType="2" }else{ this.searchType="" @@ -471,7 +473,23 @@ export default { url: `/pages/work/evaluateCenter?startDate=${this.startDate}&endDate=${this.endDate}` }) }, - } + }, + // onUnload() { + // uni.switchTab({ + // url: '/pages/index' + // }) + // }, + // onBackPress(e) { + // //e.from === 'backbutton' 说明如果点击的是物理返回键或导航栏的返回键就进行以下操作 + // if (e.from === 'backbutton') { + // //返回值为true 时,表示不执行默认的返回(默认返回上一页),执行自定义的返回 + // uni.switchTab({ + // url: '/pages/index' + // }) + // //如果要限制必须写成true + // return true; + // } + // }, } diff --git a/static/images/index/balance.png b/static/images/index/balance.png index 34bc373..f49b5c2 100644 Binary files a/static/images/index/balance.png and b/static/images/index/balance.png differ diff --git a/static/images/index/balance2.png b/static/images/index/balance2.png new file mode 100644 index 0000000..34bc373 Binary files /dev/null and b/static/images/index/balance2.png differ diff --git a/static/images/index/code.png b/static/images/index/code.png index 6f7d0a4..47aa71a 100644 Binary files a/static/images/index/code.png and b/static/images/index/code.png differ diff --git a/static/images/index/code2.png b/static/images/index/code2.png new file mode 100644 index 0000000..6f7d0a4 Binary files /dev/null and b/static/images/index/code2.png differ diff --git a/static/images/index/food.png b/static/images/index/food.png index f3dc2db..9503e27 100644 Binary files a/static/images/index/food.png and b/static/images/index/food.png differ diff --git a/static/images/index/food2.png b/static/images/index/food2.png new file mode 100644 index 0000000..f3dc2db Binary files /dev/null and b/static/images/index/food2.png differ diff --git a/static/images/index/weeklyMenu.png b/static/images/index/weeklyMenu.png index 31b4cee..91ecd88 100644 Binary files a/static/images/index/weeklyMenu.png and b/static/images/index/weeklyMenu.png differ diff --git a/static/images/index/weeklyMenu2.png b/static/images/index/weeklyMenu2.png new file mode 100644 index 0000000..31b4cee Binary files /dev/null and b/static/images/index/weeklyMenu2.png differ diff --git a/static/images/login/back.png b/static/images/login/back.png new file mode 100644 index 0000000..084294b Binary files /dev/null and b/static/images/login/back.png differ diff --git a/static/images/login/logo.png b/static/images/login/logo.png new file mode 100644 index 0000000..8de81cd Binary files /dev/null and b/static/images/login/logo.png differ diff --git a/static/images/login/logo.jpg b/static/images/login/logo2.jpg similarity index 100% rename from static/images/login/logo.jpg rename to static/images/login/logo2.jpg diff --git a/static/images/my/complaints.png b/static/images/my/complaints.png index 3e452a0..d577a06 100644 Binary files a/static/images/my/complaints.png and b/static/images/my/complaints.png differ diff --git a/static/images/my/complaints2.png b/static/images/my/complaints2.png new file mode 100644 index 0000000..3e452a0 Binary files /dev/null and b/static/images/my/complaints2.png differ diff --git a/static/images/my/evaluation.png b/static/images/my/evaluation.png index 388123b..23cb592 100644 Binary files a/static/images/my/evaluation.png and b/static/images/my/evaluation.png differ diff --git a/static/images/my/evaluation2.png b/static/images/my/evaluation2.png new file mode 100644 index 0000000..388123b Binary files /dev/null and b/static/images/my/evaluation2.png differ diff --git a/static/images/my/notice.png b/static/images/my/notice.png index 8094a53..267a559 100644 Binary files a/static/images/my/notice.png and b/static/images/my/notice.png differ diff --git a/static/images/my/notice2.png b/static/images/my/notice2.png new file mode 100644 index 0000000..8094a53 Binary files /dev/null and b/static/images/my/notice2.png differ diff --git a/static/images/my/personalInfo.png b/static/images/my/personalInfo.png index cd31984..3fdbb24 100644 Binary files a/static/images/my/personalInfo.png and b/static/images/my/personalInfo.png differ diff --git a/static/images/my/personalInfo2.png b/static/images/my/personalInfo2.png new file mode 100644 index 0000000..cd31984 Binary files /dev/null and b/static/images/my/personalInfo2.png differ diff --git a/static/images/my/report.png b/static/images/my/report.png index 3bf21b4..dbcb4bb 100644 Binary files a/static/images/my/report.png and b/static/images/my/report.png differ diff --git a/static/images/my/report2.png b/static/images/my/report2.png new file mode 100644 index 0000000..3bf21b4 Binary files /dev/null and b/static/images/my/report2.png differ