|
|
@@ -1,14 +1,15 @@
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
<div class="top">
|
|
|
- <div class="statusList" :style="{transform:'translateX('+(0-2*transFormLeft)+'rpx)'}">
|
|
|
- <div class="statusItem" :class="{select:statusFlag==item.type}" v-for="(item,index) in statusList" :key="index">
|
|
|
+ <div class="statusList"
|
|
|
+ :style="{transform:'translateX('+(0-2*transFormLeft)+'rpx)'}">
|
|
|
+ <div class="statusItem" :class="{select:statusFlag==item.type}"
|
|
|
+ v-for="(item,index) in statusList" :key="index">
|
|
|
<div class="img">
|
|
|
- <img :src="item.img" alt="">
|
|
|
+ <img :src="item.img" alt />
|
|
|
<div class="line"></div>
|
|
|
</div>
|
|
|
<div class="title">{{item.name}}</div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -16,30 +17,33 @@
|
|
|
<div class="messageInfo">
|
|
|
<div class="bookingInfo" v-if="bookingTimeText">
|
|
|
<div>{{bookingTimeText}}</div>
|
|
|
- <div>
|
|
|
- 店铺地址:{{address}}
|
|
|
- </div>
|
|
|
- <img class="daohang" @click="goLocation" src="/static/images/icon_daohang (1).png" alt="">
|
|
|
+ <div>店铺地址:{{address}}</div>
|
|
|
+ <img class="daohang" @click="goLocation"
|
|
|
+ src="/static/images/icon_daohang (1).png" alt />
|
|
|
+ </div>
|
|
|
+ <div class="text"
|
|
|
+ :style="{textAlign:text.length<18?'center':'left'}">{{text}}
|
|
|
</div>
|
|
|
- <div class="text" :style="{textAlign:text.length<18?'center':'left'}">{{text}}</div>
|
|
|
<div class="btnList">
|
|
|
<div class="btn-item">
|
|
|
- <img src="/static/images/xiangqing_icon_kefu.png" alt="">
|
|
|
+ <img src="/static/images/xiangqing_icon_kefu.png" alt />
|
|
|
<span>在线咨询</span>
|
|
|
- <button open-type="contact" class="hide"> 客服</button>
|
|
|
+ <button open-type="contact" class="hide">客服</button>
|
|
|
</div>
|
|
|
|
|
|
<div class="btn-line"></div>
|
|
|
|
|
|
<div class="btn-item" @click="takePhone">
|
|
|
- <img src="/static/images/xiangqing_icon_kefu(1).png" alt="">
|
|
|
+ <img src="/static/images/xiangqing_icon_kefu(1).png" alt />
|
|
|
<span>拨打电话</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="orderInfo">
|
|
|
- <subOrder :list='userOrderDetailList' type='order' :productMoney='productMoney' @changeMessage='changeMessage'></subOrder>
|
|
|
+ <subOrder :list="userOrderDetailList" type="order"
|
|
|
+ :productMoney="productMoney" @changeMessage="changeMessage">
|
|
|
+ </subOrder>
|
|
|
</div>
|
|
|
|
|
|
<div class="payInfo">
|
|
|
@@ -67,96 +71,129 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="fixedBottom">
|
|
|
+ <div class="bottomBtnList"
|
|
|
+ v-if="orderInfo.statusFlag==orderStatus.PHOTOOVER&&orderInfo.albumStatus==orderAlbumStatus.WAITSELECT">
|
|
|
+ <button class="default" @click="bookingTime">预约线下选片</button>
|
|
|
+ <button class="primary" @click="selectPhoto"
|
|
|
+ v-if="orderInfo.albumStatus==orderAlbumStatus.WAITSELECT">在线选片</button>
|
|
|
+ <button class="primaryDis"
|
|
|
+ v-else-if="orderInfo.albumStatus==orderAlbumStatus.REWORK">返修中</button>
|
|
|
+ <button class="primary" v-else>返修审片</button>
|
|
|
+ </div>
|
|
|
+ <div class="submitBtn"
|
|
|
+ v-else-if="orderInfo.statusFlag==orderStatus.BOOKSELECT&&orderInfo.albumStatus==orderAlbumStatus.WAITSELECT">
|
|
|
+ <button class="primary" @click="selectPhoto">在线选片</button>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="submitBtn" v-if="hasBookBtn">
|
|
|
- <button @click="bookingTime">{{btnText}}</button>
|
|
|
- <!-- <picker class="picker" mode="date" :start="nowDate" @change="bindDateChange">
|
|
|
- <view>
|
|
|
- 当前选择: {{date}}
|
|
|
- </view>
|
|
|
- </picker> -->
|
|
|
+ <div class="bottomBtnList"
|
|
|
+ v-else-if="orderInfo.statusFlag==orderStatus.SELECTOVER&& (orderInfo.albumStatus==orderAlbumStatus.WAITACCEPT||orderInfo.albumStatus==orderAlbumStatus.REWORK||orderInfo.albumStatus==orderAlbumStatus.REWORKACCEPT)">
|
|
|
+ <button class="default" @click="bookingTime">预约线下审片</button>
|
|
|
+ <button class="primary" @click="examinePhoto"
|
|
|
+ v-if="orderInfo.albumStatus==orderAlbumStatus.WAITACCEPT">在线审片</button>
|
|
|
+ <button class="primaryDis"
|
|
|
+ v-else-if="orderInfo.albumStatus==orderAlbumStatus.REWORK">返修中</button>
|
|
|
+ <button class="primary" @click="examinePhoto"
|
|
|
+ v-else>返修审片</button>
|
|
|
</div>
|
|
|
|
|
|
- <button v-if="statusName=='待评价'" class="submit" @click="goEvaluate">立即评价</button>
|
|
|
- <button v-if="statusName=='待支付'" class="submit" @click="goPay">立即支付</button>
|
|
|
+ <div class="submitBtn"
|
|
|
+ v-else-if="orderInfo.statusFlag==orderStatus.BOOKCHECK&& (orderInfo.albumStatus==orderAlbumStatus.WAITACCEPT||orderInfo.albumStatus==orderAlbumStatus.REWORK||orderInfo.albumStatus==orderAlbumStatus.REWORKACCEPT)">
|
|
|
+ <button class="primary" @click="examinePhoto"
|
|
|
+ v-if="orderInfo.albumStatus==orderAlbumStatus.WAITACCEPT">在线审片</button>
|
|
|
+ <button class="primaryDis"
|
|
|
+ v-else-if="orderInfo.albumStatus==orderAlbumStatus.REWORK">返修中</button>
|
|
|
+ <button class="primary" @click="examinePhoto"
|
|
|
+ v-else>返修审片</button>
|
|
|
+ </div>
|
|
|
+ <div class="submitBtn" v-else-if="hasBookBtn">
|
|
|
+ <button @click="bookingTime">{{btnText}}</button>
|
|
|
+ </div>
|
|
|
|
|
|
+ <button v-if="statusName=='待评价'" class="submit"
|
|
|
+ @click="goEvaluate">立即评价</button>
|
|
|
+ <button v-if="statusName=='待支付'" class="submit"
|
|
|
+ @click="goPay">立即支付</button>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { mapState } from 'vuex';
|
|
|
-import subOrder from '../../components/SubOrder';
|
|
|
-import { OrderStatus, PayMode } from '../../Constants';
|
|
|
-import { formatTime } from '../../time';
|
|
|
+import { mapState } from "vuex";
|
|
|
+import subOrder from "../../components/SubOrder";
|
|
|
+import { OrderStatus, PayMode, OrderAlbumStatus } from "../../Constants";
|
|
|
+import { formatTime } from "../../time";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
orderId: 0,
|
|
|
- orderInfo: {},
|
|
|
+ orderInfo: {
|
|
|
+ orderRepairList: [],
|
|
|
+ orderAlbumRepairList: []
|
|
|
+ },
|
|
|
statusList: [
|
|
|
{
|
|
|
- name: '支付',
|
|
|
+ name: "支付",
|
|
|
type: OrderStatus.NOPAY,
|
|
|
- img: require('../../../static/images/dingdan_icon_yuyue(1).png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_yuyue(1).png")
|
|
|
},
|
|
|
{
|
|
|
- name: '预约拍照',
|
|
|
+ name: "预约拍照",
|
|
|
type: OrderStatus.PAYOVER,
|
|
|
- img: require('../../../static/images/dingdan_icon_yuyue.png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_yuyue.png")
|
|
|
},
|
|
|
{
|
|
|
- name: '拍照',
|
|
|
+ name: "拍照",
|
|
|
type: OrderStatus.BOOKPHOTO,
|
|
|
- img: require('../../../static/images/dingdan_icon_paizhao.png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_paizhao.png")
|
|
|
},
|
|
|
{
|
|
|
- name: '预约选片',
|
|
|
+ name: "预约选片",
|
|
|
type: OrderStatus.PHOTOOVER,
|
|
|
- img: require('../../../static/images/dingdan_icon_yuyue.png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_yuyue.png")
|
|
|
},
|
|
|
{
|
|
|
- name: '选片',
|
|
|
+ name: "选片",
|
|
|
type: OrderStatus.BOOKSELECT,
|
|
|
- img: require('../../../static/images/dingdan_icon_xuanpian.png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_xuanpian.png")
|
|
|
},
|
|
|
{
|
|
|
- name: '预约审片',
|
|
|
+ name: "预约审片",
|
|
|
type: OrderStatus.SELECTOVER,
|
|
|
- img: require('../../../static/images/dingdan_icon_yuyue.png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_yuyue.png")
|
|
|
},
|
|
|
{
|
|
|
- name: '审片',
|
|
|
+ name: "审片",
|
|
|
type: OrderStatus.BOOKCHECK,
|
|
|
- img: require('../../../static/images/dingdan_icon_shenpian.png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_shenpian.png")
|
|
|
},
|
|
|
{
|
|
|
- name: '预约取件',
|
|
|
+ name: "预约取件",
|
|
|
type: OrderStatus.CHECKOVER,
|
|
|
- img: require('../../../static/images/dingdan_icon_yuyue.png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_yuyue.png")
|
|
|
},
|
|
|
{
|
|
|
- name: '取件',
|
|
|
+ name: "取件",
|
|
|
type: OrderStatus.BOOKACCESS,
|
|
|
- img: require('../../../static/images/dingdan_icon_paizhao(2).png'),
|
|
|
+ img: require("../../../static/images/dingdan_icon_paizhao(2).png")
|
|
|
},
|
|
|
{
|
|
|
- name: '评价',
|
|
|
+ name: "评价",
|
|
|
type: OrderStatus.ACCESSOVER,
|
|
|
- img: require('../../../static/images/dingdan_icon_paizhao(1).png'),
|
|
|
- },
|
|
|
+ img: require("../../../static/images/dingdan_icon_paizhao(1).png")
|
|
|
+ }
|
|
|
],
|
|
|
- address: '',
|
|
|
- latitude: '',
|
|
|
- longitude: '',
|
|
|
- storeName: '',
|
|
|
+ address: "",
|
|
|
+ latitude: "",
|
|
|
+ longitude: "",
|
|
|
+ storeName: "",
|
|
|
userOrderidList: [],
|
|
|
- userOrderId: '',
|
|
|
+ userOrderId: "",
|
|
|
+ orderStatus: OrderStatus,
|
|
|
+ orderAlbumStatus: OrderAlbumStatus
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(['userInfo', 'storeInfo']),
|
|
|
+ ...mapState(["userInfo", "storeInfo"]),
|
|
|
transFormLeft() {
|
|
|
var left = this.statusFlag * 66;
|
|
|
var allLength = this.statusList.length * 66 - 30;
|
|
|
@@ -177,11 +214,11 @@ export default {
|
|
|
return this.orderInfo.id ? [this.orderInfo] : [];
|
|
|
},
|
|
|
payMode() {
|
|
|
- var mode = '';
|
|
|
+ var mode = "";
|
|
|
if (PayMode.WEI_XIN == this.orderInfo.payMode) {
|
|
|
- mode = '微信';
|
|
|
+ mode = "微信";
|
|
|
} else if (PayMode.COIN == this.orderInfo.payMode) {
|
|
|
- mode = '余额';
|
|
|
+ mode = "余额";
|
|
|
}
|
|
|
|
|
|
return mode;
|
|
|
@@ -199,91 +236,91 @@ export default {
|
|
|
return this.productInfo.storeInfo || {};
|
|
|
},
|
|
|
statusName() {
|
|
|
- var name = '';
|
|
|
+ var name = "";
|
|
|
if (this.orderInfo.statusFlag == OrderStatus.NOPAY) {
|
|
|
- name = '待支付';
|
|
|
+ name = "待支付";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.PAYOVER) {
|
|
|
- name = '待预约拍照';
|
|
|
+ name = "待预约拍照";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.BOOKPHOTO) {
|
|
|
- name = '待拍照';
|
|
|
+ name = "待拍照";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.PHOTOOVER) {
|
|
|
- name = '待预约选片';
|
|
|
+ name = "待预约选片";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.BOOKSELECT) {
|
|
|
- name = '待选片';
|
|
|
+ name = "待选片";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.SELECTOVER) {
|
|
|
- name = '待预约审片';
|
|
|
+ name = "待预约审片";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.BOOKCHECK) {
|
|
|
- name = '待审片';
|
|
|
+ name = "待审片";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.CHECKOVER) {
|
|
|
- name = '待预约取件';
|
|
|
+ name = "待预约取件";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.BOOKACCESS) {
|
|
|
- name = '待取件';
|
|
|
+ name = "待取件";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.ACCESSOVER) {
|
|
|
- name = '待评价';
|
|
|
+ name = "待评价";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.FINISH) {
|
|
|
- name = '已完成';
|
|
|
+ name = "已完成";
|
|
|
} else if (this.orderInfo.statusFlag == OrderStatus.CANCEL) {
|
|
|
- name = '取消';
|
|
|
+ name = "取消";
|
|
|
}
|
|
|
|
|
|
return name;
|
|
|
},
|
|
|
hasBookBtn() {
|
|
|
- return this.statusName.indexOf('预约') != -1;
|
|
|
+ return this.statusName.indexOf("预约") != -1;
|
|
|
},
|
|
|
text() {
|
|
|
- if (this.statusName == '待支付') {
|
|
|
- return '订单还没有支付完成哦,赶快支付吧';
|
|
|
- } else if (this.statusName == '待预约拍照') {
|
|
|
- return '订单支付成功,请联系客服确定好档期后点击下方预约按钮进行拍照时间预约';
|
|
|
- } else if (this.statusName == '待拍照') {
|
|
|
- return '请按照预约日期到达店铺进行拍照,若因故无法按时拍摄,请事先联系客服进行时间调整,感谢您的配合';
|
|
|
- } else if (this.statusName == '待预约选片') {
|
|
|
- return '照片已拍摄完毕,请预约选片日期';
|
|
|
- } else if (this.statusName == '待选片') {
|
|
|
- return '请按照预约日期到达店铺进行选片,感谢您的配合';
|
|
|
- } else if (this.statusName == '待预约审片') {
|
|
|
- return '照片选片已完成,请预约审片时间';
|
|
|
- } else if (this.statusName == '待审片') {
|
|
|
- return '请按照预约日期到达店铺进行审片,感谢您的配合';
|
|
|
- } else if (this.statusName == '待预约取件') {
|
|
|
- return '图片已全部审片完毕,请预约取件时间';
|
|
|
- } else if (this.statusName == '待取件') {
|
|
|
- return '请按照预约日期到达店铺进行取件,感谢您的配合';
|
|
|
- } else if (this.statusName == '待评价') {
|
|
|
- return '本次交易已完成,请对我们的服务进行评价';
|
|
|
- } else if (this.statusName == '已完成') {
|
|
|
- return '本次交易已完成,感谢您的支持';
|
|
|
- } else if (this.statusName == '取消') {
|
|
|
- return '本次交易已取消,感谢您的支持';
|
|
|
+ if (this.statusName == "待支付") {
|
|
|
+ return "订单还没有支付完成哦,赶快支付吧";
|
|
|
+ } else if (this.statusName == "待预约拍照") {
|
|
|
+ return "订单支付成功,请联系客服确定好档期后点击下方预约按钮进行拍照时间预约";
|
|
|
+ } else if (this.statusName == "待拍照") {
|
|
|
+ return "请按照预约日期到达店铺进行拍照,若因故无法按时拍摄,请事先联系客服进行时间调整,感谢您的配合";
|
|
|
+ } else if (this.statusName == "待预约选片") {
|
|
|
+ return "照片已拍摄完毕,请预约选片日期";
|
|
|
+ } else if (this.statusName == "待选片") {
|
|
|
+ return "请按照预约日期到达店铺进行选片,感谢您的配合";
|
|
|
+ } else if (this.statusName == "待预约审片") {
|
|
|
+ return "照片选片已完成,请预约审片时间";
|
|
|
+ } else if (this.statusName == "待审片") {
|
|
|
+ return "请按照预约日期到达店铺进行审片,感谢您的配合";
|
|
|
+ } else if (this.statusName == "待预约取件") {
|
|
|
+ return "图片已全部审片完毕,请预约取件时间";
|
|
|
+ } else if (this.statusName == "待取件") {
|
|
|
+ return "请按照预约日期到达店铺进行取件,感谢您的配合";
|
|
|
+ } else if (this.statusName == "待评价") {
|
|
|
+ return "本次交易已完成,请对我们的服务进行评价";
|
|
|
+ } else if (this.statusName == "已完成") {
|
|
|
+ return "本次交易已完成,感谢您的支持";
|
|
|
+ } else if (this.statusName == "取消") {
|
|
|
+ return "本次交易已取消,感谢您的支持";
|
|
|
} else {
|
|
|
- return '';
|
|
|
+ return "";
|
|
|
}
|
|
|
},
|
|
|
bookingTimeText() {
|
|
|
- if (this.statusName == '待拍照') {
|
|
|
- return '拍照时间:' + formatTime(this.orderInfo.bookPhotoTime);
|
|
|
- } else if (this.statusName == '待选片') {
|
|
|
- return '选片时间:' + formatTime(this.orderInfo.bookSelectTime);
|
|
|
- } else if (this.statusName == '待审片') {
|
|
|
- return '审片时间:' + formatTime(this.orderInfo.bookCheckTime);
|
|
|
- } else if (this.statusName == '待取件') {
|
|
|
- return '取件时间:' + formatTime(this.orderInfo.bookAccessTime);
|
|
|
+ if (this.statusName == "待拍照") {
|
|
|
+ return "拍照时间:" + formatTime(this.orderInfo.bookPhotoTime);
|
|
|
+ } else if (this.statusName == "待选片") {
|
|
|
+ return "选片时间:" + formatTime(this.orderInfo.bookSelectTime);
|
|
|
+ } else if (this.statusName == "待审片") {
|
|
|
+ return "审片时间:" + formatTime(this.orderInfo.bookCheckTime);
|
|
|
+ } else if (this.statusName == "待取件") {
|
|
|
+ return "取件时间:" + formatTime(this.orderInfo.bookAccessTime);
|
|
|
} else {
|
|
|
- return '';
|
|
|
+ return "";
|
|
|
}
|
|
|
},
|
|
|
btnText() {
|
|
|
- if (this.statusName == '待预约拍照') {
|
|
|
- return '立即预约拍照';
|
|
|
- } else if (this.statusName == '待预约选片') {
|
|
|
- return '立即预约选片';
|
|
|
- } else if (this.statusName == '待预约审片') {
|
|
|
- return '立即预约审片';
|
|
|
- } else if (this.statusName == '待预约取件') {
|
|
|
- return '立即预约取件';
|
|
|
+ if (this.statusName == "待预约拍照") {
|
|
|
+ return "立即预约拍照";
|
|
|
+ } else if (this.statusName == "待预约选片") {
|
|
|
+ return "立即预约选片";
|
|
|
+ } else if (this.statusName == "待预约审片") {
|
|
|
+ return "立即预约审片";
|
|
|
+ } else if (this.statusName == "待预约取件") {
|
|
|
+ return "立即预约取件";
|
|
|
} else {
|
|
|
- return '';
|
|
|
+ return "";
|
|
|
}
|
|
|
},
|
|
|
nowDate() {
|
|
|
@@ -292,16 +329,48 @@ export default {
|
|
|
const month = date.getMonth() + 1;
|
|
|
const day = date.getDate() + 1;
|
|
|
|
|
|
- return year + '-' + month + '-' + day;
|
|
|
+ return year + "-" + month + "-" + day;
|
|
|
},
|
|
|
+ repaireInfo() {
|
|
|
+ var list1 = [...this.orderInfo.orderRepairList];
|
|
|
+ var list2 = [...this.orderInfo.orderAlbumRepairList];
|
|
|
+ list1.filter(item => {
|
|
|
+ return item.statusFlag != 0;
|
|
|
+ });
|
|
|
+ list2.filter(item => {
|
|
|
+ return item.statusFlag != 0;
|
|
|
+ });
|
|
|
+
|
|
|
+ if (list1.length > list2.length) {
|
|
|
+ return {
|
|
|
+ imageRepairId: list1[list1.length - 1].id,
|
|
|
+ imageStatusFlag: list1[list1.length - 1].statusFlag
|
|
|
+ };
|
|
|
+ } else if (list2.length > list1.length) {
|
|
|
+ return {
|
|
|
+ AlbumRepairId: list2[list2.length - 1].id,
|
|
|
+ AlbumStatusFlag: list2[list2.length - 1].statusFlag
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ if (list1.length == 0) {
|
|
|
+ return {};
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ imageRepairId: list1[list1.length - 1].id,
|
|
|
+ imageStatusFlag: list1[list1.length - 1].statusFlag,
|
|
|
+ AlbumRepairId: list2[list2.length - 1].id,
|
|
|
+ AlbumStatusFlag: list2[list2.length - 1].statusFlag
|
|
|
+ };
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
console.log(options);
|
|
|
this.orderId = options.orderId;
|
|
|
|
|
|
this.$http
|
|
|
- .get('/storeIntroduction/getOne', {
|
|
|
- })
|
|
|
+ .get("/storeIntroduction/getOne", {})
|
|
|
.then(res => {
|
|
|
if (res.success) {
|
|
|
this.address = res.data.address;
|
|
|
@@ -316,15 +385,15 @@ export default {
|
|
|
if (options.userOrderId) {
|
|
|
this.userOrderId = options.userOrderId;
|
|
|
this.$http
|
|
|
- .get('/userOrder/getOne', {
|
|
|
- id: options.userOrderId,
|
|
|
+ .get("/userOrder/getOne", {
|
|
|
+ id: options.userOrderId
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.success) {
|
|
|
this.userOrderidList = res.data.userOrderDetailList.map(
|
|
|
item => {
|
|
|
return item.orderCode;
|
|
|
- },
|
|
|
+ }
|
|
|
);
|
|
|
}
|
|
|
})
|
|
|
@@ -340,43 +409,61 @@ export default {
|
|
|
this.getOrder();
|
|
|
},
|
|
|
methods: {
|
|
|
+ examinePhoto() {
|
|
|
+ var url="/pages/examinePhotos/examinePhotos?orderId=" + this.orderId;
|
|
|
+
|
|
|
+ if(this.repaireInfo.imageRepairId){
|
|
|
+ url=url+'&imageRepairId='+this.repaireInfo.imageRepairId
|
|
|
+ }
|
|
|
+ if(this.repaireInfo.albumRepairId){
|
|
|
+ url=url+'&imageRepairId='+this.repaireInfo.albumRepairId
|
|
|
+ }
|
|
|
+ wx.navigateTo({
|
|
|
+ url:url
|
|
|
+ });
|
|
|
+ },
|
|
|
+ selectPhoto() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: "/pages/selectPhotos/selectPhotos?orderId=" + this.orderId
|
|
|
+ });
|
|
|
+ },
|
|
|
goPay() {
|
|
|
if (this.userOrderidList.length > 1) {
|
|
|
var ref = this;
|
|
|
wx.showModal({
|
|
|
- title: '该订单和其他订单同时下单',
|
|
|
+ title: "该订单和其他订单同时下单",
|
|
|
content:
|
|
|
- ref.userOrderidList.join(',\r\n ') + '\r\n需要合并付款',
|
|
|
- confirmColor: '#00C5F2',
|
|
|
- confirmText: '合并付款',
|
|
|
+ ref.userOrderidList.join(",\r\n ") + "\r\n需要合并付款",
|
|
|
+ confirmColor: "#00C5F2",
|
|
|
+ confirmText: "合并付款",
|
|
|
success(res) {
|
|
|
if (res.confirm) {
|
|
|
wx.navigateTo({
|
|
|
url:
|
|
|
- '/pages/submit/submit?orderId=' +
|
|
|
- ref.userOrderId,
|
|
|
+ "/pages/submit/submit?orderId=" +
|
|
|
+ ref.userOrderId
|
|
|
});
|
|
|
} else if (res.cancel) {
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
});
|
|
|
} else {
|
|
|
wx.navigateTo({
|
|
|
- url: '/pages/submit/submit?orderId=' + this.userOrderId,
|
|
|
+ url: "/pages/submit/submit?orderId=" + this.userOrderId
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
bookingTime() {
|
|
|
wx.navigateTo({
|
|
|
url:
|
|
|
- '/pages/bookingTime/bookingTime?orderId=' +
|
|
|
- this.orderInfo.id,
|
|
|
+ "/pages/bookingTime/bookingTime?orderId=" +
|
|
|
+ this.orderInfo.id
|
|
|
});
|
|
|
},
|
|
|
getOrder() {
|
|
|
this.$http
|
|
|
- .get('/userOrderDetail/getOne', {
|
|
|
- id: this.orderId,
|
|
|
+ .get("/userOrderDetail/getOne", {
|
|
|
+ id: this.orderId
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.success) {
|
|
|
@@ -385,70 +472,70 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
takePhone() {
|
|
|
- console.log('打电话');
|
|
|
+ console.log("打电话");
|
|
|
wx.makePhoneCall({
|
|
|
- phoneNumber: this.storeInfo.telephone, //仅为示例,并非真实的电话号码
|
|
|
+ phoneNumber: this.storeInfo.telephone //仅为示例,并非真实的电话号码
|
|
|
});
|
|
|
},
|
|
|
bindDateChange(e) {
|
|
|
var ref = this;
|
|
|
wx.showModal({
|
|
|
- title: '已选择:' + e.mp.detail.value,
|
|
|
- content: ' 确定要预约当前日期吗?',
|
|
|
- confirmColor: '#00C5F2',
|
|
|
+ title: "已选择:" + e.mp.detail.value,
|
|
|
+ content: " 确定要预约当前日期吗?",
|
|
|
+ confirmColor: "#00C5F2",
|
|
|
success(res) {
|
|
|
if (res.confirm) {
|
|
|
var data = {
|
|
|
- id: ref.orderInfo.id,
|
|
|
+ id: ref.orderInfo.id
|
|
|
};
|
|
|
- if (ref.statusName == '待预约拍照') {
|
|
|
+ if (ref.statusName == "待预约拍照") {
|
|
|
data.bookPhotoTime = Date.parse(
|
|
|
- new Date(e.mp.detail.value),
|
|
|
+ new Date(e.mp.detail.value)
|
|
|
);
|
|
|
data.statusFlag = OrderStatus.BOOKPHOTO;
|
|
|
- } else if (ref.statusName == '待预约选片') {
|
|
|
+ } else if (ref.statusName == "待预约选片") {
|
|
|
data.bookSelectTime = Date.parse(
|
|
|
- new Date(e.mp.detail.value),
|
|
|
+ new Date(e.mp.detail.value)
|
|
|
);
|
|
|
data.statusFlag = OrderStatus.BOOKSELECT;
|
|
|
- } else if (ref.statusName == '待预约审片') {
|
|
|
+ } else if (ref.statusName == "待预约审片") {
|
|
|
data.bookCheckTime = Date.parse(
|
|
|
- new Date(e.mp.detail.value),
|
|
|
+ new Date(e.mp.detail.value)
|
|
|
);
|
|
|
data.statusFlag = OrderStatus.BOOKCHECK;
|
|
|
- } else if (ref.statusName == '待预约取件') {
|
|
|
+ } else if (ref.statusName == "待预约取件") {
|
|
|
data.bookAccessTime = Date.parse(
|
|
|
- new Date(e.mp.detail.value),
|
|
|
+ new Date(e.mp.detail.value)
|
|
|
);
|
|
|
data.statusFlag = OrderStatus.BOOKACCESS;
|
|
|
}
|
|
|
|
|
|
wx.showLoading({
|
|
|
- title: '加载中',
|
|
|
- mask: true,
|
|
|
+ title: "加载中",
|
|
|
+ mask: true
|
|
|
});
|
|
|
ref.$http
|
|
|
- .post('/userOrderDetail/update', data)
|
|
|
+ .post("/userOrderDetail/update", data)
|
|
|
.then(res => {
|
|
|
wx.hideLoading();
|
|
|
if (res.success) {
|
|
|
ref.getOrder();
|
|
|
wx.showToast({
|
|
|
- title: '预约成功',
|
|
|
- icon: 'success',
|
|
|
- duration: 1500,
|
|
|
+ title: "预约成功",
|
|
|
+ icon: "success",
|
|
|
+ duration: 1500
|
|
|
});
|
|
|
} else {
|
|
|
wx.showToast({
|
|
|
title: res.error,
|
|
|
- icon: 'none',
|
|
|
- duration: 1500,
|
|
|
+ icon: "none",
|
|
|
+ duration: 1500
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
} else if (res.cancel) {
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
goLocation() {
|
|
|
@@ -457,19 +544,19 @@ export default {
|
|
|
longitude: Number(this.longitude),
|
|
|
name: this.storeName,
|
|
|
address: this.address,
|
|
|
- scale: 14,
|
|
|
+ scale: 14
|
|
|
});
|
|
|
},
|
|
|
goEvaluate() {
|
|
|
wx.navigateTo({
|
|
|
- url: '/pages/evaluate/evaluate?orderId=' + this.orderInfo.id,
|
|
|
+ url: "/pages/evaluate/evaluate?orderId=" + this.orderInfo.id
|
|
|
});
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
components: {
|
|
|
subOrder,
|
|
|
- OrderStatus,
|
|
|
- },
|
|
|
+ OrderStatus
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
@@ -652,6 +739,50 @@ export default {
|
|
|
.fixedBottom {
|
|
|
height: 56px;
|
|
|
|
|
|
+ .bottomBtnList {
|
|
|
+ position: fixed;
|
|
|
+ height: 56px;
|
|
|
+ width: 100%;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ display: flex;
|
|
|
+ padding: 8px 15px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ justify-content: space-between;
|
|
|
+ background-color: #f2f4f5;
|
|
|
+
|
|
|
+ button {
|
|
|
+ border-radius: 22px;
|
|
|
+ border: 1px solid rgba(0, 197, 242, 1);
|
|
|
+ width: 165px;
|
|
|
+ height: 40px;
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: bold;
|
|
|
+
|
|
|
+ &.primary {
|
|
|
+ background: rgba(0, 197, 242, 1);
|
|
|
+ color: #fff;
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ background: darken(rgba(0, 197, 242, 1), 10);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &.primaryDis {
|
|
|
+ background: darken(rgba(0, 197, 242, 1), 10);
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.default {
|
|
|
+ background-color: #f2f4f5;
|
|
|
+ color: #00c5f2;
|
|
|
+ &:active {
|
|
|
+ background: darken(#f2f4f5, 10);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.submit {
|
|
|
position: fixed;
|
|
|
bottom: 10px;
|
|
|
@@ -685,6 +816,10 @@ export default {
|
|
|
font-weight: bold;
|
|
|
color: rgba(255, 255, 255, 1);
|
|
|
line-height: 40px;
|
|
|
+ &.primaryDis {
|
|
|
+ background: darken(rgba(0, 197, 242, 1), 10);
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.picker {
|