iT邦幫忙

0

請問 props emit 問題

https://github.com/s9220140/vue/blob/master/src/components/pages/frontSide/coupon.vue
這個是元件

當我要把元件插入到這裡時沒有辦法把資料往外傳
https://github.com/s9220140/vue/blob/master/src/components/pages/frontSide/shopCartList.vue
導致出現找不到優惠券這個畫面
https://ithelp.ithome.com.tw/upload/images/20190223/20115573EifFfCY8Kc.png

正常點選套用時會出現折扣價(不用元件直接寫在裡面的話)

不知道是$emit沒傳到什麼資料還是怎樣,目前推測問題在這裡...(優惠碼:asd)
https://ithelp.ithome.com.tw/upload/images/20190223/20115573n9YRoeAW4H.png

沒事。看錯了
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答