1
This commit is contained in:
@ -2,7 +2,7 @@ import request from "../utils/request";
|
|||||||
import { LOGIN, GET_PHONE, USER_SHARE,USER_WALLET,RECHARGE_WALLET,USER_WXPAY,USER_TRANSACTION,USER_ADDITIONAL,MEMBER_TYPES,
|
import { LOGIN, GET_PHONE, USER_SHARE,USER_WALLET,RECHARGE_WALLET,USER_WXPAY,USER_TRANSACTION,USER_ADDITIONAL,MEMBER_TYPES,
|
||||||
USER_RECHARGE,USER_REDEEM,USER_HolderList,USER_MEMBERSHIP,USER_BINDPETS,USER_PETBINDING,USER_DISCOUNTFEE,USER_COUPONLIST,CANCEL_PET_ORDER,
|
USER_RECHARGE,USER_REDEEM,USER_HolderList,USER_MEMBERSHIP,USER_BINDPETS,USER_PETBINDING,USER_DISCOUNTFEE,USER_COUPONLIST,CANCEL_PET_ORDER,
|
||||||
GET_VIP_PRICE,POINTS_RECHARGE_LIST,POINTS_DONATE,POINTS_RECORDS,POINTS_RANK,OSS_STS,DONATION_SUMMARY,
|
GET_VIP_PRICE,POINTS_RECHARGE_LIST,POINTS_DONATE,POINTS_RECORDS,POINTS_RANK,OSS_STS,DONATION_SUMMARY,
|
||||||
USER_DISPATCHFEE,CANCEL_MALL_ORDER,DOUY_REVIEW
|
USER_DISPATCHFEE,CANCEL_MALL_ORDER,DOUY_REVIEW,CANCEL_NOMO_ORDER
|
||||||
} from "./url";
|
} from "./url";
|
||||||
// 微信登陆
|
// 微信登陆
|
||||||
export const getCodeByWxLogin = () => {
|
export const getCodeByWxLogin = () => {
|
||||||
@ -226,6 +226,15 @@ export const cancelPetOrderMall = (data) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 未支付取消商城订单
|
||||||
|
export const cancelUnpaid = (data) => {
|
||||||
|
return request({
|
||||||
|
url: CANCEL_NOMO_ORDER,
|
||||||
|
method: "POST",
|
||||||
|
data: data
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
// 绑定宠物列表
|
// 绑定宠物列表
|
||||||
export const bindPets = (data) => {
|
export const bindPets = (data) => {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@ -56,6 +56,10 @@ export const CANCEL_PET_ORDER = '/order/pet/cancel'
|
|||||||
// 抖音审核接口
|
// 抖音审核接口
|
||||||
export const DOUY_REVIEW = '/douyin/goods/order/appointment'
|
export const DOUY_REVIEW = '/douyin/goods/order/appointment'
|
||||||
|
|
||||||
|
// 抖音未支付订单取消接口
|
||||||
|
export const CANCEL_NOMO_ORDER = '/douyin/goods/order/cancel'
|
||||||
|
|
||||||
|
|
||||||
// 取消商城接口
|
// 取消商城接口
|
||||||
export const CANCEL_MALL_ORDER = '/douyin/goods/order/refund'
|
export const CANCEL_MALL_ORDER = '/douyin/goods/order/refund'
|
||||||
|
|
||||||
|
|||||||
@ -3,8 +3,8 @@ export default {
|
|||||||
appName: "Wagoo",
|
appName: "Wagoo",
|
||||||
appShareName: "Wagoo",
|
appShareName: "Wagoo",
|
||||||
appId: "wx00e2dcdc7c02b23a",
|
appId: "wx00e2dcdc7c02b23a",
|
||||||
apiBaseUrl: "https://api.wagoo.me/api/v1", // 服务端测试地址
|
// apiBaseUrl: "https://api.wagoo.me/api/v1", // 服务端测试地址
|
||||||
// apiBaseUrl: "https://api.wagoo.pet/api/v1", // 服务端生产地址
|
apiBaseUrl: "https://api.wagoo.pet/api/v1", // 服务端生产地址
|
||||||
// apiBaseUrl: "http:192.168.30.79", //本地接口
|
// apiBaseUrl: "http:192.168.30.79", //本地接口
|
||||||
tencentMapKey: "WSBBZ-7OXK4-46QUC-KFB7B-4N3W7-M2BXM",
|
tencentMapKey: "WSBBZ-7OXK4-46QUC-KFB7B-4N3W7-M2BXM",
|
||||||
tencentSecret: "vb7D0PGj7xUvmOLuJz2Jd7ykTMpjiWRJ",
|
tencentSecret: "vb7D0PGj7xUvmOLuJz2Jd7ykTMpjiWRJ",
|
||||||
|
|||||||
@ -250,8 +250,8 @@ export default {
|
|||||||
address_id: Number(this.address.id), //地址id(整数)
|
address_id: Number(this.address.id), //地址id(整数)
|
||||||
recipient_name: this.address.name || '用户姓名', //用户姓名
|
recipient_name: this.address.name || '用户姓名', //用户姓名
|
||||||
phone: this.address.phone || '', //用户手机
|
phone: this.address.phone || '', //用户手机
|
||||||
park_desc: this.otherParkState || this.parkState || '', //停车描述
|
park_desc: this.parkState || '', //停车描述
|
||||||
note: '' // 备注
|
note: this.otherParkState || '' // 备注
|
||||||
};
|
};
|
||||||
|
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|||||||
@ -117,12 +117,12 @@
|
|||||||
联系客服
|
联系客服
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view
|
<!-- <view
|
||||||
class="flex-center fs-24 app-fc-main status-btn"
|
class="flex-center fs-24 app-fc-main status-btn"
|
||||||
@click.stop="$emit('afterSale', data)"
|
@click.stop="$emit('afterSale', data)"
|
||||||
>
|
>
|
||||||
申请售后
|
申请售后
|
||||||
</view>
|
</view> -->
|
||||||
<!-- 随车订单不显示物流 -->
|
<!-- 随车订单不显示物流 -->
|
||||||
<!-- <view v-if="data.pay_type !== pay_type_BYCAR" class="flex-center fs-24 app-fc-main status-btn"
|
<!-- <view v-if="data.pay_type !== pay_type_BYCAR" class="flex-center fs-24 app-fc-main status-btn"
|
||||||
@click.stop="$emit('checkSliver', data)">
|
@click.stop="$emit('checkSliver', data)">
|
||||||
|
|||||||
@ -339,7 +339,7 @@
|
|||||||
<view class="handle-btn" @click.stop="showCancelModal = true">
|
<view class="handle-btn" @click.stop="showCancelModal = true">
|
||||||
<text class="fs-32 btnColor" style="color: #ff19a0">取消订单</text>
|
<text class="fs-32 btnColor" style="color: #ff19a0">取消订单</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="handle-btn" @click.stop="pay">
|
<view class="handle-btn" @click.stop="pay(orderData)">
|
||||||
<text class="fs-32 btnColor">立即支付</text>
|
<text class="fs-32 btnColor">立即支付</text>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -479,6 +479,7 @@ import {
|
|||||||
walletTransaction,
|
walletTransaction,
|
||||||
cancelPetOrderRefund,
|
cancelPetOrderRefund,
|
||||||
cancelPetOrderMall,
|
cancelPetOrderMall,
|
||||||
|
cancelUnpaid
|
||||||
} from "../../../api/login";
|
} from "../../../api/login";
|
||||||
|
|
||||||
import { getConfig } from "../../../api/config";
|
import { getConfig } from "../../../api/config";
|
||||||
@ -743,9 +744,9 @@ export default {
|
|||||||
mask: true,
|
mask: true,
|
||||||
});
|
});
|
||||||
const data = {
|
const data = {
|
||||||
order_id: Number(this.orderId),
|
id: Number(this.orderId),
|
||||||
};
|
};
|
||||||
cancelPetOrderMall(data).then((res) => {
|
cancelUnpaid(data).then((res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.showCancelModal = false;
|
this.showCancelModal = false;
|
||||||
this.getOrderDetail();
|
this.getOrderDetail();
|
||||||
@ -764,48 +765,35 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 立即支付
|
// 立即支付
|
||||||
pay() {
|
pay(data) {
|
||||||
// if (this.WeChat === undefined && this.wallet === undefined) {
|
// uni.showLoading({
|
||||||
// uni.showToast({
|
|
||||||
// title: '请选择支付方式',
|
|
||||||
// icon: "none",
|
// icon: "none",
|
||||||
|
// title: "支付中",
|
||||||
|
// mask: true,
|
||||||
// });
|
// });
|
||||||
// return
|
// console.log(data,'-?')
|
||||||
// }
|
|
||||||
uni.showLoading({
|
const plugin = tt.requirePlugin('lifeServicePlugin');
|
||||||
icon: "none",
|
plugin.continueToPay({
|
||||||
title: "支付中",
|
orderId:data.douyin_order_id, // 内部订单号
|
||||||
mask: true,
|
// outOrderNo: "outOrderNo", // 外部订单号 2个订单号必填一个
|
||||||
});
|
|
||||||
payOrder({
|
|
||||||
type: 4,
|
|
||||||
total_fee: Number(this.orderData.actual_price),
|
|
||||||
order_id: this.orderData.order_id,
|
|
||||||
order_no: this.orderData.order_no,
|
|
||||||
}).then((res) => {
|
|
||||||
tt.pay({
|
|
||||||
orderInfo: {
|
|
||||||
order_id: res.data.orderInfo.order_id,
|
|
||||||
order_token: res.data.orderInfo.order_token,
|
|
||||||
},
|
|
||||||
service: 5,
|
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
uni.hideLoading();
|
const { orderId, outOrderNo } = res;
|
||||||
uni.showToast({
|
console.log("success res", res);
|
||||||
title: "支付成功",
|
console.log("orderId", orderId, "outOrderNo", outOrderNo);
|
||||||
icon: "none",
|
|
||||||
});
|
|
||||||
this.getOrderDetail();
|
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.showToast({
|
const { orderId, outOrderNo, errNo, errMsg, errLogId } = res;
|
||||||
title: err?.msg || "支付失败",
|
if (errLogId) {
|
||||||
icon: "none",
|
console.log("查询订单信息失败", errNo, errMsg, errLogId);
|
||||||
});
|
}
|
||||||
|
if (orderId || outOrderNo) {
|
||||||
|
console.log("支付失败", errNo, errMsg, orderId, outOrderNo);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
|
||||||
},
|
},
|
||||||
// 提醒发货
|
// 提醒发货
|
||||||
remindSliver() {
|
remindSliver() {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
class="flex-column-start news-item">
|
class="flex-column-start news-item">
|
||||||
<order-item :data="data" @disableScroll="disableScrollAction" @cancelOrder="cancelOrderAction"
|
<order-item :data="data" @disableScroll="disableScrollAction" @cancelOrder="cancelOrderAction"
|
||||||
@refund="handleRefundFromItem" @concactService="jumpToWeChat" @confirmSliver="confirmSliver" @remindSilver="remindSliver" @pay="pay"
|
@refund="handleRefundFromItem" @concactService="jumpToWeChat" @confirmSliver="confirmSliver" @remindSilver="remindSliver" @pay="pay"
|
||||||
@afterSale="afterSale" @checkSliver="checkSliver" @remark="remark" @remarkDetails="remarkDetails"
|
@checkSliver="checkSliver" @remark="remark" @remarkDetails="remarkDetails"
|
||||||
@jumpToDetails="jumpToDetails" />
|
@jumpToDetails="jumpToDetails" />
|
||||||
</view>
|
</view>
|
||||||
<uni-load-more v-if="isLoading || (!isLoading && total && total === list.length)"
|
<uni-load-more v-if="isLoading || (!isLoading && total && total === list.length)"
|
||||||
@ -101,7 +101,7 @@ import ContactModal from "@/components/ContactModal.vue";
|
|||||||
import SliverInfo from "./components/SliverInfo.vue";
|
import SliverInfo from "./components/SliverInfo.vue";
|
||||||
import WeChatCopyModal from "@/components/WeChatCopyModal.vue";
|
import WeChatCopyModal from "@/components/WeChatCopyModal.vue";
|
||||||
import DraggableContact from "@/components/DraggableContact.vue";
|
import DraggableContact from "@/components/DraggableContact.vue";
|
||||||
import { walletTransaction, cancelPetOrderRefund, cancelPetOrderMall } from "../../../api/login";
|
import { walletTransaction, cancelPetOrderRefund, cancelPetOrderMall,cancelUnpaid } from "../../../api/login";
|
||||||
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -250,14 +250,14 @@ export default {
|
|||||||
mask: true,
|
mask: true,
|
||||||
});
|
});
|
||||||
const data = {
|
const data = {
|
||||||
id: this.orderInfo.order_id,
|
id: Number(this.orderInfo.order_id),
|
||||||
// business_type:1
|
// business_type:1
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断是取消订单还是退款
|
// 判断是取消订单还是退款
|
||||||
const apiPromise = this.cancelModalContent.includes('退款')
|
const apiPromise = this.cancelModalContent.includes('退款')
|
||||||
? cancelPetOrderRefund(data)
|
? cancelUnpaid(data)
|
||||||
: cancelPetOrderMall(data);
|
: cancelUnpaid(data);
|
||||||
|
|
||||||
apiPromise.then((res) => {
|
apiPromise.then((res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
@ -303,16 +303,17 @@ export default {
|
|||||||
},
|
},
|
||||||
// 支付
|
// 支付
|
||||||
pay(data) {
|
pay(data) {
|
||||||
uni.showLoading({
|
// uni.showLoading({
|
||||||
icon: "none",
|
// icon: "none",
|
||||||
title: "支付中",
|
// title: "支付中",
|
||||||
mask: true,
|
// mask: true,
|
||||||
});
|
// });
|
||||||
|
console.log(data,'-?')
|
||||||
|
|
||||||
const plugin = tt.requirePlugin('tta5a3d31e3aecfb9b11');
|
const plugin = tt.requirePlugin('lifeServicePlugin');
|
||||||
plugin.continueToPay({
|
plugin.continueToPay({
|
||||||
orderId: "orderId", // 内部订单号
|
orderId:data.douyin_order_id, // 内部订单号
|
||||||
outOrderNo: "outOrderNo", // 外部订单号 2个订单号必填一个
|
// outOrderNo: "outOrderNo", // 外部订单号 2个订单号必填一个
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
const { orderId, outOrderNo } = res;
|
const { orderId, outOrderNo } = res;
|
||||||
console.log("success res", res);
|
console.log("success res", res);
|
||||||
|
|||||||
Reference in New Issue
Block a user