测试问题修改,部分退单时订单详情
This commit is contained in:
parent
ee17a52912
commit
92192e6a95
|
|
@ -4,9 +4,9 @@ module.exports = {
|
|||
// baseUrl: 'http://192.168.0.39:21995',
|
||||
// #ifdef H5
|
||||
// baseUrl: '/canteen/dev-api',
|
||||
baseUrl: '/dev-api',
|
||||
// baseUrl: '/dev-api',
|
||||
// baseUrl: 'http://192.168.0.244:38380',//测试
|
||||
// baseUrl: 'http://192.168.0.244:48380',//测试
|
||||
baseUrl: 'http://192.168.0.244:48380',//测试
|
||||
// baseUrl: 'http://192.168.0.244:58580',//测试
|
||||
// baseUrl: 'http://192.168.2.82:58080',//张天强
|
||||
// baseUrl: 'http://192.168.2.69:58080',//董高文
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<page-meta :page-font-size="fontValue+'px'" :root-font-size="fontValue+'px'"></page-meta>
|
||||
<view>
|
||||
<view class="image-box">
|
||||
<image style="width: 100%;height: 100%;" :src="dashesData.dishesImgUrl"></image>
|
||||
<image style="width: 100%;height: 100%;" :src="dashesData.imageUrl"></image>
|
||||
</view>
|
||||
<view class="menuContent">
|
||||
<view class="menuInfo">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<view class="page">
|
||||
<h3>配送方式</h3>
|
||||
<div class="appraise" @click="showPicker = true">
|
||||
<div>{{ detailData.orderState }}</div>
|
||||
<div>{{ detailData.deliveryTypeStr }}</div>
|
||||
<div class="flex appraise-right">
|
||||
<u-icon name="arrow-right" size="12" />
|
||||
</div>
|
||||
|
|
@ -108,7 +108,8 @@ export default {
|
|||
// 详情页数据
|
||||
detailData: {
|
||||
// 订单状态
|
||||
orderState: '自取外带',
|
||||
deliveryType: 1,
|
||||
deliveryTypeStr: '自取外带',
|
||||
// 订单来源
|
||||
orderSource: '预订餐',
|
||||
// 餐厅名称
|
||||
|
|
@ -133,8 +134,8 @@ export default {
|
|||
value: '1'
|
||||
},
|
||||
{
|
||||
label: '堂食',
|
||||
value: '2'
|
||||
label: '自取堂食',
|
||||
value: '5'
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
@ -167,7 +168,8 @@ export default {
|
|||
confirm(e) {
|
||||
console.log('?? ~ confirm ~ value:', e)
|
||||
this.showPicker = false
|
||||
this.detailData.orderState = e.value[0].label
|
||||
this.detailData.deliveryType = e.value[0].value
|
||||
this.detailData.deliveryTypeStr = e.value[0].label
|
||||
},
|
||||
getNowFormatDate() {
|
||||
let date = new Date()
|
||||
|
|
@ -216,6 +218,8 @@ export default {
|
|||
"payType": 1,
|
||||
"sourceType": 7,
|
||||
"isOnline": 1,
|
||||
"deliveryType": this.detailData.deliveryType,
|
||||
"remark": this.detailData.remark,
|
||||
"orderList":orderList
|
||||
}
|
||||
console.log(param)
|
||||
|
|
|
|||
|
|
@ -1,21 +1,6 @@
|
|||
<template>
|
||||
<page-meta :page-font-size="fontValue+'px'" :root-font-size="fontValue+'px'"></page-meta>
|
||||
<view class="feedback-page">
|
||||
<!-- 问题类型选择 -->
|
||||
<!-- <view class="type-section">
|
||||
<text class="section-title">您想反馈的问题类型</text>
|
||||
<view class="tab-box">
|
||||
<view
|
||||
v-for="(item, index) in tabList"
|
||||
:key="index"
|
||||
class="tab-item"
|
||||
:class="{ active: currentTab === index }"
|
||||
@click="currentTab = index"
|
||||
>
|
||||
{{ item }}
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="feedback-page">
|
||||
|
||||
<!-- 反馈内容 -->
|
||||
<view class="content-box">
|
||||
|
|
@ -116,7 +101,6 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
fontValue:uni.getStorageSync('fontSize') || 8,
|
||||
tabList: ['优化建议', '功能问题', '其他'],
|
||||
carteenName:"",
|
||||
showCarteen:false,
|
||||
actions:[{name:"1"}],
|
||||
|
|
@ -274,102 +258,68 @@ export default {
|
|||
|
||||
<style lang="scss" scoped>
|
||||
.feedback-page {
|
||||
height:94vh;
|
||||
// background-color: #f8f8f8;
|
||||
height:94vh;
|
||||
overflow-y: auto;
|
||||
// background-color: #f8f8f8;
|
||||
|
||||
.type-section {
|
||||
background-color: #ffffff;
|
||||
padding: 30rpx 30rpx 20rpx;
|
||||
.content-box {
|
||||
margin-top: 20rpx;
|
||||
padding: 20rpx;
|
||||
|
||||
.section-title {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
margin-bottom: 20rpx;
|
||||
font-weight: 550;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.border-box{
|
||||
background-color: #ffffff;
|
||||
padding: 16rpx;
|
||||
border-radius: 8px;
|
||||
height:auto;
|
||||
}
|
||||
|
||||
.tab-box {
|
||||
display: flex;
|
||||
.tab-item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
padding: 16rpx 0;
|
||||
position: relative;
|
||||
border: 1px solid rgba(15,39,75,0.4);;
|
||||
margin-right: 20rpx;
|
||||
border-radius: 2px;
|
||||
.word-count {
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
bottom: 20rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #333333;
|
||||
background-color: #fff2ef;
|
||||
border: 1px solid #FF6816;
|
||||
.upload-box {
|
||||
margin-top: 30rpx;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
.upload-btn {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
background-color: #f7f8fa;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8rpx;
|
||||
|
||||
.content-box {
|
||||
margin-top: 20rpx;
|
||||
padding: 20rpx;
|
||||
.upload-text {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.border-box{
|
||||
background-color: #ffffff;
|
||||
padding: 16rpx;
|
||||
border-radius: 8px;
|
||||
height:92vh;
|
||||
}
|
||||
.contact-box {
|
||||
margin-top: 40rpx;
|
||||
background-color: #ffffff;
|
||||
padding: 20rpx 16rpx 16rpx 16rpx;
|
||||
border-radius: 8px;
|
||||
|
||||
.word-count {
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
bottom: 20rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
.contact-title {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.upload-box {
|
||||
margin-top: 30rpx;
|
||||
|
||||
.upload-btn {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
background-color: #f7f8fa;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8rpx;
|
||||
|
||||
.upload-text {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.contact-box {
|
||||
margin-top: 40rpx;
|
||||
background-color: #ffffff;
|
||||
padding: 20rpx 16rpx 16rpx 16rpx;
|
||||
border-radius: 8px;
|
||||
|
||||
.contact-title {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
padding: 20rpx 30rpx;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.submit-btn {
|
||||
padding: 20rpx 30rpx;
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .u-textarea {
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ export default {
|
|||
res.forEach(item=>{
|
||||
this.bannerList.push(item.imgUrl)
|
||||
})
|
||||
console.log(this.bannerList)
|
||||
// console.log(this.bannerList)
|
||||
},
|
||||
|
||||
async getBaseSettingByKey() {
|
||||
|
|
|
|||
|
|
@ -201,11 +201,11 @@ export default {
|
|||
|
||||
|
||||
calculateBMI() {
|
||||
// if (this.form.height && this.form.weight) {
|
||||
// const heightInMeters = this.form.height / 100
|
||||
// const bmi = (this.form.weight / (heightInMeters * heightInMeters)).toFixed(1)
|
||||
// this.form.bmi = bmi
|
||||
// }
|
||||
if (this.form.height && this.form.weight) {
|
||||
const heightInMeters = this.form.height / 100
|
||||
const bmi = (this.form.weight / (heightInMeters * heightInMeters)).toFixed(1)
|
||||
this.form.bmi = bmi
|
||||
}
|
||||
},
|
||||
showSelector(selector) {
|
||||
this.currentSelector = selector;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<page-meta :page-font-size="fontValue+'px'" :root-font-size="fontValue+'px'"></page-meta>
|
||||
<view>
|
||||
<view class="image-box">
|
||||
<image style="width: 100%;height: 100%;" :src="dashesData.dishesImgUrl"></image>
|
||||
<image style="width: 100%;height: 100%;" :src="dashesData.imageUrl"></image>
|
||||
<!-- <image style="width: 100%;height: 100%;" src="../../static/images/code.png"></image> -->
|
||||
</view>
|
||||
<view class="menuContent">
|
||||
|
|
|
|||
|
|
@ -42,16 +42,16 @@
|
|||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view style="color: red;" v-if="detailData.orderState==3&&detailData.payState==3">已退款</view>
|
||||
<view style="color: red;" v-if="detailData.orderState==3&&detailData.payState==4">已取消</view>
|
||||
<view style="color: red;" v-if="detailData.orderState==3">¥{{ (item.salePrice/100).toFixed(2) }}</view>
|
||||
<view v-else>¥{{ (item.salePrice/100).toFixed(2) }}</view>
|
||||
<view style="color: red;" v-if="item.refundAmount>0&&detailData.payState==3">已退款</view>
|
||||
<view style="color: red;" v-if="item.refundAmount>0&&detailData.payState==4">已取消</view>
|
||||
<view style="color: red;" v-if="item.refundAmount>0">¥{{ (item.refundAmount/100).toFixed(2) }}</view>
|
||||
<view v-if="item.realAmount-item.refundAmount>0">¥{{ ((item.realAmount-item.refundAmount)/100).toFixed(2) }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-between m-8 bt">
|
||||
订单金额
|
||||
<view>¥{{ (detailData.realAmount/100).toFixed(2) }}</view>
|
||||
<view>¥{{ (detailData.payableAmount/100).toFixed(2) }}</view>
|
||||
</view>
|
||||
<view class="flex justify-between m-8 bt">
|
||||
配送费
|
||||
|
|
@ -69,22 +69,22 @@
|
|||
优惠金额
|
||||
<view style="color: red;">-¥{{ ((detailData.realAmount-detailData.payableAmount)/100).toFixed(2) }}</view>
|
||||
</view>
|
||||
<view class="flex justify-between m-8 bt" v-if="detailData.orderState==3||detailData.orderState==4">
|
||||
<view class="flex justify-between m-8 bt" v-if="detailData.refundAmount>0">
|
||||
退款金额
|
||||
<view>¥{{ (detailData.refundAmount/100).toFixed(2) }}</view>
|
||||
<view style="color: red;">-¥{{ (detailData.refundAmount/100).toFixed(2) }}</view>
|
||||
</view>
|
||||
|
||||
<u-line v-if="detailData.orderState==1||detailData.orderState==2"/>
|
||||
<view class="flex justify-between m-8 realAmount" v-if="detailData.orderState==1||detailData.orderState==2">
|
||||
实付金额
|
||||
<view>¥{{ (detailData.realAmount/100).toFixed(2) }}</view>
|
||||
<view>¥{{ ((detailData.payableAmount-detailData.refundAmount)/100).toFixed(2) }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="order">
|
||||
<view class="flex justify-between m-8 bt fs26" style="align-items: center;">
|
||||
配送方式
|
||||
<view>{{ detailData.consigneeAddress ||'-'}}</view>
|
||||
<view>{{ detailData.deliveryTypeName ||'-'}}</view>
|
||||
</view>
|
||||
<view class="flex justify-between m-8 fs26" style="align-items: center;">
|
||||
备注
|
||||
|
|
@ -216,6 +216,7 @@ export default {
|
|||
}
|
||||
this.$modal.confirm('确定退单吗?').then(() => {
|
||||
refundOrderApi(param).then((res) => {
|
||||
console.log(res)
|
||||
if(res.code==200){
|
||||
uni.showToast({
|
||||
title: "操作成功",
|
||||
|
|
@ -230,12 +231,7 @@ export default {
|
|||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch((res)=>{
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
}).catch((err)=>{})
|
||||
})
|
||||
},
|
||||
//评价按钮
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ export default {
|
|||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
commentState:"2",
|
||||
orderStateList:[1,2],
|
||||
orderStateList:[2],
|
||||
searchValue: "",
|
||||
}
|
||||
if(this.startDate&&this.endDate){
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ export default {
|
|||
if(index==1){
|
||||
this.commentState="2"
|
||||
this.orderState=""
|
||||
this.orderStateList = [1,2]
|
||||
this.orderStateList = [2]
|
||||
this.payState=""
|
||||
this.orderRefundState=""
|
||||
}else if(index==2){
|
||||
|
|
|
|||
|
|
@ -116,9 +116,9 @@ const request = config => {
|
|||
}
|
||||
// res = JSON.parse(decryptCBC(res.data))
|
||||
// console.log('?? ~ request.js ~ line 100 ~ res', res)
|
||||
const code = res.data.code || 200
|
||||
const code = res.code || 200
|
||||
// console.log('?? ~ ~ code', code)
|
||||
const msg = errorCode[code] || res.data.msg || errorCode['default']
|
||||
const msg = errorCode[code] || res.msg || errorCode['default']
|
||||
// console.log('?? ~ ~ msg', msg)
|
||||
if (code === 401) {
|
||||
showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue