Browse Source

多语言配置

master
xh-pan1 1 year ago
parent
commit
6eabee8873
  1. 4
      src/components/base/aftersaleList.vue
  2. 4
      src/components/base/deleteGoods.vue
  3. 12
      src/components/base/orderList.vue
  4. 2
      src/components/base/topNav.vue
  5. 8
      src/components/orderInfo/addAddress.vue
  6. 6
      src/components/userCenter/changeAddress.vue
  7. 118
      src/locales/en.json
  8. 125
      src/locales/zh-CN.json
  9. 2
      src/main.js
  10. 16
      src/views/afterSale/index.vue
  11. 21
      src/views/login/login.vue
  12. 2
      src/views/orderDetail/components/expressInfo.vue
  13. 4
      src/views/orderDetail/components/orderInfo.vue
  14. 30
      src/views/orderDetail/components/status.vue
  15. 12
      src/views/orderDetail/index.vue
  16. 4
      src/views/product/components/productAnswer.vue
  17. 4
      src/views/shopping-trolley/deleteGoods.vue
  18. 2
      src/views/shopping-trolley/index.vue
  19. 6
      src/views/userCenter/browseRecords/browseRecords.vue
  20. 12
      src/views/userCenter/changeInfo/changePhone.vue
  21. 12
      src/views/userCenter/changeInfo/changePwd.vue
  22. 6
      src/views/userCenter/changeInfo/changeRealName.vue
  23. 6
      src/views/userCenter/changeInfo/unbindPhone.vue
  24. 4
      src/views/userCenter/favorites/favorites.vue
  25. 4
      src/views/userCenter/messageCenter/message.vue
  26. 12
      src/views/userCenter/messageCenter/qalist.vue
  27. 24
      src/views/userCenter/myOrder/myOrder.vue
  28. 2
      src/views/userCenter/orderAfterSale/orderAfterSale.vue
  29. 2
      src/views/userCenter/signingAddress/signingAddress.vue
  30. 2
      src/views/userCenter/userInfo/userInfo.vue

4
src/components/base/aftersaleList.vue

@ -53,7 +53,7 @@
<p class="fs13 mar-bot-5" v-if="item.afterState==6">审核不通过</p> <p class="fs13 mar-bot-5" v-if="item.afterState==6">审核不通过</p>
<p class="fs13 mar-bot-5" v-if="item.afterState==7">评审中</p> <p class="fs13 mar-bot-5" v-if="item.afterState==7">评审中</p>
<p class="fs13 mar-bot-5 font-color-999" v-if="item.afterState==8">退货完成拒绝退款</p> <p class="fs13 mar-bot-5 font-color-999" v-if="item.afterState==8">退货完成拒绝退款</p>
<p class="fs13 mar-bot-5 font-color-999" v-if="item.afterState==9">已关闭</p>
<p class="fs13 mar-bot-5 font-color-999" v-if="item.afterState==9">{{$t('page.closed')}}</p>
<p class="fs13 mar-bot-5 font-color-71B" v-if="item.afterState==10">审核通过</p> <p class="fs13 mar-bot-5 font-color-71B" v-if="item.afterState==10">审核通过</p>
</div> </div>
</div> </div>
@ -93,7 +93,7 @@
<el-input <el-input
type="textarea" type="textarea"
:rows="7" :rows="7"
placeholder="请输入内容"
:placeholder="$t('common.defaulthint')"
v-model="reason"> v-model="reason">
</el-input> </el-input>

4
src/components/base/deleteGoods.vue

@ -9,8 +9,8 @@
<p>删除后购物车将不存在该商品确定要删除吗</p> <p>删除后购物车将不存在该商品确定要删除吗</p>
</div> </div>
<div class='pop-btns'> <div class='pop-btns'>
<p @click='confirm' v-throttle>确定</p>
<p @click="close">取消</p>
<p @click='confirm' v-throttle>{{$t('common.sure')}}</p>
<p @click="close">{{$t('common.cancel')}}</p>
</div> </div>
</div> </div>
</div> </div>

12
src/components/base/orderList.vue

@ -106,7 +106,7 @@
class="fs13 mar-bot-5 colorRed" class="fs13 mar-bot-5 colorRed"
v-if="item.state == 1" v-if="item.state == 1"
> >
待付款
{{$t('page.due')}}
</p> </p>
<div v-if="item.state == 1"> <div v-if="item.state == 1">
<p class="time fs12 mar-bot-10 font-color-999 flex-items"> <p class="time fs12 mar-bot-10 font-color-999 flex-items">
@ -122,31 +122,31 @@
class="fs13 mar-bot-5 colorGlod" class="fs13 mar-bot-5 colorGlod"
v-if="item.state == 2" v-if="item.state == 2"
> >
待发货
{{$t('page.goodswaitingtobesent')}}
</p> </p>
<p <p
class="fs13 mar-bot-5 colorGlod" class="fs13 mar-bot-5 colorGlod"
v-if="item.state == 3" v-if="item.state == 3"
> >
待收货
{{$t('page.waittobereceived')}}
</p> </p>
<p <p
class="fs13 mar-bot-5 font-color-999" class="fs13 mar-bot-5 font-color-999"
v-if="item.state == 4" v-if="item.state == 4"
> >
已完成
{{$t('common.completed')}}
</p> </p>
<p <p
class="fs13 mar-bot-5 font-color-999" class="fs13 mar-bot-5 font-color-999"
v-if="item.state == 5" v-if="item.state == 5"
> >
已关闭
{{$t('page.closed')}}
</p> </p>
<p <p
class="fs13 mar-bot-5 colorRed" class="fs13 mar-bot-5 colorRed"
v-if="item.state == 6" v-if="item.state == 6"
> >
待成团
{{$t('common.orderstatus_dct')}}
</p> </p>
<p class="fs13 cur-poi" @click="toOrderDetail(item.orderId)"> <p class="fs13 cur-poi" @click="toOrderDetail(item.orderId)">
订单详情 订单详情

2
src/components/base/topNav.vue

