- 优化 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

@@ -57,6 +57,7 @@
<script>
import {createOrder} from '../../api/order';
import eventBus from '../eventBus';
export default {
data() {
@@ -122,10 +123,18 @@
activated() {
console.log('activated')
//根据key名获取传递回来的参数data就是map
this.$on('selectAddress', function (data) {
// eventBus.$on('selectaddress', function(data){
// //赋值给首页的附近医院数据模型
// console.log('selectaddress', data);
// }.bind(this));
//根据key名获取传递回来的参数data就是map
this.$on('selectaddress', function (data) {
//赋值给首页的附近医院数据模型
console.log(1);
console.log('selectaddress', data);
}.bind(this));
},
};