思考题 多次点击
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<view class="container commonPageBox commonDetailPage" style="background-color: #f6f7fb">
|
||||
<view
|
||||
class="container commonPageBox commonDetailPage"
|
||||
style="background-color: #f6f7fb"
|
||||
>
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar title="订单详情" bgColor="#258feb" fontColor="#fff"> </z-nav-bar>
|
||||
@@ -166,23 +169,23 @@
|
||||
|
||||
<br clear="both" />
|
||||
</view>
|
||||
<view class="orderContent" v-if="orderContet.orderType == 'relearn'">
|
||||
<image
|
||||
src="/static/icon/fugou.png"
|
||||
mode="aspectFill"
|
||||
style="width: 100rpx; height: 100rpx"
|
||||
></image>
|
||||
<view class="itemJian">
|
||||
<view class="orderTitle" style="line-height: 100rpx">
|
||||
<text>{{ orderContet.remark }}</text>
|
||||
</view>
|
||||
<view class="orderPrice">
|
||||
<text style="font-weight: bold"></text>
|
||||
</view>
|
||||
<br clear="both" />
|
||||
</view>
|
||||
<br clear="both" />
|
||||
</view>
|
||||
<view class="orderContent" v-if="orderContet.orderType == 'relearn'">
|
||||
<image
|
||||
src="/static/icon/fugou.png"
|
||||
mode="aspectFill"
|
||||
style="width: 100rpx; height: 100rpx"
|
||||
></image>
|
||||
<view class="itemJian">
|
||||
<view class="orderTitle" style="line-height: 100rpx">
|
||||
<text>{{ orderContet.remark }}</text>
|
||||
</view>
|
||||
<view class="orderPrice">
|
||||
<text style="font-weight: bold"></text>
|
||||
</view>
|
||||
<br clear="both" />
|
||||
</view>
|
||||
<br clear="both" />
|
||||
</view>
|
||||
<view class="orderContent" v-if="orderContet.orderType == 'vip'">
|
||||
<image
|
||||
src="/static/icon/vip.png"
|
||||
@@ -226,20 +229,27 @@
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>商品总价 :
|
||||
</span>
|
||||
<span>¥</span>{{ orderContet.orderMoney }}
|
||||
|
||||
<span v-if="orderContet.orderType == 'point'"
|
||||
>¥ {{ orderContet.bookBuyConfigEntity.realMoney }}</span
|
||||
>
|
||||
<span v-else>¥ {{ orderContet.orderMoney }}</span>
|
||||
</view>
|
||||
<view class="orderReal" v-if="orderContet.orderType == 'order'">
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>运费 :
|
||||
</span>
|
||||
<span>¥</span>{{ orderContet.shippingMoney }}
|
||||
<span>¥</span>{{ orderContet.shippingMoney }}
|
||||
</view>
|
||||
<view
|
||||
class="orderReal"
|
||||
v-if="orderContet.couponId && orderContet.couponId != null"
|
||||
>
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>优惠券 :
|
||||
</span>
|
||||
<span>- ¥</span>{{ orderContet.couponAmount }}
|
||||
</view>
|
||||
<view class="orderReal" v-if="orderContet.couponId && orderContet.couponId != null">
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>优惠券 :
|
||||
</span>
|
||||
<span>- ¥</span>{{ orderContet.couponAmount }}
|
||||
</view>
|
||||
<view class="orderReal" v-if="orderContet.orderType == 'order'">
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>积分 :
|
||||
@@ -260,6 +270,9 @@
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>实付款 :
|
||||
</span>
|
||||
<b v-if="orderContet.orderType == 'point'" style="color: #dd3c0c"
|
||||
>¥ {{ orderContet.bookBuyConfigEntity.realMoney }}</b
|
||||
>
|
||||
<b style="color: #dd3c0c"
|
||||
><span>¥</span>{{ orderContet.realMoney }}</b
|
||||
>
|
||||
@@ -309,11 +322,14 @@
|
||||
<span style="color: #666;margin-right: 10rpx;float: left;">发货时间 : </span>
|
||||
<text style="font-size: 24rpx;color: #666;">{{orderContet.shippingTime}}</text>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
<view class="" style="text-align: center; width: 100%;">
|
||||
<text @click="gotoWorkOrder" style="color: cadetblue; font-size: 26rpx;">订单有问题?去申诉</text>
|
||||
</view>
|
||||
<view class="" style="text-align: center; width: 100%">
|
||||
<text
|
||||
@click="gotoWorkOrder"
|
||||
style="color: cadetblue; font-size: 26rpx"
|
||||
>订单有问题?去申诉</text
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods_nav_box">
|
||||
@@ -331,8 +347,10 @@
|
||||
>
|
||||
<text class="price"
|
||||
>合计:
|
||||
|
||||
<text class="total">¥{{ orderContet.realMoney }}</text>
|
||||
<text class="total" v-if="orderContet.orderType == 'point'">
|
||||
¥ {{ orderContet.bookBuyConfigEntity.realMoney }}
|
||||
</text>
|
||||
<text class="total" v-else>¥{{ orderContet.realMoney }}</text>
|
||||
</text>
|
||||
</view>
|
||||
</template>
|
||||
@@ -481,6 +499,68 @@ import { mapState } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
A: {
|
||||
orderId: 15316,
|
||||
orderSn: "20241209141541253186600376645070",
|
||||
userId: 13487,
|
||||
userName: null,
|
||||
statusNum: null,
|
||||
shippingUser: null,
|
||||
userPhone: "18834844847",
|
||||
province: null,
|
||||
city: null,
|
||||
district: null,
|
||||
address: null,
|
||||
come: 2,
|
||||
paymentMethod: "3",
|
||||
orderMoney: 39,
|
||||
districtMoney: 0,
|
||||
realMoney: 39,
|
||||
shippingMoney: null,
|
||||
shippingCompName: null,
|
||||
shippingSn: null,
|
||||
jfDeduction: 0,
|
||||
createTime: "2024-12-09 14:15:41",
|
||||
shippingTime: null,
|
||||
orderStatus: "0",
|
||||
successTime: null,
|
||||
couponId: null,
|
||||
couponName: null,
|
||||
delFlag: 0,
|
||||
products: null,
|
||||
productList: null,
|
||||
buyType: null,
|
||||
orderType: "point",
|
||||
expNo: null,
|
||||
isSend: null,
|
||||
vipBuyConfigId: 0,
|
||||
addressId: null,
|
||||
remark: null,
|
||||
orderCode: null,
|
||||
paymentDate: null,
|
||||
productId: "21",
|
||||
recordId: null,
|
||||
timestamp: null,
|
||||
user: null,
|
||||
expressList: null,
|
||||
addressModified: 0,
|
||||
consigneeVo: null,
|
||||
appName: null,
|
||||
bookBuyConfigEntity: {
|
||||
priceTypeId: 21,
|
||||
type: "point",
|
||||
qudao: "IOS",
|
||||
realMoney: "45",
|
||||
money: "39",
|
||||
givejf: "0",
|
||||
month: null,
|
||||
description: "",
|
||||
effective: 0,
|
||||
startTime: null,
|
||||
endTime: null,
|
||||
},
|
||||
vipBuyConfigEntity: null,
|
||||
},
|
||||
iconList: [
|
||||
{
|
||||
text: "联系客服",
|
||||
@@ -562,11 +642,11 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
gotoWorkOrder(){
|
||||
uni.navigateTo({
|
||||
url:`/pages/user/workOrder?name=order`
|
||||
})
|
||||
},
|
||||
gotoWorkOrder() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/user/workOrder?name=order`,
|
||||
});
|
||||
},
|
||||
async goBuyJie(data) {
|
||||
console.log("index at line 532:", data);
|
||||
if (data.text == "继续付款") {
|
||||
@@ -911,28 +991,29 @@ export default {
|
||||
orderTabCLi(e) {
|
||||
this.orderListTab = e;
|
||||
},
|
||||
async getCouponDetail(id){
|
||||
await this.$http
|
||||
.request({
|
||||
url: "common/coupon/getCouponHistoryInfo",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
id
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
if(res.code != 0) return this.$commonJS.showToast(res.errMsg);
|
||||
this.orderContet.couponAmount = res.couponHistory.couponEntity.couponAmount
|
||||
|
||||
}).catch(e => {
|
||||
console.log(e);
|
||||
this.$commonJS.showToast(e.errMsg);
|
||||
})
|
||||
},
|
||||
async getCouponDetail(id) {
|
||||
await this.$http
|
||||
.request({
|
||||
url: "common/coupon/getCouponHistoryInfo",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
id,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
if (res.code != 0) return this.$commonJS.showToast(res.errMsg);
|
||||
this.orderContet.couponAmount =
|
||||
res.couponHistory.couponEntity.couponAmount;
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e);
|
||||
this.$commonJS.showToast(e.errMsg);
|
||||
});
|
||||
},
|
||||
// 获取订单详情
|
||||
async getOrderList() {
|
||||
console.log("this.orderType", this.orderType);
|
||||
@@ -955,10 +1036,10 @@ export default {
|
||||
this.orderContet = res.data.buyOrder;
|
||||
this.goodsList = res.data.productInfo;
|
||||
this.consigneeShow = true;
|
||||
// 存在优惠券信息,就查询优惠券集体金额
|
||||
if(this.orderContet.couponId && this.orderContet.couponId != null){
|
||||
await this.getCouponDetail(this.orderContet.couponId)
|
||||
}
|
||||
// 存在优惠券信息,就查询优惠券集体金额
|
||||
if (this.orderContet.couponId && this.orderContet.couponId != null) {
|
||||
await this.getCouponDetail(this.orderContet.couponId);
|
||||
}
|
||||
if (
|
||||
this.orderContet.orderStatus == 2 &&
|
||||
this.sheetList.length > 0 &&
|
||||
@@ -980,7 +1061,10 @@ export default {
|
||||
color: "#fff",
|
||||
});
|
||||
}
|
||||
if (this.orderContet.orderStatus == 0 && this.orderContet.paymentMethod != 3) {
|
||||
if (
|
||||
this.orderContet.orderStatus == 0 &&
|
||||
this.orderContet.paymentMethod != 3
|
||||
) {
|
||||
this.customButton.push({
|
||||
width: "160rpx",
|
||||
text: "继续付款",
|
||||
@@ -1128,10 +1212,10 @@ export default {
|
||||
// 苹果充值
|
||||
console.log("苹果二次支付");
|
||||
uni.showModal({
|
||||
content:'apple内购订单不支持继续支付,请重新发起支付申请并完成支付',
|
||||
confirmText:'好的',
|
||||
showCancel:false
|
||||
})
|
||||
content: "apple内购订单不支持继续支付,请重新发起支付申请并完成支付",
|
||||
confirmText: "好的",
|
||||
showCancel: false,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1140,19 +1224,18 @@ export default {
|
||||
console.log("data at line 1277:订单详情参数", data);
|
||||
if (data.delFlag == -1) {
|
||||
this.$commonJS.showToast("商品已下架");
|
||||
}else if(data.goodsType == '05'){
|
||||
if(data.courseIds && data.courseIds.length > 0){
|
||||
uni.navigateTo({
|
||||
url: `/pages/course/courseDetail?id=${data.courseIds[0].courseId}`,
|
||||
});
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: "课程数据出错",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
|
||||
} else {
|
||||
} else if (data.goodsType == "05") {
|
||||
if (data.courseIds && data.courseIds.length > 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/course/courseDetail?id=${data.courseIds[0].courseId}`,
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: "课程数据出错",
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
// url: '../bookShop/commodityDetail?id=' + item.id
|
||||
url: `/pages/goods/index/index?navTitle=''&title=''&id=${id}`,
|
||||
|
||||
Reference in New Issue
Block a user