@ -291,7 +291,7 @@ export default {
}) })
this.setCartNumber(this.cartNumber - 1) this.setCartNumber(this.cartNumber - 1)
this.getTrolleyList() this.getTrolleyList()
this.$message.success($t('common.deletesuccess'))
this.$message.success(this.$t('common.deletesuccess'))
}, },
outLoginBtn () { outLoginBtn () {
this.outLoginDialog = true this.outLoginDialog = true

8
src/components/orderInfo/addAddress.vue

@ -26,13 +26,13 @@
<div class="itemStyle"> <div class="itemStyle">
<span><i>*</i>收货人姓名</span> <span><i>*</i>收货人姓名</span>
<div class="rightForm"> <div class="rightForm">
<el-input v-model="newAddress.receiveName" placeholder="请输入内容"></el-input>
<el-input v-model="newAddress.receiveName" :placeholder="$t('common.defaulthint')"></el-input>
</div> </div>
</div> </div>
<div class="itemStyle"> <div class="itemStyle">
<span><i>*</i>手机号码</span> <span><i>*</i>手机号码</span>
<div class="rightForm"> <div class="rightForm">
<el-input v-model="newAddress.receivePhone" placeholder="请输入内容"></el-input>
<el-input v-model="newAddress.receivePhone" :placeholder="$t('common.defaulthint')"></el-input>
</div> </div>
</div> </div>
<div class="itemStyle"> <div class="itemStyle">
@ -81,7 +81,7 @@ export default {
} else if (this.newAddress.receiveName === '') { } else if (this.newAddress.receiveName === '') {
this.$message.error('请填写收件人姓名!') this.$message.error('请填写收件人姓名!')
} else if (this.newAddress.receivePhone === '') { } else if (this.newAddress.receivePhone === '') {
this.$message.error('请填写手机号码!')
this.$message.error(this.$t('common.phonenumber_empty'))
} else { } else {
let reg = /^1[13456789]\d{9}$/ let reg = /^1[13456789]\d{9}$/
if (!reg.test(this.newAddress.receivePhone)) { if (!reg.test(this.newAddress.receivePhone)) {
@ -99,7 +99,7 @@ export default {
} else if (this.newAddress.receiveName === '') { } else if (this.newAddress.receiveName === '') {
this.$message.error('请填写收件人姓名!') this.$message.error('请填写收件人姓名!')
} else if (this.newAddress.receivePhone === '') { } else if (this.newAddress.receivePhone === '') {
this.$message.error('请填写手机号码!')
this.$message.error(this.$t('common.phonenumber_empty'))
} else { } else {
let reg = /^1[13456789]\d{9}$/ let reg = /^1[13456789]\d{9}$/
if (!reg.test(this.newAddress.receivePhone)) { if (!reg.test(this.newAddress.receivePhone)) {

6
src/components/userCenter/changeAddress.vue

@ -26,13 +26,13 @@
<div class="itemStyle"> <div class="itemStyle">
<span><i>*</i>收货人姓名</span> <span><i>*</i>收货人姓名</span>
<div class="rightForm"> <div class="rightForm">
<el-input v-model="newAddress.name" placeholder="请输入内容"></el-input>
<el-input v-model="newAddress.name" :placeholder="$t('common.defaulthint')"></el-input>
</div> </div>
</div> </div>
<div class="itemStyle"> <div class="itemStyle">
<span><i>*</i>手机号码</span> <span><i>*</i>手机号码</span>
<div class="rightForm"> <div class="rightForm">
<el-input v-model="newAddress.phone" placeholder="请输入内容"></el-input>
<el-input v-model="newAddress.phone" :placeholder="$t('common.defaulthint')"></el-input>
</div> </div>
</div> </div>
<div class="itemStyle"> <div class="itemStyle">
@ -91,7 +91,7 @@ export default {
} else if (this.newAddress.address === '') { } else if (this.newAddress.address === '') {
this.$message.error('请填写详细地址!') this.$message.error('请填写详细地址!')
} else if (this.newAddress.phone === '') { } else if (this.newAddress.phone === '') {
this.$message.error('请填写手机号码!')
this.$message.error(this.$t('common.phonenumber_empty'))
} else { } else {
this.$emit('hideAddDialog', this.newAddress) this.$emit('hideAddDialog', this.newAddress)
this.newAddress = {isDefault: false, this.newAddress = {isDefault: false,

118
src/locales/en.json

@ -31,7 +31,7 @@
"common.query":"Query", "common.query":"Query",
"common.reset":"Reset", "common.reset":"Reset",
"common.operate":"Operate", "common.operate":"Operate",
"common.createTIme":"Created Time",
"common.createTime":"Created Time",
"common.contactPhone":"Phone", "common.contactPhone":"Phone",
"common.contactPerson":"Contact", "common.contactPerson":"Contact",
"common.nodata":"No Data", "common.nodata":"No Data",
@ -453,7 +453,7 @@
"common.stocknum":"Stock {number}", "common.stocknum":"Stock {number}",
"common.understock":"Insufficient", "common.understock":"Insufficient",
"common.mobilephone_hint":"Please Enter the Phone Number", "common.mobilephone_hint":"Please Enter the Phone Number",
"common.autologin":"Automatic login",
"common.autologin":"Auto login",
"common.forgetpassword":"Forget Password", "common.forgetpassword":"Forget Password",
"common.sjdl":"Business Login", "common.sjdl":"Business Login",
"common.account_hint":"Please Enter the username", "common.account_hint":"Please Enter the username",
@ -490,5 +490,117 @@
"common.distributor":"Distributor", "common.distributor":"Distributor",
"common.persons":"persons", "common.persons":"persons",
"common.deletefail":"Delete Fail", "common.deletefail":"Delete Fail",
"common.undosuccess":"Undo successfully"
"common.undosuccess":"Undo successfully",
"product.ifnew_tips":"新品推荐",
"product.iffirst_tips":"尖端首发",
"product.iflowprice_tips":"低价优选",
"product.group_hint":"请选择商家商品分组",
"product.category_hint":"请选择商家商品分类",
"product.logistics_hint":"请选择是否需要物流",
"product.shelve_state_hint":"请选择是否上架",
"product.ifoversold_hint":"请选择是否允许超卖",
"product.iffirst_hint":"请选择是否尖端首发",
"product.ifnew_hint":"请选择是否新品推荐",
"product.iflowprice_hint":"请选择是否低价优选",
"product.credit_hint":"请选择是否支持积分兑换",
"product.credit_limit_hint":"请输入单笔最大抵扣",
"product.credit_tips":"单笔最大抵扣积分",
"product.credit_tips_1":"开启积分兑换后,积分所抵扣的金额由商户承担",
"product.credit_tips_2":"限制一笔订单中该商品最多抵扣多少积分",
"product.credit_tips_3":"注:1积分 = {integralProportion}元 请输入整数",
"product.productname_hint":"请输入商品名称",
"common.inoutsuccess_hint":"请填写正确的信息",
"common.successful":"Successful",
"common.addsuccessful":"Add Successful",
"common.editsuccessful":"Update Successful",
"common.turnover":"Turnover",
"common.pendingorder":"Pending Order",
"common.aftersaleorder":"After-sale Order",
"common.visits":"visits",
"common.today":"Today",
"common.yesterday":"Yesterday",
"common.last7days":"Last 7 days",
"common.last30days":"Last 30 days",
"common.unit_times":"times",
"common.unit_yuan":"yuan",
"common.unit_wan_yuan":"10000 yuan",
"common.unit_piece":"piece",
"common.sold_piece_num":"sold {number} piece",
"common.exporting":"Do not repeat operations during data export!",
"common.yhfwsj":"User_access_data",
"common.ddtjsj":"Order_statistics",
"common.rmspsj":"Hot_selling_goods_data",
"common.unit_time_name":"time",
"common.completed":"Completed",
"common.verificationcode":"Verification code",
"common.administratortelephone":"Administrator telephone",
"common.administratortelephone_hint":"Please Enter the Administrator telephone",
"common.certificationdate":"Certification date",
"common.uncertificated":"uncertificated",
"common.newphonenum_hint":"Please Enter the New Phone Number",
"common.getcodesuccess_notify":"Send successfully, please pay attention to check the mobile phone SMS",
"common.privacysuccess_notify":"If the second authentication is successful, the authentication is valid within 24 hours. If the second authentication is successful, the second authentication is valid within 24 hours",
"page.goodsalreadysent":"Sended",
"page.closed":"Closed",
"page.canceled":"Canceled",
"common.ordertime":"Order time",
"common.defaulthint":"Please Enter the content",
"common.starttime":"Start Time",
"common.endtime":"End Time",
"common.startdate":"Start Date",
"common.enddate":"End Date",
"common.betweentime":"To",
"common.choosetime":"Please choose the time range",
"common.buyeraccount":"Buyer",
"common.receivername":"Receiver Name",
"common.receivermobilenum":"Receiver Phonenumber",
"common.exportorder":"Export Order",
"common.orderstatus_dct":"To be grouped",
"common.product_number_tips":"Quantity",
"common.orderstatus":"Status",
"common.orderaccount":"Order Account",
"common.changeprice":"Change price",
"common.send":"Send",
"common.exportorder_filename":"orderdatadetail.xls",
"common.paymentcode":"Payment Code",
"common.paymenttime":"Payment Time",
"logistics.logisticsplan":"Logistics Plan",
"common.after-salestatus":"After-sale status",
"common.placeorderinfo":"Place Order Info",
"common.historyordernum":"Historical order total",
"common.orderremark":"Order Remark",
"common.receivinginfo":"Receiving Info",
"common.productinfo":"Product Info",
"common.product":"Product",
"common.quantity":"Quantity",
"common.total_small":"Total",
"common.producttotalprice":"Product Amount",
"common.freightamount":"Freight Amount",
"common.totalamount":"Total Amount",
"common.logisticscompany":"Logistics Company",
"common.hwbnumber":"HWB Number",
"common.logisticscompany_hint":"Please enter the Courier name",
"common.logistics_number_hint":"Please enter the tracking number",
"common.logisticscompany_choose_hint":"Please select a Courier",
"common.sendsuccess":"Send Success",
"common.privacytips":"In order to protect personal privacy information, the system automatically desensitizes sensitive data. If you need to edit and view the complete information, you can verify it through the 'User Privacy Secondary authentication' function. After the verification is passed, you can view the complete information within 24 hours.",
"common.close":"Close",
"common.dsjcl":"Pending merchant",
"common.dsjsh":"Waiting merchant receive",
"common.afterId":"After ID",
"common.productId":"Product ID",
"common.orderstatus_hint":"Please select the order status",
"common.after-salestatus_hint":"Please select the after-sale status",
"common.after-salestatus_shz":"After sale",
"common.after-salestatus_shcg":"After-sale success",
"common.after-salestatus_shgb":"After-sale closing",
"common.after-sales_type":"After-sale type",
"common.after-sales_type_hint":"Please select the after-sale type",
"common.after-sales_type_jtk":"Refund",
"common.after-sales_type_thtk":"Return",
"common.aftercode":"After-sale code",
"common.refundamount":"Refund Amount",
"common.deal":"Deal",
"common.exportafterorder_filename":"afterorderdatadetail.xls",
"common.after-salestatus_info":"After-sale Info"
} }

125
src/locales/zh-CN.json

@ -18,7 +18,7 @@
"navbar.newPassword":"新密码", "navbar.newPassword":"新密码",
"navbar.confirmPassword":"确认密码", "navbar.confirmPassword":"确认密码",
"common.sure":"确定", "common.sure":"确定",
"common.common.cancel":"取消",
"common.cancel":"取消",
"common.export":"导出", "common.export":"导出",
"common.view":"查看", "common.view":"查看",
"common.seemore":"查看更多", "common.seemore":"查看更多",
@ -31,7 +31,7 @@
"common.query":"查询", "common.query":"查询",
"common.reset":"重置", "common.reset":"重置",
"common.operate":"操作", "common.operate":"操作",
"common.createTIme":"创建时间",
"common.createTime":"创建时间",
"common.contactPhone":"联系电话", "common.contactPhone":"联系电话",
"common.contactPerson":"负责人", "common.contactPerson":"负责人",
"common.nodata":"暂无数据", "common.nodata":"暂无数据",
@ -443,7 +443,7 @@
"common.fans":"粉丝数", "common.fans":"粉丝数",
"client.tobedistributor":"成为分销员", "client.tobedistributor":"成为分销员",
"common.collectsuccess":"收藏成功", "common.collectsuccess":"收藏成功",
"common.common.cancelcollectsuccess":"取消收藏成功",
"common.cancelcollectsuccess":"取消收藏成功",
"common.express":"快递", "common.express":"快递",
"common.choosesimple":"选择", "common.choosesimple":"选择",
"client.commodityqa":"商品问答", "client.commodityqa":"商品问答",
@ -472,8 +472,8 @@
"common.company":"公司", "common.company":"公司",
"common.school":"学校", "common.school":"学校",
"common.returnperson_empty":"请输入收货人!", "common.returnperson_empty":"请输入收货人!",
"common.phonenumber_empty":"请输入手机号",
"common.phonenumber_error":"请输入正确的手机号",
"common.phonenumber_empty":"请输入手机号",
"common.phonenumber_error":"请输入正确的手机号",
"common.location_empty":"所在地不能为空!", "common.location_empty":"所在地不能为空!",
"common.location_detail_empty":"请输入详细地址!", "common.location_detail_empty":"请输入详细地址!",
"common.removeaddress_tips":"是否删除此地址?", "common.removeaddress_tips":"是否删除此地址?",
@ -490,5 +490,118 @@
"common.distributor":"分销员", "common.distributor":"分销员",
"common.persons":"(人)", "common.persons":"(人)",
"common.deletefail":"删除失败", "common.deletefail":"删除失败",
"common.undosuccess":"撤销成功"
"common.undosuccess":"撤销成功",
"product.ifnew_tips":"新品推荐",
"product.iffirst_tips":"尖端首发",
"product.iflowprice_tips":"低价优选",
"product.group_hint":"请选择商家商品分组",
"product.category_hint":"请选择商家商品分类",
"product.logistics_hint":"请选择是否需要物流",
"product.shelve_state_hint":"请选择是否上架",
"product.ifoversold_hint":"请选择是否允许超卖",
"product.iffirst_hint":"请选择是否尖端首发",
"product.ifnew_hint":"请选择是否新品推荐",
"product.iflowprice_hint":"请选择是否低价优选",
"product.credit_hint":"请选择是否支持积分兑换",
"product.credit_limit_hint":"请输入单笔最大抵扣",
"product.credit_tips":"单笔最大抵扣积分",
"product.credit_tips_1":"开启积分兑换后,积分所抵扣的金额由商户承担",
"product.credit_tips_2":"限制一笔订单中该商品最多抵扣多少积分",
"product.credit_tips_3":"注:1积分 = {integralProportion}元 请输入整数",
"product.productname_hint":"请输入商品名称",
"common.inoutsuccess_hint":"请填写正确的信息",
"common.successful":"成功",
"common.addsuccessful":"添加成功",
"common.editsuccessful":"修改成功",
"common.turnover":"成交金额",
"common.pendingorder":"待处理订单",
"common.aftersaleorder":"售后订单",
"common.visits":"店铺访问次数",
"common.today":"今天",
"common.yesterday":"昨天",
"common.last7days":"最近7天",
"common.last30days":"最近30天",
"common.unit_times":"次",
"common.unit_yuan":"元",
"common.unit_wan_yuan":"万元",
"common.unit_piece":"件",
"common.sold_piece_num":"已售 {number} 件",
"common.exporting":"数据导出中,请勿重复操作!",
"common.yhfwsj":"用户访问数据",
"common.ddtjsj":"订单统计数据",
"common.rmspsj":"热卖商品数据",
"common.unit_time_name":"次数",
"common.completed":"已完成",
"common.verificationcode":"验证码",
"common.administratortelephone":"管理员电话" ,
"common.administratortelephone_hint":"请输入管理员电话",
"common.certificationdate":"认证时间",
"common.uncertificated":"未认证",
"common.newphonenum_hint":"请输入新手机号",
"common.getcodesuccess_notify":"发送成功,请注意查看手机短信",
"common.privacysuccess_notify":"二次认证成功,该认证24小时内有效,超过时间需要重新认证",
"page.goodsalreadysent":"已发货",
"page.closed":"已关闭",
"page.canceled":"已取消",
"common.ordertime":"下单时间",
"common.defaulthint":"请输入内容",
"common.starttime":"开始时间",
"common.endtime":"结束时间",
"common.startdate":"开始日期",
"common.enddate":"结束日期",
"common.betweentime":"至",
"common.choosetime":"请选择时间范围",
"common.buyeraccount":"买家账户",
"common.receivername":"收件人姓名",
"common.receivermobilenum":"收件人手机号",
"common.exportorder":"导出订单",
"common.orderstatus_dct":"待成团",
"common.product_number_tips":"商品数量(件)",
"common.orderstatus":"订单状态",
"common.orderaccount":"下单账户",
"common.changeprice":"改价",
"common.send":"发货",
"common.exportorder_filename":"订单数据明细表.xls",
"common.paymentcode":"支付单号",
"common.paymenttime":"支付时间",
"logistics.logisticsplan":"物流方案",
"common.after-salestatus":"售后状态",
"common.placeorderinfo":"下单信息",
"common.historyordernum":"历史订单总数",
"common.orderremark":"下单备注",
"common.receivinginfo":"收货信息",
"common.productinfo":"商品信息",
"common.product":"商品",
"common.quantity":"数量",
"common.total_small":"小计",
"common.producttotalprice":"商品总价",
"common.freightamount":"运费金额",
"common.totalamount":"总金额",
"common.logisticscompany":"物流公司",
"common.hwbnumber":"运单号",
"common.logisticscompany_hint":"请输入快递公司名称",
"common.logistics_number_hint":"请输入快递单号",
"common.logisticscompany_choose_hint":"请选择快递公司",
"common.sendsuccess":"发货成功",
"common.privacytips":"为保护个人隐私信息,系统自动对敏感数据进行脱敏。如需编辑、查看完整信息,可通过“用户隐私二次认证”功能进行验证,验证通过之后,24小时内可查看完整信息。",
"common.close":"关闭",
"common.dsjcl":"待商家处理",
"common.dsjsh":"待商家收货",
"common.afterId":"售后ID",
"common.productId":"商品ID",
"common.orderstatus_hint":"请选择订单状态",
"common.after-salestatus_hint":"请选择售后状态",
"common.after-salestatus_shz":"售后中",
"common.after-salestatus_shcg":"售后成功",
"common.after-salestatus_shgb":"售后关闭",
"common.after-sales_type":"售后类型",
"common.after-sales_type_hint":"请选择售后类型",
"common.after-sales_type_jtk":"仅退款",
"common.after-sales_type_thtk":"退货退款",
"common.aftercode":"售后单号",
"common.refundamount":"退款金额(元)",
"common.deal":"处理",
"common.exportafterorder_filename":"售后订单数据明细表.xls",
"common.after-salestatus_info":"售后信息"
} }

2
src/main.js

@ -115,7 +115,7 @@ router.afterEach((to, from, next) => {
window.scrollTo(0, 0) window.scrollTo(0, 0)
}) })
/* eslint-disable no-new */ /* eslint-disable no-new */
new Vue({
window.vm = new Vue({
el: '#app', el: '#app',
router, router,
store, store,

16
src/views/afterSale/index.vue

@ -26,7 +26,7 @@
<p class="fs16 fw-blod" v-if="orderData.afterState===6">拒绝理由{{orderData.reason}}</p> <p class="fs16 fw-blod" v-if="orderData.afterState===6">拒绝理由{{orderData.reason}}</p>
<p class="fs24 fw-blod" v-if="orderData.afterState===7">评审中</p> <p class="fs24 fw-blod" v-if="orderData.afterState===7">评审中</p>
<p class="fs24 fw-blod font-color-999" v-if="orderData.afterState===8">退货完成拒绝退款</p> <p class="fs24 fw-blod font-color-999" v-if="orderData.afterState===8">退货完成拒绝退款</p>
<p class="fs24 fw-blod font-color-999" v-if="orderData.afterState===9">已关闭</p>
<p class="fs24 fw-blod font-color-999" v-if="orderData.afterState===9">{{$t('page.closed')}}</p>
<p class="fs24 fw-blod" v-if="orderData.afterState===10">审核通过</p> <p class="fs24 fw-blod" v-if="orderData.afterState===10">审核通过</p>
<el-button plain v-if="orderData.afterState===6 || orderData.afterState===8" <el-button plain v-if="orderData.afterState===6 || orderData.afterState===8"
class="intervention mar-top-10" type="info" @click="platform"> class="intervention mar-top-10" type="info" @click="platform">
@ -59,12 +59,12 @@
</div> </div>
</div> </div>
<div class="orderInfo"> <div class="orderInfo">
<p class="title">订单信息</p>
<p class="title">{{$t('order.orderinfo')}}</p>
<div class="info"> <div class="info">
<p>订单号{{orderData.orderFormid}}</p> <p>订单号{{orderData.orderFormid}}</p>
<p>支付渠道{{orderData.paymentMode}}</p> <p>支付渠道{{orderData.paymentMode}}</p>
<p>交易号{{orderData.transactionId}}</p> <p>交易号{{orderData.transactionId}}</p>
<p>创建时间{{orderData.createTime}}</p>
<p>{{$t('common.createTime')}}{{orderData.createTime}}</p>
<p>付款时间{{orderData.paymentTime}}</p> <p>付款时间{{orderData.paymentTime}}</p>
<p v-if="orderData.receiveTime">成交时间{{orderData.receiveTime}}</p> <p v-if="orderData.receiveTime">成交时间{{orderData.receiveTime}}</p>
</div> </div>
@ -85,11 +85,11 @@
<div style="flex-direction: column;"> <div style="flex-direction: column;">
<p v-for="(text, ins) in pro.values" :key="ins">{{text}}</p> <p v-for="(text, ins) in pro.values" :key="ins">{{text}}</p>
</div> </div>
<div v-if="orderData.state==1 || orderData.orderState==1">待付款</div>
<div v-if="orderData.state==2 || orderData.orderState==2">待发货</div>
<div v-if="orderData.state==3 || orderData.orderState==3">待收货</div>
<div v-if="orderData.state==4 || orderData.orderState==4">已完成</div>
<div v-if="orderData.state==5 || orderData.orderState==5">已关闭</div>
<div v-if="orderData.state==1 || orderData.orderState==1">{{$t('page.due')}}</div>
<div v-if="orderData.state==2 || orderData.orderState==2">{{$t('page.goodswaitingtobesent')}}</div>
<div v-if="orderData.state==3 || orderData.orderState==3">{{$t('page.waittobereceived')}}</div>
<div v-if="orderData.state==4 || orderData.orderState==4">{{$t('common.completed')}}</div>
<div v-if="orderData.state==5 || orderData.orderState==5">{{$t('page.closed')}}</div>
<div>{{pro.number}}</div> <div>{{pro.number}}</div>
<div class="fs-bold" style="color: #C83732;">¥{{pro.price}}</div> <div class="fs-bold" style="color: #C83732;">¥{{pro.price}}</div>
</div> </div>

21
src/views/login/login.vue

@ -9,7 +9,7 @@
<div class="loginForm"> <div class="loginForm">
<!-- <div class="loginTit" v-text="isRegistered == '1' ? '注册' : '登录'"></div> --> <!-- <div class="loginTit" v-text="isRegistered == '1' ? '注册' : '登录'"></div> -->
<div class="loginTitle"> <div class="loginTitle">
<div class="title" v-text="isRegistered !== '1' ? '登录' : '用户注册'"></div>
<div class="title" v-text="isRegistered !== '1' ? vm.$t('page.login') : '用户注册'"></div>
<div class="content"> <div class="content">
<span v-text="isRegistered === '1' ? '已有账户?' : '第一次使用Thee商城?'"></span> <span v-text="isRegistered === '1' ? '已有账户?' : '第一次使用Thee商城?'"></span>
<u @click="registered" v-text="isRegistered === '1' ? '立即登录' : '用户注册'"></u> <u @click="registered" v-text="isRegistered === '1' ? '立即登录' : '用户注册'"></u>
@ -17,13 +17,13 @@
</div> </div>
<div class="loginFormBox"> <div class="loginFormBox">
<div class="inputBox"> <div class="inputBox">
<el-input v-model="userName" placeholder="请输入您的手机号码">
<el-input v-model="userName" placeholder="$t('common.entermobilephone')">
<template slot="prepend"><span class="icon iconfont">&#xe62f;</span></template> <template slot="prepend"><span class="icon iconfont">&#xe62f;</span></template>
</el-input> </el-input>
</div> </div>
<div> <div>
<div class="inputBox"> <div class="inputBox">
<el-input v-model="verificationCode" placeholder="请输入验证码" @keyup.enter.native="login">
<el-input v-model="verificationCode" :placeholder="vm.$t('common.enterverificationcode')" @keyup.enter.native="login">
<template slot="prepend"> <template slot="prepend">
<span class="icon iconfont">&#xe62e;</span> <span class="icon iconfont">&#xe62e;</span>
</template> </template>
@ -31,21 +31,21 @@
<div> <div>
</div> </div>
<span v-show="codeShow" class="codeBtn" @click="getCode">获取验证码</span>
<span v-show="!codeShow" class="codeBtn codeCount">重新获取({{ codeCountNum }}s)</span>
<span v-show="codeShow" class="codeBtn" @click="getCode">{{vm.$t('common.verificationcodetip')}}</span>
<span v-show="!codeShow" class="codeBtn codeCount">{{ vm.$t('common.verificationcodetip3') }}({{ codeCountNum }}s)</span>
</div> </div>
</div> </div>
<div class="noLogin" :class="{ registered: isRegistered === '1' }"> <div class="noLogin" :class="{ registered: isRegistered === '1' }">
<el-checkbox v-show="isRegistered === '2'" v-model="isNoLogin">七天免登录</el-checkbox> <el-checkbox v-show="isRegistered === '2'" v-model="isNoLogin">七天免登录</el-checkbox>
<span></span> <span></span>
</div> </div>
<el-button class="loginBtn" @click="login" v-text="isRegistered === '1' ? '注册' : '立即登录'"
:loading="loadingLogin">立即登录</el-button>
<el-button class="loginBtn" @click="login"
:loading="loadingLogin">{{isRegistered === '1' ? vm.$t('page.register') : vm.$t('page.login')}}</el-button>
</div> </div>
<div class="loginProtocol" v-if="isRegistered === '1'"> <div class="loginProtocol" v-if="isRegistered === '1'">
<el-checkbox v-model="haveRead"></el-checkbox> <el-checkbox v-model="haveRead"></el-checkbox>
<span>阅读并同意</span> <span>阅读并同意</span>
<span @click="readAgreement">cereshop 服务协议</span>
<span @click="readAgreement">Thee 服务协议</span>
</div> </div>
</div> </div>
</div> </div>
@ -68,7 +68,9 @@ import {
export default { export default {
name: 'login', name: 'login',
data() { data() {
const vm =window.vm;
return { return {
vm:vm,
userName: '', userName: '',
verificationCode: '', verificationCode: '',
isNoLogin: false, isNoLogin: false,
@ -134,6 +136,7 @@ export default {
this.dialogAgreement = true this.dialogAgreement = true
}, },
login() { login() {
let that = this
let reg = /^1[13456789]\d{9}$/ let reg = /^1[13456789]\d{9}$/
if (!reg.test(this.userName)) { if (!reg.test(this.userName)) {
this.$message({ this.$message({
@ -145,7 +148,7 @@ export default {
} }
if (this.verificationCode === '') { if (this.verificationCode === '') {
this.$message({ this.$message({
message: '请输入验证码',
message: that.$t('common.enterverificationcode'),
type: 'warning', type: 'warning',
customClass: 'messageZindex' customClass: 'messageZindex'
}) })

2
src/views/orderDetail/components/expressInfo.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="orderDetailExpressInfo"> <div class="orderDetailExpressInfo">
<div class="userInfo common"> <div class="userInfo common">
<p class="title">收货信息</p>
<p class="title">{{$t('common.receivinginfo')}}</p>
<p> <p>
<span v-if="data.type === 3">退货</span>收货地址{{data.receiveAdress}}{{data.address}}</p> <span v-if="data.type === 3">退货</span>收货地址{{data.receiveAdress}}{{data.address}}</p>
<div class="info"> <div class="info">

4
src/views/orderDetail/components/orderInfo.vue

@ -1,13 +1,13 @@
<template> <template>
<div class="orderDetailInfo"> <div class="orderDetailInfo">
<div class="title">订单信息</div>
<div class="title">{{$t('order.orderinfo')}}</div>
<div class="top"> <div class="top">
<p class="order">订单编号 {{ data.orderId }}</p> <p class="order">订单编号 {{ data.orderId }}</p>
<p class="des">物流单号{{ data.deliverFormid }}</p> <p class="des">物流单号{{ data.deliverFormid }}</p>
<p class="bottom">物流公司{{ data.express }}</p> <p class="bottom">物流公司{{ data.express }}</p>
</div> </div>
<div class="top"> <div class="top">
<p class="order">创建时间{{ data.createTime }}</p>
<p class="order">{{$t('common.createTime')}}{{ data.createTime }}</p>
<p class="des">备注{{ data.des }}</p> <p class="des">备注{{ data.des }}</p>
</div> </div>
</div> </div>

30
src/views/orderDetail/components/status.vue

@ -58,8 +58,8 @@
style="font-size: 90px;" style="font-size: 90px;"
icon-class="order-detail-finish" icon-class="order-detail-finish"
/> />
<p v-if="data.status !== 5">已完成</p>
<p v-if="data.status === 5">已关闭</p>
<p v-if="data.status !== 5">{{$t('common.completed')}}</p>
<p v-if="data.status === 5">{{$t('page.closed')}}</p>
</div> </div>
</section> </section>
<!-- 拼团详情 --> <!-- 拼团详情 -->
@ -123,8 +123,8 @@
style="font-size: 90px;" style="font-size: 90px;"
icon-class="order-detail-finish" icon-class="order-detail-finish"
/> />
<p v-if="data.status === 5">已关闭</p>
<p v-if="data.status !== 5">已完成</p>
<p v-if="data.status === 5">{{$t('page.closed')}}</p>
<p v-if="data.status !== 5">{{$t('common.completed')}}</p>
</div> </div>
</section> </section>
<!-- 售后详情 --> <!-- 售后详情 -->
@ -214,7 +214,7 @@
style="font-size: 90px;" style="font-size: 90px;"
icon-class="order-detail-finish" icon-class="order-detail-finish"
/> />
<p v-if="data.status !== 9">已完成</p>
<p v-if="data.status !== 9">{{$t('common.completed')}}</p>
</div> </div>
<span <span
v-if="data.status === 6 || data.status === 5 || data.status === 9" v-if="data.status === 6 || data.status === 5 || data.status === 9"
@ -230,7 +230,7 @@
/> />
<p v-if="data.status === 6">审核未通过</p> <p v-if="data.status === 6">审核未通过</p>
<p v-if="data.status === 5">退款失败</p> <p v-if="data.status === 5">退款失败</p>
<p v-if="data.status === 9">已关闭</p>
<p v-if="data.status === 9">{{$t('page.closed')}}</p>
</div> </div>
</section> </section>
</div> </div>
@ -254,7 +254,7 @@ export default {
}, },
data () { data () {
return { return {
title: '订单状态',
title: this.$t('common.orderstatus'),
titleRed: false titleRed: false
} }
}, },
@ -274,16 +274,16 @@ export default {
if (this.data.type === 0) { if (this.data.type === 0) {
switch (this.data.status) { switch (this.data.status) {
case 1: case 1:
this.title = '待付款'
this.title = this.$t('page.due')
break break
case 2: case 2:
this.title = '待发货'
this.title = this.$t('page.goodswaitingtobesent')
break break
case 3: case 3:
this.title = '待收货'
this.title = this.$t('page.waittobereceived')
break break
case 4: case 4:
this.title = '已完成'
this.title = this.$t('common.completed')
break break
case 5: case 5:
this.title = '已关闭' this.title = '已关闭'
@ -295,7 +295,7 @@ export default {
if (this.data.type === 1) { if (this.data.type === 1) {
switch (this.data.status) { switch (this.data.status) {
case 0: case 0:
this.title = '待成团'
this.title = this.$t('common.orderstatus_dct')
break break
case 1: case 1:
this.title = '拼团成功' this.title = '拼团成功'
@ -304,13 +304,13 @@ export default {
this.title = '拼团失败' this.title = '拼团失败'
break break
case 2: case 2:
this.title = '待发货'
this.title = this.$t('page.goodswaitingtobesent')
break break
case 3: case 3:
this.title = '待收货'
this.title = this.$t('page.waittobereceived')
break break
case 4: case 4:
this.title = '已完成'
this.title = this.$t('common.completed')
break break
case 5: case 5:
this.title = '已关闭' this.title = '已关闭'

12
src/views/orderDetail/index.vue

@ -98,12 +98,12 @@
<div style="flex-direction: column;"> <div style="flex-direction: column;">
<p v-for="(text, ins) in pro.values" :key="ins">{{text}}</p> <p v-for="(text, ins) in pro.values" :key="ins">{{text}}</p>
</div> </div>
<div class="colorRed" v-if="orderDetail.state==1">待付款</div>
<div class="colorRed" v-if="orderDetail.state==2">待发货</div>
<div class="colorRed" v-if="orderDetail.state==3">待收货</div>
<div class="colorRed" v-if="orderDetail.state==4">已完成</div>
<div class="colorRed" v-if="orderDetail.state==5">已关闭</div>
<div class="colorRed" v-if="orderDetail.state==6">待成团</div>
<div class="colorRed" v-if="orderDetail.state==1">{{$t('page.due')}}</div>
<div class="colorRed" v-if="orderDetail.state==2">{{$t('page.goodswaitingtobesent')}}</div>
<div class="colorRed" v-if="orderDetail.state==3">{{$t('page.waittobereceived')}}</div>
<div class="colorRed" v-if="orderDetail.state==4">{{$t('common.completed')}}</div>
<div class="colorRed" v-if="orderDetail.state==5">{{$t('page.closed')}}</div>
<div class="colorRed" v-if="orderDetail.state==6">{{$t('common.orderstatus_dct')}}</div>
<div>{{pro.number}}</div> <div>{{pro.number}}</div>
<div class="fs-bold">¥{{pro.price}}</div> <div class="fs-bold">¥{{pro.price}}</div>
</div> </div>

4
src/views/product/components/productAnswer.vue

@ -58,7 +58,7 @@
<el-input <el-input
type="textarea" type="textarea"
:rows="4" :rows="4"
placeholder="请输入内容"
:placeholder="$t('common.defaulthint')"
resize="none" resize="none"
v-model="putQuestion"> v-model="putQuestion">
</el-input> </el-input>
@ -80,7 +80,7 @@
<el-input <el-input
type="textarea" type="textarea"
:rows="4" :rows="4"
placeholder="请输入内容"
:placeholder="$t('common.defaulthint')"
resize="none" resize="none"
v-model="putReply"> v-model="putReply">
</el-input> </el-input>

4
src/views/shopping-trolley/deleteGoods.vue

@ -9,8 +9,8 @@
<p>删除后购物车将不存在该商品确定要删除吗</p> <p>删除后购物车将不存在该商品确定要删除吗</p>
</div> </div>
<div class='pop-btns'> <div class='pop-btns'>
<p @click='confirm' v-throttle>确定</p>
<p @click="close">取消</p>
<p @click='confirm' v-throttle>{{$t('common.sure')}}</p>
<p @click="close">{{$t('common.cancel')}}</p>
</div> </div>
</div> </div>
</div> </div>

2
src/views/shopping-trolley/index.vue

@ -443,7 +443,7 @@ export default {
const response = await deleteCartItem({ ids }) const response = await deleteCartItem({ ids })
const res = response.data const res = response.data
if (res.code === '200') { if (res.code === '200') {
this.$message.success($t('common.deletesuccess'))
this.$message.success(this.$t('common.deletesuccess'))
} }
let flag = 0 let flag = 0
this.list.forEach(item => { this.list.forEach(item => {

6
src/views/userCenter/browseRecords/browseRecords.vue

@ -163,7 +163,7 @@ export default {
}) })
const res = response.data const res = response.data
if (res.code === '200') { if (res.code === '200') {
this.$message.success($t('common.deletesuccess'))
this.$message.success(this.$t('common.deletesuccess'))
this.edit = false this.edit = false
this.getFootprint() this.getFootprint()
} else { } else {
@ -190,8 +190,8 @@ export default {
return this.$message.warning('请先选中需要删除的记录') return this.$message.warning('请先选中需要删除的记录')
} }
this.$confirm('此操作将删除选中的记录, 是否继续?', '提示', { this.$confirm('此操作将删除选中的记录, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonText: this.$t('common.sure'),
cancelButtonText: this.$t('common.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let ids = [] let ids = []

12
src/views/userCenter/changeInfo/changePhone.vue

@ -18,7 +18,7 @@
</el-row> </el-row>
<el-row class="mar-top-30"> <el-row class="mar-top-30">
<el-col class="flex-row-plus" :span="5" :offset="8"> <el-col class="flex-row-plus" :span="5" :offset="8">
<el-input class="codeipt" v-model="verifyCode" placeholder="验证码"></el-input>
<el-input class="codeipt" v-model="verifyCode" :placeholder="$t('common.verificationcode')"></el-input>
</el-col> </el-col>
<el-col class="flex-row-plus" :span="3"> <el-col class="flex-row-plus" :span="3">
<el-button <el-button
@ -48,7 +48,7 @@
</el-row> </el-row>
<el-row class="mar-top-30"> <el-row class="mar-top-30">
<el-col class="flex-row-plus" :span="5" :offset="8"> <el-col class="flex-row-plus" :span="5" :offset="8">
<el-input class="codeipt" type="number" v-model="code" placeholder="验证码"></el-input>
<el-input class="codeipt" type="number" v-model="code" :placeholder="$t('common.verificationcode')"></el-input>
</el-col> </el-col>
<el-col class="flex-row-plus" :span="3"> <el-col class="flex-row-plus" :span="3">
<el-button <el-button
@ -133,12 +133,12 @@ export default {
active: 0, active: 0,
iphoneNum: '', iphoneNum: '',
code: '', code: '',
codeText: '获取验证码',
codeText: this.$t('common.verificationcodetip'),
time: 60, time: 60,
isCodeShow: true, isCodeShow: true,
isoldCodeShow: true, isoldCodeShow: true,
verifyCode: '', verifyCode: '',
oldcodeText: '获取验证码',
oldcodeText: this.$t('common.verificationcodetip'),
oldtime: 60, oldtime: 60,
verifyIphone: '', verifyIphone: '',
phone: '' phone: ''
@ -252,7 +252,7 @@ export default {
this.isCodeShow = false this.isCodeShow = false
} else { } else {
this.time = 0 this.time = 0
this.codeText = '获取验证码'
this.codeText = this.$t('common.verificationcodetip')
this.isCodeShow = true this.isCodeShow = true
} }
}, },
@ -265,7 +265,7 @@ export default {
this.isoldCodeShow = false this.isoldCodeShow = false
} else { } else {
this.oldtime = 0 this.oldtime = 0
this.oldcodeText = '获取验证码'
this.oldcodeText = this.$t('common.verificationcodetip')
this.isoldCodeShow = true this.isoldCodeShow = true
} }
} }

12
src/views/userCenter/changeInfo/changePwd.vue

@ -22,7 +22,7 @@
</el-row> </el-row>
<el-row class="mar-top-30"> <el-row class="mar-top-30">
<el-col class="flex-row-plus" :span="5" :offset="8"> <el-col class="flex-row-plus" :span="5" :offset="8">
<el-input class="codeipt" v-model="verifyCode" placeholder="验证码"></el-input>
<el-input class="codeipt" v-model="verifyCode" :placeholder="$t('common.verificationcode')"></el-input>
</el-col> </el-col>
<el-col class="flex-row-plus" :span="3"> <el-col class="flex-row-plus" :span="3">
<el-button <el-button
@ -57,7 +57,7 @@
</el-row> </el-row>
<el-row class="mar-top-30"> <el-row class="mar-top-30">
<el-col class="flex-row-plus" :span="5" :offset="8"> <el-col class="flex-row-plus" :span="5" :offset="8">
<el-input class="codeipt" v-model="code" placeholder="验证码"></el-input>
<el-input class="codeipt" v-model="code" :placeholder="$t('common.verificationcode')"></el-input>
</el-col> </el-col>
<el-col class="flex-row-plus" :span="3"> <el-col class="flex-row-plus" :span="3">
<el-button <el-button
@ -119,12 +119,12 @@ export default {
pwd: '', pwd: '',
confirmPwd: '', confirmPwd: '',
code: '', code: '',
codeText: '获取验证码',
codeText: this.$t('common.verificationcodetip'),
time: 60, time: 60,
isCodeShow: true, isCodeShow: true,
isoldCodeShow: true, isoldCodeShow: true,
verifyCode: '', verifyCode: '',
oldcodeText: '获取验证码',
oldcodeText: this.$t('common.verificationcodetip'),
oldtime: 60, oldtime: 60,
verifyIphone: '', verifyIphone: '',
phone: '' phone: ''
@ -199,7 +199,7 @@ export default {
this.isCodeShow = false this.isCodeShow = false
} else { } else {
this.time = 0 this.time = 0
this.codeText = '获取验证码'
this.codeText = this.$t('common.verificationcodetip')
this.isCodeShow = true this.isCodeShow = true
} }
}, },
@ -212,7 +212,7 @@ export default {
this.isoldCodeShow = false this.isoldCodeShow = false
} else { } else {
this.oldtime = 0 this.oldtime = 0
this.oldcodeText = '获取验证码'
this.oldcodeText = this.$t('common.verificationcodetip')
this.isoldCodeShow = true this.isoldCodeShow = true
} }
} }

6
src/views/userCenter/changeInfo/changeRealName.vue

@ -18,7 +18,7 @@
</el-row> </el-row>
<el-row class="mar-top-30"> <el-row class="mar-top-30">
<el-col class="flex-row-plus" :span="5" :offset="8"> <el-col class="flex-row-plus" :span="5" :offset="8">
<el-input class="codeipt" v-model="verifyCode" placeholder="验证码"></el-input>
<el-input class="codeipt" v-model="verifyCode" :placeholder="$t('common.verificationcode')"></el-input>
</el-col> </el-col>
<el-col class="flex-row-plus" :span="3"> <el-col class="flex-row-plus" :span="3">
<el-button <el-button
@ -122,7 +122,7 @@ export default {
// //
isoldCodeShow: true, isoldCodeShow: true,
verifyCode: '', verifyCode: '',
oldcodeText: '获取验证码',
oldcodeText: this.$t('common.verificationcodetip'),
oldtime: 60, oldtime: 60,
verifyIphone: '', verifyIphone: '',
phone: '' phone: ''
@ -225,7 +225,7 @@ export default {
this.isoldCodeShow = false this.isoldCodeShow = false
} else { } else {
this.oldtime = 0 this.oldtime = 0
this.oldcodeText = '获取验证码'
this.oldcodeText = this.$t('common.verificationcodetip')
this.isoldCodeShow = true this.isoldCodeShow = true
} }
} }

6
src/views/userCenter/changeInfo/unbindPhone.vue

@ -21,7 +21,7 @@
</el-row> </el-row>
<el-row class="mar-top-30"> <el-row class="mar-top-30">
<el-col class="flex-row-plus" :span="5" :offset="8"> <el-col class="flex-row-plus" :span="5" :offset="8">
<el-input class="codeipt" v-model="code" placeholder="验证码"></el-input>
<el-input class="codeipt" v-model="code" :placeholder="$t('common.verificationcode')"></el-input>
</el-col> </el-col>
<el-col class="flex-row-plus" :span="3"> <el-col class="flex-row-plus" :span="3">
<el-button <el-button
@ -88,7 +88,7 @@ export default {
active: 0, active: 0,
iphoneNum: '', iphoneNum: '',
code: '', code: '',
codeText: '获取验证码',
codeText: this.$t('common.verificationcodetip'),
time: 60, time: 60,
isCodeShow: true, isCodeShow: true,
verifyIphone: '', verifyIphone: '',
@ -136,7 +136,7 @@ export default {
this.isCodeShow = false this.isCodeShow = false
} else { } else {
this.time = 0 this.time = 0
this.codeText = '获取验证码'
this.codeText = this.$t('common.verificationcodetip')
this.isCodeShow = true this.isCodeShow = true
} }
} }

4
src/views/userCenter/favorites/favorites.vue

@ -322,8 +322,8 @@ export default {
} }
} }
this.$confirm('此操作将取消选中的收藏, 是否继续?', '提示', { this.$confirm('此操作将取消选中的收藏, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonText: this.$t('common.sure'),
cancelButtonText: this.$t('common.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.unfavorite(ids) this.unfavorite(ids)

4
src/views/userCenter/messageCenter/message.vue

@ -43,7 +43,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:total="total"> :total="total">
</el-pagination> </el-pagination>
<el-button type="primary" size="mini" style="margin-left:10px;">确定</el-button>
<el-button type="primary" size="mini" style="margin-left:10px;">{{$t('common.sure')}}</el-button>
</div> </div>
</div> </div>
<div class="nothing" v-else> <div class="nothing" v-else>
@ -175,7 +175,7 @@ export default {
const response = await noticeDel({ noticeId: item.noticeId }) const response = await noticeDel({ noticeId: item.noticeId })
const res = response.data const res = response.data
if (res.code === '200') { if (res.code === '200') {
this.$message.success($t('common.deletesuccess'))
this.$message.success(this.$t('common.deletesuccess'))
this.getAll() this.getAll()
} else { } else {
this.$message.error(res.msg) this.$message.error(res.msg)

12
src/views/userCenter/messageCenter/qalist.vue

@ -259,8 +259,8 @@ export default {
return this.$message.warning('请先选择需要删除的提问') return this.$message.warning('请先选择需要删除的提问')
} }
this.$confirm('此操作将删除选中的回答, 是否继续?', '提示', { this.$confirm('此操作将删除选中的回答, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonText: this.$t('common.sure'),
cancelButtonText: this.$t('common.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.delProblem(ids) this.delProblem(ids)
@ -280,8 +280,8 @@ export default {
return this.$message.warning('请先选择需要删除的回答') return this.$message.warning('请先选择需要删除的回答')
} }
this.$confirm('此操作将删除选中的回答, 是否继续?', '提示', { this.$confirm('此操作将删除选中的回答, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonText: this.$t('common.sure'),
cancelButtonText: this.$t('common.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.delAnswer(ids) this.delAnswer(ids)
@ -322,7 +322,7 @@ export default {
const response = await delMyProblem({ ids: ids }) const response = await delMyProblem({ ids: ids })
const res = response.data const res = response.data
if (res.code === '200') { if (res.code === '200') {
this.$message.success($t('common.deletesuccess'))
this.$message.success(this.$t('common.deletesuccess'))
this.edit = false this.edit = false
this.selectAll = 0 this.selectAll = 0
this.getSelfProblems() this.getSelfProblems()
@ -334,7 +334,7 @@ export default {
const response = await delMyAnswers({ ids: ids }) const response = await delMyAnswers({ ids: ids })
const res = response.data const res = response.data
if (res.code === '200') { if (res.code === '200') {
this.$message.success($t('common.deletesuccess'))
this.$message.success(this.$t('common.deletesuccess'))
this.edit = false this.edit = false
this.selectAll = 0 this.selectAll = 0
this.getSelfAnswers() this.getSelfAnswers()

24
src/views/userCenter/myOrder/myOrder.vue

@ -16,7 +16,7 @@
/> />
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="待付款" name="second">
<el-tab-pane :label="$t('page.due')" name="second">
<div class="sub-main" v-loading="loading"> <div class="sub-main" v-loading="loading">
<OrderList <OrderList
:flag="flag" :flag="flag"
@ -30,7 +30,7 @@
/> />
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="待发货" name="third">
<el-tab-pane :label="$t('page.goodswaitingtobesent')" name="third">
<div class="sub-main" v-loading="loading"> <div class="sub-main" v-loading="loading">
<OrderList <OrderList
:flag="flag" :flag="flag"
@ -44,7 +44,7 @@
/> />
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="待收货" name="fourth">
<el-tab-pane :label="$t('page.waittobereceived')" name="fourth">
<div class="sub-main" v-loading="loading"> <div class="sub-main" v-loading="loading">
<OrderList <OrderList
:flag="flag" :flag="flag"
@ -72,7 +72,7 @@
/> />
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="待成团" name="sixth">
<el-tab-pane :label="$t('common.orderstatus_dct')" name="sixth">
<div class="sub-main" v-loading="loading"> <div class="sub-main" v-loading="loading">
<OrderList <OrderList
:flag="flag" :flag="flag"
@ -104,8 +104,8 @@
<p>您确定要取消该订单吗取消订单后不能恢复</p> <p>您确定要取消该订单吗取消订单后不能恢复</p>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="leftBtn" @click="handleClose1">取消</el-button>
<el-button class="rightBtn" @click="cancelOrder" v-throttle>确定</el-button>
<el-button class="leftBtn" @click="handleClose1">{{$t('common.cancel')}}</el-button>
<el-button class="rightBtn" @click="cancelOrder" v-throttle>{{$t('common.sure')}}</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 删除 --> <!-- 删除 -->
@ -121,8 +121,8 @@
<p>您确定要删除该订单吗删除订单后不能恢复</p> <p>您确定要删除该订单吗删除订单后不能恢复</p>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="leftBtn" @click="handleClose3">取消</el-button>
<el-button class="rightBtn" @click="deleteOrder" v-throttle>确定</el-button>
<el-button class="leftBtn" @click="handleClose3">{{$t('common.cancel')}}</el-button>
<el-button class="rightBtn" @click="deleteOrder" v-throttle>{{$t('common.sure')}}</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 收货 --> <!-- 收货 -->
@ -138,8 +138,8 @@
<p>为了保证您的售后权益请收到商品检查无误后再确认收货</p> <p>为了保证您的售后权益请收到商品检查无误后再确认收货</p>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="leftBtn" @click="handleClose2">取消</el-button>
<el-button class="rightBtn" @click="confirm" v-throttle>确定</el-button>
<el-button class="leftBtn" @click="handleClose2">{{$t('common.cancel')}}</el-button>
<el-button class="rightBtn" @click="confirm" v-throttle>{{$t('common.sure')}}</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 选择售后 --> <!-- 选择售后 -->
@ -170,8 +170,8 @@
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="leftBtn" @click="handleClose">取消</el-button>
<el-button class="rightBtn" @click="toAfterSale" v-throttle>确定</el-button>
<el-button class="leftBtn" @click="handleClose">{{$t('common.cancel')}}</el-button>
<el-button class="rightBtn" @click="toAfterSale" v-throttle>{{$t('common.sure')}}</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>

2
src/views/userCenter/orderAfterSale/orderAfterSale.vue

@ -7,7 +7,7 @@
<AftersaleList @handleCurrentChange="handleCurrentChange" v-if="listShow" :afterSaleList="afterSaleList" :total="total" :page="page" /> <AftersaleList @handleCurrentChange="handleCurrentChange" v-if="listShow" :afterSaleList="afterSaleList" :total="total" :page="page" />
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="已完成" name="second">
<el-tab-pane :label="$t('common.completed')" name="second">
<div class="sub-main" v-loading="loading"> <div class="sub-main" v-loading="loading">
<AftersaleList @handleCurrentChange="handleCurrentChange" v-if="listShow" :afterSaleList="afterSaleList" :total="total" :page="page" /> <AftersaleList @handleCurrentChange="handleCurrentChange" v-if="listShow" :afterSaleList="afterSaleList" :total="total" :page="page" />
</div> </div>

2
src/views/userCenter/signingAddress/signingAddress.vue

@ -145,7 +145,7 @@ export default {
const res = response.data const res = response.data
if (res.code === '200') { if (res.code === '200') {
this.showDeleteAdd = false this.showDeleteAdd = false
this.$message.success($t('common.deletesuccess'))
this.$message.success(this.$t('common.deletesuccess'))
this.page = 0 this.page = 0
this.addressData = [] this.addressData = []
this.getAddressList() this.getAddressList()

2
src/views/userCenter/userInfo/userInfo.vue

@ -16,7 +16,7 @@
<div class="mid"> <div class="mid">
<div class="userNameBox userBlock"> <div class="userNameBox userBlock">
<label>昵称</label> <label>昵称</label>
<el-input v-model="userInfo.name" placeholder="请输入内容"></el-input>
<el-input v-model="userInfo.name" :placeholder="$t('common.defaulthint')"></el-input>
</div> </div>
<div class="userNameBox userBlock"> <div class="userNameBox userBlock">
<label>性别</label> <label>性别</label>

Loading…
Cancel
Save