Commit 9fd6fe17 authored by chenwei's avatar chenwei

Merge branch 'feature' into 'dev'

task [446] - 注册成功后的积分获取逻辑修改

See merge request !21
parents 5f123ddc 6a3be44b
...@@ -906,6 +906,7 @@ export default { ...@@ -906,6 +906,7 @@ export default {
textLength: "Enter up to 100 words ", textLength: "Enter up to 100 words ",
totalScore: "Selected ${value} items, total points: {total} points", totalScore: "Selected ${value} items, total points: {total} points",
totalScore1: "Integral", totalScore1: "Integral",
totalSumIntegral: "total Sum Integral",
addAddress: "Add shipping address", addAddress: "Add shipping address",
totalScoreError: "Insufficient points", totalScoreError: "Insufficient points",
illustrate: "Integral illustration", illustrate: "Integral illustration",
......
...@@ -1172,6 +1172,7 @@ export default { ...@@ -1172,6 +1172,7 @@ export default {
totalScore1: "积分", totalScore1: "积分",
addAddress: "新增收货地址", addAddress: "新增收货地址",
totalScoreError: "积分不足", totalScoreError: "积分不足",
totalSumIntegral: " 合计积分",
illustrate: "积分说明", illustrate: "积分说明",
registerLabel: "注册成功即可获得{val}积分", registerLabel: "注册成功即可获得{val}积分",
referralCodeLabel: "每邀请1人注册并登录获得{val}积分", referralCodeLabel: "每邀请1人注册并登录获得{val}积分",
......
<template> <template>
<div style="display: flex;justify-content: space-between;align-items: flex-end;"> <div
<div style="display: flex;align-items: flex-end;"> style="display: flex; justify-content: space-between; align-items: flex-end"
<img src="@/assets/navbar/index.png" alt style="width: 26px;height: 26px;margin-top:12px"> >
<div style="display: flex; align-items: flex-end">
<img
src="@/assets/navbar/index.png"
alt
style="width: 26px; height: 26px; margin-top: 12px"
/>
<el-breadcrumb class="app-breadcrumb" separator=">"> <el-breadcrumb class="app-breadcrumb" separator=">">
<transition-group name="breadcrumb"> <transition-group name="breadcrumb">
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path"> <el-breadcrumb-item
v-for="(item, index) in levelList"
:key="item.path"
>
<span <span
v-if="item.redirect==='noRedirect'||index==levelList.length-1" v-if="
item.redirect === 'noRedirect' || index == levelList.length - 1
"
class="no-redirect" class="no-redirect"
>{{ generateTitle(item.meta.title) }}</span> >{{ generateTitle(item.meta.title) }}</span
<a v-else @click.prevent="handleLink(item)">{{ generateTitle(item.meta.title) }}</a> >
<a v-else @click.prevent="handleLink(item)">{{
generateTitle(item.meta.title)
}}</a>
</el-breadcrumb-item> </el-breadcrumb-item>
</transition-group> </transition-group>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
<div> <div>
<el-select v-model="language" size="mini" placeholder="" class="lang" @change="handleSetLanguage"> <el-select
<div slot="prefix" style="padding: 4px;"> v-model="language"
<img src="@/assets/lang.png" style="width:20px;height:20px;"> size="mini"
placeholder=""
class="lang"
@change="handleSetLanguage"
>
<div slot="prefix" style="padding: 4px">
<img src="@/assets/lang.png" style="width: 20px; height: 20px" />
</div> </div>
<el-option <el-option
v-for="item in locale" v-for="item in locale"
...@@ -28,110 +48,112 @@ ...@@ -28,110 +48,112 @@
</el-select> </el-select>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { generateTitle } from '@/utils/i18n' import { generateTitle } from "@/utils/i18n";
import pathToRegexp from 'path-to-regexp' import pathToRegexp from "path-to-regexp";
import { locale } from '@/api/country' import { locale } from "@/api/country";
import { langData } from '@/data/lang' import { langData } from "@/data/lang";
export default { export default {
data() { data() {
return { return {
levelList: null, levelList: null,
locale: [], locale: [],
apiLang: '', apiLang: "",
langData: langData langData: langData,
} };
}, },
computed: { computed: {
language: { language: {
get() { get() {
return this.$store.getters.language return this.$store.getters.language;
}, },
set(val) { set(val) {
this.handleSetLanguage(val) this.handleSetLanguage(val);
} },
} },
}, },
watch: { watch: {
$route(route) { $route(route) {
// if you go to the redirect page, do not update the breadcrumbs // if you go to the redirect page, do not update the breadcrumbs
if (route.path.startsWith('/redirect/')) { if (route.path.startsWith("/redirect/")) {
return return;
} }
this.getBreadcrumb() this.getBreadcrumb();
}, },
language() { language() {
this.getCode = this.$t('login.getCode') this.getCode = this.$t("login.getCode");
this.apiLang = this.langData[this.language] this.apiLang = this.langData[this.language];
} },
}, },
created() { created() {
this.apiLang = this.langData[this.language] this.apiLang = this.langData[this.language];
this.getBreadcrumb() this.getBreadcrumb();
locale().then(r => { locale().then((r) => {
this.locale = r.data this.locale = r.data;
}) });
}, },
methods: { methods: {
generateTitle, generateTitle,
handleSetLanguage(lang) { handleSetLanguage(lang) {
this.$i18n.locale = lang this.$i18n.locale = lang;
this.$store.dispatch('app/setLanguage', lang) this.$store.dispatch("app/setLanguage", lang);
}, },
getBreadcrumb() { getBreadcrumb() {
// only show routes with meta.title // only show routes with meta.title
let matched = this.$route.matched.filter( let matched = this.$route.matched.filter(
item => item.meta && item.meta.title (item) => item.meta && item.meta.title
) );
const first = matched[0] const first = matched[0];
if (!this.isDashboard(first)) { if (!this.isDashboard(first)) {
matched = [{ path: '/dashboard', meta: { title: 'dashboard' }}].concat( matched = [{ path: "/dashboard", meta: { title: "dashboard" } }].concat(
matched matched
) );
} }
this.levelList = matched.filter( this.levelList = matched.filter(
item => item.meta && item.meta.title && item.meta.breadcrumb !== false (item) => item.meta && item.meta.title && item.meta.breadcrumb !== false
) );
console.log("9999", this.levelList);
}, },
isDashboard(route) { isDashboard(route) {
const name = route && route.name const name = route && route.name;
if (!name) { if (!name) {
return false return false;
} }
return name.trim().toLocaleLowerCase() === 'Dashboard'.toLocaleLowerCase() return (
name.trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase()
);
}, },
pathCompile(path) { pathCompile(path) {
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561 // To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
const { params } = this.$route const { params } = this.$route;
var toPath = pathToRegexp.compile(path) var toPath = pathToRegexp.compile(path);
return toPath(params) return toPath(params);
}, },
handleLink(item) { handleLink(item) {
const { redirect, path } = item const { redirect, path } = item;
if (redirect) { if (redirect) {
this.$router.push(redirect) this.$router.push(redirect);
return return;
} }
if (item.meta.title == 'dashboard' && process.env.VUE_APP_HOME_API) { if (item.meta.title == "dashboard" && process.env.VUE_APP_HOME_API) {
window.open(process.env.VUE_APP_HOME_API) window.open(process.env.VUE_APP_HOME_API);
} else { } else {
this.$router.push(this.pathCompile(path)) this.$router.push(this.pathCompile(path));
} }
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.lang{ .lang {
width: 150px; width: 150px;
::v-deep .el-input__inner{ ::v-deep .el-input__inner {
border-radius: 34px; border-radius: 34px;
} }
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
src="@/assets/integral/house.png" src="@/assets/integral/house.png"
alt="" alt=""
srcset="" srcset=""
> />
<i <i
v-else v-else
class="el-icon-location-information adress-icon iconColor" class="el-icon-location-information adress-icon iconColor"
...@@ -51,10 +51,10 @@ ...@@ -51,10 +51,10 @@
isChinese ? rewardDetailsInfo.imgZh : rewardDetailsInfo.imgEn isChinese ? rewardDetailsInfo.imgZh : rewardDetailsInfo.imgEn
" "
alt="" alt=""
> />
<div class="gift-tag"> <div class="gift-tag">
<div class="tags"> <div class="tags">
<img class="tag-image" src="@/assets/integral/score.png"> <img class="tag-image" src="@/assets/integral/score.png" />
<div class="tag-text"> <div class="tag-text">
{{ rewardDetailsInfo.pointsRequire }} {{ rewardDetailsInfo.pointsRequire }}
</div> </div>
...@@ -84,13 +84,13 @@ ...@@ -84,13 +84,13 @@
</div> </div>
<div class="activityTime"> <div class="activityTime">
<span class="pad-20">{{ $t("exchange.activityTime") }}</span> <span class="pad-20">{{ $t("exchange.activityTime") }}</span>
<span <span class="textLabel"
class="textLabel" >{{ parseTime(rewardDetailsInfo.startTime, "{y}-{m}-{d}") }}
>{{ parseTime(rewardDetailsInfo.startTime, "{y}-{m}-{d}") }}
{{ $t("exchange.to") }} {{ $t("exchange.to") }}
{{ {{
parseTime(rewardDetailsInfo.endTime, "{y}-{m}-{d}") parseTime(rewardDetailsInfo.endTime, "{y}-{m}-{d}")
}}</span> }}</span
>
</div> </div>
</div> </div>
</div> </div>
...@@ -112,7 +112,9 @@ ...@@ -112,7 +112,9 @@
type="text" type="text"
:disabled="count < 60" :disabled="count < 60"
@click.native.prevent="getValidaCode" @click.native.prevent="getValidaCode"
>{{ getCode }}</el-button> >{{ getCode }}</el-button
>
<span class="codeMobile">({{ info.mobile }})</span>
</div> </div>
</div> </div>
<div class="textDesc"> <div class="textDesc">
...@@ -139,132 +141,185 @@ ...@@ -139,132 +141,185 @@
type="primary" type="primary"
round round
@click="handleSubmitRedeem" @click="handleSubmitRedeem"
>{{ $t("exchange.submitOrder") }}</el-button> >{{ $t("exchange.submitOrder") }}</el-button
>
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-dialog
:title="$t('addressManager.prompt')"
:visible.sync="dialogVisible"
width="30%"
:before-close="handleClose"
>
<div class="title">
{{ isChinese ? rewardDetailsInfo.titleZh : rewardDetailsInfo.titleEn }}
</div>
<div class="number">
{{ $t("delivery.quantity") }}{{ paramsInfo.rewardCount }}
</div>
<div class="number">
{{ $t("integral.totalSumIntegral") }}{{ totalIntegral }}
</div>
<div class="number">
{{ $t("exchange.exchangeMethod") }}{{ getExcahngeType() }}
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">{{
$t("customer.cancel")
}}</el-button>
<el-button type="primary" @click="confirmSubmit">{{
$t("customer.submit")
}}</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { getDictData, getDictDatas } from '@/utils/dict' import { getDictData, getDictDatas } from "@/utils/dict";
import { addresslist, addressinfo } from '@/api/address' import { addresslist, addressinfo } from "@/api/address";
import { import {
rewardDetails, rewardDetails,
exchangeSMSCode, exchangeSMSCode,
redeemSingleReward redeemSingleReward,
} from '@/api/integral' } from "@/api/integral";
import { parseTime } from '@/utils/ruoyi' import { getInfo } from "@/api/user";
import { parseTime } from "@/utils/ruoyi";
export default { export default {
name: 'ExchangeOperate', name: "ExchangeOperate",
data() { data() {
return { return {
dialogVisible: false,
addressInfo: {}, addressInfo: {},
getCode: this.$t('login.getCode'), getCode: this.$t("login.getCode"),
rewardDetailsInfo: {}, rewardDetailsInfo: {},
count: 60, count: 60,
totalIntegral: 0, totalIntegral: 0,
pickMethodList: '', pickMethodList: "",
info: {},
paramsInfo: { paramsInfo: {
memberId: this.$store.getters.id, memberId: this.$store.getters.id,
rewardId: this.$route.query.id, rewardId: this.$route.query.id,
redeemType: '1', redeemType: "1",
rewardCount: 1, rewardCount: 1,
entrance: '3', entrance: "3",
remark: '', remark: "",
code: '' code: "",
} },
} };
}, },
computed: { computed: {
isChinese() { isChinese() {
this.getCode = this.$t('login.getCode') this.getCode = this.$t("login.getCode");
return this.$i18n.locale === 'zh_CN' return this.$i18n.locale === "zh_CN";
} },
}, },
created() { created() {
this.getAddressList() this.getAddressList();
this.getRewardsDetailsAPI() this.getRewardsDetailsAPI();
this.getInfo();
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next((vm) => { next((vm) => {
if (Object.prototype.hasOwnProperty.call(from.params, 'addressId')) { if (Object.prototype.hasOwnProperty.call(from.params, "addressId")) {
vm.handleSelectAddress(from.params.addressId) vm.handleSelectAddress(from.params.addressId);
} }
}) });
}, },
methods: { methods: {
parseTime, parseTime,
// 兑换 // 兑换
handleSubmitRedeem() { handleSubmitRedeem() {
const params = { ...this.paramsInfo } this.dialogVisible = true;
if (params.redeemType != '1') { },
params.recipientAddress = this.addressInfo.address confirmSubmit() {
params.recipientName = this.addressInfo.name const params = { ...this.paramsInfo };
params.recipientPhoneNum = this.addressInfo.phone if (params.redeemType != "1") {
params.recipientAddress = this.addressInfo.address;
params.recipientName = this.addressInfo.name;
params.recipientPhoneNum = this.addressInfo.phone;
} }
redeemSingleReward(params).then((res) => { redeemSingleReward(params).then((res) => {
this.$message({ this.$message({
message: this.$t('exchange.success'), message: this.$t("exchange.success"),
type: 'success' type: "success",
}) });
this.$router.push({ path: '/jiedao/jd-exchange-log' }) this.dialogVisible = false;
}) this.$router.push({ path: "/jiedao/jd-exchange-log" });
});
},
getExcahngeType() {
return this.isChinese
? this.rewardDetailsInfo.pickMethodList.filter(
(res) => this.paramsInfo.redeemType === res.value
)[0].labelZh
: this.rewardDetailsInfo.pickMethodList.filter(
(res) => this.paramsInfo.redeemType === res.value
)[0].labelEn;
},
handleClose() {
this.dialogVisible = false;
},
getInfo() {
getInfo().then((r) => {
this.info = r.data;
});
}, },
getValidaCode() { getValidaCode() {
exchangeSMSCode({ memberId: this.$store.getters.id }).then(() => { exchangeSMSCode({ memberId: this.$store.getters.id }).then(() => {
var countDown = window.setInterval(() => { var countDown = window.setInterval(() => {
if (this.count < 1) { if (this.count < 1) {
this.count = 60 this.count = 60;
this.getCode = this.$t('login.getCode') this.getCode = this.$t("login.getCode");
window.clearInterval(countDown) window.clearInterval(countDown);
} else { } else {
this.count-- this.count--;
this.getCode = this.count + 's' this.getCode = this.count + "s";
} }
}, 1000) }, 1000);
}) });
}, },
handleChange() { handleChange() {
this.totalIntegral = this.totalIntegral =
this.rewardDetailsInfo.pointsRequire * this.paramsInfo.rewardCount this.rewardDetailsInfo.pointsRequire * this.paramsInfo.rewardCount;
}, },
getAddressList() { getAddressList() {
const id = this.$store.getters.id const id = this.$store.getters.id;
addresslist({ id }).then((r) => { addresslist({ id }).then((r) => {
r.data.forEach((element) => { r.data.forEach((element) => {
element.isDefault === 0 ? (this.addressInfo = element) : '' element.isDefault === 0 ? (this.addressInfo = element) : "";
}) });
if (this.addressInfo.isDefault != 0 && r.data.length > 0) { if (this.addressInfo.isDefault != 0 && r.data.length > 0) {
this.addressInfo = r.data[0] this.addressInfo = r.data[0];
} }
}) });
}, },
getRewardsDetailsAPI() { getRewardsDetailsAPI() {
rewardDetails({ id: this.$route.query.id }).then((res) => { rewardDetails({ id: this.$route.query.id }).then((res) => {
this.rewardDetailsInfo = res.data this.rewardDetailsInfo = res.data;
this.paramsInfo.redeemType = this.paramsInfo.redeemType =
this.rewardDetailsInfo.pickMethodList[0].value this.rewardDetailsInfo.pickMethodList[0].value;
this.handleChange() this.handleChange();
}) });
}, },
getPickList(label) { getPickList(label) {
return this.rewardDetailsInfo.pickMethodList return this.rewardDetailsInfo.pickMethodList
.map((item) => item[`label${label}`]) .map((item) => item[`label${label}`])
.join('/') .join("/");
}, },
handleSelectAddress(id) { handleSelectAddress(id) {
addressinfo({ id }).then((res) => { addressinfo({ id }).then((res) => {
this.addressInfo = res.data this.addressInfo = res.data;
}) });
}, },
goAddressManagerPage() { goAddressManagerPage() {
if (this.paramsInfo.redeemType == '1') { if (this.paramsInfo.redeemType == "1") {
return return;
} }
this.$router.push('/jiedao/jd-address-manager') this.$router.push("/jiedao/jd-address-manager");
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .headerTab .el-tabs__nav-scroll { ::v-deep .headerTab .el-tabs__nav-scroll {
...@@ -313,6 +368,12 @@ export default { ...@@ -313,6 +368,12 @@ export default {
width: 100%; width: 100%;
background: rgba(242, 242, 242, 1); background: rgba(242, 242, 242, 1);
} }
.codeMobile {
line-height: 40px;
padding: 0 10px;
font-size: 14px;
color: #aaaaaa;
}
::v-deep .verificationCode { ::v-deep .verificationCode {
height: 40px; height: 40px;
display: flex; display: flex;
......
...@@ -412,15 +412,15 @@ ...@@ -412,15 +412,15 @@
<el-select <el-select
v-if="baseEdit" v-if="baseEdit"
v-model="baseForm.country" v-model="baseForm.country"
@change="getCityList"
:placeholder="$t('notices.country')" :placeholder="$t('notices.country')"
@change="getCityList"
> >
<el-option <el-option
v-for="item in countrySelectList" v-for="item in countrySelectList"
:key="item.id"
:label="language == 'zh_CN' ? item.titleZh : item.titleEn" :label="language == 'zh_CN' ? item.titleZh : item.titleEn"
:value="item.id" :value="item.id"
:key="item.id" />
></el-option>
</el-select> </el-select>
<span v-else>{{ <span v-else>{{
...@@ -448,6 +448,7 @@ ...@@ -448,6 +448,7 @@
<el-select <el-select
v-if="baseEdit" v-if="baseEdit"
v-model="baseForm.city" v-model="baseForm.city"
filterable
:placeholder="$t('notices.country')" :placeholder="$t('notices.country')"
> >
<el-option <el-option
...@@ -455,7 +456,7 @@ ...@@ -455,7 +456,7 @@
:key="item.id" :key="item.id"
:label="language == 'zh_CN' ? item.titleZh : item.titleEn" :label="language == 'zh_CN' ? item.titleZh : item.titleEn"
:value="item.id" :value="item.id"
></el-option> />
</el-select> </el-select>
<span v-else>{{ <span v-else>{{
language == "zh_CN" language == "zh_CN"
...@@ -521,9 +522,7 @@ ...@@ -521,9 +522,7 @@
> >
</div> </div>
<div v-else style="display: flex"> <div v-else style="display: flex">
<div class="cancelBtn" <div class="cancelBtn" @click="companyHanderCancel">
@click="companyHanderCancel"
>
<span <span
style=" style="
font-size: 14px; font-size: 14px;
...@@ -1670,7 +1669,7 @@ export default { ...@@ -1670,7 +1669,7 @@ export default {
countrySelectList: [], countrySelectList: [],
cityList: [], cityList: [],
//areaCode List // areaCode List
countryList: [], countryList: [],
authUserForm: {}, authUserForm: {},
authUserVisible: false, authUserVisible: false,
...@@ -1772,27 +1771,26 @@ export default { ...@@ -1772,27 +1771,26 @@ export default {
this.getTradeCountryList(); this.getTradeCountryList();
}, },
methods: { methods: {
//获取country 接口 // 获取country 接口
getTradeCountryList() { getTradeCountryList() {
getTradeCountryList().then((res) => { getTradeCountryList().then((res) => {
this.countrySelectList = res.data; this.countrySelectList = res.data;
}); });
}, },
// 获取城市列表 // 获取城市列表
getCityList(id, status ='edit') { getCityList(id, status = "edit") {
getCityListByParent({ id }).then((res) => { getCityListByParent({ id }).then((res) => {
this.cityList = res.data; this.cityList = res.data;
if(status == 'edit'){ if (status == "edit") {
this.baseForm.city = ""; this.baseForm.city = "";
} }
}); });
}, },
getInfo() { getInfo() {
getInfo().then((r) => { getInfo().then((r) => {
this.userInfo = r.data; this.userInfo = r.data;
this.addressForm.areaCode = this.userInfo.areaCode; this.addressForm.areaCode = this.userInfo.areaCode;
this.getCityList(r.data.country,'init'); this.getCityList(r.data.country, "init");
this.getAddressList(); this.getAddressList();
}); });
}, },
...@@ -1826,7 +1824,7 @@ export default { ...@@ -1826,7 +1824,7 @@ export default {
}, },
baseHanderEdit() { baseHanderEdit() {
this.baseEdit = true; this.baseEdit = true;
this.baseForm = {...this.userInfo}; this.baseForm = { ...this.userInfo };
}, },
baseHanderCancel() { baseHanderCancel() {
this.$refs.baseForm.clearValidate(); this.$refs.baseForm.clearValidate();
...@@ -2274,7 +2272,7 @@ export default { ...@@ -2274,7 +2272,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.cancelBtn{ .cancelBtn {
width: 92px; width: 92px;
height: 30px; height: 30px;
background: #5ba8dc; background: #5ba8dc;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<img src="@/assets/login/login.png" style="width: 100%; height: 100%" /> <img src="@/assets/login/login.png" style="width: 100%; height: 100%" />
</div> </div>
<div class="right_back"> <div class="right_back">
<div class="start-bar"></div> <div class="start-bar" />
<el-form <el-form
ref="myInfo" ref="myInfo"
:model="params" :model="params"
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-row :gutter="20"> <el-row :gutter="20">
...@@ -82,25 +82,29 @@ ...@@ -82,25 +82,29 @@
<el-form-item prop="country" :label="$t('myInfo.country')"> <el-form-item prop="country" :label="$t('myInfo.country')">
<el-select <el-select
v-model="params.country" v-model="params.country"
@change="getCityList"
:placeholder="$t('notices.country')" :placeholder="$t('notices.country')"
@change="getCityList"
> >
<el-option <el-option
v-for="item in countryList" v-for="item in countryList"
:label="language == 'zh_CN' ? item.titleZh : item.titleEn"
:key="item.id" :key="item.id"
:label="language == 'zh_CN' ? item.titleZh : item.titleEn"
:value="item.id" :value="item.id"
></el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="city" :label="$t('myInfo.city')"> <el-form-item prop="city" :label="$t('myInfo.city')">
<el-select v-model="params.city" :placeholder="$t('notices.city')"> <el-select
v-model="params.city"
filterable
:placeholder="$t('notices.city')"
>
<el-option <el-option
v-for="item in cityList" v-for="item in cityList"
:key="item.id" :key="item.id"
:label="language == 'zh_CN' ? item.titleZh : item.titleEn" :label="language == 'zh_CN' ? item.titleZh : item.titleEn"
:value="item.id" :value="item.id"
></el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 地址 --> <!-- 地址 -->
...@@ -257,9 +261,10 @@ export default { ...@@ -257,9 +261,10 @@ export default {
if (!res.gender) { if (!res.gender) {
this.params.gender = "2"; this.params.gender = "2";
} }
this.params.nickname = "";
}); });
}, },
//获取城市接口 // 获取城市接口
getTradeCountryList() { getTradeCountryList() {
getTradeCountryList().then((res) => { getTradeCountryList().then((res) => {
this.countryList = res.data; this.countryList = res.data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment