|
@@ -12,9 +12,12 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="mb-24">
|
|
<view class="mb-24">
|
|
|
- <view class="fs-48 fc-3 fw-600">
|
|
|
|
|
|
|
+ <view class="fs-48 fc-3 fw-600 mb-16">
|
|
|
{{infoData.order_status_str}}
|
|
{{infoData.order_status_str}}
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="fs-30 fc-9">
|
|
|
|
|
+ 请在{{infoData.end_time}}前到店消费
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="bgc-f b-rad-20 p-24 box-border-box">
|
|
<view class="bgc-f b-rad-20 p-24 box-border-box">
|
|
|
<view class="p-b-20 mb-24 b-b-F9F9F9 fs-32 fc-3" v-show="infoData.order_status == 1">
|
|
<view class="p-b-20 mb-24 b-b-F9F9F9 fs-32 fc-3" v-show="infoData.order_status == 1">
|
|
@@ -38,6 +41,13 @@
|
|
|
再来一单
|
|
再来一单
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view @click="goRefund" class="w-33 flex-direction align-items-center"
|
|
|
|
|
+ v-show="infoData.order_status == 2">
|
|
|
|
|
+ <image class="mb-4 icon" src="@/static/img/order/tk.png" mode=""></image>
|
|
|
|
|
+ <view class="fs-24 fc-3">
|
|
|
|
|
+ 极速退款
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
<view class="w-33 flex-direction align-items-center">
|
|
<view class="w-33 flex-direction align-items-center">
|
|
|
<button class="item-box-button" open-type="contact" :bindcontact="handleContact"></button>
|
|
<button class="item-box-button" open-type="contact" :bindcontact="handleContact"></button>
|
|
|
<image class="mb-4 icon" src="@/static/img/order/lxkf.png" mode=""></image>
|
|
<image class="mb-4 icon" src="@/static/img/order/lxkf.png" mode=""></image>
|
|
@@ -50,9 +60,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
<scroll-view :scroll-y="true" class="scroll-view-css p-24 box-border-box" @scrolltolower="scrolltolower">
|
|
<scroll-view :scroll-y="true" class="scroll-view-css p-24 box-border-box" @scrolltolower="scrolltolower">
|
|
|
<view class="bgc-f b-rad-20 p-24 box-border-box mb-20">
|
|
<view class="bgc-f b-rad-20 p-24 box-border-box mb-20">
|
|
|
- <!-- <view class="w-420 fc-3 fs-32 fw-600 text-overflow-ellipsis-one mb-24">
|
|
|
|
|
- {{infoData.site_name}}
|
|
|
|
|
- </view> -->
|
|
|
|
|
<view class="goods-box">
|
|
<view class="goods-box">
|
|
|
<view class="align-items-center flex-justify-space mb-20">
|
|
<view class="align-items-center flex-justify-space mb-20">
|
|
|
<image class="goods-img mr-16 flex-shrink0" :src="infoData.goods_img" mode=""></image>
|
|
<image class="goods-img mr-16 flex-shrink0" :src="infoData.goods_img" mode=""></image>
|
|
@@ -65,48 +72,18 @@
|
|
|
¥{{(Number(infoData.goods_price)*Number(infoData.goods_number)).toFixed(2)}}
|
|
¥{{(Number(infoData.goods_price)*Number(infoData.goods_number)).toFixed(2)}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="mb-2 fs-24 fc-9">
|
|
|
|
|
- {{item.goods_name}}
|
|
|
|
|
- </view> -->
|
|
|
|
|
<view class="fs-24 fc-9">
|
|
<view class="fs-24 fc-9">
|
|
|
x{{infoData.goods_number}}
|
|
x{{infoData.goods_number}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="align-items-center flex-justify-space mb-24">
|
|
|
|
|
- <view class="fs-28 fc-3">
|
|
|
|
|
- 打包费
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="fs-32 fc-3">
|
|
|
|
|
- 打包费
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="align-items-center flex-justify-space mb-24">
|
|
|
|
|
- <view class="fs-28 fc-3">
|
|
|
|
|
- 配送费
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="fs-32 fc-3">
|
|
|
|
|
- 打包费
|
|
|
|
|
- </view>
|
|
|
|
|
- </view> -->
|
|
|
|
|
- <!-- <view class="align-items-center flex-justify-space pb-36 b-b-F9F9F9 mb-22">
|
|
|
|
|
- <view class="align-items-center">
|
|
|
|
|
- <image class="mr-6 icon-right" src="@/static/img/order/yhq.png" mode=""></image>
|
|
|
|
|
- <view class="fs-28 fc-3">
|
|
|
|
|
- 优惠券
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="fs-32 fc-FB3D03">
|
|
|
|
|
- -¥{{infoData.coupon_money}}
|
|
|
|
|
- </view>
|
|
|
|
|
- </view> -->
|
|
|
|
|
<view class="align-items-center flex-justify-end">
|
|
<view class="align-items-center flex-justify-end">
|
|
|
<view class="fs-28 fc-9">
|
|
<view class="fs-28 fc-9">
|
|
|
共{{infoData.goods_number}}件,
|
|
共{{infoData.goods_number}}件,
|
|
|
</view>
|
|
</view>
|
|
|
<view class="fs-28 fc-3">
|
|
<view class="fs-28 fc-3">
|
|
|
- 定金
|
|
|
|
|
|
|
+ 合计
|
|
|
</view>
|
|
</view>
|
|
|
<view class="fs-24 fw-600 fc-3">
|
|
<view class="fs-24 fw-600 fc-3">
|
|
|
¥
|
|
¥
|
|
@@ -117,30 +94,25 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="bgc-f b-rad-20 p-24 box-border-box mb-20">
|
|
<view class="bgc-f b-rad-20 p-24 box-border-box mb-20">
|
|
|
- <view class="display-flex flex-justify-space mb-26">
|
|
|
|
|
- <view class="fs-28 fc-9">
|
|
|
|
|
- 联系地址
|
|
|
|
|
|
|
+ <view class="align-items-center flex-justify-space mb-20">
|
|
|
|
|
+ <view class="text-overflow-ellipsis-one fs-32 fc-3 fw-600">
|
|
|
|
|
+ {{infoData.shop.shop_name}}
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="fs-28 fc-3 w-480 text-align-right">
|
|
|
|
|
- {{infoData.address?infoData.address:'无'}}
|
|
|
|
|
|
|
+ <view class="align-items-center flex-shrink0" @click="contactShop(infoData.shop.shop_phone)">
|
|
|
|
|
+ <uni-icons type="phone-filled" size="15" class="mr-12"></uni-icons>
|
|
|
|
|
+ <view class="fs-24">
|
|
|
|
|
+ 联系商家
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="display-flex flex-justify-space mb-26">
|
|
|
|
|
- <view class="fs-28 fc-9">
|
|
|
|
|
- 配送时间
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="fs-28 fc-3 w-480 text-align-right">
|
|
|
|
|
- 预约配送
|
|
|
|
|
- </view>
|
|
|
|
|
- </view> -->
|
|
|
|
|
- <!-- <view class="display-flex flex-justify-space pb-20 b-b-F9F9F9 mb-26" v-show="infoData.order_status == 3">
|
|
|
|
|
- <view class="fs-28 fc-9">
|
|
|
|
|
- 骑手信息
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="fs-28 fc-3 w-480 text-align-right">
|
|
|
|
|
- {{infoData.rider.rider_name}}{{infoData.rider.phone}}
|
|
|
|
|
- </view>
|
|
|
|
|
- </view> -->
|
|
|
|
|
|
|
+ <view class="fs-26 fc-9 mb-20">
|
|
|
|
|
+ 营业时间:{{timeData}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="fs-26 fc-9">
|
|
|
|
|
+ 店铺地址:{{infoData.shop.city_name}} {{infoData.shop.address}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bgc-f b-rad-20 p-24 box-border-box mb-20">
|
|
|
<view class="display-flex flex-justify-space mb-26">
|
|
<view class="display-flex flex-justify-space mb-26">
|
|
|
<view class="fs-28 fc-9">
|
|
<view class="fs-28 fc-9">
|
|
|
订单编号
|
|
订单编号
|
|
@@ -149,7 +121,8 @@
|
|
|
<view class="fs-28 fc-3 w-480 mr-8 text-align-right">
|
|
<view class="fs-28 fc-3 w-480 mr-8 text-align-right">
|
|
|
{{infoData.order_sn}}
|
|
{{infoData.order_sn}}
|
|
|
</view>
|
|
</view>
|
|
|
- <image class="icon-fz" src="@/static/img/order/fz.png" mode="" @click="copy(infoData.order_sn)"></image>
|
|
|
|
|
|
|
+ <image class="icon-fz" src="@/static/img/order/fz.png" mode="" @click="copy(infoData.order_sn)">
|
|
|
|
|
+ </image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="display-flex flex-justify-space mb-26">
|
|
<view class="display-flex flex-justify-space mb-26">
|
|
@@ -183,11 +156,9 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import {
|
|
import {
|
|
|
- groupOrderInfo
|
|
|
|
|
- } from "@/api/groupOrder.js"
|
|
|
|
|
- import {
|
|
|
|
|
|
|
+ groupOrderInfo,
|
|
|
groupPay
|
|
groupPay
|
|
|
- } from '@/api/groupOrder.js';
|
|
|
|
|
|
|
+ } from "@/api/groupOrder.js"
|
|
|
import tools from "@/service/tools";
|
|
import tools from "@/service/tools";
|
|
|
export default {
|
|
export default {
|
|
|
components: {},
|
|
components: {},
|
|
@@ -205,9 +176,16 @@
|
|
|
m: '',
|
|
m: '',
|
|
|
s: '',
|
|
s: '',
|
|
|
},
|
|
},
|
|
|
|
|
+ timeData: '',
|
|
|
isAJAX: false
|
|
isAJAX: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ onShow() {
|
|
|
|
|
+ uni.$on('groupRefund', (data) => {
|
|
|
|
|
+ console.log(data, '^^^^^^^^^^^^^^^^^^^^^^^^^');
|
|
|
|
|
+ this.groupOrderInfo(data)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
onLoad(data) {
|
|
onLoad(data) {
|
|
|
if (data) {
|
|
if (data) {
|
|
|
this.groupOrderInfo(data.orderId)
|
|
this.groupOrderInfo(data.orderId)
|
|
@@ -228,6 +206,46 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ goRefund() {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/pages-buy/group-refund?order_id=' + this.infoData.id
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ contactShop(phone) {
|
|
|
|
|
+ uni.makePhoneCall({
|
|
|
|
|
+ phoneNumber: phone, // 电话号码
|
|
|
|
|
+ success: function() {
|
|
|
|
|
+ console.log('拨打电话成功');
|
|
|
|
|
+ },
|
|
|
|
|
+ fail: function() {
|
|
|
|
|
+ console.log('拨打电话失败');
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ setTimeData(timeData) {
|
|
|
|
|
+ let time = ''
|
|
|
|
|
+ let array = ''
|
|
|
|
|
+ console.log(timeData,'11111');
|
|
|
|
|
+ timeData.forEach((v, k) => {
|
|
|
|
|
+ v.forEach((i, j) => {
|
|
|
|
|
+ let timeTwo = ''
|
|
|
|
|
+ if (j == 0 || j == 3) {
|
|
|
|
|
+ timeTwo = i + '-'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ timeTwo = i
|
|
|
|
|
+ }
|
|
|
|
|
+ array = array + timeTwo
|
|
|
|
|
+ })
|
|
|
|
|
+ if (timeData.length === k + 1) {
|
|
|
|
|
+ time = time + array + ''
|
|
|
|
|
+ } else {
|
|
|
|
|
+ time = time + array + ' / '
|
|
|
|
|
+ }
|
|
|
|
|
+ array = ''
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log(time);
|
|
|
|
|
+ return time
|
|
|
|
|
+ },
|
|
|
copy(value) {
|
|
copy(value) {
|
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
|
data: value,
|
|
data: value,
|
|
@@ -288,6 +306,7 @@
|
|
|
order_id: id
|
|
order_id: id
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.code == 1) {
|
|
if (res.code == 1) {
|
|
|
|
|
+ this.timeData = this.setTimeData(res.data.shop.business_hours)
|
|
|
this.infoData = res.data
|
|
this.infoData = res.data
|
|
|
if (this.infoData.order_status == 1) {
|
|
if (this.infoData.order_status == 1) {
|
|
|
let createDate = new Date(res.data.created_at); //格式化订单创建时候的时间
|
|
let createDate = new Date(res.data.created_at); //格式化订单创建时候的时间
|