瀏覽代碼

修改文案

lex 1 年之前
父節點
當前提交
64c6ca9bd5

+ 1 - 1
src/router/routes-common.ts

@@ -155,7 +155,7 @@ export default [
         name: 'collection-record',
         component: () => import('@/views/collection-record/index'),
         meta: {
-          title: '开通记录'
+          title: '我的订单'
         }
       },
       {

+ 10 - 10
src/views/collection-record-detail/index.tsx

@@ -36,8 +36,8 @@ export default defineComponent({
     // 判断是否是退款详情
     const isRefund = route.query.userRefundOrderId ? true : false;
     const state = reactive({
-      refundAudit: '' as any, // 退审核状态
-      refundOrderId: '', // 退订单id
+      refundAudit: '' as any, // 退审核状态
+      refundOrderId: '', // 退订单id
       orders: {} as any,
       goodsInfos: [] as any,
       background: 'transparent',
@@ -119,11 +119,11 @@ export default defineComponent({
         TIMEOUT: '订单超时',
         FAIL: '支付失败',
         CLOSED: '已关闭',
-        ING: '退申请中',
-        PASS: '已退',
-        REJECT: '退失败',
+        ING: '退申请中',
+        PASS: '已退',
+        REJECT: '退失败',
         REFUNDING: '退款中',
-        REFUNDED: '已退'
+        REFUNDED: '已退'
       };
       return temp[status];
     };
@@ -153,14 +153,14 @@ export default defineComponent({
     /** 取消退款申请 */
     const handleBack = async () => {
       await api_userPaymentOrderCancelRefund(state.refundOrderId);
-      showToast('撤销退成功');
+      showToast('撤销退成功');
       await getDetails();
     };
     return () => (
       <div class={styles.paymentResult}>
         <div class={[styles.paymentTitle]}>
           <MHeader
-            title={isRefund ? '申请退' : '订单详情'}
+            title={isRefund ? '申请退' : '订单详情'}
             background="transparent"
           />
 
@@ -183,7 +183,7 @@ export default defineComponent({
                     state.orders.status
                   ) && (
                     <div class={styles.orderPrice}>
-                      退金额:¥ {moneyFormat(state.orders.paymentCashAmount)}
+                      退金额:¥ {moneyFormat(state.orders.paymentCashAmount)}
                     </div>
                   )}
                   {['CLOSED'].includes(state.orders.status) && (
@@ -251,7 +251,7 @@ export default defineComponent({
             round
             type="primary"
             onClick={() => handleBack()}>
-            撤销退
+            撤销退
           </Button>
         )}
       </div>

+ 9 - 9
src/views/collection-record/api.ts

@@ -16,13 +16,13 @@ export const type_OrderStatus: { [_: string]: string } = {
 export interface IApiUserPaymentOrderPage {
   /** 订单状态,可用值:WAIT_PAY,PAYING,PAID,TIMEOUT,FAIL,CLOSED,REFUNDED */
   orderStatus:
-    | 'WAIT_PAY'
-    | 'PAYING'
-    | 'PAID'
-    | 'TIMEOUT'
-    | 'FAIL'
-    | 'CLOSED'
-    | 'REFUNDED';
+  | 'WAIT_PAY'
+  | 'PAYING'
+  | 'PAID'
+  | 'TIMEOUT'
+  | 'FAIL'
+  | 'CLOSED'
+  | 'REFUNDED';
   /** 分页行数 */
   rows: number;
   /** 当前页 */
@@ -38,7 +38,7 @@ export const api_userPaymentOrderPage = (
     data: params
   });
 };
-/** 获取退列表 */
+/** 获取退列表 */
 export const api_userPaymentOrderStudentRefundOrderPage = (
   params: any
 ): Promise<any> => {
@@ -51,7 +51,7 @@ export const api_userPaymentOrderStudentRefundOrderPage = (
 export const api_userPaymentOrderDetail = (params: any): Promise<any> => {
   return request.get(`/edu-app/userPaymentOrder/detail/${params}`);
 };
-/** 获取退订单详情 */
+/** 获取退订单详情 */
 export const api_userPaymentOrderRefundDetail = (params: any): Promise<any> => {
   return request.get(`/edu-app/userPaymentOrder/refundDetail/${params}`);
 };

+ 9 - 9
src/views/collection-record/component/item.tsx

@@ -91,7 +91,7 @@ export default defineComponent({
               }))
           : []
       });
-      showToast('申请退成功');
+      showToast('申请退成功');
       data.open = false;
       emit('close');
       emit('refund');
@@ -203,7 +203,7 @@ export default defineComponent({
                 data.open = true;
                 getDetails(props.item);
               }}>
-              申请退
+              申请退
             </div>
           )}
         </CellGroup>
@@ -216,14 +216,14 @@ export default defineComponent({
           <div class={styles.cancelBox}>
             <div class={styles.boxContent}>
               <div class={styles.title}>
-                <div class={styles.titleTag}></div> 申请退
+                <div class={styles.titleTag}></div> 申请退
               </div>
               <div class={styles.des}>
-                您将要发起退回,退回需承担千分之六的手续费,确认退回后款项将原路返还到您的付款账户中。
+                您将要发起退款,退款需承担千分之六的手续费,确认退款后款项将原路返还到您的付款账户中。
               </div>
               <div class={styles.radioTitle}>
                 <span style={{ color: 'rgba(244, 69, 65, 1)' }}>*</span>
-                请选择您的退原因
+                请选择您的退原因
               </div>
               <RadioGroup v-model={forms.refundReason}>
                 <Cell>
@@ -275,7 +275,7 @@ export default defineComponent({
                   label=""
                   type="textarea"
                   maxlength="50"
-                  placeholder="在这里填写退原因"
+                  placeholder="在这里填写退原因"
                 />
               </div>
             </div>
@@ -284,19 +284,19 @@ export default defineComponent({
                 block
                 onClick={() => {
                   if (!forms.refundReason) {
-                    showToast('请选择退原因');
+                    showToast('请选择退原因');
                     return;
                   }
                   if (
                     forms.refundReason === '其他原因' &&
                     !forms.refundReasonDes
                   ) {
-                    showToast('请输入退原因');
+                    showToast('请输入退原因');
                     return;
                   }
                   handleCancel();
                 }}>
-                确认退
+                确认退
               </Button>
               <Button
                 block

+ 5 - 5
src/views/collection-record/component/list.tsx

@@ -59,7 +59,7 @@ export default defineComponent({
       PAYING: '待支付',
       PAID: '支付成功',
       CLOSED: '已关闭',
-      REFUNDED: '退成功'
+      REFUNDED: '退成功'
     };
     const statusColors: { [_: string]: string } = {
       WAIT_PAY: 'rgba(64, 196, 203, 1)',
@@ -72,10 +72,10 @@ export default defineComponent({
       REFUNDED: 'rgba(255, 162, 68, 1)'
     };
     const refundTypes: { [_: string]: string } = {
-      ING: '退申请中',
-      REJECT: '退失败',
-      PASS: '退成功',
-      CLOSED: '退关闭'
+      ING: '退申请中',
+      REJECT: '退失败',
+      PASS: '退成功',
+      CLOSED: '退关闭'
     };
     const getList = async () => {
       data.loading = true;