hz-zhhq-app/pages/mealnotes/mealnotes.vue

139 lines
4.3 KiB
Vue
Raw Normal View History

2025-01-22 10:53:47 +08:00
<template>
<view>
<view class="">
<view class="msg">
<view class="nothing" v-if="list == 0">
<image src="/static/imgs/no-application.png">
<text>暂无申请</text>
</view>
<!-- <ul> -->
<view class="list-i" v-for="(item,index) in list" :key="index">
<view class="ll">
<text class="tip-h"><text class="blueSign"></text>跨区就餐申请</text>
<text class="font-color2" style="color:00c277">
已验证</text>
</view>
<view class="">
<view>
<view class="ddd"><text>用餐时间:</text><text class="gray-f">{{item.a}}</text></view>
<view class="ddd"><text>用餐食堂:</text><text class="gray-f">{{item.b}}</text></view>
<view class="ddd"><text>用餐人数:</text><text class="gray-f">{{item.c}}</text></view>
</view>
<!-- <image v-if="item.entry_order_pic" :src="item.entry_order_pic" alt=""> -->
</view>
<!-- <view class="">
<p class="submitTime">提交时间 <span class="infoSpan">{{item.apply_time}}</span></p>
<span v-if="item.is_cancel=='Y'" @click="cancel(item.apply_type,item.detail_id,item.statusCode)">取消申请</span>
<span v-if="item.statusCode=='9' && item.comment_status=='0'" @click="comment(item.detail_id,0)" style="color: #00c277;border-color: #00c277;">评价</span>
<span v-if="item.statusCode=='9' && item.comment_status=='1'" @click="comment(item.comment_id,1)">查看评价</span>
</view> -->
</view>
<!-- </ul> -->
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [
{a:"2018-08-08",b:"本部餐厅",c:"1"},
{a:"2018-08-08",b:"本部餐厅",c:"1"},
{a:"2018-08-08",b:"本部餐厅",c:"1"},
{a:"2018-08-08",b:"本部餐厅",c:"1"},
{a:"2018-08-08",b:"本部餐厅",c:"1"},
{a:"2018-08-08",b:"本部餐厅",c:"1"},
{a:"2018-08-08",b:"本部餐厅",c:"1"},
{a:"2018-08-08",b:"本部餐厅",c:"1"},
]
};
},
methods: {
jump() {
window.location.href = "./index.html"
// history.length == 1 ? window.location.href = "./index.html" : window.history.back()
},
cancel(applyType, applyId, status) {
if (confirm("是否取消")) request.visitorInfoUpdateStatus({
applyType: applyType,
applyId: applyId,
status: "3"
}, function(res) {
if (res.returnCode == 1) {
// mui.toast("取消成功", {
// duration: "long"
// });
if (sessionStorage.getItem('parkOnOff') == 0) {
request.getMyApplyList({
type: "01"
}, function(res) {
vm.list = $.parseJSON(JSON.stringify(res)).returnData
})
} else if (sessionStorage.getItem('parkOnOff') == 1) {
// request.getMyApplyListOf3Level({
// type: "01"
// }, function(res) {
// vm.list = $.parseJSON(JSON.stringify(res)).returnData
// })
}
} else{
// mui.toast(res.returnMsg, {
// duration: "long"
// })
}
})
},
comment(id, isSee) {
storage.set({
id: id,
isSee: isSee
});
window.location.href = "./comment.html"
},
handle(applyType, id, status, statusValue) {
var param = {
id: id,
applyType: applyType,
openType: 2
};
storage.set(param);
if (applyType == "04") window.location.href = "./park-apply-approval-finish.html";
if (applyType == "03") window.location.href = "./parcart.html";
if (applyType == "02") switch (status) {
case "0":
window.location.href = "./visitorAppointment1.3.html";
break;
case "1":
window.location.href = "./visitorAppointment2.html";
break;
case "2":
window.location.href = "./visitorAppointment1.3.html";
break;
case "3":
window.location.href = "./visitorAppointment1.3.html";
break;
default:
break
}
if (applyType == "07") window.location.href = "./coupongLists.html";
if (applyType == "01") window.location.href = "./coupongListester.html";
if (applyType == "06") {
localStorage.setItem("time", statusValue);
window.location.href = "./haircut-cancel.html"
}
if (applyType == "05") window.location.href = "./malffunction-repairs.html";
if (applyType == "08") window.location.href = "./construction.html"
}
}
}
</script>
<style lang="scss">
@import url('../../static/css/mealnotes.css');
</style>