Compare commits

...

5 Commits

Author SHA1 Message Date
de92a851b7 feat: 新增退款相关功能及状态显示
- 在订单详情页新增退款状态显示,包括"已退款"和"退款中"
- 新增退款目的地页面,用户可查看退款信息
- 更新应用版本号至1.0.58
- 更新依赖edu-core至v1.0.13
- 修改部分组件样式和逻辑,优化用户体验
2026-05-09 11:13:51 +08:00
69aa5cda40 chore: 视频播放下一集自动保持倍速设置;增加2.5倍速 2026-04-14 10:24:58 +08:00
f19d2b5eca chore: 更新课程购买页面的权限说明文案
- 将应用版本号从1.0.53提升至1.0.54
- 开发环境API切换至线上正式地址,便于测试
- 更新课程购买页面的权限说明文案,使其更清晰
2026-03-31 10:16:11 +08:00
78cc9cbccf feat: 更新心理论坛页面,优化分类和搜索功能
- 将应用版本号更新至1.0.53
- 修改开发环境baseUrl配置,确保使用本地测试地址
- 在心理论坛页面新增分类选择和搜索功能
- 优化滚动条样式和页面布局
2026-03-30 16:33:42 +08:00
b0c63d3faa chore: 更新 edu-core 依赖至 v1.0.11,修改个人资产获取相册权限兼容性。
- 将 edu-core 依赖版本更新至 v1.0.11
- 修改开发环境 baseUrl 配置,确保使用线上正式环境
2026-03-27 09:44:14 +08:00
16 changed files with 266 additions and 53 deletions

View File

@@ -2,8 +2,9 @@ let baseUrl = "";
let socketUrl = ""; let socketUrl = "";
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// 开发环境 // 开发环境
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 // baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
// baseUrl = "https://api.nuttyreading.com/"; //线上正式 baseUrl = "https://api.nuttyreading.com/"; //线上正式
// baseUrl = "http://192.168.110.131:9200/pb/"; // 王亚男
} else if (process.env.NODE_ENV === 'production') { } else if (process.env.NODE_ENV === 'production') {
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 // baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
baseUrl = "https://api.nuttyreading.com/"; //线上正式 baseUrl = "https://api.nuttyreading.com/"; //线上正式

View File

@@ -61,6 +61,9 @@ Vue.component('common-video', commonVideo);
import CommonCourseVideo from 'edu-core/components/course-video' import CommonCourseVideo from 'edu-core/components/course-video'
Vue.component('CommonCourseVideo', CommonCourseVideo); Vue.component('CommonCourseVideo', CommonCourseVideo);
import CommonRefundDestination from 'edu-core/components/order/refund-destination.vue'
Vue.component('common-refund-destination', CommonRefundDestination);
import commonGoodsList from '@/pages/component/commonComponents/goodsList.vue' import commonGoodsList from '@/pages/component/commonComponents/goodsList.vue'
Vue.component('common-goods-list', commonGoodsList); Vue.component('common-goods-list', commonGoodsList);
import commonCurriculumList from '@/pages/component/commonComponents/curriculum.vue' import commonCurriculumList from '@/pages/component/commonComponents/curriculum.vue'

View File

@@ -2,9 +2,9 @@
"name" : "心灵空间", "name" : "心灵空间",
"appid" : "__UNI__BBBDFD2", "appid" : "__UNI__BBBDFD2",
"description" : "心灵空间", "description" : "心灵空间",
"versionName" : "1.0.52", "versionName" : "1.0.58",
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
"versionCode" : 1052, "versionCode" : 1058,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

12
package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"edu-core": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.9", "edu-core": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.13",
"jquery": "^3.7.1", "jquery": "^3.7.1",
"tcplayer.js": "^5.1.0" "tcplayer.js": "^5.1.0"
}, },
@@ -17,12 +17,6 @@
"postcss-px-to-viewport": "^1.1.1" "postcss-px-to-viewport": "^1.1.1"
} }
}, },
"../edu-core": {
"version": "1.0.8",
"extraneous": true,
"license": "ISC",
"devDependencies": {}
},
"node_modules/babel-runtime": { "node_modules/babel-runtime": {
"version": "6.26.0", "version": "6.26.0",
"resolved": "https://registry.npmmirror.com/babel-runtime/-/babel-runtime-6.26.0.tgz", "resolved": "https://registry.npmmirror.com/babel-runtime/-/babel-runtime-6.26.0.tgz",
@@ -74,8 +68,8 @@
"integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w=="
}, },
"node_modules/edu-core": { "node_modules/edu-core": {
"version": "1.0.8", "version": "1.0.13",
"resolved": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#f815e7660e0645ca4393205b30986c4bc7aa4d9f", "resolved": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#b5ece8b8abfeba98428f6e2191efae3312b5036f",
"license": "ISC" "license": "ISC"
}, },
"node_modules/es5-shim": { "node_modules/es5-shim": {

View File

@@ -14,7 +14,7 @@
}, },
"homepage": "https://github.com/dcloudio/hello-uniapp#readme", "homepage": "https://github.com/dcloudio/hello-uniapp#readme",
"dependencies": { "dependencies": {
"edu-core": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.9", "edu-core": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.13",
"jquery": "^3.7.1", "jquery": "^3.7.1",
"tcplayer.js": "^5.1.0" "tcplayer.js": "^5.1.0"
}, },

