|
@@ -97,7 +97,7 @@
|
|
<div class="row-between-leftsidebar">
|
|
<div class="row-between-leftsidebar">
|
|
<span class="font-1">收货地址</span>
|
|
<span class="font-1">收货地址</span>
|
|
</div>
|
|
</div>
|
|
- <span class="manage-all-addresses">管理全部地址</span>
|
|
|
|
|
|
+ <span class="manage-all-addresses" @click="dialogFormVisible = true">管理全部地址</span>
|
|
</div>
|
|
</div>
|
|
<ul class="select-address-list">
|
|
<ul class="select-address-list">
|
|
<li :class="{active: item.is_mr == 1}" v-for="(item, index) in addressList" :key="index">
|
|
<li :class="{active: item.is_mr == 1}" v-for="(item, index) in addressList" :key="index">
|
|
@@ -154,42 +154,34 @@
|
|
<div
|
|
<div
|
|
style="width: 548px;display: flex;align-items: center;justify-content: space-between;">
|
|
style="width: 548px;display: flex;align-items: center;justify-content: space-between;">
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
- <el-select v-model="addressPickerValue[0]" @change="bindColumnchange(0, $event)" placeholder="请选择省份">
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in addressPickerData[0]"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.name"
|
|
|
|
- :value="index">
|
|
|
|
|
|
+ <el-select v-model="addressPickerValue[0]" @change="bindColumnchange(0, $event)"
|
|
|
|
+ placeholder="请选择省份">
|
|
|
|
+ <el-option v-for="(item, index) in addressPickerData[0]" :key="index"
|
|
|
|
+ :label="item.name" :value="index">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
- <el-select v-model="addressPickerValue[1]" @change="bindColumnchange(1, $event)" placeholder="请选择城市">
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in addressPickerData[1]"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.name"
|
|
|
|
- :value="index">
|
|
|
|
|
|
+ <el-select v-model="addressPickerValue[1]" @change="bindColumnchange(1, $event)"
|
|
|
|
+ placeholder="请选择城市">
|
|
|
|
+ <el-option v-for="(item, index) in addressPickerData[1]" :key="index"
|
|
|
|
+ :label="item.name" :value="index">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
- <el-select v-model="addressPickerValue[2]" @change="bindColumnchange(2, $event)" placeholder="请选择区/县">
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in addressPickerData[2]"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.name"
|
|
|
|
- :value="index">
|
|
|
|
|
|
+ <el-select v-model="addressPickerValue[2]" @change="bindColumnchange(2, $event)"
|
|
|
|
+ placeholder="请选择区/县">
|
|
|
|
+ <el-option v-for="(item, index) in addressPickerData[2]" :key="index"
|
|
|
|
+ :label="item.name" :value="index">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
- <el-select v-model="addressPickerValue[3]" @change="bindColumnchange(3, $event)" placeholder="请选择街道">
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in addressPickerData[3]"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.name"
|
|
|
|
- :value="index">
|
|
|
|
|
|
+ <el-select v-model="addressPickerValue[3]" @change="bindColumnchange(3, $event)"
|
|
|
|
+ placeholder="请选择街道">
|
|
|
|
+ <el-option v-for="(item, index) in addressPickerData[3]" :key="index"
|
|
|
|
+ :label="item.name" :value="index">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
@@ -200,7 +192,8 @@
|
|
<div class="flex-end-box">
|
|
<div class="flex-end-box">
|
|
<div
|
|
<div
|
|
style="width: 548px;display: flex;align-items: center;justify-content: space-between;">
|
|
style="width: 548px;display: flex;align-items: center;justify-content: space-between;">
|
|
- <el-input type="textarea" placeholder="请填写详细地址~" class="textarea" v-model="addressParams.detail">
|
|
|
|
|
|
+ <el-input type="textarea" placeholder="请填写详细地址~" class="textarea"
|
|
|
|
+ v-model="addressParams.detail">
|
|
</el-input>
|
|
</el-input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -210,7 +203,8 @@
|
|
<div
|
|
<div
|
|
style="width: 548px;display: flex;align-items: center;justify-content: space-between;">
|
|
style="width: 548px;display: flex;align-items: center;justify-content: space-between;">
|
|
<label for="c12" class="form-bottom">
|
|
<label for="c12" class="form-bottom">
|
|
- <input id="c12" name="pass" type="checkbox" checked ref="is_mr" @change="addressParams.is_mr = ($refs['is_mr'].checked ? 1 : 0)"/>
|
|
|
|
|
|
+ <input id="c12" name="pass" type="checkbox" checked ref="is_mr"
|
|
|
|
+ @change="addressParams.is_mr = ($refs['is_mr'].checked ? 1 : 0)" />
|
|
<span>设为默认地址</span>
|
|
<span>设为默认地址</span>
|
|
</label>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
@@ -258,7 +252,7 @@
|
|
<li>将解除与其它网站、其他APP的授权或绑定关系</li>
|
|
<li>将解除与其它网站、其他APP的授权或绑定关系</li>
|
|
</ul>
|
|
</ul>
|
|
<label for="c1" class="logout-bottom">
|
|
<label for="c1" class="logout-bottom">
|
|
- <input id="c1" name="pass" type="checkbox" checked ref="CancelUserInfo"/>
|
|
|
|
|
|
+ <input id="c1" name="pass" type="checkbox" checked ref="CancelUserInfo" />
|
|
<span style="flex: 1;">申请提交即表示您自愿放弃账户内所有虚拟财产并同意<span class="red-color">《注销须知》</span></span>
|
|
<span style="flex: 1;">申请提交即表示您自愿放弃账户内所有虚拟财产并同意<span class="red-color">《注销须知》</span></span>
|
|
</label>
|
|
</label>
|
|
<div class="logout-btn-box">
|
|
<div class="logout-btn-box">
|
|
@@ -272,6 +266,79 @@
|
|
|
|
|
|
<Footer></Footer>
|
|
<Footer></Footer>
|
|
|
|
|
|
|
|
+ <!-- 添加新地址弹窗 -->
|
|
|
|
+ <el-dialog title="收货信息" :visible.sync="dialogFormVisible" ref="form" :model="form">
|
|
|
|
+ <div class="form-row-start">
|
|
|
|
+ <label class="form-row-start-label"><span class="red-color">*</span>收货人</label>
|
|
|
|
+ <div class="form-row-sidebar" style="flex-direction: column;align-items: flex-start;">
|
|
|
|
+ <div style="min-width: 234px;display: flex;align-items: center;">
|
|
|
|
+ <el-input v-model="form.username" placeholder="收货人姓名"></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-row-start">
|
|
|
|
+ <label class="form-row-start-label"><span class="red-color">*</span>手机号</label>
|
|
|
|
+ <div class="form-row-sidebar" style="flex-direction: column;align-items: flex-start;">
|
|
|
|
+ <div style="min-width: 234px;display: flex;align-items: center;">
|
|
|
|
+ <el-input v-model="form.phone_number" placeholder="收货人手机号"></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-row-start">
|
|
|
|
+ <span class="form-row-start-label"><span class="red-color">*</span>所在地区</span>
|
|
|
|
+ <div class="form-row-sidebar" style="flex-direction: column;align-items: flex-start;">
|
|
|
|
+ <div style="width: 550px;display: flex;align-items: center;justify-content: space-between;">
|
|
|
|
+ <div class="select-item-2">
|
|
|
|
+ <el-select v-model="form.region" placeholder="请选择省份">
|
|
|
|
+ <el-option label="山东省" value="shanghai"></el-option>
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="select-item-2">
|
|
|
|
+ <el-select v-model="form.region2" placeholder="请选择城市">
|
|
|
|
+ <el-option label="临沂市" value="shanghai"></el-option>
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="select-item-2">
|
|
|
|
+ <el-select v-model="form.region3" placeholder="区/县/街道">
|
|
|
|
+ <el-option label="河东区" value="shanghai"></el-option>
|
|
|
|
+ <el-option label="兰山区" value="beijing"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-row-start">
|
|
|
|
+ <span class="form-row-start-label"><span class="red-color">*</span>详细地址</span>
|
|
|
|
+ <div class="form-row-sidebar" style="flex-direction: column;align-items: flex-start;">
|
|
|
|
+ <div style="width: 605px;display: flex;align-items: center;justify-content: space-between;">
|
|
|
|
+ <el-input v-model="form.desc" placeholder="请填写详细地址"></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-row-start">
|
|
|
|
+ <div class="form-flex-end-box">
|
|
|
|
+ <div style="width: 548px;display: flex;align-items: center;justify-content: space-between;">
|
|
|
|
+ <label for="c1" class="form-bottom-2">
|
|
|
|
+ <input id="c1" name="pass" type="checkbox" checked />
|
|
|
|
+ <span>设为默认地址</span>
|
|
|
|
+ </label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-row-start">
|
|
|
|
+ <div class="form-flex-end-box">
|
|
|
|
+ <div style="width: 548px;display: flex;align-items: center;justify-content: space-between;">
|
|
|
|
+ <div class="form-btnBox-2">
|
|
|
|
+ <button type="button" class="active">保存</button>
|
|
|
|
+ <button type="button" class="active">取消</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -287,7 +354,9 @@
|
|
userManageGetDeliveryAddressList,
|
|
userManageGetDeliveryAddressList,
|
|
userCenterCancelUserInfo,
|
|
userCenterCancelUserInfo,
|
|
} from '../../service/service';
|
|
} from '../../service/service';
|
|
- import { validatorFun } from '../../utils/util';
|
|
|
|
|
|
+ import {
|
|
|
|
+ validatorFun
|
|
|
|
+ } from '../../utils/util';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -330,22 +399,42 @@
|
|
|
|
|
|
addressList: [],
|
|
addressList: [],
|
|
addressParams: {
|
|
addressParams: {
|
|
- id: 0, // 收货地址记录id(不传值是添加)
|
|
|
|
- pro_name: '', // 省名
|
|
|
|
- city_name: '', // 市名
|
|
|
|
- county_name: '', // 县区名
|
|
|
|
- street_name: '', // 街道
|
|
|
|
- detail: '', // 详细地址
|
|
|
|
- phone: '', // 联系电话
|
|
|
|
- name: '', // 联系人
|
|
|
|
- is_mr: 0, // 是否是默认(0不默认,1默认)
|
|
|
|
|
|
+ id: 0, // 收货地址记录id(不传值是添加)
|
|
|
|
+ pro_name: '', // 省名
|
|
|
|
+ city_name: '', // 市名
|
|
|
|
+ county_name: '', // 县区名
|
|
|
|
+ street_name: '', // 街道
|
|
|
|
+ detail: '', // 详细地址
|
|
|
|
+ phone: '', // 联系电话
|
|
|
|
+ name: '', // 联系人
|
|
|
|
+ is_mr: 0, // 是否是默认(0不默认,1默认)
|
|
},
|
|
},
|
|
|
|
|
|
// 地址
|
|
// 地址
|
|
- addressPickerData: [[], [], [], []],
|
|
|
|
- addressPickerDataNames: [[], [], [], []],
|
|
|
|
|
|
+ addressPickerData: [
|
|
|
|
+ [],
|
|
|
|
+ [],
|
|
|
|
+ [],
|
|
|
|
+ []
|
|
|
|
+ ],
|
|
|
|
+ addressPickerDataNames: [
|
|
|
|
+ [],
|
|
|
|
+ [],
|
|
|
|
+ [],
|
|
|
|
+ []
|
|
|
|
+ ],
|
|
addressPickerValue: [0, 0, 0, 0],
|
|
addressPickerValue: [0, 0, 0, 0],
|
|
addressPickerValueStr: '',
|
|
addressPickerValueStr: '',
|
|
|
|
+
|
|
|
|
+ dialogFormVisible: false, //弹窗
|
|
|
|
+ form: {
|
|
|
|
+ username: '',
|
|
|
|
+ phone_number: '',
|
|
|
|
+ region: '',
|
|
|
|
+ region2: '',
|
|
|
|
+ region3: '',
|
|
|
|
+ desc: '',
|
|
|
|
+ }
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -355,19 +444,29 @@
|
|
methods: {
|
|
methods: {
|
|
initAddress() {
|
|
initAddress() {
|
|
this.addressParams = {
|
|
this.addressParams = {
|
|
- id: 0, // 收货地址记录id(不传值是添加)
|
|
|
|
- pro_name: '', // 省名
|
|
|
|
- city_name: '', // 市名
|
|
|
|
- county_name: '', // 县区名
|
|
|
|
- street_name: '', // 街道
|
|
|
|
- detail: '', // 详细地址
|
|
|
|
- phone: '', // 联系电话
|
|
|
|
- name: '', // 联系人
|
|
|
|
- is_mr: 0, // 是否是默认(0不默认,1默认)
|
|
|
|
|
|
+ id: 0, // 收货地址记录id(不传值是添加)
|
|
|
|
+ pro_name: '', // 省名
|
|
|
|
+ city_name: '', // 市名
|
|
|
|
+ county_name: '', // 县区名
|
|
|
|
+ street_name: '', // 街道
|
|
|
|
+ detail: '', // 详细地址
|
|
|
|
+ phone: '', // 联系电话
|
|
|
|
+ name: '', // 联系人
|
|
|
|
+ is_mr: 0, // 是否是默认(0不默认,1默认)
|
|
};
|
|
};
|
|
// 地址
|
|
// 地址
|
|
- this.addressPickerData = [[], [], [], []];
|
|
|
|
- this.addressPickerDataNames = [[], [], [], []];
|
|
|
|
|
|
+ this.addressPickerData = [
|
|
|
|
+ [],
|
|
|
|
+ [],
|
|
|
|
+ [],
|
|
|
|
+ []
|
|
|
|
+ ];
|
|
|
|
+ this.addressPickerDataNames = [
|
|
|
|
+ [],
|
|
|
|
+ [],
|
|
|
|
+ [],
|
|
|
|
+ []
|
|
|
|
+ ];
|
|
this.addressPickerValue = [0, 0, 0, 0];
|
|
this.addressPickerValue = [0, 0, 0, 0];
|
|
this.addressPickerValueStr = '';
|
|
this.addressPickerValueStr = '';
|
|
this.getAreaChildrenByID();
|
|
this.getAreaChildrenByID();
|
|
@@ -403,7 +502,9 @@
|
|
console.log(params);
|
|
console.log(params);
|
|
const errList = validatorFun(params, [
|
|
const errList = validatorFun(params, [
|
|
['name', ['notNull', '请输入收货人']],
|
|
['name', ['notNull', '请输入收货人']],
|
|
- ['phone', ['notNull', '请输入手机号码'], ['isMobile', '请输入正确手机号']],
|
|
|
|
|
|
+ ['phone', ['notNull', '请输入手机号码'],
|
|
|
|
+ ['isMobile', '请输入正确手机号']
|
|
|
|
+ ],
|
|
['pro_name', ['notNull', '请输入选择所在地区']],
|
|
['pro_name', ['notNull', '请输入选择所在地区']],
|
|
['city_name', ['notNull', '请输入选择所在地区']],
|
|
['city_name', ['notNull', '请输入选择所在地区']],
|
|
['county_name', ['notNull', '请输入选择所在地区']],
|
|
['county_name', ['notNull', '请输入选择所在地区']],
|
|
@@ -411,9 +512,13 @@
|
|
['detail', ['notNull', '请输入详细地址']],
|
|
['detail', ['notNull', '请输入详细地址']],
|
|
]);
|
|
]);
|
|
if (errList.length > 0) {
|
|
if (errList.length > 0) {
|
|
- return this.$message.warning(errList[0].errMsg);
|
|
|
|
|
|
+ return this.$message.error(errList[0].errMsg);
|
|
}
|
|
}
|
|
- userManageSetDeliveryAddress(params).then(({code, msg, data}) => {
|
|
|
|
|
|
+ userManageSetDeliveryAddress(params).then(({
|
|
|
|
+ code,
|
|
|
|
+ msg,
|
|
|
|
+ data
|
|
|
|
+ }) => {
|
|
if (code == 1) {
|
|
if (code == 1) {
|
|
this.getAddressList();
|
|
this.getAddressList();
|
|
this.initAddress();
|
|
this.initAddress();
|
|
@@ -421,12 +526,18 @@
|
|
} else {
|
|
} else {
|
|
this.$message.error(msg);
|
|
this.$message.error(msg);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 获取地址详情
|
|
// 获取地址详情
|
|
getAddressDetail() {
|
|
getAddressDetail() {
|
|
- userManageGetDeliveryAddressDetail({ id: this.addressParams.id }).then(({code, msg, data})=> {
|
|
|
|
|
|
+ userManageGetDeliveryAddressDetail({
|
|
|
|
+ id: this.addressParams.id
|
|
|
|
+ }).then(({
|
|
|
|
+ code,
|
|
|
|
+ msg,
|
|
|
|
+ data
|
|
|
|
+ }) => {
|
|
if (code == 1) {
|
|
if (code == 1) {
|
|
const {
|
|
const {
|
|
id,
|
|
id,
|
|
@@ -465,7 +576,7 @@
|
|
const name = arr.splice(0, 1)[0];
|
|
const name = arr.splice(0, 1)[0];
|
|
this.getAreaChildrenByID(id2, idx2, level, level, () => {
|
|
this.getAreaChildrenByID(id2, idx2, level, level, () => {
|
|
const idx = this.addressPickerDataNames[level - 1].indexOf(name);
|
|
const idx = this.addressPickerDataNames[level - 1].indexOf(name);
|
|
- if ( arr.length > 0 ) {
|
|
|
|
|
|
+ if (arr.length > 0) {
|
|
let id3 = this.addressPickerData[level - 1][idx].id;
|
|
let id3 = this.addressPickerData[level - 1][idx].id;
|
|
fn(id3, idx, level + 1);
|
|
fn(id3, idx, level + 1);
|
|
} else {
|
|
} else {
|
|
@@ -493,7 +604,13 @@
|
|
callback && callback();
|
|
callback && callback();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- areaGetAreaChildrenByID({id}).then(({code, msg, data}) => {
|
|
|
|
|
|
+ areaGetAreaChildrenByID({
|
|
|
|
+ id
|
|
|
|
+ }).then(({
|
|
|
|
+ code,
|
|
|
|
+ msg,
|
|
|
|
+ data
|
|
|
|
+ }) => {
|
|
if (code == 1) {
|
|
if (code == 1) {
|
|
list[level2 - 1] = data.list;
|
|
list[level2 - 1] = data.list;
|
|
listIds[level2 - 1] = data.list.map(item => item.name);
|
|
listIds[level2 - 1] = data.list.map(item => item.name);
|
|
@@ -515,7 +632,13 @@
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- userManageChangeApproveDelivery({ id }).then(({code, msg, data}) => {
|
|
|
|
|
|
+ userManageChangeApproveDelivery({
|
|
|
|
+ id
|
|
|
|
+ }).then(({
|
|
|
|
+ code,
|
|
|
|
+ msg,
|
|
|
|
+ data
|
|
|
|
+ }) => {
|
|
if (code == 1) {
|
|
if (code == 1) {
|
|
this.getAddressList();
|
|
this.getAddressList();
|
|
this.$message.success(msg);
|
|
this.$message.success(msg);
|
|
@@ -532,7 +655,13 @@
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- userManageDelDeliveryAddress({ id }).then(({code, msg, data}) => {
|
|
|
|
|
|
+ userManageDelDeliveryAddress({
|
|
|
|
+ id
|
|
|
|
+ }).then(({
|
|
|
|
+ code,
|
|
|
|
+ msg,
|
|
|
|
+ data
|
|
|
|
+ }) => {
|
|
if (code == 1) {
|
|
if (code == 1) {
|
|
this.getAddressList();
|
|
this.getAddressList();
|
|
this.$message.success(msg);
|
|
this.$message.success(msg);
|
|
@@ -545,11 +674,12 @@
|
|
bindPickerChange() {
|
|
bindPickerChange() {
|
|
const [pIdx, cIdx, aIdx, sIdx] = this.addressPickerValue;
|
|
const [pIdx, cIdx, aIdx, sIdx] = this.addressPickerValue;
|
|
const [province, city, area, street] = this.addressPickerData;
|
|
const [province, city, area, street] = this.addressPickerData;
|
|
- this.addressPickerValueStr = `${province[pIdx].name} ${city[cIdx].name} ${area[aIdx].name} ${street[sIdx].name}`;
|
|
|
|
|
|
+ this.addressPickerValueStr =
|
|
|
|
+ `${province[pIdx].name} ${city[cIdx].name} ${area[aIdx].name} ${street[sIdx].name}`;
|
|
this.addressParams.pro_name = province[pIdx].name;
|
|
this.addressParams.pro_name = province[pIdx].name;
|
|
this.addressParams.city_name = city[cIdx].name;
|
|
this.addressParams.city_name = city[cIdx].name;
|
|
this.addressParams.county_name = area[aIdx].name;
|
|
this.addressParams.county_name = area[aIdx].name;
|
|
- this.addressParams.street_name= street[sIdx].name;
|
|
|
|
|
|
+ this.addressParams.street_name = street[sIdx].name;
|
|
console.log(this.addressParams);
|
|
console.log(this.addressParams);
|
|
},
|
|
},
|
|
bindColumnchange(column, value) {
|
|
bindColumnchange(column, value) {
|
|
@@ -559,19 +689,22 @@
|
|
active(index) {
|
|
active(index) {
|
|
this.active = index
|
|
this.active = index
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
// 注销账户
|
|
// 注销账户
|
|
cancelUserInfo() {
|
|
cancelUserInfo() {
|
|
if (!this.$refs['CancelUserInfo'].checked) {
|
|
if (!this.$refs['CancelUserInfo'].checked) {
|
|
return this.$message.warning('请阅读并同意《注销须知》');
|
|
return this.$message.warning('请阅读并同意《注销须知》');
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.$confirm('确定注销账户吗?', '提示', {
|
|
this.$confirm('确定注销账户吗?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- userCenterCancelUserInfo().then(({code, msg}) => {
|
|
|
|
|
|
+ userCenterCancelUserInfo().then(({
|
|
|
|
+ code,
|
|
|
|
+ msg
|
|
|
|
+ }) => {
|
|
if (code == 1) {
|
|
if (code == 1) {
|
|
this.$message.success(msg);
|
|
this.$message.success(msg);
|
|
} else {
|
|
} else {
|
|
@@ -770,7 +903,7 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
|
|
- >>> .el-input__inner {
|
|
|
|
|
|
+ >>>.el-input__inner {
|
|
height: 30px !important;
|
|
height: 30px !important;
|
|
line-height: 30px !important;
|
|
line-height: 30px !important;
|
|
border: 1px solid #BBBBBB !important;
|
|
border: 1px solid #BBBBBB !important;
|
|
@@ -778,7 +911,7 @@
|
|
font-size: 16px !important;
|
|
font-size: 16px !important;
|
|
}
|
|
}
|
|
|
|
|
|
- >>> .el-input__icon {
|
|
|
|
|
|
+ >>>.el-input__icon {
|
|
line-height: 30px !important;
|
|
line-height: 30px !important;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1236,4 +1369,112 @@
|
|
width: 280px;
|
|
width: 280px;
|
|
margin-bottom: 7px;
|
|
margin-bottom: 7px;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ >>>.el-dialog__header {
|
|
|
|
+ padding: 15px 17px 15px !important;
|
|
|
|
+ background-color: #F9F9F9 !important;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .el-dialog__headerbtn>>>.el-dialog__close {
|
|
|
|
+ color: #777777 !important;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ >>>.el-dialog {
|
|
|
|
+ width: 812px !important;
|
|
|
|
+ position: fixed !important;
|
|
|
|
+ left: 50% !important;
|
|
|
|
+ top: 50% !important;
|
|
|
|
+ transform: translate(-50%, -50%) !important;
|
|
|
|
+ margin: 0 !important;
|
|
|
|
+ border-radius: 8px !important;
|
|
|
|
+ overflow: hidden !important;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ >>>.el-dialog__body {
|
|
|
|
+ padding: 36px 0 41px !important;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-row-start {
|
|
|
|
+ width: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: flex-start;
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-row-start-label {
|
|
|
|
+ width: 141px;
|
|
|
|
+ text-align: right;
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ color: #111111;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ padding-right: 16px;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-row-start-label>span {
|
|
|
|
+ margin-right: 6px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-row-sidebar {
|
|
|
|
+ width: 205px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .select-item-2 {
|
|
|
|
+ width: 174px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-flex-end-box {
|
|
|
|
+ margin-left: 141px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-bottom-2 {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ color: #777777;
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-bottom-2 input[type="checkbox"] {
|
|
|
|
+ width: 14px !important;
|
|
|
|
+ height: 14px !important;
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ -webkit-appearance: none;
|
|
|
|
+ background: url(../../assets/circle.png) no-repeat center center;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ margin-right: 13px;
|
|
|
|
+ margin-top: 1.5px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-bottom-2 input[type="checkbox"]:checked {
|
|
|
|
+ background: url(../../assets/circle-active.png) no-repeat center center;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-btnBox-2 {
|
|
|
|
+ width: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-btnBox-2>button {
|
|
|
|
+ width: 104px;
|
|
|
|
+ height: 34px;
|
|
|
|
+ line-height: 34px;
|
|
|
|
+ background-color: #F2501A;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ margin-right: 14px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .form-btnBox-2>button:last-child {
|
|
|
|
+ border: 1px solid #DCDCDC;
|
|
|
|
+ background-color: #FFFFFF;
|
|
|
|
+ color: #777777;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|