feat: 新增多语言文案、优化导航及工具函数,修复部分业务逻辑
1. 新增多语言资源文件,覆盖文章、预约日期、会员信息、优惠券、表单、购物车、积分商城、分销、AI聊天等多个模块 2. 优化底部导航组件,使用多语言配置替代硬编码文案 3. 重构工具函数,新增从后端数据提取多语言文案的工具方法 4. 修复邀请好友页面的保存提示文案,替换为多语言版本 5. 修复商品SKU组件的提示文案,使用多语言配置 6. 重构AI聊天页面的帮助文档和回复模板,使用多语言配置 7. 优化空状态组件,支持多语言默认文案 8. 修复跳转逻辑,补全参数传递 9. 新增本地开发环境配置
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
<text v-if="orderData.promotion_status_name">({{ orderData.promotion_status_name }})</text>
|
||||
</view>
|
||||
<view class="desc" v-if="orderData.promotion_type == 'presale' && orderData.order_status == 1">
|
||||
预计{{ $util.timeStampTurnTime(orderData.predict_delivery_time, true) }}日后发货
|
||||
{{ $lang('status.estimatedDelivery', { days: $util.timeStampTurnTime(orderData.predict_delivery_time, true) }) }}
|
||||
</view>
|
||||
<view class="desc" v-if="orderData.close_cause">订单关闭原因:{{ orderData.close_cause }}</view>
|
||||
<view class="desc" v-if="orderData.close_cause">{{ $lang('status.orderCloseReason') }}{{ orderData.close_cause }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-time" v-if="orderData.order_status == 0" id="action-date">
|
||||
剩余时间:
|
||||
{{ $lang('status.remainingTime') }}
|
||||
<uni-count-down :day="orderData.closeTimeMachine.d" :hour="orderData.closeTimeMachine.h"
|
||||
:minute="orderData.closeTimeMachine.i" :second="orderData.closeTimeMachine.s" color="#fff"
|
||||
splitorColor="#fff" />
|
||||
@@ -34,21 +34,21 @@
|
||||
<text class="font-size-base">{{ orderData.name }} {{ orderData.mobile }}</text>
|
||||
</view>
|
||||
<view class="detail">
|
||||
<text class="font-size-base">收货地址:{{ orderData.full_address }} {{ orderData.address }}</text>
|
||||
<text class="font-size-base">{{ $lang('address.receivingAddress') }}{{ orderData.full_address }} {{ orderData.address }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<template v-if="orderData.order_type == 3">
|
||||
<view class="pick-block first-pick-block">
|
||||
<view class="font-size-base">送达时间:</view>
|
||||
<view class="font-size-base">{{ $lang('address.deliveryTime') }}</view>
|
||||
<view class="last-child">{{ orderData.buyer_ask_delivery_time }}</view>
|
||||
</view>
|
||||
<block v-if="orderData.package_list">
|
||||
<view class="pick-block">
|
||||
<view>配送员:</view>
|
||||
<view>{{ $lang('address.deliverer') }}</view>
|
||||
<view class="last-child">{{ orderData.package_list.deliverer }}</view>
|
||||
</view>
|
||||
<view class="pick-block">
|
||||
<view>外卖电话:</view>
|
||||
<view>{{ $lang('address.delivererMobile') }}</view>
|
||||
<view class="last-child">{{ orderData.package_list.deliverer_mobile }}</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -74,27 +74,27 @@
|
||||
</view>
|
||||
<view class="detail store-detail">
|
||||
<view class="color-tip" v-if="orderData.delivery_store_info.open_date">
|
||||
营业时间:{{ orderData.delivery_store_info.open_date }}</view>
|
||||
<view class="color-tip">地址:{{ orderData.delivery_store_info.full_address }}</view>
|
||||
{{ $lang('store.businessHours') }}{{ orderData.delivery_store_info.open_date }}</view>
|
||||
<view class="color-tip">{{ $lang('store.address') }}{{ orderData.delivery_store_info.full_address }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else>
|
||||
<view class="address-empty">
|
||||
<view class="color-base-text">当前无自提门店</view>
|
||||
<view class="color-base-text">{{ $lang('store.noPickupStore') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pick-block first-pick-block">
|
||||
<view class="font-size-base">姓名</view>
|
||||
<view class="font-size-base">{{ $lang('store.pickupName') }}</view>
|
||||
<input class="last-child" type="text" disabled :value="orderData.name" />
|
||||
</view>
|
||||
<view class="pick-block first-pick-block">
|
||||
<view class="font-size-base">预留手机</view>
|
||||
<view class="font-size-base">{{ $lang('store.reservedMobile') }}</view>
|
||||
<input class="last-child" type="number" disabled :value="orderData.mobile" />
|
||||
</view>
|
||||
<view class="pick-block first-pick-block">
|
||||
<view class="font-size-base">提货时间</view>
|
||||
<view class="font-size-base">{{ $lang('store.pickupTime') }}</view>
|
||||
<input class="last-child" disabled :value="orderData.buyer_ask_delivery_time" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -103,7 +103,7 @@
|
||||
<view class="pickup-code-info">
|
||||
<view class="info">
|
||||
<text class="font-size-base">
|
||||
<text class="color-tip font-size-base">提货码:</text>
|
||||
<text class="color-tip font-size-base">{{ $lang('store.pickupCode') }}</text>
|
||||
{{ orderData.delivery_code }}
|
||||
</text>
|
||||
<text class="copy" @click="$util.copy(orderData.delivery_code)">复制</text>
|
||||
@@ -156,7 +156,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="goodsItem.card_item_id" class="goods-card">
|
||||
次卡抵扣
|
||||
{{ $lang('goods.cardDeduction') }}
|
||||
<text class="goods-price ">
|
||||
<text class="unit price-style small">-{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="price-style large">{{
|
||||
@@ -189,13 +189,13 @@
|
||||
<view @click="goRefund(goodsItem.order_goods_id)"
|
||||
v-if="orderData.order_scene == 'online' && (goodsItem.refund_status == 0 || goodsItem.refund_status == -1)">
|
||||
<view class="order-box-btn" v-if="orderData.promotion_type != 'blindbox'">
|
||||
{{ orderData.order_status == 10 ? '申请售后' : '申请退款' }}
|
||||
{{ orderData.order_status == 10 ? $lang('goods.applyAfterSales') : $lang('goods.applyRefund') }}
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view @click="goRefundDetail(goodsItem.order_goods_id)"
|
||||
v-if="goodsItem.refund_status != 0 && goodsItem.refund_status != -1">
|
||||
<view class="order-box-btn">{{ orderData.order_status == 10 ? '查看售后' : '查看退款' }}</view>
|
||||
<view class="order-box-btn">{{ orderData.order_status == 10 ? $lang('goods.viewAfterSales') : $lang('goods.viewRefund') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -205,32 +205,32 @@
|
||||
<!-- 订单概况 -->
|
||||
<view class="order-summary">
|
||||
<view class="order-cell">
|
||||
<text class="tit">订单类型:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.orderType') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.order_type_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">订单编号:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.orderNo') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.order_no }}</text>
|
||||
<view class="copy" @click="$util.copy(orderData.order_no)">复制</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">订单交易号:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.outTradeNo') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.out_trade_no }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">创建时间:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.createTime') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ $util.timeStampTurnTime(orderData.create_time) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.close_time > 0">
|
||||
<text class="tit">关闭时间:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.closeTime') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ $util.timeStampTurnTime(orderData.close_time) }}</text>
|
||||
</view>
|
||||
@@ -238,32 +238,32 @@
|
||||
<block v-if="orderData.pay_status > 0">
|
||||
<view class="hr"></view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">支付方式:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.payType') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.pay_type_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">支付时间:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.payTime') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ $util.timeStampTurnTime(orderData.pay_time) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="order-cell" v-if="orderData.delivery_type_name">
|
||||
<text class="tit">配送方式:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.deliveryType') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.delivery_type_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.buyer_message != ''">
|
||||
<text class="tit">买家留言:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.buyerMessage') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.buyer_message }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.promotion_type_name != ''">
|
||||
<text class="tit">活动优惠:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.promotionDiscount') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.promotion_type_name }}</text>
|
||||
</view>
|
||||
@@ -271,38 +271,38 @@
|
||||
<block v-if="orderData.is_invoice > 0">
|
||||
<view class="hr"></view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">发票类型:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.invoiceType') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.invoice_type == 1 ? '纸质发票' : '电子发票' }}</text>
|
||||
<text class="color-title">{{ orderData.invoice_type == 1 ? $lang('orderInfo.invoiceTypePaper') : $lang('orderInfo.invoiceTypeElectronic') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">发票抬头类型:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.invoiceTitleType') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.invoice_title_type == 1 ? '个人' : '企业' }}</text>
|
||||
<text class="color-title">{{ orderData.invoice_title_type == 1 ? $lang('orderInfo.invoiceTitlePersonal') : $lang('orderInfo.invoiceTitleCompany') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">发票抬头:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.invoiceTitle') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.invoice_title }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="order-cell">
|
||||
<text class="tit">发票内容:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.invoiceContent') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.invoice_content }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.invoice_type == 1">
|
||||
<text class="tit">发票邮寄地址:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.invoiceMailAddress') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.invoice_full_address }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-else>
|
||||
<text class="tit">发票接收邮件:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.invoiceEmail') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ orderData.invoice_email }}</text>
|
||||
</view>
|
||||
@@ -326,9 +326,9 @@
|
||||
|
||||
<block v-if="orderData.goods_class == 5">
|
||||
<view class="order-cell">
|
||||
<text class="tit">我的卡包:</text>
|
||||
<text class="tit">{{ $lang('orderInfo.myCardPack') }}</text>
|
||||
<view class="box"><text class="color-base-text"
|
||||
@click="$util.redirectTo('/pages_promotion/cardservice/card/my_card')">查看</text></view>
|
||||
@click="$util.redirectTo('/pages_promotion/cardservice/card/my_card')">{{ $lang('orderInfo.view') }}</text></view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 联系客服 -->
|
||||
@@ -347,7 +347,7 @@
|
||||
<view class="code">
|
||||
<image :src="$util.img(orderData.virtualgoods_barcode)" class="barcode" mode="widthFix" show-menu-by-longpress></image>
|
||||
<image :src="$util.img(orderData.virtualgoods)" class="qrcode" mode="widthFix" show-menu-by-longpress></image>
|
||||
<text>请将条形码或二维码出示给核销员</text>
|
||||
<text>{{ $lang('virtualGoods.showCodeToVerifier') }}</text>
|
||||
</view>
|
||||
<view class="hr"></view>
|
||||
<view class="wrap">
|
||||
@@ -357,63 +357,61 @@
|
||||
</view>
|
||||
|
||||
<view class="verify-info-wrap">
|
||||
<view class="head">核销信息</view>
|
||||
<view class="head">{{ $lang('virtualGoods.verifyInfo') }}</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">核销次数</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.verifyCount') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title">
|
||||
剩余{{ orderData.virtual_goods.verify_total_count - orderData.virtual_goods.verify_use_num
|
||||
}}次/共{{
|
||||
orderData.virtual_goods.verify_total_count }}次
|
||||
{{ $lang('virtualGoods.verifyCountText', { remaining: orderData.virtual_goods.verify_total_count - orderData.virtual_goods.verify_use_num, total: orderData.virtual_goods.verify_total_count }) }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">有效期</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.validPeriod') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title" v-if="orderData.virtual_goods.expire_time > 0">{{
|
||||
$util.timeStampTurnTime(orderData.virtual_goods.expire_time) }}</text>
|
||||
<text v-else>永久有效</text>
|
||||
<text v-else>{{ $lang('virtualGoods.permanentValid') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="verify-info-wrap">
|
||||
<view class="head">核销记录</view>
|
||||
<view class="head">{{ $lang('virtualGoods.verifyRecord') }}</view>
|
||||
<view v-if="orderData.virtual_goods.verify_record.length">
|
||||
<view v-for="(item, index) in orderData.virtual_goods.verify_record" :key="index"
|
||||
class="record-item">
|
||||
<view class="order-cell">
|
||||
<text class="tit">核销人</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.verifier') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title">{{ item.verifier_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">核销时间</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.verifyTime') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title">{{ $util.timeStampTurnTime(item.verify_time) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="record-empty" v-else>暂无核销记录</view>
|
||||
<view class="record-empty" v-else>{{ $lang('virtualGoods.noVerifyRecord') }}</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block v-if="orderData.virtual_goods && orderData.goods_class == 3">
|
||||
<view class="verify-info-wrap carmichael">
|
||||
<view class="head">卡密信息</view>
|
||||
<view class="head">{{ $lang('virtualGoods.cardInfo') }}</view>
|
||||
<view v-for="(item, index) in orderData.virtual_goods" :key="index" class="record-item">
|
||||
<view class="order-cell">
|
||||
<text class="tit">卡号:</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.cardNo') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ item.card_info.cardno }}</text>
|
||||
<view class="copy" @click="$util.copy(item.card_info.cardno)">复制</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">密码:</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.cardPassword') }}</text>
|
||||
<view class="box">
|
||||
<text class="color-title">{{ item.card_info.password }}</text>
|
||||
<view class="copy" @click="$util.copy(item.card_info.password)">复制</view>
|
||||
@@ -428,7 +426,7 @@
|
||||
<view class="code">
|
||||
<image :src="$util.img(orderData.virtualgoods_barcode)" class="barcode" mode="widthFix" show-menu-by-longpress></image>
|
||||
<image :src="$util.img(orderData.virtualgoods)" class="qrcode" mode="widthFix" show-menu-by-longpress></image>
|
||||
<text>请将条形码或二维码出示给核销员</text>
|
||||
<text>{{ $lang('virtualGoods.showCodeToVerifier') }}</text>
|
||||
</view>
|
||||
<view class="hr"></view>
|
||||
<view class="wrap">
|
||||
@@ -438,53 +436,51 @@
|
||||
</view>
|
||||
|
||||
<view class="verify-info-wrap">
|
||||
<view class="head">核销信息</view>
|
||||
<view class="head">{{ $lang('virtualGoods.verifyInfo') }}</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">核销次数</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.verifyCount') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title">
|
||||
剩余{{ orderData.virtual_goods.verify_total_count - orderData.virtual_goods.verify_use_num
|
||||
}}次/共{{
|
||||
orderData.virtual_goods.verify_total_count }}次
|
||||
{{ $lang('virtualGoods.verifyCountText', { remaining: orderData.virtual_goods.verify_total_count - orderData.virtual_goods.verify_use_num, total: orderData.virtual_goods.verify_total_count }) }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">有效期</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.validPeriod') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title" v-if="orderData.virtual_goods.expire_time > 0">{{
|
||||
$util.timeStampTurnTime(orderData.virtual_goods.expire_time) }}</text>
|
||||
<text v-else>永久有效</text>
|
||||
<text v-else>{{ $lang('virtualGoods.permanentValid') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="verify-info-wrap">
|
||||
<view class="head">核销记录</view>
|
||||
<view class="head">{{ $lang('virtualGoods.verifyRecord') }}</view>
|
||||
<view v-if="orderData.virtual_goods.verify_record.length">
|
||||
<view v-for="(item, index) in orderData.virtual_goods.verify_record" :key="index"
|
||||
class="record-item">
|
||||
<view class="order-cell">
|
||||
<text class="tit">核销人</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.verifier') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title">{{ item.verifier_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<text class="tit">核销时间</text>
|
||||
<text class="tit">{{ $lang('virtualGoods.verifyTime') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title">{{ $util.timeStampTurnTime(item.verify_time) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="record-empty" v-else>暂无核销记录</view>
|
||||
<view class="record-empty" v-else>{{ $lang('virtualGoods.noVerifyRecord') }}</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 订单金额 -->
|
||||
<view class="order-money">
|
||||
<view class="order-cell">
|
||||
<text class="tit">商品金额</text>
|
||||
<text class="tit">{{ $lang('amount.goodsMoney') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-title price-font">
|
||||
<text class="font-size-goods-tag">{{ $lang('common.currencySymbol') }}</text>
|
||||
@@ -493,7 +489,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.order_type != 4">
|
||||
<text class="tit">运费</text>
|
||||
<text class="tit">{{ $lang('amount.deliveryFee') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-base-text price-font">
|
||||
<text class="font-size-goods-tag">{{ $lang('common.currencySymbol') }}</text>
|
||||
@@ -502,7 +498,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.member_card_money > 0">
|
||||
<text class="tit">会员卡</text>
|
||||
<text class="tit">{{ $lang('amount.memberCard') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-base-text price-font">
|
||||
<text class="font-size-goods-tag">{{ $lang('common.currencySymbol') }}</text>
|
||||
@@ -512,7 +508,7 @@
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.invoice_money > 0">
|
||||
<text class="tit">
|
||||
税费
|
||||
{{ $lang('amount.taxFee') }}
|
||||
<text class="color-base-text">({{ orderData.invoice_rate }}%)</text>
|
||||
</text>
|
||||
<view class="box align-right">
|
||||
@@ -524,7 +520,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.invoice_delivery_money > 0">
|
||||
<text class="tit">发票邮寄费</text>
|
||||
<text class="tit">{{ $lang('amount.invoiceDeliveryFee') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-base-text price-font">
|
||||
<text class="operator">+</text>
|
||||
@@ -534,7 +530,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.adjust_money != 0">
|
||||
<text class="tit">订单调整</text>
|
||||
<text class="tit">{{ $lang('amount.orderAdjust') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-base-text price-font">
|
||||
<text class="operator" v-if="orderData.adjust_money < 0">-</text>
|
||||
@@ -545,7 +541,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.promotion_money > 0">
|
||||
<text class="tit">优惠</text>
|
||||
<text class="tit">{{ $lang('amount.promotionDiscount') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-base-text price-font">
|
||||
<text class="operator">-</text>
|
||||
@@ -555,7 +551,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.coupon_money > 0">
|
||||
<text class="tit">优惠券</text>
|
||||
<text class="tit">{{ $lang('amount.coupon') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-base-text price-font">
|
||||
<text class="operator">-</text>
|
||||
@@ -565,7 +561,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.balance_money > 0">
|
||||
<text class="tit">使用余额</text>
|
||||
<text class="tit">{{ $lang('amount.balanceUsed') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-base-text price-font">
|
||||
<text class="operator">-</text>
|
||||
@@ -575,7 +571,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell" v-if="orderData.point_money > 0">
|
||||
<text class="tit">积分抵扣</text>
|
||||
<text class="tit">{{ $lang('amount.pointDeduction') }}</text>
|
||||
<view class="box align-right">
|
||||
<text class="color-base-text price-font">
|
||||
<text class="operator">-</text>
|
||||
@@ -586,7 +582,7 @@
|
||||
</view>
|
||||
<view class="order-cell">
|
||||
<view class="box align-right">
|
||||
<text>实付金额:</text>
|
||||
<text>{{ $lang('amount.totalPayable') }}</text>
|
||||
<text class="color-base-text price-font">
|
||||
<text class="font-size-goods-tag">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="font-size-base">{{ orderData.order_money }}</text>
|
||||
@@ -598,8 +594,8 @@
|
||||
<view class="order-box-btn white"
|
||||
v-if="evaluateConfig.evaluate_status == 1 && orderData.is_evaluate == 1"
|
||||
@click="operation('memberOrderEvaluation')">
|
||||
<text v-if="orderData.evaluate_status == 0">评价</text>
|
||||
<text v-else-if="orderData.evaluate_status == 1">追评</text>
|
||||
<text v-if="orderData.evaluate_status == 0">{{ $lang('button.evaluate') }}</text>
|
||||
<text v-else-if="orderData.evaluate_status == 1">{{ $lang('button.additionalEvaluate') }}</text>
|
||||
</view>
|
||||
<block v-if="orderData.order_scene == 'online'">
|
||||
<view class="order-box-btn"
|
||||
@@ -614,8 +610,8 @@
|
||||
<view class="order-action fixed-bottom bottom-safe-area"
|
||||
v-else-if="orderData.action.length == 0 && orderData.is_evaluate == 1 && evaluateConfig.evaluate_status == 1">
|
||||
<view class="order-box-btn white" @click="operation('memberOrderEvaluation')">
|
||||
<text v-if="orderData.evaluate_status == 0">评价</text>
|
||||
<text v-else-if="orderData.evaluate_status == 1">追评</text>
|
||||
<text v-if="orderData.evaluate_status == 0">{{ $lang('button.evaluate') }}</text>
|
||||
<text v-else-if="orderData.evaluate_status == 1">{{ $lang('button.additionalEvaluate') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -734,7 +730,7 @@ export default {
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '未获取到订单信息!'
|
||||
title: this.$lang('toast.orderInfoNotFound')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_order/list');
|
||||
|
||||
Reference in New Issue
Block a user