View File

@@ -194,6 +194,18 @@
} }
} }
}, },
{
"path": "pages/detail/refundDestination",
"style": {
"navigationBarTitleText": "钱款去向",
"enablePullDownRefresh": false,
"app-plus": {
"bounce": "none",
"titleNView": false,
"popGesture": "none"
}
}
},
{ {
"path": "pages/my/index", "path": "pages/my/index",
"style": { "style": {

View File

@@ -180,9 +180,9 @@ export default {
gotoDetail(v) { gotoDetail(v) {
this.$emit("hancleClick", v); this.$emit("hancleClick", v);
}, },
onHandleClickBuy() { onHandleClickBuy(e) {
this.$emit("selectGoodsData", this.selectGoodsData); this.$emit("selectGoodsData", this.selectGoodsData);
this.$emit("onHandleClickBuy"); this.$emit("onHandleClickBuy", e);
}, },
}, },
onBackPress() { onBackPress() {
@@ -362,4 +362,8 @@ export default {
color: #ff1f00; color: #ff1f00;
font-weight: bold; font-weight: bold;
} }
.title_list {
margin-bottom: 20rpx;
}
</style> </style>

View File

@@ -1,5 +1,5 @@
<template> <template>
<view style="background-color: #fff; width: 100%"> <view style="background-color: #fff; width: 100%; padding: 0 20rpx;">
<u-tabs <u-tabs
lineWidth="30" lineWidth="30"
lineColor="#294a97" lineColor="#294a97"

View File

@@ -363,7 +363,8 @@
<view class="title">咨询课程</view> <view class="title">咨询课程</view>
<view class="content"> <view class="content">
<view class="center"> <view class="center">
<text style="color: #f42c32 ;">课程仅限为做过心理人格测试,结果显示均为正常的用户开放购买权限。</text> <view style="color: #f42c32 ;">课程为进阶课程,原则上需完成「心理动力训练」课程后,方可开通学习权限。</view>
<view style="color: #f42c32 ;">如尚未学习「心理动力训练」课程,但人格测试结果全部为阴性,可联系客服老师申请开通权限。</view>
<br /><text style="color: #838588;font-size: 13px;">点击图片后长按图片保存到手机,或使用微信扫描二维码添加客服企业微信。</text> <br /><text style="color: #838588;font-size: 13px;">点击图片后长按图片保存到手机,或使用微信扫描二维码添加客服企业微信。</text>

View File

@@ -69,6 +69,12 @@
<text <text
class="orderState orderState5" class="orderState orderState5"
v-if="orderContet.orderStatus == 5">已超时</text> v-if="orderContet.orderStatus == 5">已超时</text>
<text
class="orderState orderState6"
v-if="orderContet.orderStatus == 6">已退款</text>
<text
class="orderState orderState7"
v-if="orderContet.orderStatus == 7">退款中</text>
</view> </view>
<view class="order_block"> <view class="order_block">
@@ -857,14 +863,15 @@ export default {
text: "继续付款", text: "继续付款",
}); });
} }
if (this.orderContet.orderStatus == 0) { // soulspace注释取消订单按钮
this.customButton.push({ // if (this.orderContet.orderStatus == 0) {
width: "160rpx", // this.customButton.push({
text: "取消订单", // width: "160rpx",
color: "#333", // text: "取消订单",
backgroundColor: "#f0f0f0", // color: "#333",
}); // backgroundColor: "#f0f0f0",
} // });
// }
if (this.orderContet.orderStatus == 0) { if (this.orderContet.orderStatus == 0) {
this.titleStat = "待支付"; this.titleStat = "待支付";
} else if (this.orderContet.orderStatus == 1) { } else if (this.orderContet.orderStatus == 1) {
@@ -873,6 +880,10 @@ export default {
this.titleStat = "待收到"; this.titleStat = "待收到";
} else if (this.orderContet.orderStatus == 3) { } else if (this.orderContet.orderStatus == 3) {
this.titleStat = "已完成"; this.titleStat = "已完成";
} else if (this.orderContet.orderStatus == 6) {
this.titleStat = "已退款";
} else if (this.orderContet.orderStatus == 7) {
this.titleStat = "退款中";
} }
if ( if (
this.orderContet.orderStatus >= 2 && this.orderContet.orderStatus >= 2 &&
@@ -915,9 +926,27 @@ export default {
}, },
}); });
}, },
checkPayTimeout(payItem) {
const createTime = payItem && payItem.createTime;
if (!createTime) return true;
const createdAt = new Date(String(createTime).replace(/-/g, "/")).getTime();
if (!createdAt) return true;
const expired = Date.now() - createdAt > 10 * 60 * 1000;
if (expired) {
uni.showModal({
title: "提示",
content: "订单已超时,不能继续支付,请重新下单",
confirmText: "知道了",
showCancel: false,
});
return false;
}
return true;
},
// 支付 // 支付
goPay(payItem) { goPay(payItem) {
if (!this.checkPayTimeout(payItem)) return;
if (payItem.paymentMethod == 2) { if (payItem.paymentMethod == 2) {
console.log("阿里支付"); console.log("阿里支付");
setPay( setPay(
@@ -1054,6 +1083,12 @@ view,uni-view {
.orderState5 { .orderState5 {
background-color: #787878; background-color: #787878;
} }
.orderState6 {
background-color: #f56c6c;
}
.orderState7 {
background-color: #f56c6c;
}
.guoqi { .guoqi {
font-size: 28rpx; font-size: 28rpx;
align-items: center; align-items: center;

View File

@@ -0,0 +1,27 @@
<template>
<view class="page-wrap">
<public-module></public-module>
<common-refund-destination :order-id="orderId" :http="$http" />
</view>
</template>
<script>
export default {
data() {
return {
orderId: "",
};
},
onLoad(options) {
if (options && options.orderId != null) {
this.orderId = options.orderId;
}
},
};
</script>
<style scoped>
.page-wrap {
min-height: 100vh;
}
</style>

View File

@@ -1,10 +1,12 @@
<template> <template>
<view class="commonPageBox"> <view class="commonPageBox">
<z-paging ref="paging" v-model="dataList" auto-show-back-to-top @query="getDataList"> <z-paging ref="paging" v-model="dataList" auto-show-back-to-top :auto="false" @query="getDataList">
<template #top> <template #top>
<z-nav-bar title="心理论坛"></z-nav-bar> <z-nav-bar title="心理论坛"></z-nav-bar>
<view class="search_box"> <view class="search_box">
<u-search placeholder="请输入文章标题" v-model="query.title" @search="handleSearch" @custom="handleSearch"></u-search> <u-search placeholder="请输入文章标题" v-model="query.title" @search="handleSearch" @custom="handleSearch"></u-search>
<u-tabs :list="classification" keyName="dictValue" lineWidth="30" class="classification_tabs" @click="handleClassification"></u-tabs>
</view> </view>
</template> </template>
@@ -39,15 +41,38 @@ export default {
}, },
dataList: [], //列表数据 dataList: [], //列表数据
statusNull: null, //暂无数据显示 statusNull: null, //暂无数据显示
classification: []
} }
}, },
mounted(){ mounted(){
}, },
onLoad() { onLoad() {
// this.getDataList(this.query.page, this.query.limit) this.getClassification();
}, },
methods: { methods: {
//免费课程数据 // 获取分类
getClassification(){
this.$http.request({
url: "book/sysdictdata/selectByType/psycheForumLabel",
method: "GET",
header: { "Content-Type": "application/json" },
})
.then((res) => {
if (res.code == 0 && res.dataList) {
this.classification = res.dataList;
this.query.type = res.dataList[0].dictType;
this.$refs.paging.reload();
}
})
.catch((e) => {
console.log("获取分类失败", e);
});
},
handleClassification(e){
this.query.type = e.dictType;
this.$refs.paging.reload();
},
// 获取列表
getDataList(pageNo, pageSize){ getDataList(pageNo, pageSize){
this.$http.request({ this.$http.request({
url: 'common/wxPublicAccount/getWxPublicAccountArticleList', url: 'common/wxPublicAccount/getWxPublicAccountArticleList',
@@ -63,7 +88,7 @@ export default {
}) })
.then(res=> { .then(res=> {
if (res.code == 0) { if (res.code == 0) {
if(res.page.records && res.page.records.length>0){ if(res.page.records){
this.$refs.paging.complete(res.page.records); this.$refs.paging.complete(res.page.records);
}else{ }else{
this.$refs.paging.complete(false); this.$refs.paging.complete(false);
@@ -85,7 +110,7 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.commonPageBox{ .commonPageBox{
background: #eff5f8; background: #eff5f8;
height: 100vh; height: 100vh;
@@ -94,6 +119,11 @@ export default {
background: #fff; background: #fff;
padding: 0 20rpx 20rpx; padding: 0 20rpx 20rpx;
} }
.classification_tabs {
::v-deep .u-tabs__wrapper__nav__item {
padding: 0 20rpx;
}
}
.cateList { .cateList {
width: 100%; width: 100%;
} }
@@ -189,25 +219,24 @@ export default {
color: #999; color: #999;
font-size: 22rpx; font-size: 22rpx;
} }
::v-deep .zp-scroll-view .uni-scroll-view::-webkit-scrollbar {
::v-deep ::-webkit-scrollbar {
/*滚动条整体样式*/ /*滚动条整体样式*/
width: 4px !important; width: 4px !important;
height: 1px !important; height: 4px !important;
overflow: auto !important; overflow: auto !important;
background: #ccc !important; background: #f5f5f5 !important;
-webkit-appearance: auto !important; -webkit-appearance: auto !important;
display: block; display: block;
} }
::v-deep ::-webkit-scrollbar-thumb { ::v-deep .zp-scroll-view .uni-scroll-view::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/ /*滚动条里面小方块*/
border-radius: 10px !important; border-radius: 10px !important;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
background: #7b7979 !important; background: #eee !important;
} }
::v-deep ::-webkit-scrollbar-track { ::v-deep .zp-scroll-view .uni-scroll-view::-webkit-scrollbar-track {
/*滚动条里面轨道*/ /*滚动条里面轨道*/
// box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important; // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
// border-radius: 10px !important; // border-radius: 10px !important;

View File

@@ -455,7 +455,12 @@
}, },
//点击下单按钮 //点击下单按钮
onHandleClickBuy(e) { onHandleClickBuy(e) {
if(this.buttonType==0){ //如果是加入购物车 if (e && e.content && e.content.text === "购物车") {
this.onHandleClick();
return;
}
const clickType = typeof (e && e.index) === "number" ? e.index : this.buttonType;
if(clickType==0){ //如果是加入购物车
console.log('剩余', this.selectGoodsData.productStock) console.log('剩余', this.selectGoodsData.productStock)
if(this.selectGoodsData.productStock==0){ if(this.selectGoodsData.productStock==0){
uni.showToast({ uni.showToast({

View File

@@ -2,7 +2,7 @@
<view class="commonPageBox commonDetailPage"> <view class="commonPageBox commonDetailPage">
<z-nav-bar title="我的订单" :backState="2000"></z-nav-bar> <z-nav-bar title="我的订单" :backState="2000"></z-nav-bar>
<view class="cateList flexbox"> <view class="cateList flexbox">
<common-sticky itemStyle="width:20%; height: 68rpx;font-size:24rpx;" :list="ordersTabs" label="name" <common-sticky itemStyle="height: 68rpx;font-size:24rpx; padding: 0 20rpx;" :list="ordersTabs" label="name"
:currentCateIndex="currentCateIndex" @handleselectCate="ordersTabCLi"></common-sticky> :currentCateIndex="currentCateIndex" @handleselectCate="ordersTabCLi"></common-sticky>
</view> </view>
@@ -42,6 +42,8 @@
<text class="orderstatus" v-show="slotProps.row.orderStatus == 3">交易成功</text> <text class="orderstatus" v-show="slotProps.row.orderStatus == 3">交易成功</text>
<text class="orderstatus" v-show="slotProps.row.orderStatus == 4">交易失败</text> <text class="orderstatus" v-show="slotProps.row.orderStatus == 4">交易失败</text>
<text class="orderstatus" v-show="slotProps.row.orderStatus == 5">已过期</text> <text class="orderstatus" v-show="slotProps.row.orderStatus == 5">已过期</text>
<text class="orderstatus" v-show="slotProps.row.orderStatus == 6">已退款</text>
<text class="orderstatus" v-show="slotProps.row.orderStatus == 7">退款中</text>
</view> </view>
</view> </view>
@@ -248,8 +250,9 @@
</view> </view>
<view class="operation_box boxShadow" v-if="slotProps.row.isShowMore == true"> <view class="operation_box boxShadow" v-if="slotProps.row.isShowMore == true">
<view v-if="slotProps.row.orderStatus == 0" <!-- soulspace注释取消订单入口 -->
@click.stop="canceOrder(slotProps.row)">取消订单</view> <!-- <view v-if="slotProps.row.orderStatus == 0"
@click.stop="canceOrder(slotProps.row)">取消订单</view> -->
</view> </view>
<!-- @click.stop="openMore(slotProps.row, slotProps.rowIndex)" 更多 --> <!-- @click.stop="openMore(slotProps.row, slotProps.rowIndex)" 更多 -->
<view class="btns flexbox" style="margin-top: 10rpx"> <view class="btns flexbox" style="margin-top: 10rpx">
@@ -264,7 +267,10 @@
@click.stop="seeExpressDetail(slotProps.row)">查看物流</view> @click.stop="seeExpressDetail(slotProps.row)">查看物流</view>
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 2" <view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 2"
@click.stop="OverOrder(slotProps.row)">确认收到</view> @click.stop="OverOrder(slotProps.row)">确认收到</view>
<view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 3">申请售后</view> <view class="orderstatusbtn" v-if="slotProps.row.orderStatus == 6 || slotProps.row.orderStatus == 7"
@click.stop="goRefundDestination(slotProps.row)">钱款去向</view>
<view class="orderstatusbtn" v-if="slotProps.row.refundableStatus === true"
@click.stop="confirmApplyRefund(slotProps.row)">申请退款</view>
</view> </view>
</view> </view>
<view style="border-bottom: 2rpx solid #e9e9e9; height: 50rpx" <view style="border-bottom: 2rpx solid #e9e9e9; height: 50rpx"
@@ -300,10 +306,12 @@
come: "3", come: "3",
isShowTab: false, isShowTab: false,
isLoadingHide: false, isLoadingHide: false,
moreList: [{ // soulspace注释取消订单菜单
name: "取消订单", // moreList: [{
key: "false", // name: "取消订单",
}, ], // key: "false",
// }, ],
moreList: [],
currentCateIndex: 0, currentCateIndex: 0,
pagination: { pagination: {
page: 1, //页码 page: 1, //页码
@@ -347,6 +355,16 @@
value: 3, value: 3,
badge: {}, badge: {},
}, },
{
name: "已退款",
value: 6,
badge: {},
},
{
name: "退款中",
value: 7,
badge: {},
},
], ],
selectOrderInfo: {}, selectOrderInfo: {},
ordersListTab: 1, ordersListTab: 1,
@@ -437,6 +455,48 @@
val.orderSn, val.orderSn,
}); });
}, },
goRefundDestination(row) {
uni.navigateTo({
url: `/pages/detail/refundDestination?orderId=${row.orderId}`,
});
},
confirmApplyRefund(row) {
uni.showModal({
title: "申请退款",
content: "请确认是否提交退款申请?",
confirmText: "确认提交",
cancelText: "取消",
success: (res) => {
if (res.confirm) {
this.submitOrderRefund(row);
}
},
});
},
submitOrderRefund(orderRow) {
this.$http.request({
url: "book/buyOrder/refundOrder",
method: "POST",
data: {
orderId: orderRow.orderId,
},
header: {
"Content-Type": "application/json",
},
}).then((res) => {
if (res.code === 0) {
this.$commonJS.showToast("申请退款成功");
this.newestpage = 1;
this.pagination.page = 1;
this.newList = [];
this.getBookList(this.ordersListTab, false);
return;
}
this.$commonJS.showToast(res.errMsg || "申请退款失败");
}).catch(() => {
this.$commonJS.showToast("申请退款失败");
});
},
//初始化获取数据 //初始化获取数据
getBookList(flag, refreshflag) { getBookList(flag, refreshflag) {
this.isLoadingHide = false; this.isLoadingHide = false;
@@ -461,6 +521,8 @@
// * 3已完成 // * 3已完成
// * 4: 交易失败 // * 4: 交易失败
// * 5: 已过期 // * 5: 已过期
// * 6: 已退款
// * 7: 退款中
that.map = res.data; that.map = res.data;
that.ordersTabs.map((e) => { that.ordersTabs.map((e) => {
@@ -489,7 +551,7 @@
var params = { var params = {
userId: this.userInfo.id, userId: this.userInfo.id,
come: this.come, come: this.come,
orderStatus: flag == -1 ? "" : flag, //传null为全部订单状态 0-未付款 1-待发出 2-待收到 3-交易成功 4-交易失败 5-过期 orderStatus: flag == -1 ? "" : flag, //传null为全部订单状态 0-未付款 1-待发出 2-待收到 3-交易成功 4-交易失败 5-过期 6-已退款 7-退款中
...this.pagination ...this.pagination
} }
this.$http.request({ this.$http.request({
@@ -522,8 +584,26 @@
}); });
this.axiosStatus = 1 this.axiosStatus = 1
}, },
checkPayTimeout(payItem) {
const createTime = payItem && payItem.createTime;
if (!createTime) return true;
const createdAt = new Date(String(createTime).replace(/-/g, "/")).getTime();
if (!createdAt) return true;
const expired = Date.now() - createdAt > 10 * 60 * 1000;
if (expired) {
uni.showModal({
title: "提示",
content: "订单已超时,不能继续支付,请重新下单",
confirmText: "知道了",
showCancel: false,
});
return false;
}
return true;
},
// 支付 // 支付
goPay(payItem) { goPay(payItem) {
if (!this.checkPayTimeout(payItem)) return;
if (payItem.paymentMethod == 2) { if (payItem.paymentMethod == 2) {
console.log("阿里支付"); console.log("阿里支付");
setPay({ setPay({
@@ -982,9 +1062,9 @@
width: 100%; width: 100%;
} }
/deep/.u-tabs__wrapper__nav__item { // /deep/.u-tabs__wrapper__nav__item {
padding: 0 !important; // padding: 0 !important;
} // }
.order_box { .order_box {
padding: 20rpx; padding: 20rpx;
} }

View File

@@ -37,8 +37,7 @@
<view class="label_content AC_List"> <view class="label_content AC_List">
<view style=" display: flex; align-items: center; justify-content: space-between;"> <view style=" display: flex; align-items: center; justify-content: space-between;">
<view class="left"> <view class="left">
<view class="title" v-if="slotProps.row.orderType=='购买商品'&&slotProps.row.productName">{{ slotProps.row.orderType }} <br/> {{ slotProps.row.productName }}</view> <view class="title">{{ slotProps.row.productName || slotProps.row.orderType}}</view>
<view class="title" v-else>{{ slotProps.row.orderType }}</view>
</view> </view>
<view class="right Hot"> <view class="right Hot">
<text v-if="slotProps.row.changeAmount > 0">+</text> <text v-if="slotProps.row.changeAmount > 0">+</text>
@@ -211,6 +210,12 @@ export default {
.AC_List { .AC_List {
overflow: hidden; overflow: hidden;
.title,
.AC_note,
.AC_mark {
word-break: break-word;
overflow-wrap: break-word;
}
.left { .left {
width: calc(100% - 140rpx) !important; width: calc(100% - 140rpx) !important;
font-weight: 700; font-weight: 700;
@@ -230,6 +235,19 @@ export default {
font-weight: 700; font-weight: 700;
color: #333; color: #333;
} }
> view:first-child {
.left {
flex: 1;
min-width: 0;
width: auto !important;
float: none;
}
.right {
flex-shrink: 0;
float: none;
width: auto !important;
}
}
.AC_title { .AC_title {
font-size: 32rpx; font-size: 32rpx;

View File

@@ -362,4 +362,8 @@ button::after {
// border-bottom: 0.5px solid #dadbde; // border-bottom: 0.5px solid #dadbde;
} }
} }
}
uni-text {
white-space: normal;
} }