UPDATE

上级 e531b46c
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<Goods v-for="item in list" :key="item.id" :title="item.goods_name" :pic="item.goods_img" :chstate="item.goods_state" <Goods v-for="item in list" :key="item.id" :title="item.goods_name" :pic="item.goods_img" :chstate="item.goods_state"
:id="item.id" :price="item.goods_price" :count="item.goods_count" @good_check_change="updateGoodState"></Goods> :id="item.id" :price="item.goods_price" :count="item.goods_count" @good_check_change="updateGoodState"></Goods>
<Footer :full_checked="allChecked" :amount="amt" @changAllGoodsState="changeState"></Footer> <Footer :full_checked="allChecked" :amount="amt" @changAllGoodsState="changeState" ref="FooterRef"></Footer>
</div> </div>
</template> </template>
...@@ -19,7 +19,7 @@ import axios from 'axios' // 导入 axios 模块 ...@@ -19,7 +19,7 @@ import axios from 'axios' // 导入 axios 模块
import Header from '@/components/Header/Header.vue' // 导入 Header 组件 import Header from '@/components/Header/Header.vue' // 导入 Header 组件
import Goods from '@/components/Goods/Goods.vue' // 导入 Goods 组件 import Goods from '@/components/Goods/Goods.vue' // 导入 Goods 组件
import Footer from '@/components/Footer/Footer.vue' import Footer from '@/components/Footer/Footer.vue'
import { EventBus } from './components/eventBus.js'
export default { export default {
components: { components: {
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
<script> <script>
import bus from '../eventBus.js'; import bus from '../eventBus' ;
export default { export default {
...@@ -27,7 +28,7 @@ export default { ...@@ -27,7 +28,7 @@ export default {
}, },
methods:{ methods:{
add(){ add(){
} }
}, },
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</template> </template>
<script> <script>
import bus from '../eventBus';
export default { export default {
props:{ props:{
full_checked:{ full_checked:{
...@@ -33,7 +33,8 @@ export default { ...@@ -33,7 +33,8 @@ export default {
methods:{ methods:{
changAppListGoodsSState(e){ changAppListGoodsSState(e){
this.$emit('changAllGoodsState',{value: e.target.checked}) this.$emit('changAllGoodsState',{value: e.target.checked})
} },
} }
} }
</script> </script>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="goods-info-bottom"> <div class="goods-info-bottom">
<!-- 商品价格 --> <!-- 商品价格 -->
<span class="goods-price">{{price}}</span> <span class="goods-price">{{price}}</span>
<Counter :num="count" :count_id="id"></Counter> <Counter :num="count" :count_id="id" ></Counter>
</div> </div>
</div> </div>
</div> </div>
......
export function helloWorld() {
console.log("Hello, World!"); import { createApp } from 'vue';
}
\ No newline at end of file export default createApp({});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册