Files
lucky_shop/pages_tool/weapp/order_shipping.vue
ZF sun b30ba914b9 i18n: replace hardcoded strings with language translations
批量将项目中多处硬编码的文本替换为多语言翻译条目,统一项目文案管理,提升多语言适配效率,包括导航提示、操作反馈、空状态提示、表单占位符等各类文本内容。
2026-06-22 17:59:25 +08:00

49 lines
871 B
Vue

<template>
<view>
<view class="error-msg">{{errorMsg}}</view>
</view>
</template>
<script>
export default {
data() {
return {
outTradeNo:'',
errorMsg:'',
}
},
onLoad(option) {
if (option.merchant_trade_no){
this.outTradeNo = option.merchant_trade_no;
this.getOrderDetailPath();
}else{
this.errorMsg = this.$lang('weapp.missingMerchantTradeNo');
}
},
methods: {
getOrderDetailPath(){
this.$api.sendRequest({
url: '/api/pay/outTradeNoToOrderDetailPath',
data:{
out_trade_no : this.outTradeNo,
},
success: res => {
if (res.code < 0) {
this.errorMsg = res.message || this.$lang('weapp.unknownError');
}else{
this.$util.redirectTo(res.data);
}
}
});
},
},
}
</script>
<style>
.error-msg{
text-align: center;
padding-top: 10vh;
}
</style>