- 优化 productcard.vue 图片url取得是 array

- 订单url地址选择 未完成
This commit is contained in:
sin
2019-04-10 20:45:44 +08:00
parent f9e74ddacd
commit 6d3fe11b17
7 changed files with 30 additions and 13 deletions

View File

@@ -45,7 +45,7 @@
hasDefault: data.isDefault,
};
if (data.id !== 0) {
if (data.id) {
UpdateAddress(params).then(response => {
this.$toast('更新成功');
this.$router.go(-1);

View File

@@ -16,7 +16,8 @@
<script>
import {GetAddressList} from "../../../api/user.js";
import {AddressList} from 'vant';
import { AddressList } from 'vant';
import eventBus from '../../eventBus';
export default {
components: {
@@ -42,7 +43,9 @@
if (!this.isSelect) {
return;
}
this.$emit('selectAddress', item);
this.$emit('selectaddress', item);
//传递一个mapchoiceHospital是keyhospital是value
// eventBus.$emit('selectaddress',item);
this.$router.go(-1);
}
},