i18n: replace hardcoded strings with language translations
批量将项目中多处硬编码的文本替换为多语言翻译条目,统一项目文案管理,提升多语言适配效率,包括导航提示、操作反馈、空状态提示、表单占位符等各类文本内容。
This commit is contained in:
@@ -327,7 +327,7 @@ export default {
|
|||||||
},
|
},
|
||||||
viewMore() {
|
viewMore() {
|
||||||
// control 默认 true 与后端 design.js + diy_view.php 对齐(老数据没 viewMore 时也走显示)
|
// control 默认 true 与后端 design.js + diy_view.php 对齐(老数据没 viewMore 时也走显示)
|
||||||
return Object.assign({ support: true, control: true, text: '查看更多', color: '#999999', iconSize: 24 },
|
return Object.assign({ support: true, control: true, text: this.$lang('article.viewMore'), color: '#999999', iconSize: 24 },
|
||||||
this.value.viewMore || {});
|
this.value.viewMore || {});
|
||||||
},
|
},
|
||||||
// 阅读区样式(文字色 + 图标大小 + 文字大小)
|
// 阅读区样式(文字色 + 图标大小 + 文字大小)
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
|
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
|
||||||
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
|
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
|
||||||
}">
|
}">
|
||||||
{{ item.is_bargaining ? '继续砍价' : value.btnStyle.text }}
|
{{ item.is_bargaining ? $lang('bargain.continueBargain') : value.btnStyle.text }}
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -517,13 +517,13 @@ export default {
|
|||||||
|
|
||||||
if (_num > parseInt(data.stock)) {
|
if (_num > parseInt(data.stock)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商品库存不足'
|
title: this.$lang('goods.insufficientStock')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (data.is_limit && data.max_buy && _num > parseInt(data.max_buy)) {
|
if (data.is_limit && data.max_buy && _num > parseInt(data.max_buy)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: `该商品每人限购${data.max_buy}${data.unit || '件'}`
|
title: this.$lang('goods.maxBuyLimit', { max: data.max_buy, unit: data.unit || this.$lang('goods.piece') })
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -409,7 +409,7 @@ export default {
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.code >= 0) {
|
if (res.code >= 0) {
|
||||||
let item = res.data;
|
let item = res.data;
|
||||||
item.unit = item.unit || '件';
|
item.unit = item.unit || this.$lang('goods.piece');
|
||||||
|
|
||||||
if (item.sku_images) item.sku_images = item.sku_images.split(',');
|
if (item.sku_images) item.sku_images = item.sku_images.split(',');
|
||||||
else item.sku_images = [];
|
else item.sku_images = [];
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ export default {
|
|||||||
// #ifndef MP-WEIXIN
|
// #ifndef MP-WEIXIN
|
||||||
if (item?.channelType === 'wechat') {
|
if (item?.channelType === 'wechat') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '视频号仅支持在微信小程序环境中播放',
|
title: this.$lang('channel.wechatOnly'),
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -68,9 +68,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
|
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
|
||||||
{{ value.btnStyle.text || '领取' }}
|
{{ value.btnStyle.text || $lang('coupon.receive') }}
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon-get use" :style="couponBtnStyle" v-if="parseInt(item.useState)">去使用
|
<view class="coupon-get use" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('coupon.useNow') }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
|
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
|
||||||
{{ value.btnStyle.text || '领取' }}
|
{{ value.btnStyle.text || $lang('coupon.receive') }}
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('coupon.goUse') }}</view>
|
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('coupon.goUse') }}</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
|
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
|
||||||
{{ value.btnStyle.text || '立即使用' }}
|
{{ value.btnStyle.text || $lang('coupon.useNow') }}
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('coupon.goUse') }}</view>
|
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('coupon.goUse') }}</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -403,7 +403,7 @@ export default {
|
|||||||
couponTap(item, index) {
|
couponTap(item, index) {
|
||||||
if (item.count == item.lead_count) {
|
if (item.count == item.lead_count) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '该优惠券已抢光'
|
title: this.$lang('coupon.couponTaken')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -426,7 +426,7 @@ export default {
|
|||||||
var data = res.data;
|
var data = res.data;
|
||||||
let msg = res.message;
|
let msg = res.message;
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
msg = '领取成功';
|
msg = this.$lang('coupon.receiveSuccess');
|
||||||
if (res.data.is_exist == 1) {
|
if (res.data.is_exist == 1) {
|
||||||
for (let i = 0; i < that.couponList.length; i++) {
|
for (let i = 0; i < that.couponList.length; i++) {
|
||||||
if (that.couponList[i].coupon_type_id == item.coupon_type_id) {
|
if (that.couponList[i].coupon_type_id == item.coupon_type_id) {
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export default {
|
|||||||
},
|
},
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.code >= 0) {
|
if (res.code >= 0) {
|
||||||
this.$util.showToast({ title: '关注成功' });
|
this.$util.showToast({ title: this.$lang('fenxiao.followSuccess') });
|
||||||
this.list[index].is_collect = 1;
|
this.list[index].is_collect = 1;
|
||||||
this.list[index].collect_id = res.data;
|
this.list[index].collect_id = res.data;
|
||||||
}
|
}
|
||||||
@@ -149,8 +149,8 @@ export default {
|
|||||||
//取消关注
|
//取消关注
|
||||||
delFollowTip(e, index) {
|
delFollowTip(e, index) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '确认取消关注该商品吗',
|
content: this.$lang('fenxiao.confirmUnfollow'),
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.delFollow(e.collect_id, index);
|
this.delFollow(e.collect_id, index);
|
||||||
@@ -167,7 +167,7 @@ export default {
|
|||||||
success: res => {
|
success: res => {
|
||||||
let msg = '';
|
let msg = '';
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
msg = '取消成功';
|
msg = this.$lang('fenxiao.unfollowSuccess');
|
||||||
} else {
|
} else {
|
||||||
msg = res.message;
|
msg = res.message;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ export default {
|
|||||||
// 提交按钮文字:与后端 design.html <button>提交</button> 默认对齐,开放给 formConfig 覆盖
|
// 提交按钮文字:与后端 design.html <button>提交</button> 默认对齐,开放给 formConfig 覆盖
|
||||||
// 走 mergedFormConfig(兼容 camelCase / snake_case),让 formConfig.submitText 能正确覆盖
|
// 走 mergedFormConfig(兼容 camelCase / snake_case),让 formConfig.submitText 能正确覆盖
|
||||||
submitText() {
|
submitText() {
|
||||||
return this.mergedFormConfig.submitText || '提交';
|
return this.mergedFormConfig.submitText || this.$lang('form.submit');
|
||||||
},
|
},
|
||||||
// 后端把表单样式配置统一存放在 data.formConfig 子对象中(与后端 design.js getDefaultFormData().formConfig 字段名一致)。
|
// 后端把表单样式配置统一存放在 data.formConfig 子对象中(与后端 design.js getDefaultFormData().formConfig 字段名一致)。
|
||||||
// 这里做一次归一化:优先取 formConfig;如果历史数据是扁平结构(直接挂在 value 上),也做兼容。
|
// 这里做一次归一化:优先取 formConfig;如果历史数据是扁平结构(直接挂在 value 上),也做兼容。
|
||||||
@@ -298,12 +298,12 @@ export default {
|
|||||||
form_id: this.value.form_id || 0,
|
form_id: this.value.form_id || 0,
|
||||||
form_data: JSON.stringify(submitData),
|
form_data: JSON.stringify(submitData),
|
||||||
component_id: this.value.id || '',
|
component_id: this.value.id || '',
|
||||||
form_name: this.value.form_name || '默认表单'
|
form_name: this.value.form_name || this.$lang('form.defaultForm')
|
||||||
},
|
},
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '提交成功',
|
title: self.$lang('form.submitSuccess'),
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
});
|
});
|
||||||
// 重置表单
|
// 重置表单
|
||||||
@@ -312,7 +312,7 @@ export default {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message || '提交失败',
|
title: res.message || self.$lang('form.submitFailed'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="sale" v-if="goodsValue.saleStyle.control"
|
<view class="sale" v-if="goodsValue.saleStyle.control"
|
||||||
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
|
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
|
||||||
已售{{ item.sale_num }}{{ item.unit ? item.unit : '件' }}
|
已售{{ item.sale_num }}{{ item.unit ? item.unit : $lang('goods.piece') }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="sale" v-if="goodsValue.saleStyle.control"
|
<view class="sale" v-if="goodsValue.saleStyle.control"
|
||||||
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
|
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
|
||||||
已售{{ item.sale_num }}{{ item.unit ? item.unit : '件' }}
|
已售{{ item.sale_num }}{{ item.unit ? item.unit : $lang('goods.piece') }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -238,7 +238,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="sale" v-if="goodsValue.saleStyle.control"
|
<view class="sale" v-if="goodsValue.saleStyle.control"
|
||||||
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
|
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
|
||||||
已售{{ dataItem.sale_num }}{{ dataItem.unit ? dataItem.unit : '件' }}
|
已售{{ dataItem.sale_num }}{{ dataItem.unit ? dataItem.unit : $lang('goods.piece') }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
¥{{ showMarketPrice(dataItem) }}</view>
|
¥{{ showMarketPrice(dataItem) }}</view>
|
||||||
<view class="sale" v-if="goodsValue.saleStyle.control"
|
<view class="sale" v-if="goodsValue.saleStyle.control"
|
||||||
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
|
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
|
||||||
售{{ dataItem.sale_num }}{{ dataItem.unit ? dataItem.unit : '件' }}
|
售{{ dataItem.sale_num }}{{ dataItem.unit ? dataItem.unit : $lang('goods.piece') }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -147,13 +147,13 @@
|
|||||||
<text>{{ showMarketPrice(item) }}</text>
|
<text>{{ showMarketPrice(item) }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="sale font-size-activity-tag color-tip">已售{{
|
<view class="sale font-size-activity-tag color-tip">已售{{
|
||||||
item.sale_num }}{{ item.unit ? item.unit : '件' }}</view>
|
item.sale_num }}{{ item.unit ? item.unit : $lang('goods.piece') }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="!isloading && goodsList[pageIndex].list.length == 0">
|
<view v-if="!isloading && goodsList[pageIndex].list.length == 0">
|
||||||
<ns-empty text="该分类下暂无商品" :isIndex="false"></ns-empty>
|
<ns-empty :text="$lang('category.noGoodsInCategory')" :isIndex="false"></ns-empty>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
@@ -193,7 +193,7 @@ export default {
|
|||||||
pageIndex: 0, //当前选中分类id
|
pageIndex: 0, //当前选中分类id
|
||||||
cateList: [{
|
cateList: [{
|
||||||
//header分类
|
//header分类
|
||||||
category_name: '首页'
|
category_name: this.$lang('common.home')
|
||||||
}],
|
}],
|
||||||
twoCategorylist: [], //二级分类
|
twoCategorylist: [], //二级分类
|
||||||
twoCategorylistId: 0, //二级分类所在的swiper
|
twoCategorylistId: 0, //二级分类所在的swiper
|
||||||
@@ -323,7 +323,7 @@ export default {
|
|||||||
let obj = {
|
let obj = {
|
||||||
list: []
|
list: []
|
||||||
};
|
};
|
||||||
obj.category_name = this.value.title ? this.value.title : '首页';
|
obj.category_name = this.value.title ? this.value.title : this.$lang('common.home');
|
||||||
arr.push(obj);
|
arr.push(obj);
|
||||||
this.cateList = arr.concat(res.data);
|
this.cateList = arr.concat(res.data);
|
||||||
Object.keys(this.cateList).forEach((key, index) => {
|
Object.keys(this.cateList).forEach((key, index) => {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export default {
|
|||||||
uni.openLocation({
|
uni.openLocation({
|
||||||
latitude: parseFloat(item.lat),
|
latitude: parseFloat(item.lat),
|
||||||
longitude: parseFloat(item.lng),
|
longitude: parseFloat(item.lng),
|
||||||
name: "一键导航",
|
name: this.$lang('map.oneClickNav'),
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async handlerClick(item) {
|
async handlerClick(item) {
|
||||||
|
|||||||
@@ -493,8 +493,8 @@ export default {
|
|||||||
showMemberQrcode() {
|
showMemberQrcode() {
|
||||||
if (!this.memberInfo.mobile && !this.memberInfo.member_code) {
|
if (!this.memberInfo.mobile && !this.memberInfo.member_code) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '使用会员码需先绑定手机号,是否绑定手机号?',
|
content: this.$lang('member.bindMobileFirst'),
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
@@ -643,7 +643,7 @@ export default {
|
|||||||
saveCompleteInfo() {
|
saveCompleteInfo() {
|
||||||
if (this.nickName.length == 0) {
|
if (this.nickName.length == 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入昵称'
|
title: this.$lang('member.inputNickname')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -682,7 +682,7 @@ export default {
|
|||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '上传失败'
|
title: this.$lang('member.uploadFailed')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -713,7 +713,7 @@ export default {
|
|||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '头像拉取失败'
|
title: this.$lang('member.avatarFetchFailed')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
:key="labelIndex">{{ labelItem }}</text>
|
:key="labelIndex">{{ labelItem }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="notes-intro">
|
<view class="notes-intro">
|
||||||
<text class="notes-label color-base-text">#{{ item.note_type == 'goods_item' ? '单品介绍' :
|
<text class="notes-label color-base-text">#{{ item.note_type == 'goods_item' ? $lang('note.goodsIntro') :
|
||||||
'掌柜说' }}#</text>
|
$lang('note.shopkeeperNote') }}#</text>
|
||||||
{{ item.note_abstract }}
|
{{ item.note_abstract }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
|
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
|
||||||
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
|
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
|
||||||
}">
|
}">
|
||||||
{{ isFuture ? '即将开始' : value.btnStyle.text }}
|
{{ isFuture ? $lang('seckill.startingSoon') : value.btnStyle.text }}
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
|
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
|
||||||
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
|
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
|
||||||
}">
|
}">
|
||||||
{{ isFuture ? '即将开始' : value.btnStyle.text }}
|
{{ isFuture ? $lang('seckill.startingSoon') : value.btnStyle.text }}
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -502,7 +502,7 @@ export default {
|
|||||||
toDetail(id) {
|
toDetail(id) {
|
||||||
if (this.isFuture) {
|
if (this.isFuture) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '秒杀活动即将开启,敬请期待!'
|
title: this.$lang('seckill.activityComingSoon')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -300,8 +300,8 @@
|
|||||||
<view class="order-cell order-invoice-cell" v-if="goodsData.invoice.invoice_status == 1">
|
<view class="order-cell order-invoice-cell" v-if="goodsData.invoice.invoice_status == 1">
|
||||||
<text class="tit">发票</text>
|
<text class="tit">发票</text>
|
||||||
<view class="box text-overflow" @click="openPopup('invoicePopup')">
|
<view class="box text-overflow" @click="openPopup('invoicePopup')">
|
||||||
<text v-if="orderCreateData.is_invoice == 1">{{ orderCreateData.invoice_type == 1 ? '纸质' : '电子' }}发票({{ orderCreateData.invoice_content }})</text>
|
<text v-if="orderCreateData.is_invoice == 1">{{ orderCreateData.invoice_type == 1 ? $lang('payment.paperInvoice') : $lang('payment.eInvoice') }}发票({{ orderCreateData.invoice_content }})</text>
|
||||||
<text v-else>无需发票</text>
|
<text v-else>{{ $lang('payment.noInvoice') }}</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="iconfont icon-right"></text>
|
<text class="iconfont icon-right"></text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -131,32 +131,32 @@ export default {
|
|||||||
charge_rule_arr.push({
|
charge_rule_arr.push({
|
||||||
'key': key,
|
'key': key,
|
||||||
'value': charge_rule[key],
|
'value': charge_rule[key],
|
||||||
'title': '周卡',
|
'title': this.$lang('payment.weekCard'),
|
||||||
unit: '周'
|
unit: this.$lang('payment.week')
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'month':
|
case 'month':
|
||||||
charge_rule_arr.push({
|
charge_rule_arr.push({
|
||||||
'key': key,
|
'key': key,
|
||||||
'value': charge_rule[key],
|
'value': charge_rule[key],
|
||||||
'title': '月卡',
|
'title': this.$lang('payment.monthCard'),
|
||||||
unit: '月'
|
unit: this.$lang('payment.month')
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'quarter':
|
case 'quarter':
|
||||||
charge_rule_arr.push({
|
charge_rule_arr.push({
|
||||||
'key': key,
|
'key': key,
|
||||||
'value': charge_rule[key],
|
'value': charge_rule[key],
|
||||||
'title': '季卡',
|
'title': this.$lang('payment.quarterCard'),
|
||||||
unit: '季'
|
unit: this.$lang('payment.quarter')
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'year':
|
case 'year':
|
||||||
charge_rule_arr.push({
|
charge_rule_arr.push({
|
||||||
'key': key,
|
'key': key,
|
||||||
'value': charge_rule[key],
|
'value': charge_rule[key],
|
||||||
'title': '年卡',
|
'title': this.$lang('payment.yearCard'),
|
||||||
unit: '年'
|
unit: this.$lang('payment.year')
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -484,20 +484,20 @@ export default {
|
|||||||
if (this.paymentData.is_virtual == 1) {
|
if (this.paymentData.is_virtual == 1) {
|
||||||
if (!this.orderCreateData.member_address.mobile) {
|
if (!this.orderCreateData.member_address.mobile) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入预留手机'
|
title: this.$lang('payment.inputMobile')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!this.$util.verifyMobile(this.orderCreateData.member_address.mobile)) {
|
if (!this.$util.verifyMobile(this.orderCreateData.member_address.mobile)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入正确的手机号'
|
title: this.$lang('payment.inputCorrectMobile')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!this.orderCreateData.delivery || !this.orderCreateData.delivery.delivery_type) {
|
if (!this.orderCreateData.delivery || !this.orderCreateData.delivery.delivery_type) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商家未设置配送方式'
|
title: this.$lang('payment.noDeliveryMethod')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -506,7 +506,7 @@ export default {
|
|||||||
(this.orderCreateData.delivery.delivery_type == 'local' && !this.localMemberAddress)
|
(this.orderCreateData.delivery.delivery_type == 'local' && !this.localMemberAddress)
|
||||||
) {
|
) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请先选择您的收货地址'
|
title: this.$lang('payment.selectAddressFirst')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -514,25 +514,25 @@ export default {
|
|||||||
if (this.orderCreateData.delivery.delivery_type == 'store') {
|
if (this.orderCreateData.delivery.delivery_type == 'store') {
|
||||||
if (!this.orderCreateData.delivery.store_id) {
|
if (!this.orderCreateData.delivery.store_id) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '没有可提货的门店,请选择其他配送方式'
|
title: this.$lang('payment.noPickupStore')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!this.orderCreateData.member_address.mobile) {
|
if (!this.orderCreateData.member_address.mobile) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入预留手机'
|
title: this.$lang('payment.inputMobile')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!this.$util.verifyMobile(this.orderCreateData.member_address.mobile)) {
|
if (!this.$util.verifyMobile(this.orderCreateData.member_address.mobile)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入正确的手机号'
|
title: this.$lang('payment.inputCorrectMobile')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!this.deliveryTime) {
|
if (!this.deliveryTime) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请选择提货时间'
|
title: this.$lang('payment.selectPickupTime')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -541,13 +541,13 @@ export default {
|
|||||||
if (this.orderCreateData.delivery.delivery_type == 'local') {
|
if (this.orderCreateData.delivery.delivery_type == 'local') {
|
||||||
if (!this.orderCreateData.delivery.store_id) {
|
if (!this.orderCreateData.delivery.store_id) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '没有可配送的门店,请选择其他配送方式'
|
title: this.$lang('payment.noDeliveryStore')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.calculateGoodsData.config.local.is_use && this.calculateGoodsData.delivery.local.info.time_is_open == 1 && !this.deliveryTime) {
|
if (this.calculateGoodsData.config.local.is_use && this.calculateGoodsData.delivery.local.info.time_is_open == 1 && !this.deliveryTime) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请选择送达时间'
|
title: this.$lang('payment.selectDeliveryTime')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -837,25 +837,25 @@ export default {
|
|||||||
invoiceVerify() {
|
invoiceVerify() {
|
||||||
if (!this.orderCreateData.invoice_title) {
|
if (!this.orderCreateData.invoice_title) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请填写发票抬头'
|
title: this.$lang('payment.inputInvoiceTitle')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!this.orderCreateData.taxpayer_number && this.orderCreateData.invoice_title_type == 2) {
|
if (!this.orderCreateData.taxpayer_number && this.orderCreateData.invoice_title_type == 2) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请填写纳税人识别号'
|
title: this.$lang('payment.inputTaxpayerNumber')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.orderCreateData.invoice_type == 1 && !this.orderCreateData.invoice_full_address && this.paymentData.is_virtual == 1) {
|
if (this.orderCreateData.invoice_type == 1 && !this.orderCreateData.invoice_full_address && this.paymentData.is_virtual == 1) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请填写发票邮寄地址'
|
title: this.$lang('payment.inputInvoiceAddress')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.orderCreateData.invoice_type == 2 && !this.orderCreateData.invoice_email) {
|
if (this.orderCreateData.invoice_type == 2 && !this.orderCreateData.invoice_email) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请填写邮箱'
|
title: this.$lang('payment.inputEmail')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -863,14 +863,14 @@ export default {
|
|||||||
var reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
|
var reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
|
||||||
if (!reg.test(this.orderCreateData.invoice_email)) {
|
if (!reg.test(this.orderCreateData.invoice_email)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请填写正确的邮箱'
|
title: this.$lang('payment.inputCorrectEmail')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this.orderCreateData.invoice_content) {
|
if (!this.orderCreateData.invoice_content) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请选择发票内容'
|
title: this.$lang('payment.selectInvoiceContent')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -730,7 +730,7 @@ export default {
|
|||||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||||
} else {
|
} else {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '未获取到订单信息!'
|
title: this.$lang('order.noOrderInfo')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_order/list');
|
this.$util.redirectTo('/pages_order/list');
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
:src="$util.img('public/uniapp/order/order-icon-close.png')" />
|
:src="$util.img('public/uniapp/order/order-icon-close.png')" />
|
||||||
<view class="status-name">
|
<view class="status-name">
|
||||||
<view class="status-name">
|
<view class="status-name">
|
||||||
{{ orderData.order_status == 0 ? '待支付' : orderData.order_status == 1 ? '已完成' :
|
{{ orderData.order_status == 0 ? $lang('order.waitPay') : orderData.order_status == 1 ? $lang('order.completed') :
|
||||||
orderData.order_status == -1 ? '已关闭' : '' }}
|
orderData.order_status == -1 ? $lang('order.closed') : '' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -200,7 +200,7 @@ export default {
|
|||||||
JSON.parse(this.orderData.delivery_store_info);
|
JSON.parse(this.orderData.delivery_store_info);
|
||||||
} else {
|
} else {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '未获取到订单信息!'
|
title: this.$lang('order.noOrderInfo')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_order/list');
|
this.$util.redirectTo('/pages_order/list');
|
||||||
@@ -221,8 +221,8 @@ export default {
|
|||||||
},
|
},
|
||||||
orderClose() {
|
orderClose() {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '确定关闭此次兑换?',
|
content: this.$lang('point.confirmClose'),
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
@@ -233,7 +233,7 @@ export default {
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.code >= 0) {
|
if (res.code >= 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '关闭成功'
|
title: this.$lang('point.closeSuccess')
|
||||||
});
|
});
|
||||||
this.getOrderData();
|
this.getOrderData();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ export default {
|
|||||||
this.pay();
|
this.pay();
|
||||||
} else {
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '商家已将支付金额调整为' + orderData.pay_money + '元,是否继续支付?',
|
content: this.$lang('order.payAmountAdjusted', { amount: orderData.pay_money }),
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.pay();
|
this.pay();
|
||||||
@@ -43,8 +43,8 @@ export default {
|
|||||||
*/
|
*/
|
||||||
orderClose(order_id, callback) {
|
orderClose(order_id, callback) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '您确定要关闭该订单吗?',
|
content: this.$lang('order.confirmCloseOrder'),
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
@@ -57,8 +57,7 @@ export default {
|
|||||||
typeof callback == 'function' && callback();
|
typeof callback == 'function' && callback();
|
||||||
} else {
|
} else {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '当前订单可能存在拼团,维权等操作,' + res.message +
|
title: this.$lang('order.cannotCloseOrder', { message: res.message }),
|
||||||
'不可以关闭哦!',
|
|
||||||
duration: 2000
|
duration: 2000
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -77,8 +76,8 @@ export default {
|
|||||||
// 如果不在微信小程序中
|
// 如果不在微信小程序中
|
||||||
// #ifndef MP-WEIXIN
|
// #ifndef MP-WEIXIN
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '您确定已经收到货物了吗?',
|
content: this.$lang('order.confirmReceived'),
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
@@ -172,8 +171,8 @@ export default {
|
|||||||
// 如果不在微信小程序中
|
// 如果不在微信小程序中
|
||||||
// #ifndef MP-WEIXIN
|
// #ifndef MP-WEIXIN
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '您确定要进行收货吗?',
|
content: this.$lang('order.confirmTakeDelivery'),
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ export default {
|
|||||||
*/
|
*/
|
||||||
cancleRefund(order_goods_id, callback) {
|
cancleRefund(order_goods_id, callback) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: '撤销之后本次申请将会关闭,如后续仍有问题可再次发起申请。',
|
content: this.$lang('order.cancelRefundConfirm'),
|
||||||
cancelText: '暂不撤销',
|
cancelText: this.$lang('order.notCancelYet'),
|
||||||
cancelColor: '#898989',
|
cancelColor: '#898989',
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-if="list.length == 0 && emptyShow">
|
<block v-if="list.length == 0 && emptyShow">
|
||||||
<ns-empty text="暂无数据" :isIndex="false"></ns-empty>
|
<ns-empty :text="$lang('fenxiao.emptyData')" :isIndex="false"></ns-empty>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cart-empty"><ns-empty text="暂无订单" :isIndex="false"
|
<view class="cart-empty"><ns-empty :text="$lang('fenxiao.emptyOrder')" :isIndex="false"
|
||||||
v-if="orderList.length == 0 && emptyShow"></ns-empty></view>
|
v-if="orderList.length == 0 && emptyShow"></ns-empty></view>
|
||||||
</view>
|
</view>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<block v-if="teamList.length == 0 && emptyShow"><ns-empty text="暂无数据" :isIndex="false"></ns-empty>
|
<block v-if="teamList.length == 0 && emptyShow"><ns-empty :text="$lang('fenxiao.emptyData')" :isIndex="false"></ns-empty>
|
||||||
</block>
|
</block>
|
||||||
</block>
|
</block>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
@@ -89,11 +89,11 @@ export default {
|
|||||||
return {
|
return {
|
||||||
levelList: [
|
levelList: [
|
||||||
{
|
{
|
||||||
name: '一级',
|
name: this.$lang('fenxiao.firstLevel'),
|
||||||
level: 1
|
level: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '二级',
|
name: this.$lang('fenxiao.secondLevel'),
|
||||||
level: 2
|
level: 2
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!this.addonIsExist.fenxiao) {
|
if (!this.addonIsExist.fenxiao) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商家未开启分销',
|
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||||
mask: true,
|
mask: true,
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -175,7 +175,7 @@
|
|||||||
verify() {
|
verify() {
|
||||||
if (this.withdrawMoney == '' || this.withdrawMoney < 0 || isNaN(parseFloat(this.withdrawMoney))) {
|
if (this.withdrawMoney == '' || this.withdrawMoney < 0 || isNaN(parseFloat(this.withdrawMoney))) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入提现金额'
|
title: this.$lang('fenxiao.inputWithdrawAmount')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -186,14 +186,14 @@
|
|||||||
}
|
}
|
||||||
if (parseFloat(this.withdrawMoney) > 0 && (parseFloat(this.withdrawMoney) > parseFloat(money))) {
|
if (parseFloat(this.withdrawMoney) > 0 && (parseFloat(this.withdrawMoney) > parseFloat(money))) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '提现金额超出可提现金额'
|
title: this.$lang('fenxiao.withdrawAmountExceed')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (parseFloat(this.withdrawMoney) > 0 && (parseFloat(this.withdrawMoney) < parseFloat(this
|
if (parseFloat(this.withdrawMoney) > 0 && (parseFloat(this.withdrawMoney) < parseFloat(this
|
||||||
.withdrawConfigInfo.withdraw))) {
|
.withdrawConfigInfo.withdraw))) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '提现金额小于最低提现金额'
|
title: this.$lang('fenxiao.withdrawAmountBelowMin')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -202,7 +202,7 @@
|
|||||||
withdraw() {
|
withdraw() {
|
||||||
if (!this.bankAccountInfo.withdraw_type && !this.isBalance) {
|
if (!this.bankAccountInfo.withdraw_type && !this.isBalance) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请先添加提现方式'
|
title: this.$lang('fenxiao.pleaseAddWithdrawMethod')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.code >= 0) {
|
if (res.code >= 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '提现申请成功'
|
title: this.$lang('fenxiao.withdrawApplySuccess')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_promotion/fenxiao/withdraw_list', {},
|
this.$util.redirectTo('/pages_promotion/fenxiao/withdraw_list', {},
|
||||||
@@ -270,7 +270,7 @@
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.code >= 0) {
|
if (res.code >= 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '提现申请成功'
|
title: this.$lang('fenxiao.withdrawApplySuccess')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_promotion/fenxiao/withdraw_list', {},
|
this.$util.redirectTo('/pages_promotion/fenxiao/withdraw_list', {},
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
<view class="detailed-item" v-for="(item, index) in withdrawList" :key="index"
|
<view class="detailed-item" v-for="(item, index) in withdrawList" :key="index"
|
||||||
@click="toDetail(item.id)">
|
@click="toDetail(item.id)">
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="event">{{ item.transfer_type == 'balance' && '余额' ||
|
<view class="event">{{ item.transfer_type == 'balance' ? $lang('fenxiao.balance') :
|
||||||
item.transfer_type == 'alipay' && '支付宝' || item.transfer_type == 'bank' && '银行卡' ||
|
item.transfer_type == 'alipay' ? $lang('fenxiao.alipay') : item.transfer_type == 'bank' ? $lang('fenxiao.bankCard') :
|
||||||
item.transfer_type =='wechatpay'&&'微信' }}</view>
|
item.transfer_type =='wechatpay' ? $lang('fenxiao.wechat') : '' }}</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="time">{{ $util.timeStampTurnTime(item.create_time) }}</text>
|
<text class="time">{{ $util.timeStampTurnTime(item.create_time) }}</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<ns-empty :isIndex="false" text="暂无提现记录"></ns-empty>
|
<ns-empty :isIndex="false" :text="$lang('fenxiao.emptyWithdrawRecord')"></ns-empty>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
@@ -42,19 +42,19 @@ export default {
|
|||||||
withdrawState: {
|
withdrawState: {
|
||||||
'3': {
|
'3': {
|
||||||
color: 'color: rgb(255, 69, 68)',
|
color: 'color: rgb(255, 69, 68)',
|
||||||
text: '已转账'
|
text: this.$lang('fenxiao.transferred')
|
||||||
},
|
},
|
||||||
'1': {
|
'1': {
|
||||||
color: 'color: rgb(255, 160, 68)',
|
color: 'color: rgb(255, 160, 68)',
|
||||||
text: '待审核'
|
text: this.$lang('fenxiao.pendingAudit')
|
||||||
},
|
},
|
||||||
'2': {
|
'2': {
|
||||||
color: 'color: rgb(17, 189, 100)',
|
color: 'color: rgb(17, 189, 100)',
|
||||||
text: '已审核'
|
text: this.$lang('fenxiao.audited')
|
||||||
},
|
},
|
||||||
'-1': {
|
'-1': {
|
||||||
color: 'color: rgb(255, 69, 68)',
|
color: 'color: rgb(255, 69, 68)',
|
||||||
text: '已拒绝'
|
text: this.$lang('fenxiao.rejected')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
withdrawList: [],
|
withdrawList: [],
|
||||||
@@ -65,7 +65,7 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!this.addonIsExist.fenxiao) {
|
if (!this.addonIsExist.fenxiao) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商家未开启分销',
|
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||||
mask: true,
|
mask: true,
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -258,7 +258,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="goodsList.length == 0 && emptyShow"><ns-empty text="暂无商品"></ns-empty></view>
|
<view v-if="goodsList.length == 0 && emptyShow"><ns-empty :text="$lang('merch.emptyGoods')"></ns-empty></view>
|
||||||
</block>
|
</block>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
|
|
||||||
|
|||||||
@@ -123,14 +123,14 @@ export default {
|
|||||||
if (this.goodsData.id) {
|
if (this.goodsData.id) {
|
||||||
this.isAWait = true;
|
this.isAWait = true;
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: '编辑商品'
|
title: this.$lang('merch.editGoods')
|
||||||
});
|
});
|
||||||
await this.editGetGoodsInfo();
|
await this.editGetGoodsInfo();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.isAWait = false;
|
this.isAWait = false;
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: '添加商品'
|
title: this.$lang('merch.addGoods')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ export default {
|
|||||||
if(res.result.detail){
|
if(res.result.detail){
|
||||||
this.goodsData = res.result.detail
|
this.goodsData = res.result.detail
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商品不存在',
|
title: this.$lang('merch.goodsNotExist'),
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_goods/list', {}, 'redirectTo');
|
this.$util.redirectTo('/pages_goods/list', {}, 'redirectTo');
|
||||||
@@ -265,7 +265,7 @@ export default {
|
|||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
} else {
|
} else {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商品不存在',
|
title: this.$lang('merch.goodsNotExist'),
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_goods/list', {}, 'redirectTo');
|
this.$util.redirectTo('/pages_goods/list', {}, 'redirectTo');
|
||||||
@@ -493,7 +493,7 @@ export default {
|
|||||||
addShopCategory() {
|
addShopCategory() {
|
||||||
if (this.shopCategoryNumber == 10) {
|
if (this.shopCategoryNumber == 10) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商品可以属于多个分类,最多10个'
|
title: this.$lang('merch.maxCategoryLimit')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -568,21 +568,21 @@ export default {
|
|||||||
|
|
||||||
if (this.goodsData.goodsname.length == 0) {
|
if (this.goodsData.goodsname.length == 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入商品名称'
|
title: this.$lang('merch.inputGoodsName')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.goodsData.subtitle.length > 100) {
|
if (this.goodsData.subtitle.length > 100) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商品简介不能超过100个字符'
|
title: this.$lang('merch.subtitleMaxLength')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.goodsData.goods_image.length == 0) {
|
if (this.goodsData.goods_image.length == 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请上传商品图片'
|
title: this.$lang('merch.uploadGoodsImage')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -632,7 +632,7 @@ export default {
|
|||||||
if (this.goodsData.price == 0) {
|
if (this.goodsData.price == 0) {
|
||||||
|
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入销售价'
|
title: this.$lang('merch.inputPrice')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -655,26 +655,26 @@ export default {
|
|||||||
// 总库存
|
// 总库存
|
||||||
if (this.goodsData.total == 0) {
|
if (this.goodsData.total == 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入库存'
|
title: this.$lang('merch.inputStock')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNaN(this.goodsData.total) || !this.$util.data().regExp.number.test(this.goodsData.total)) {
|
if (isNaN(this.goodsData.total) || !this.$util.data().regExp.number.test(this.goodsData.total)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '[库存]格式输入错误'
|
title: this.$lang('merch.stockFormatError')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (isNaN(this.goodsData.goods_start_count) || !this.$util.data().regExp.number.test(this.goodsData.goods_start_count)) {
|
if (isNaN(this.goodsData.goods_start_count) || !this.$util.data().regExp.number.test(this.goodsData.goods_start_count)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '[起售]格式输入错误'
|
title: this.$lang('merch.startCountFormatError')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.goodsData.goods_start_count < 0) {
|
if (this.goodsData.goods_start_count < 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '起售数量不能小于0'
|
title: this.$lang('merch.startCountNotNegative')
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ export default {
|
|||||||
this.getMerch()
|
this.getMerch()
|
||||||
}else{
|
}else{
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title:'提示',
|
title: this.$lang('common.tip'),
|
||||||
content:'商家不存在',
|
content: this.$lang('merch.merchantNotExist'),
|
||||||
showCancel:false,
|
showCancel:false,
|
||||||
success(e){
|
success(e){
|
||||||
uni.navigateBack({})
|
uni.navigateBack({})
|
||||||
@@ -120,7 +120,7 @@ export default {
|
|||||||
* 转发分享
|
* 转发分享
|
||||||
*/
|
*/
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
var title = '搜索到' + this.count + '件“' + this.keyword + this.category_title + this.coupon_name + '”相关的优质商品';
|
var title = this.$lang('merch.searchResultCount', { count: this.count, keyword: this.keyword + this.category_title + this.coupon_name });'”相关的优质商品';
|
||||||
let route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
let route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||||
var path = route.path;
|
var path = route.path;
|
||||||
return {
|
return {
|
||||||
@@ -134,7 +134,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 分享到微信朋友圈
|
// 分享到微信朋友圈
|
||||||
onShareTimeline() {
|
onShareTimeline() {
|
||||||
var title = '搜索到' + this.count + '件“' + this.keyword + this.category_title + this.coupon_name + '”相关的优质商品';
|
var title = this.$lang('merch.searchResultCount', { count: this.count, keyword: this.keyword + this.category_title + this.coupon_name });'”相关的优质商品';
|
||||||
let route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
let route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||||
var query = route.query;
|
var query = route.query;
|
||||||
return {
|
return {
|
||||||
@@ -336,26 +336,26 @@ export default {
|
|||||||
// }
|
// }
|
||||||
if (!Number(this.maxPrice) && this.maxPrice) {
|
if (!Number(this.maxPrice) && this.maxPrice) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '请输入最高价'
|
title: this.$lang('merch.inputMaxPrice')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Number(this.minPrice) < 0 || Number(this.maxPrice) < 0) {
|
if (Number(this.minPrice) < 0 || Number(this.maxPrice) < 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '筛选价格不能小于0'
|
title: this.$lang('merch.priceNotNegative')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.minPrice != '' && Number(this.minPrice) > Number(this.maxPrice) && this.maxPrice) {
|
if (this.minPrice != '' && Number(this.minPrice) > Number(this.maxPrice) && this.maxPrice) {
|
||||||
|
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '最低价不能大于最高价'
|
title: this.$lang('merch.minNotGreaterMax')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.maxPrice != '' && Number(this.maxPrice) < Number(this.minPrice)) {
|
if (this.maxPrice != '' && Number(this.maxPrice) < Number(this.minPrice)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '最高价不能小于最低价'
|
title: this.$lang('merch.maxNotLessMin')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ export default {
|
|||||||
imageUrl = this.pointInfo.image;
|
imageUrl = this.pointInfo.image;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
title = '仅需' + this.pointInfo.point + '积分即可兑换' + title;
|
title = this.$lang('point.exchangeWithPoints', { points: this.pointInfo.point }) + title;
|
||||||
imageUrl = this.$util.img(imageUrl);
|
imageUrl = this.$util.img(imageUrl);
|
||||||
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||||
var path = route.path;
|
var path = route.path;
|
||||||
@@ -322,7 +322,7 @@ export default {
|
|||||||
imageUrl = this.pointInfo.image;
|
imageUrl = this.pointInfo.image;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
title = '仅需' + this.pointInfo.point + '积分即可兑换' + title;
|
title = this.$lang('point.exchangeWithPoints', { points: this.pointInfo.point }) + title;
|
||||||
imageUrl = this.$util.img(imageUrl);
|
imageUrl = this.$util.img(imageUrl);
|
||||||
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||||
var query = route.query;
|
var query = route.query;
|
||||||
|
|||||||
@@ -285,26 +285,26 @@ export default {
|
|||||||
// }
|
// }
|
||||||
if (!Number(this.maxPoint) && this.maxPoint) {
|
if (!Number(this.maxPoint) && this.maxPoint) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: this.isEnEnv ? 'Please enter the maximum price' : '请输入最高价'
|
title: this.isEnEnv ? 'Please enter the maximum price' : this.$lang('point.inputMaxPrice')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Number(this.minPoint) < 0 || Number(this.maxPoint) < 0) {
|
if (Number(this.minPoint) < 0 || Number(this.maxPoint) < 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: this.isEnEnv ? 'Filter price cannot be less than 0' : '筛选价格不能小于0'
|
title: this.isEnEnv ? 'Filter price cannot be less than 0' : this.$lang('point.priceNotNegative')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.minPoint != '' && Number(this.minPoint) > Number(this.maxPoint) && this.maxPoint) {
|
if (this.minPoint != '' && Number(this.minPoint) > Number(this.maxPoint) && this.maxPoint) {
|
||||||
|
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: this.isEnEnv ? 'Minimum price cannot be greater than maximum price' : '最低价不能大于最高价'
|
title: this.isEnEnv ? 'Minimum price cannot be greater than maximum price' : this.$lang('point.minNotGreaterMax')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.maxPoint != '' && Number(this.maxPoint) < Number(this.minPoint)) {
|
if (this.maxPoint != '' && Number(this.maxPoint) < Number(this.minPoint)) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: this.isEnEnv ? 'Maximum price cannot be less than minimum price' : '最高价不能小于最低价'
|
title: this.isEnEnv ? 'Maximum price cannot be less than minimum price' : this.$lang('point.maxNotLessMin')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="empty-wrap"><ns-empty text="暂无文章" :isIndex="false"></ns-empty></view>
|
<view v-else class="empty-wrap"><ns-empty :text="$lang('article.emptyArticle')" :isIndex="false"></ns-empty></view>
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
</block>
|
</block>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
@@ -88,7 +88,7 @@ export default {
|
|||||||
setPublicShare() {
|
setPublicShare() {
|
||||||
let shareUrl = this.$config.h5Domain + '/pages_tool/article/list';
|
let shareUrl = this.$config.h5Domain + '/pages_tool/article/list';
|
||||||
this.$util.setPublicShare({
|
this.$util.setPublicShare({
|
||||||
title: '文章列表',
|
title: this.$lang('article.articleList'),
|
||||||
desc: '',
|
desc: '',
|
||||||
link: shareUrl,
|
link: shareUrl,
|
||||||
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
|
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
|
||||||
@@ -96,7 +96,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
var title = '文章列表';
|
var title = this.$lang('article.articleList');
|
||||||
var path = '/pages_tool/article/list';
|
var path = '/pages_tool/article/list';
|
||||||
return {
|
return {
|
||||||
title: title,
|
title: title,
|
||||||
@@ -107,7 +107,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//分享到朋友圈
|
//分享到朋友圈
|
||||||
onShareTimeline() {
|
onShareTimeline() {
|
||||||
var title = '文章列表';
|
var title = this.$lang('article.articleList');
|
||||||
var query = '/pages_tool/article/list';
|
var query = '/pages_tool/article/list';
|
||||||
return {
|
return {
|
||||||
title: title,
|
title: title,
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ export default {
|
|||||||
uni.setClipboardData({
|
uni.setClipboardData({
|
||||||
data: text,
|
data: text,
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.showToast({ title: "复制成功", icon: "success", duration: 2000 });
|
uni.showToast({ title: this.$lang("common.copySuccess"), icon: "success", duration: 2000 });
|
||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ export default {
|
|||||||
this.currentVideo = video;
|
this.currentVideo = video;
|
||||||
this.$refs.videoPlayerPopup.open();
|
this.$refs.videoPlayerPopup.open();
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({ title: '视频地址不存在', icon: 'none' });
|
uni.showToast({ title: this.$lang('contact.videoNotFound'), icon: 'none' });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<view>
|
<view>
|
||||||
<view class="search-wrap uni-flex uni-row">
|
<view class="search-wrap uni-flex uni-row">
|
||||||
<view class="flex-item input-wrap">
|
<view class="flex-item input-wrap">
|
||||||
<input class="uni-input" maxlength="50" placeholder="请输入您要搜索的文件名称" v-model="keyword" @confirm="search"
|
<input class="uni-input" maxlength="50" :placeholder="$lang('files.searchPlaceholder')" v-model="keyword" @confirm="search"
|
||||||
@input="__set_model($event, 'keyword')" />
|
@input="__set_model($event, 'keyword')" />
|
||||||
<text class="iconfont icon-sousuo3" @tap="search"></text>
|
<text class="iconfont icon-sousuo3" @tap="search"></text>
|
||||||
</view>
|
</view>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<view class="info-wrap">
|
<view class="info-wrap">
|
||||||
<view class="title">{{ item.$orig.files_title }}</view>
|
<view class="title">{{ item.$orig.files_title }}</view>
|
||||||
<view class="read-wrap">
|
<view class="read-wrap">
|
||||||
<text>查看PDF文件</text>
|
<text>{{ $lang('files.viewPdf') }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<view class="empty-wrap">
|
<view class="empty-wrap">
|
||||||
<ns-empty text="暂无文件" :isIndex="false"></ns-empty>
|
<ns-empty :text="$lang('files.emptyFiles')" :isIndex="false"></ns-empty>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
@@ -116,7 +116,7 @@ export default {
|
|||||||
},
|
},
|
||||||
toDetail(item) {
|
toDetail(item) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '正在加载'
|
title: this.$lang('files.loading')
|
||||||
})
|
})
|
||||||
try {
|
try {
|
||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
@@ -141,7 +141,7 @@ export default {
|
|||||||
complete: res => {
|
complete: res => {
|
||||||
if (res.statusCode === 404) {
|
if (res.statusCode === 404) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '文件不存在',
|
title: this.$lang('files.fileNotExist'),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
<image :src="$util.img('public/uniapp/form/banner.png')" mode="widthFix"></image>
|
<image :src="$util.img('public/uniapp/form/banner.png')" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="system-form-wrap">
|
<view class="system-form-wrap">
|
||||||
<view class="form-title">请填写表单所需信息</view>
|
<view class="form-title">{{ $lang('form.fillFormInfo') }}</view>
|
||||||
<ns-form :data="detail.json_data" :formConfig="detail.form_config" ref="form"></ns-form>
|
<ns-form :data="detail.json_data" :formConfig="detail.form_config" ref="form"></ns-form>
|
||||||
<button type="primary" size="mini" class="button mini" @click="create()">提交</button>
|
<button type="primary" size="mini" class="button mini" @click="create()">提交</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<ns-empty :text="complete ? '提交成功' : '未获取到表单信息'" v-else></ns-empty>
|
<ns-empty :text="complete ? $lang('form.submitSuccess') : $lang('form.noFormData')" v-else></ns-empty>
|
||||||
|
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
<ns-login ref="login"></ns-login>
|
<ns-login ref="login"></ns-login>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
},
|
},
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$util.showToast({ title: '提交成功' })
|
this.$util.showToast({ title: this.$lang('form.submitSuccess') })
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.complete = true;
|
this.complete = true;
|
||||||
this.detail = null;
|
this.detail = null;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<ns-empty :text="complete ? '提交成功' : '未获取到表单信息'" :isIndex="false"></ns-empty>
|
<ns-empty :text="complete ? $lang('form.submitSuccess') : $lang('form.noFormData')" :isIndex="false"></ns-empty>
|
||||||
</block>
|
</block>
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
<ns-login ref="login"></ns-login>
|
<ns-login ref="login"></ns-login>
|
||||||
@@ -61,15 +61,15 @@ export default {
|
|||||||
show_banner: this.detail.show_banner,
|
show_banner: this.detail.show_banner,
|
||||||
form_banner: this.detail.form_banner || 'public/uniapp/form/banner.png',
|
form_banner: this.detail.form_banner || 'public/uniapp/form/banner.png',
|
||||||
show_tip: this.detail.show_tip,
|
show_tip: this.detail.show_tip,
|
||||||
form_tip: this.detail.form_tip || '请填写表单所需信息'
|
form_tip: this.detail.form_tip || this.$lang('form.fillFormInfo')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
if (!options.uniacid) {
|
if (!options.uniacid) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '参数错误',
|
content: this.$lang('form.paramError'),
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
success: () => { }
|
success: () => { }
|
||||||
})
|
})
|
||||||
@@ -162,8 +162,8 @@ export default {
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: this.$lang('common.tip'),
|
||||||
content: '提交成功',
|
content: this.$lang('form.submitSuccess'),
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
success: () => { }
|
success: () => { }
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<view class="item-content" v-for="(s_item, s_index) in item.child_list" :key="s_index" @click="helpDetail(s_item)">{{ s_item.title }}</view>
|
<view class="item-content" v-for="(s_item, s_index) in item.child_list" :key="s_index" @click="helpDetail(s_item)">{{ s_item.title }}</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-else><ns-empty text="暂无帮助信息" :isIndex="false"></ns-empty></block>
|
<block v-else><ns-empty :text="$lang('help.emptyHelp')" :isIndex="false"></ns-empty></block>
|
||||||
|
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ export default {
|
|||||||
setPublicShare() {
|
setPublicShare() {
|
||||||
let shareUrl = this.$config.h5Domain + '/pages_tool/help/list';
|
let shareUrl = this.$config.h5Domain + '/pages_tool/help/list';
|
||||||
this.$util.setPublicShare({
|
this.$util.setPublicShare({
|
||||||
title: '帮助中心',
|
title: this.$lang('help.helpCenter'),
|
||||||
desc: '',
|
desc: '',
|
||||||
link: shareUrl,
|
link: shareUrl,
|
||||||
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
|
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
|
||||||
@@ -78,7 +78,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
var title = '帮助中心使你更加方便';
|
var title = this.$lang('help.helpCenterDesc');
|
||||||
var path = '/pages_tool/help/list';
|
var path = '/pages_tool/help/list';
|
||||||
return {
|
return {
|
||||||
title: title,
|
title: title,
|
||||||
|
|||||||
@@ -224,7 +224,7 @@
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.code >= 0) {
|
if (res.code >= 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '提现申请成功'
|
title: this.$lang('member.withdrawApplySuccess')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_tool/member/withdrawal', {},
|
this.$util.redirectTo('/pages_tool/member/withdrawal', {},
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export default {
|
|||||||
bindDateChange: function (e) {
|
bindDateChange: function (e) {
|
||||||
var temp = e.target.value;
|
var temp = e.target.value;
|
||||||
var tempArr = temp.split('-');
|
var tempArr = temp.split('-');
|
||||||
this.date = tempArr[0] + '年' + tempArr[1] + '月';
|
this.date = tempArr[0] + this.$lang('common.year') + tempArr[1] + this.$lang('common.month');
|
||||||
this.searchType.date = e.target.value;
|
this.searchType.date = e.target.value;
|
||||||
this.$refs.mescroll.refresh();
|
this.$refs.mescroll.refresh();
|
||||||
},
|
},
|
||||||
@@ -135,7 +135,7 @@ export default {
|
|||||||
success: res => {
|
success: res => {
|
||||||
let balanceType = Object.assign(res.balance, res.balance_money),
|
let balanceType = Object.assign(res.balance, res.balance_money),
|
||||||
typeArr = [{
|
typeArr = [{
|
||||||
label: '全部',
|
label: this.$lang('common.all'),
|
||||||
value: '0'
|
value: '0'
|
||||||
}];
|
}];
|
||||||
for (var index in balanceType) {
|
for (var index in balanceType) {
|
||||||
|
|||||||
@@ -208,19 +208,19 @@ export default {
|
|||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
return this.mpShareData?.appMessage || {
|
return this.mpShareData?.appMessage || {
|
||||||
title: '专属会员权益,快来体验',
|
title: this.$lang('member.memberRightsTip'),
|
||||||
path: '/pages_tool/member/card'
|
path: '/pages_tool/member/card'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShareTimeline() {
|
onShareTimeline() {
|
||||||
return this.mpShareData?.timeLine || {
|
return this.mpShareData?.timeLine || {
|
||||||
title: '专属会员权益,快来体验',
|
title: this.$lang('member.memberRightsTip'),
|
||||||
query: '/pages_tool/member/card'
|
query: '/pages_tool/member/card'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onAddToFavorites() {
|
onAddToFavorites() {
|
||||||
return {
|
return {
|
||||||
title: '专属会员权益,快来体验',
|
title: this.$lang('member.memberRightsTip'),
|
||||||
path: '/pages_tool/member/card'
|
path: '/pages_tool/member/card'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
},
|
},
|
||||||
getBannerDetail(index) {
|
getBannerDetail(index) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '将前往详情页面',
|
title: this.$lang('member.goingToDetail'),
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export default {
|
|||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '头像上传失败'
|
title: this.$lang('member.uploadAvatarFailed')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -114,7 +114,7 @@ export default {
|
|||||||
this.memberInfo.headimg = this.imgurl;
|
this.memberInfo.headimg = this.imgurl;
|
||||||
this.$store.commit('setMemberInfo', this.memberInfo);
|
this.$store.commit('setMemberInfo', this.memberInfo);
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '头像修改成功'
|
title: this.$lang('member.avatarModifySuccess')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_tool/member/info', {}, 'redirectTo');
|
this.$util.redirectTo('/pages_tool/member/info', {}, 'redirectTo');
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export default {
|
|||||||
bindDateChange: function(e) {
|
bindDateChange: function(e) {
|
||||||
var temp = e.target.value;
|
var temp = e.target.value;
|
||||||
var tempArr = temp.split('-');
|
var tempArr = temp.split('-');
|
||||||
this.date = tempArr[0] + '年' + tempArr[1] + '月';
|
this.date = tempArr[0] + this.$lang('common.year') + tempArr[1] + this.$lang('common.month');
|
||||||
this.searchType.date = e.target.value;
|
this.searchType.date = e.target.value;
|
||||||
this.$refs.mescroll.refresh();
|
this.$refs.mescroll.refresh();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export default {
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: "删除成功"
|
title: this.$lang('collection.deleteSuccess')
|
||||||
})
|
})
|
||||||
let array = this.collectionList;
|
let array = this.collectionList;
|
||||||
let newArray = array.filter((v) => {
|
let newArray = array.filter((v) => {
|
||||||
|
|||||||
@@ -98,12 +98,12 @@ export default {
|
|||||||
filePath: res.tempFilePath,
|
filePath: res.tempFilePath,
|
||||||
success: () => {
|
success: () => {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: "保存成功"
|
title: this.$lang('member.saveSuccess')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: "保存失败,请稍后重试"
|
title: this.$lang('member.saveFailed')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default {
|
|||||||
setTimeout( () => {
|
setTimeout( () => {
|
||||||
if (!this.addonIsExist.membersignin) {
|
if (!this.addonIsExist.membersignin) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商家未开启会员签到',
|
title: this.$lang('member.merchantNotOpenSignin'),
|
||||||
mask: true,
|
mask: true,
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
@@ -198,7 +198,7 @@ export default {
|
|||||||
sign() {
|
sign() {
|
||||||
if (this.signState == 0) {
|
if (this.signState == 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '签到未开启'
|
title: this.$lang('member.signinNotEnabled')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,8 +233,8 @@ export default {
|
|||||||
let shareUrl = this.$config.h5Domain + '/pages_tool/member/signin';
|
let shareUrl = this.$config.h5Domain + '/pages_tool/member/signin';
|
||||||
|
|
||||||
this.$util.setPublicShare({
|
this.$util.setPublicShare({
|
||||||
title: '签到有礼',
|
title: this.$lang('member.signinGift'),
|
||||||
desc: '天天签到,积分好礼送不停',
|
desc: this.$lang('member.signinGiftDesc'),
|
||||||
link: shareUrl,
|
link: shareUrl,
|
||||||
imgUrl: ''
|
imgUrl: ''
|
||||||
},
|
},
|
||||||
@@ -265,7 +265,7 @@ export default {
|
|||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
var path = '/pages_tool/member/signin';
|
var path = '/pages_tool/member/signin';
|
||||||
return {
|
return {
|
||||||
title: '签到有礼,天天签到,积分好礼送不停',
|
title: this.$lang('member.signinGift') + ',' + this.$lang('member.signinGiftDesc'),
|
||||||
imageUrl: '',
|
imageUrl: '',
|
||||||
path: path,
|
path: path,
|
||||||
success: res => {},
|
success: res => {},
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="cart-empty"><ns-empty text="暂无公告" :isIndex="false"></ns-empty></view>
|
<view v-else class="cart-empty"><ns-empty :text="$lang('notice.emptyNotice')" :isIndex="false"></ns-empty></view>
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
</block>
|
</block>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
@@ -77,7 +77,7 @@ export default {
|
|||||||
setPublicShare() {
|
setPublicShare() {
|
||||||
let shareUrl = this.$config.h5Domain + '/pages_tool/notice/list';
|
let shareUrl = this.$config.h5Domain + '/pages_tool/notice/list';
|
||||||
this.$util.setPublicShare({
|
this.$util.setPublicShare({
|
||||||
title: '公告',
|
title: this.$lang('notice.title'),
|
||||||
desc: '',
|
desc: '',
|
||||||
link: shareUrl,
|
link: shareUrl,
|
||||||
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
|
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
|
||||||
@@ -85,7 +85,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
var title = '公告';
|
var title = this.$lang('notice.title');
|
||||||
var path = '/pages_tool/notice/list';
|
var path = '/pages_tool/notice/list';
|
||||||
return {
|
return {
|
||||||
title: title,
|
title: title,
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export default {
|
|||||||
this.cancleRefund(data.order_goods_id, res => {
|
this.cancleRefund(data.order_goods_id, res => {
|
||||||
if (res.code >= 0) {
|
if (res.code >= 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '撤销成功'
|
title: this.$lang('refund.cancelSuccess')
|
||||||
});
|
});
|
||||||
this.$refs.mescroll.refresh();
|
this.$refs.mescroll.refresh();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: "未获取到订单数据"
|
title: this.$lang('evaluate.noOrderData')
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_order/list', {}, "redirectTo");
|
this.$util.redirectTo('/pages_order/list', {}, "redirectTo");
|
||||||
@@ -157,7 +157,7 @@ export default {
|
|||||||
save() {
|
save() {
|
||||||
if (this.evaluateConfig.evaluate_status == 0) {
|
if (this.evaluateConfig.evaluate_status == 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: "商家未开启商品评价功能"
|
title: this.$lang('evaluate.notEnabled')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -165,14 +165,14 @@ export default {
|
|||||||
if (this.isEvaluate) {
|
if (this.isEvaluate) {
|
||||||
if (!this.goodsEvalList[i].again_content.trim().length) {
|
if (!this.goodsEvalList[i].again_content.trim().length) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: "商品的评价不能为空哦"
|
title: this.$lang('evaluate.contentRequired')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!this.goodsEvalList[i].content.trim().length) {
|
if (!this.goodsEvalList[i].content.trim().length) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: "商品的评价不能为空哦"
|
title: this.$lang('evaluate.contentRequired')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -197,7 +197,7 @@ export default {
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: "评价成功"
|
title: this.$lang('evaluate.evaluateSuccess')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_order/list', {}, "redirectTo");
|
this.$util.redirectTo('/pages_order/list', {}, "redirectTo");
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ export default {
|
|||||||
*/
|
*/
|
||||||
cancleRefund(order_goods_id, callback) {
|
cancleRefund(order_goods_id, callback) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: '撤销之后本次申请将会关闭,如后续仍有问题可再次发起申请。',
|
content: this.$lang('refund.cancelConfirm'),
|
||||||
cancelText: '暂不撤销',
|
cancelText: this.$lang('refund.notCancelNow'),
|
||||||
cancelColor: '#898989',
|
cancelColor: '#898989',
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<textarea
|
<textarea
|
||||||
v-if="!showText"
|
v-if="!showText"
|
||||||
class="newText"
|
class="newText"
|
||||||
placeholder="请输入退款说明(选填)"
|
:placeholder="$lang('refund.refundRemark')"
|
||||||
placeholder-class="color-tip font-size-tag"
|
placeholder-class="color-tip font-size-tag"
|
||||||
:auto-height="true"
|
:auto-height="true"
|
||||||
v-model="refund_remark"
|
v-model="refund_remark"
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 -->
|
||||||
<textarea
|
<textarea
|
||||||
class="newText"
|
class="newText"
|
||||||
placeholder="请输入退款说明(选填)"
|
:placeholder="$lang('refund.refundRemark')"
|
||||||
@blur="textBlur()"
|
@blur="textBlur()"
|
||||||
placeholder-class="color-tip font-size-tag"
|
placeholder-class="color-tip font-size-tag"
|
||||||
:auto-height="true"
|
:auto-height="true"
|
||||||
@@ -164,7 +164,7 @@ export default {
|
|||||||
this.refund_data = res.data;
|
this.refund_data = res.data;
|
||||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||||
} else {
|
} else {
|
||||||
this.$util.showToast({ title: '未获取到该订单项退款信息' });
|
this.$util.showToast({ title: this.$lang('refund.noRefundData') });
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_order/list');
|
this.$util.redirectTo('/pages_order/list');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
@@ -241,7 +241,7 @@ export default {
|
|||||||
},
|
},
|
||||||
verify() {
|
verify() {
|
||||||
if (this.refund_reason == '') {
|
if (this.refund_reason == '') {
|
||||||
this.$util.showToast({ title: '请选择退款原因' });
|
this.$util.showToast({ title: this.$lang('refund.selectRefundReason') });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
this.getGoodsInfo()
|
this.getGoodsInfo()
|
||||||
} else{
|
} else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'未查找到订单信息',
|
title: this.$lang('refund.noOrderGoodsInfo'),
|
||||||
icon:'none'
|
icon:'none'
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||||
} else {
|
} else {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '未获取到该订单项退款信息'
|
title: this.$lang('refund.noRefundData')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo('/pages_order/list');
|
this.$util.redirectTo('/pages_order/list');
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export default {
|
|||||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||||
} else {
|
} else {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '未获取到支付信息!'
|
title: this.$lang('pay.noPayInfo')
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-body">
|
<view class="order-body">
|
||||||
<view class="goods_info_flex"><view class="goods-name font-size-base">充值成功</view></view>
|
<view class="goods_info_flex"><view class="goods-name font-size-base">{{ $lang('recharge.rechargeSuccess') }}</view></view>
|
||||||
|
|
||||||
<view class="goods-img color-base-text">
|
<view class="goods-img color-base-text">
|
||||||
¥
|
¥
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<view v-else><ns-empty :isIndex="false" text="暂无充值记录"></ns-empty></view>
|
<view v-else><ns-empty :isIndex="false" :text="$lang('recharge.emptyRechargeRecord')"></ns-empty></view>
|
||||||
</block>
|
</block>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
<loading-cover ref="loadingCover"></loading-cover>
|
<loading-cover ref="loadingCover"></loading-cover>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: "搜索结果",
|
title: this.$lang("seal.searchResult"),
|
||||||
info: {},
|
info: {},
|
||||||
list: [],
|
list: [],
|
||||||
keyword: "",
|
keyword: "",
|
||||||
@@ -103,7 +103,7 @@ export default {
|
|||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.$util.showToast({ title: '下载失败' });
|
this.$util.showToast({ title: this.$lang('seal.downloadFail') });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,13 +38,13 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
textVal() {
|
textVal() {
|
||||||
return '该店铺已打烊...';
|
return this.$lang('storeclose.storeClosed');
|
||||||
},
|
},
|
||||||
pageVal() {
|
pageVal() {
|
||||||
if (this.$store.state.siteState == -2) {
|
if (this.$store.state.siteState == -2) {
|
||||||
return '店铺不存在';
|
return this.$lang('storeclose.storeNotExist');
|
||||||
} else if (this.$store.state.siteState == -3) {
|
} else if (this.$store.state.siteState == -3) {
|
||||||
return '店铺打烊';
|
return this.$lang('storeclose.storeClosed');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
this.outTradeNo = option.merchant_trade_no;
|
this.outTradeNo = option.merchant_trade_no;
|
||||||
this.getOrderDetailPath();
|
this.getOrderDetailPath();
|
||||||
}else{
|
}else{
|
||||||
this.errorMsg = '缺少merchant_trade_no参数';
|
this.errorMsg = this.$lang('weapp.missingMerchantTradeNo');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.code < 0) {
|
if (res.code < 0) {
|
||||||
this.errorMsg = res.message || '未知错误';
|
this.errorMsg = res.message || this.$lang('weapp.unknownError');
|
||||||
}else{
|
}else{
|
||||||
this.$util.redirectTo(res.data);
|
this.$util.redirectTo(res.data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user