diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/App.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/App.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..72248fd61be78392d39e4189212a95a6d3cf0c56
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/App.vue"
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/components/CartItem.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/components/CartItem.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..a58bcec5320ceb62fdf0c4631800be37794b4166
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/components/CartItem.vue"
@@ -0,0 +1,103 @@
+
+
+
+
+
{{ name }}
+
+
+ ¥{{ price }}.00
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/components/HeaderBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/components/HeaderBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..6c46e28632361045b469c21c18c3df48c94cd84c
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/components/HeaderBase.vue"
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/main.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/main.js"
new file mode 100644
index 0000000000000000000000000000000000000000..2c27f0a1ad1fac9566e5be622c06d94bcec9790e
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/main.js"
@@ -0,0 +1,21 @@
+import Vue from 'vue'
+import App from './App.vue'
+
+import VueRouter from 'vue-router'
+
+Vue.use(VueRouter)
+
+import router from './router/index'
+import plugin1 from './plugins/plugin1'
+
+Vue.use(plugin1)
+
+Vue.config.productionTip = false
+new Vue({
+ el:'#app',
+
+ render:(createElement) => {
+ return createElement(App)
+ },
+ router
+})
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/AdvList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/AdvList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..3d939607560c1496abd45e158a97073d912fa67a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/AdvList.vue"
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
{{ item.name }}
+
+
+ {{ item.num }}折起
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/BodyBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/BodyBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..e65b32e571049317e7e4f77b8781862d109411c9
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/BodyBase.vue"
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.num}}折起
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/CartList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/CartList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..dd87bc9191f3b5f045fea15fcf894a60c6b0fb15
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/CartList.vue"
@@ -0,0 +1,71 @@
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/Detail.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/Detail.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..4f03081a6ea4c6a690d9184582e6423652789a7a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/pages/Detail.vue"
@@ -0,0 +1,237 @@
+
+
+
+
+
+
+
+
+
+
+ ¥{{ price }}
+ ¥4995.2折
+
+
+
+
+
+
+
{{ name }}
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥{{ price }}
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/plugins/plugin1.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/plugins/plugin1.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a62e97a02d5d658149055a8fc742b53ee37542a1
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/plugins/plugin1.js"
@@ -0,0 +1,26 @@
+import VueScroller from 'vue-scroller'
+
+
+const plugin1 = {
+ install: function (Vue) {
+ console.log('plugin1 start')
+ console.log(Vue);
+ //增强属性
+ Vue.prototype.$class = 'class7';
+ //全局的混入
+ Vue.mixin({
+ data: function () {
+ return {
+ month: 15,
+ hope: '挣大钱',
+ pageSize: 20
+ }
+ }
+ })
+ //全局的指令.....
+
+ Vue.use(VueScroller)
+ }
+
+}
+export default plugin1
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/router/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/router/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..46a97438fdbab4388479b63b75851abef2612c7d
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-03vue/src/router/index.js"
@@ -0,0 +1,39 @@
+// 配置路由规则
+import VueRouter from 'vue-router'
+//默认的商品首页
+import BodyBase from '../pages/BodyBase'
+//活动列表页
+import AdvList from '../pages/AdvList'
+//活动商品详情页
+import Detail from '../pages/Detail'
+import CartList from '../pages/CartList'
+
+//创建并暴露一个路由器
+export default new VueRouter({
+ routes: [
+ {
+ path: '/',
+ component:BodyBase,
+ },
+ {
+ path: '/base',
+ component: BodyBase,
+ },
+ {
+ path:'/adv',
+ component:AdvList
+ },
+ {
+ name:'detail',
+ path:'/detail/:id/:name',
+ component:Detail,
+ props:true
+ },
+ {
+ name:'cartList',
+ path:'/cartList',
+ component:CartList,
+ props:true
+ }
+ ]
+})
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/App.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/App.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..72248fd61be78392d39e4189212a95a6d3cf0c56
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/App.vue"
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/components/CartItem.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/components/CartItem.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..a58bcec5320ceb62fdf0c4631800be37794b4166
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/components/CartItem.vue"
@@ -0,0 +1,103 @@
+
+
+
+
+
{{ name }}
+
+
+ ¥{{ price }}.00
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/components/HeaderBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/components/HeaderBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..6c46e28632361045b469c21c18c3df48c94cd84c
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/components/HeaderBase.vue"
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/main.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/main.js"
new file mode 100644
index 0000000000000000000000000000000000000000..2c27f0a1ad1fac9566e5be622c06d94bcec9790e
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/main.js"
@@ -0,0 +1,21 @@
+import Vue from 'vue'
+import App from './App.vue'
+
+import VueRouter from 'vue-router'
+
+Vue.use(VueRouter)
+
+import router from './router/index'
+import plugin1 from './plugins/plugin1'
+
+Vue.use(plugin1)
+
+Vue.config.productionTip = false
+new Vue({
+ el:'#app',
+
+ render:(createElement) => {
+ return createElement(App)
+ },
+ router
+})
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/AdvList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/AdvList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..3d939607560c1496abd45e158a97073d912fa67a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/AdvList.vue"
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
{{ item.name }}
+
+
+ {{ item.num }}折起
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/BodyBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/BodyBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..e65b32e571049317e7e4f77b8781862d109411c9
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/BodyBase.vue"
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.num}}折起
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/CartList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/CartList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..dd87bc9191f3b5f045fea15fcf894a60c6b0fb15
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/CartList.vue"
@@ -0,0 +1,71 @@
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/Detail.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/Detail.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..4f03081a6ea4c6a690d9184582e6423652789a7a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/pages/Detail.vue"
@@ -0,0 +1,237 @@
+
+
+
+
+
+
+
+
+
+
+ ¥{{ price }}
+ ¥4995.2折
+
+
+
+
+
+
+
{{ name }}
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥{{ price }}
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/plugins/plugin1.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/plugins/plugin1.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a62e97a02d5d658149055a8fc742b53ee37542a1
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/plugins/plugin1.js"
@@ -0,0 +1,26 @@
+import VueScroller from 'vue-scroller'
+
+
+const plugin1 = {
+ install: function (Vue) {
+ console.log('plugin1 start')
+ console.log(Vue);
+ //增强属性
+ Vue.prototype.$class = 'class7';
+ //全局的混入
+ Vue.mixin({
+ data: function () {
+ return {
+ month: 15,
+ hope: '挣大钱',
+ pageSize: 20
+ }
+ }
+ })
+ //全局的指令.....
+
+ Vue.use(VueScroller)
+ }
+
+}
+export default plugin1
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/router/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/router/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..46a97438fdbab4388479b63b75851abef2612c7d
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-05vue/src/router/index.js"
@@ -0,0 +1,39 @@
+// 配置路由规则
+import VueRouter from 'vue-router'
+//默认的商品首页
+import BodyBase from '../pages/BodyBase'
+//活动列表页
+import AdvList from '../pages/AdvList'
+//活动商品详情页
+import Detail from '../pages/Detail'
+import CartList from '../pages/CartList'
+
+//创建并暴露一个路由器
+export default new VueRouter({
+ routes: [
+ {
+ path: '/',
+ component:BodyBase,
+ },
+ {
+ path: '/base',
+ component: BodyBase,
+ },
+ {
+ path:'/adv',
+ component:AdvList
+ },
+ {
+ name:'detail',
+ path:'/detail/:id/:name',
+ component:Detail,
+ props:true
+ },
+ {
+ name:'cartList',
+ path:'/cartList',
+ component:CartList,
+ props:true
+ }
+ ]
+})
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/App.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/App.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..72248fd61be78392d39e4189212a95a6d3cf0c56
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/App.vue"
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/components/CartItem.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/components/CartItem.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..a58bcec5320ceb62fdf0c4631800be37794b4166
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/components/CartItem.vue"
@@ -0,0 +1,103 @@
+
+
+
+
+
{{ name }}
+
+
+ ¥{{ price }}.00
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/components/HeaderBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/components/HeaderBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..6c46e28632361045b469c21c18c3df48c94cd84c
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/components/HeaderBase.vue"
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/main.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/main.js"
new file mode 100644
index 0000000000000000000000000000000000000000..2c27f0a1ad1fac9566e5be622c06d94bcec9790e
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/main.js"
@@ -0,0 +1,21 @@
+import Vue from 'vue'
+import App from './App.vue'
+
+import VueRouter from 'vue-router'
+
+Vue.use(VueRouter)
+
+import router from './router/index'
+import plugin1 from './plugins/plugin1'
+
+Vue.use(plugin1)
+
+Vue.config.productionTip = false
+new Vue({
+ el:'#app',
+
+ render:(createElement) => {
+ return createElement(App)
+ },
+ router
+})
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/AdvList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/AdvList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..3d939607560c1496abd45e158a97073d912fa67a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/AdvList.vue"
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
{{ item.name }}
+
+
+ {{ item.num }}折起
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/BodyBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/BodyBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..e65b32e571049317e7e4f77b8781862d109411c9
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/BodyBase.vue"
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.num}}折起
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/CartList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/CartList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..dd87bc9191f3b5f045fea15fcf894a60c6b0fb15
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/CartList.vue"
@@ -0,0 +1,71 @@
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/Detail.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/Detail.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..4f03081a6ea4c6a690d9184582e6423652789a7a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/pages/Detail.vue"
@@ -0,0 +1,237 @@
+
+
+
+
+
+
+
+
+
+
+ ¥{{ price }}
+ ¥4995.2折
+
+
+
+
+
+
+
{{ name }}
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥{{ price }}
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/plugins/plugin1.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/plugins/plugin1.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a62e97a02d5d658149055a8fc742b53ee37542a1
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/plugins/plugin1.js"
@@ -0,0 +1,26 @@
+import VueScroller from 'vue-scroller'
+
+
+const plugin1 = {
+ install: function (Vue) {
+ console.log('plugin1 start')
+ console.log(Vue);
+ //增强属性
+ Vue.prototype.$class = 'class7';
+ //全局的混入
+ Vue.mixin({
+ data: function () {
+ return {
+ month: 15,
+ hope: '挣大钱',
+ pageSize: 20
+ }
+ }
+ })
+ //全局的指令.....
+
+ Vue.use(VueScroller)
+ }
+
+}
+export default plugin1
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/router/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/router/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..46a97438fdbab4388479b63b75851abef2612c7d
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-06vue/src/router/index.js"
@@ -0,0 +1,39 @@
+// 配置路由规则
+import VueRouter from 'vue-router'
+//默认的商品首页
+import BodyBase from '../pages/BodyBase'
+//活动列表页
+import AdvList from '../pages/AdvList'
+//活动商品详情页
+import Detail from '../pages/Detail'
+import CartList from '../pages/CartList'
+
+//创建并暴露一个路由器
+export default new VueRouter({
+ routes: [
+ {
+ path: '/',
+ component:BodyBase,
+ },
+ {
+ path: '/base',
+ component: BodyBase,
+ },
+ {
+ path:'/adv',
+ component:AdvList
+ },
+ {
+ name:'detail',
+ path:'/detail/:id/:name',
+ component:Detail,
+ props:true
+ },
+ {
+ name:'cartList',
+ path:'/cartList',
+ component:CartList,
+ props:true
+ }
+ ]
+})
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/App.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/App.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..72248fd61be78392d39e4189212a95a6d3cf0c56
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/App.vue"
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/components/CartItem.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/components/CartItem.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..6407152dc883992a2a77cafae0339a1eb9413f3a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/components/CartItem.vue"
@@ -0,0 +1,85 @@
+
+
+
+
+
{{name}}
+
+
+ {{price}}折起
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/components/HeaderBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/components/HeaderBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..56b1927836121838ac601f9fc7e60810b999a687
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/components/HeaderBase.vue"
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/data/product.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/data/product.js"
new file mode 100644
index 0000000000000000000000000000000000000000..33bcfc92bb743fd6b93c7f1bb6ed4d832094ad14
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/data/product.js"
@@ -0,0 +1,47 @@
+
+// export let products=[
+// {id:1,name:'韩国三熹玉3CE彩妆香水专场',img:'../assets/header.jpg',num:80,price:1000},
+// {id:2,name:'阿迪达斯三叶草运动户外专场',img:'../assets/center.jpg',num:90,price:2000},
+// {id:3,name:'UGG专场',img:'../assets/bottom.jpg',num:80,price:3000},
+// {id:4,name:'伊芙丽eifini女装专场',img:'../assets/yfl.jpg',num:67,price:3000}
+// ];
+
+// export let cart=[];
+
+export default {
+ name:'product',
+ products:[
+ {id:1,name:'韩国三熹玉3CE彩妆香水专场',img:'../assets/header.jpg',num:80,price:1000},
+ {id:2,name:'阿迪达斯三叶草运动户外专场',img:'../assets/center.jpg',num:90,price:2000},
+ {id:3,name:'UGG专场',img:'../assets/bottom.jpg',num:80,price:3000},
+ {id:4,name:'伊芙丽eifini女装专场',img:'../assets/yfl.jpg',num:67,price:3000}
+ ],
+ cart:[],
+
+ addToCart:function(id){
+
+ let inCart = false;
+ this.cart.forEach(el=>{
+ if(id==el.id){
+ inCart=true;
+ el.num++;
+ }
+ })
+ if(inCart==false){
+ this.products.forEach(el=>{
+ if(el.id==id){
+ let product =el;
+ product.num=1;
+ this.cart.push(product);
+ }
+ })
+ }
+ console.log(this.cart)
+ },
+ getCart(){
+ return this.cart;
+ },
+}
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/adidas.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/adidas.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..8fe067a09f1a02ff14144dccbca474f69b9094c0
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/adidas.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/akf.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/akf.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..23138e7d592667493502d1cc23279cd92c997d66
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/akf.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/lining.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/lining.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..48dfd1e7da19af708b5095258ff98ea2b67479d5
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/lining.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/threece.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/threece.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..2300dc74b2e7a4f07cab100bba56dae3eec489e9
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/threece.vue"
@@ -0,0 +1,239 @@
+
+
+
+
+
+
+
+
+
+ ¥79
+ ¥1107.2折
+
+
+
+
+
+
+
3CE |【柔焦唇妆】水唇釉雾面慕斯唇釉唇泥哑光
显白烂番茄色南瓜色
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥110
+
+
+
+ ¥79
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/ugg.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/ugg.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..ff48e788b35ad11d251b32a03d2fc7aa499af339
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/detail/ugg.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/main.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/main.js"
new file mode 100644
index 0000000000000000000000000000000000000000..6cb9215cca06b6a19beb23aa0cdff394a1b98d8d
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/main.js"
@@ -0,0 +1,98 @@
+import Vue from 'vue'
+import App from './App.vue'
+import axios from 'axios'
+import Vuex from 'vuex';
+
+import VueScroller from 'vue-scroller'
+Vue.use(VueScroller)
+
+//引入VueRouter
+import VueRouter from 'vue-router'
+//应用插件
+Vue.use(VueRouter)
+
+Vue.use(Vuex);
+
+
+
+const store = new Vuex.Store({
+ state: {
+ name:'外卖系统',
+ cart:[],
+ buyNums:0,//购买的数量,每次点击购买时,把对应购买数量+1
+
+ },
+
+ mutations:{
+ changeName(state,name){
+ state.name=name;
+
+ },
+ changeBuyNum(state,num){
+ console.log('change buynum');
+ //请求后台数据,
+ axios.get('https://question.llblog.cc/api.php').then(res=>{
+ console.log(res);
+ state.buyNums = state.buyNums+num; //0+1 1+1 0
+ console.log(state.buyNums);
+ });
+
+ },
+ addToCart(state,product){
+ let inCart = false;
+ state.cart.forEach(el=>{
+ if(el.id==product.id){
+ el.num++
+ inCart=true;
+ }
+ })
+ if(!inCart){
+ state.push(product);
+ }
+ },
+
+
+ },
+ actions:{
+ changeNumByAction (context,num) {
+ console.log(context);//context 是store的精简版
+ context.commit('changeBuyNum',num)
+ }
+ },
+ getters:{
+ getBuyNums(state){
+ return state.buyNums+' ====数量';
+ }
+ }
+
+ })
+
+//引入路由器
+import router from './router/index';
+
+
+
+// axios.defaults.baseURL='http://123.207.32.32:8000';
+
+Vue.prototype.$axios=axios;
+
+//关闭生产环境提交
+Vue.config.productionTip = false
+//render 渲染 temldate.
+new Vue({
+ el:'#app',
+ // template:'',
+ // components:{
+ // App,
+ // }
+ //脚手架引入的vue是残缺的,为了性能
+ render: (createElement) => {
+ // console.log(typeof createElement);
+ return createElement(App)
+ },
+ beforeCreate:function(){
+ Vue.prototype.$bus=this;
+ },
+ router,
+ store
+})
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/AdvList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/AdvList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..278aa02541b85b2678d29fb87606bbd8548c7be2
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/AdvList.vue"
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.price}}---{{item.num}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/BodyBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/BodyBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..632eeb0ba495302afc7c64858f4a13ba3a17ca3c
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/BodyBase.vue"
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.num}}折起
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/CartList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/CartList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..dc56a809c8e25c2524a27b252e85f806b27193d4
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/CartList.vue"
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/Detail.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/Detail.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..ad7281f8b79b0f897ef609c00155ab672409dc89
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/pages/Detail.vue"
@@ -0,0 +1,244 @@
+
+
+ {{this.$store.state.buyNums}}
+ {{getBuyNums}}
+
+
+
+
+
+
+
+
+ ¥{{price}}
+ ¥4995.2折
+
+
+
+
+
+
+
{{name}}
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥{{price}}
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/router/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/router/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..e894839a98442b4a7ec971344bf48e4c5d824e14
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/router/index.js"
@@ -0,0 +1,49 @@
+// 配置路由规则
+import VueRouter from 'vue-router'
+//默认商品列表
+import BodyBase from '../pages/BodyBase'
+//默认商品广告列表
+import AdvList from '../pages/AdvList'
+import Detail from '../pages/Detail'
+import CartList from '../pages/CartList'
+
+//创建并暴露一个路由器
+export default new VueRouter({
+ routes: [
+ {
+ path: '/',
+ component: BodyBase,
+ },
+ {
+ path: '/base',
+ component: BodyBase,
+ },
+ {
+ name:'listName',
+ path: '/adv',
+ component: AdvList,
+ meta:{
+ keepalive:true
+ }
+ },
+ {
+ name:'detail',
+ //path:'/detail',
+ path: '/detail/:id/:name',
+ component: Detail,
+ //props:{id:'id1',name:'name1'}, 对象写法
+ props:true
+ },
+ {
+ name:'cartList',
+ //path:'/detail',
+ path: '/cartList',
+ component: CartList,
+ //props:{id:'id1',name:'name1'}, 对象写法
+ props:true
+ },
+
+ ]
+})
+
+// export default router
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/vuex.md" "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/vuex.md"
new file mode 100644
index 0000000000000000000000000000000000000000..5dfe881c43fd202302f30e39d314953033fe6f8f
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-10vue/src/vuex.md"
@@ -0,0 +1 @@
+## mutioan 更改 Vuex 的 store 中的状态的唯一方法是提交 mutation,mutation 中的函数必须是同步的
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/App.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/App.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..72248fd61be78392d39e4189212a95a6d3cf0c56
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/App.vue"
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/components/CartItem.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/components/CartItem.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..6407152dc883992a2a77cafae0339a1eb9413f3a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/components/CartItem.vue"
@@ -0,0 +1,85 @@
+
+
+
+
+
{{name}}
+
+
+ {{price}}折起
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/components/HeaderBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/components/HeaderBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..56b1927836121838ac601f9fc7e60810b999a687
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/components/HeaderBase.vue"
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/data/product.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/data/product.js"
new file mode 100644
index 0000000000000000000000000000000000000000..33bcfc92bb743fd6b93c7f1bb6ed4d832094ad14
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/data/product.js"
@@ -0,0 +1,47 @@
+
+// export let products=[
+// {id:1,name:'韩国三熹玉3CE彩妆香水专场',img:'../assets/header.jpg',num:80,price:1000},
+// {id:2,name:'阿迪达斯三叶草运动户外专场',img:'../assets/center.jpg',num:90,price:2000},
+// {id:3,name:'UGG专场',img:'../assets/bottom.jpg',num:80,price:3000},
+// {id:4,name:'伊芙丽eifini女装专场',img:'../assets/yfl.jpg',num:67,price:3000}
+// ];
+
+// export let cart=[];
+
+export default {
+ name:'product',
+ products:[
+ {id:1,name:'韩国三熹玉3CE彩妆香水专场',img:'../assets/header.jpg',num:80,price:1000},
+ {id:2,name:'阿迪达斯三叶草运动户外专场',img:'../assets/center.jpg',num:90,price:2000},
+ {id:3,name:'UGG专场',img:'../assets/bottom.jpg',num:80,price:3000},
+ {id:4,name:'伊芙丽eifini女装专场',img:'../assets/yfl.jpg',num:67,price:3000}
+ ],
+ cart:[],
+
+ addToCart:function(id){
+
+ let inCart = false;
+ this.cart.forEach(el=>{
+ if(id==el.id){
+ inCart=true;
+ el.num++;
+ }
+ })
+ if(inCart==false){
+ this.products.forEach(el=>{
+ if(el.id==id){
+ let product =el;
+ product.num=1;
+ this.cart.push(product);
+ }
+ })
+ }
+ console.log(this.cart)
+ },
+ getCart(){
+ return this.cart;
+ },
+}
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/adidas.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/adidas.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..8fe067a09f1a02ff14144dccbca474f69b9094c0
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/adidas.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/akf.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/akf.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..23138e7d592667493502d1cc23279cd92c997d66
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/akf.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/lining.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/lining.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..48dfd1e7da19af708b5095258ff98ea2b67479d5
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/lining.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/threece.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/threece.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..2300dc74b2e7a4f07cab100bba56dae3eec489e9
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/threece.vue"
@@ -0,0 +1,239 @@
+
+
+
+
+
+
+
+
+
+ ¥79
+ ¥1107.2折
+
+
+
+
+
+
+
3CE |【柔焦唇妆】水唇釉雾面慕斯唇釉唇泥哑光
显白烂番茄色南瓜色
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥110
+
+
+
+ ¥79
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/ugg.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/ugg.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..ff48e788b35ad11d251b32a03d2fc7aa499af339
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/detail/ugg.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/main.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/main.js"
new file mode 100644
index 0000000000000000000000000000000000000000..4753647c6caa881dafab5f28ccfc9a0d6b0404c2
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/main.js"
@@ -0,0 +1,61 @@
+import Vue from 'vue'
+import App from './App.vue'
+import axios from 'axios'
+//全局引入
+// import ElementUI from 'element-ui';
+// import 'element-ui/lib/theme-chalk/index.css';
+// Vue.use(ElementUI);
+
+//按需引入
+import {Button,Row,Input,Carousel,CarouselItem} from 'element-ui';
+
+//全局注册
+Vue.component(Button.name,Button);
+Vue.component(Input.name,Input);
+Vue.component(Carousel.name,Carousel);
+Vue.component(CarouselItem.name,CarouselItem);
+Vue.component(Row.name,Row);
+
+Vue.component('class7-button',Button);
+
+import VueScroller from 'vue-scroller'
+Vue.use(VueScroller)
+// 在js es2015,有优先级别,优先级别比较好的是 import
+//引入VueRouter
+import VueRouter from 'vue-router'
+//应用插件
+Vue.use(VueRouter)
+
+import store from './store';
+//引入路由器
+import router from './router/index';
+
+
+
+// axios.defaults.baseURL='http://123.207.32.32:8000';
+
+Vue.prototype.$axios=axios;
+
+
+
+
+//关闭生产环境提交
+Vue.config.productionTip = false
+//render 渲染 temldate.
+new Vue({
+ el:'#app',
+ // template:'',
+ // components:{
+ // App,
+ // }
+ //脚手架引入的vue是残缺的,为了性能
+ render: (createElement) => {
+ // console.log(typeof createElement);
+ return createElement(App)
+ },
+ beforeCreate:function(){
+ Vue.prototype.$bus=this;
+ },
+ router,
+ store
+})
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/AdvList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/AdvList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..bb5ef312701a881754ba1be890f5c7be152ad8f8
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/AdvList.vue"
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.price}}---{{item.num}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/BodyBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/BodyBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..632eeb0ba495302afc7c64858f4a13ba3a17ca3c
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/BodyBase.vue"
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.num}}折起
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/CartList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/CartList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..dc56a809c8e25c2524a27b252e85f806b27193d4
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/CartList.vue"
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/Detail.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/Detail.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..162b9e0199820068748f0aca273961d03a79951a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/Detail.vue"
@@ -0,0 +1,263 @@
+
+
+
+ {{this.$store.getters.getName}}
+ {{this.$store.state.user.userInfo.name}}
+ {{this.$store.state.money}}
+
{{userInfo}}
+
+
+
+
+
+
+
+
+ ¥{{price}}
+ ¥4995.2折
+
+
+
+
+
+
+
{{name}}
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥{{price}}
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/Ele.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/Ele.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..7b291ae8b807809511b308092576672492c8f16f
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/pages/Ele.vue"
@@ -0,0 +1,114 @@
+
+
+
+ 默认按钮
+ 主要按钮
+ 成功按钮
+ 信息按钮
+ 警告按钮
+ 危险按钮
+ 自定义标签
+
+
+
+
+
+
+
+
+
+
+
+ 默认 Hover 指示器触发
+
+
+ {{ item }}
+
+
+
+
+ Click 指示器触发
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/router/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/router/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..7d33edbc86271d7f5f6792839098e943ea819422
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/router/index.js"
@@ -0,0 +1,54 @@
+// 配置路由规则
+import VueRouter from 'vue-router'
+//默认商品列表
+import BodyBase from '../pages/BodyBase'
+//默认商品广告列表
+import AdvList from '../pages/AdvList'
+import Detail from '../pages/Detail'
+import CartList from '../pages/CartList'
+import Ele from '../pages/Ele'
+
+//创建并暴露一个路由器
+export default new VueRouter({
+ routes: [
+ {
+ path: '/',
+ component: BodyBase,
+ },
+ {
+ path: '/ele',
+ component: Ele,
+ },
+ {
+ path: '/base',
+ component: BodyBase,
+ },
+ {
+ name:'listName',
+ path: '/adv',
+ component: AdvList,
+ meta:{
+ keepalive:true
+ }
+ },
+ {
+ name:'detail',
+ //path:'/detail',
+ path: '/detail/:id/:name',
+ component: Detail,
+ //props:{id:'id1',name:'name1'}, 对象写法
+ props:true
+ },
+ {
+ name:'cartList',
+ //path:'/detail',
+ path: '/cartList',
+ component: CartList,
+ //props:{id:'id1',name:'name1'}, 对象写法
+ props:true
+ },
+
+ ]
+})
+
+// export default router
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/actions.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/actions.js"
new file mode 100644
index 0000000000000000000000000000000000000000..fb14e72b726522cf3e294f62a89fda109fcf2e4b
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/actions.js"
@@ -0,0 +1,7 @@
+const actions={
+ add2Cart(context,product) {
+ console.log(product);
+ context.commit('addToCart',product);
+ }
+ };
+ export default actions;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..fe67add79b72b94016134af2805b8540c641bcd7
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/index.js"
@@ -0,0 +1,29 @@
+import Vuex from 'vuex';
+import Vue from 'vue';
+import mutations from './mutations'
+import actions from './actions'
+import user from './modules/user'
+Vue.use(Vuex);
+const store = new Vuex.Store({
+ state: {
+ name:'外卖系统',
+ cart:[],
+ buyNums:0,
+ money:0
+ },
+
+ mutations,
+ actions,
+
+ getters:{
+ getName:(state)=>{
+ return state.name+'----我们的项目';
+ }
+ },
+ modules:{
+ user
+ }
+
+ })
+ export default store;
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/modules/user.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/modules/user.js"
new file mode 100644
index 0000000000000000000000000000000000000000..68d1b2507c029352b964ad8016d034ad9d1b0f34
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/modules/user.js"
@@ -0,0 +1,22 @@
+const user={
+ namespaced: true,
+ //每个模块都有自己的 state mutation ....
+ state:{
+ userInfo:{name:'刘斌明天要准备',age:29}
+ },
+ mutations:{
+ changeUser(state,payload){
+ state.userInfo=payload;
+
+ }
+ },
+ actions:{
+ changeUserByAction({commit},payload){
+ commit('changeUser',payload)
+ //触发全局的mutation的修改
+ commit('makeMoney',1000,{ root: true })
+ }
+ }
+
+ }
+ export default user;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/mutations.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/mutations.js"
new file mode 100644
index 0000000000000000000000000000000000000000..eee0d474fb15c7e64f26d898d8c1175d6b0c7829
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/2022-5-12vue/src/store/mutations.js"
@@ -0,0 +1,26 @@
+const mutations={
+ changeName(state,name){
+ state.name=name
+ },
+ //加入到购物车
+ addToCart(state,product){
+ console.log('购物商品修改');
+ console.log(state.buyNums)
+ let inCart = false;
+ state.cart.forEach(el=>{
+ if(el.id==product.id){
+ el.num++
+ inCart=true;
+ }
+ })
+ if(!inCart){
+ state.cart.push(product);
+ }
+ state.buyNums++;
+ console.log(state.buyNums,111);
+ },
+ makeMoney(state,payload){
+ state.money = state.money+payload
+ }
+ };
+ export default mutations;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/App.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/App.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..72248fd61be78392d39e4189212a95a6d3cf0c56
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/App.vue"
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/components/CartItem.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/components/CartItem.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..6407152dc883992a2a77cafae0339a1eb9413f3a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/components/CartItem.vue"
@@ -0,0 +1,85 @@
+
+
+
+
+
{{name}}
+
+
+ {{price}}折起
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/components/HeaderBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/components/HeaderBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..56b1927836121838ac601f9fc7e60810b999a687
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/components/HeaderBase.vue"
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/data/product.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/data/product.js"
new file mode 100644
index 0000000000000000000000000000000000000000..33bcfc92bb743fd6b93c7f1bb6ed4d832094ad14
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/data/product.js"
@@ -0,0 +1,47 @@
+
+// export let products=[
+// {id:1,name:'韩国三熹玉3CE彩妆香水专场',img:'../assets/header.jpg',num:80,price:1000},
+// {id:2,name:'阿迪达斯三叶草运动户外专场',img:'../assets/center.jpg',num:90,price:2000},
+// {id:3,name:'UGG专场',img:'../assets/bottom.jpg',num:80,price:3000},
+// {id:4,name:'伊芙丽eifini女装专场',img:'../assets/yfl.jpg',num:67,price:3000}
+// ];
+
+// export let cart=[];
+
+export default {
+ name:'product',
+ products:[
+ {id:1,name:'韩国三熹玉3CE彩妆香水专场',img:'../assets/header.jpg',num:80,price:1000},
+ {id:2,name:'阿迪达斯三叶草运动户外专场',img:'../assets/center.jpg',num:90,price:2000},
+ {id:3,name:'UGG专场',img:'../assets/bottom.jpg',num:80,price:3000},
+ {id:4,name:'伊芙丽eifini女装专场',img:'../assets/yfl.jpg',num:67,price:3000}
+ ],
+ cart:[],
+
+ addToCart:function(id){
+
+ let inCart = false;
+ this.cart.forEach(el=>{
+ if(id==el.id){
+ inCart=true;
+ el.num++;
+ }
+ })
+ if(inCart==false){
+ this.products.forEach(el=>{
+ if(el.id==id){
+ let product =el;
+ product.num=1;
+ this.cart.push(product);
+ }
+ })
+ }
+ console.log(this.cart)
+ },
+ getCart(){
+ return this.cart;
+ },
+}
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/adidas.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/adidas.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..8fe067a09f1a02ff14144dccbca474f69b9094c0
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/adidas.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/akf.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/akf.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..23138e7d592667493502d1cc23279cd92c997d66
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/akf.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/lining.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/lining.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..48dfd1e7da19af708b5095258ff98ea2b67479d5
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/lining.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/threece.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/threece.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..2300dc74b2e7a4f07cab100bba56dae3eec489e9
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/threece.vue"
@@ -0,0 +1,239 @@
+
+
+
+
+
+
+
+
+
+ ¥79
+ ¥1107.2折
+
+
+
+
+
+
+
3CE |【柔焦唇妆】水唇釉雾面慕斯唇釉唇泥哑光
显白烂番茄色南瓜色
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥110
+
+
+
+ ¥79
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/ugg.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/ugg.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..ff48e788b35ad11d251b32a03d2fc7aa499af339
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/detail/ugg.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/main.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/main.js"
new file mode 100644
index 0000000000000000000000000000000000000000..f6bb6db3aa3d4e11f73c880a20c1feaf5c96e8b7
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/main.js"
@@ -0,0 +1,47 @@
+import Vue from 'vue'
+import App from './App.vue'
+import axios from 'axios'
+import VueScroller from 'vue-scroller'
+
+//import 的级别是最好的,优先执行 import
+Vue.use(VueScroller)
+
+//引入VueRouter
+import VueRouter from 'vue-router'
+//应用插件
+Vue.use(VueRouter)
+
+
+import store from './store';
+
+
+
+//引入路由器
+import router from './router/index';
+
+
+
+// axios.defaults.baseURL='http://123.207.32.32:8000';
+
+Vue.prototype.$axios=axios;
+
+//关闭生产环境提交
+Vue.config.productionTip = false
+//render 渲染 temldate.
+new Vue({
+ el:'#app',
+ // template:'',
+ // components:{
+ // App,
+ // }
+ //脚手架引入的vue是残缺的,为了性能
+ render: (createElement) => {
+ // console.log(typeof createElement);
+ return createElement(App)
+ },
+ beforeCreate:function(){
+ Vue.prototype.$bus=this;
+ },
+ router,
+ store
+})
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/AdvList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/AdvList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..4ec65d0ff7095b401867fbd30f18de7f2bf78162
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/AdvList.vue"
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.price}}---{{item.num}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/BodyBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/BodyBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..632eeb0ba495302afc7c64858f4a13ba3a17ca3c
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/BodyBase.vue"
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.num}}折起
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/CartList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/CartList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..dc56a809c8e25c2524a27b252e85f806b27193d4
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/CartList.vue"
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/Detail.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/Detail.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..bcee73c143dde0b94a1a994b706855c2c11a90ca
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/pages/Detail.vue"
@@ -0,0 +1,255 @@
+
+
+ {{this.$store.state.buyNums}}
+ {{getBuyNums}}
+ {{this.$store.state.user.userInfo.name}}
+
{{userInfo.name}}
+
+
+
+
+
+
+
+
+ ¥{{price}}
+ ¥4995.2折
+
+
+
+
+
+
+
{{name}}
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥{{price}}
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/router/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/router/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..e894839a98442b4a7ec971344bf48e4c5d824e14
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/router/index.js"
@@ -0,0 +1,49 @@
+// 配置路由规则
+import VueRouter from 'vue-router'
+//默认商品列表
+import BodyBase from '../pages/BodyBase'
+//默认商品广告列表
+import AdvList from '../pages/AdvList'
+import Detail from '../pages/Detail'
+import CartList from '../pages/CartList'
+
+//创建并暴露一个路由器
+export default new VueRouter({
+ routes: [
+ {
+ path: '/',
+ component: BodyBase,
+ },
+ {
+ path: '/base',
+ component: BodyBase,
+ },
+ {
+ name:'listName',
+ path: '/adv',
+ component: AdvList,
+ meta:{
+ keepalive:true
+ }
+ },
+ {
+ name:'detail',
+ //path:'/detail',
+ path: '/detail/:id/:name',
+ component: Detail,
+ //props:{id:'id1',name:'name1'}, 对象写法
+ props:true
+ },
+ {
+ name:'cartList',
+ //path:'/detail',
+ path: '/cartList',
+ component: CartList,
+ //props:{id:'id1',name:'name1'}, 对象写法
+ props:true
+ },
+
+ ]
+})
+
+// export default router
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/actions.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/actions.js"
new file mode 100644
index 0000000000000000000000000000000000000000..f9b47bd8e44f5a32e92ea34456aa931a3005d2b2
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/actions.js"
@@ -0,0 +1,13 @@
+
+const actions={
+
+ changeNumByAction (context,num) {
+ console.log(context);//context 是store的精简版
+ context.commit('changeBuyNum',num)
+ },
+ changeName({commit},name){
+ commit('changeName',name)
+ }
+}
+
+export default actions
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a58a3e765c52465582772faff9c8a6e5584add08
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/index.js"
@@ -0,0 +1,25 @@
+import Vuex from 'vuex';
+
+import Vue from 'vue';
+import state from './state';
+import actions from './actions';
+import mutations from './mutations'
+import user from './mudules/user'
+Vue.use(Vuex);
+
+const store = new Vuex.Store({
+ state,
+ mutations,
+ actions,
+ getters:{
+ getBuyNums(state){
+ return state.buyNums+' ====数量';
+ }
+ },
+ modules:{// 每个模块对象都有自己的 state mutation action getters
+ user
+ }
+
+ })
+
+ export default store;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/mudules/user.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/mudules/user.js"
new file mode 100644
index 0000000000000000000000000000000000000000..6e9c593eb8e10d1b964539e9376e611f0430e3f2
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/mudules/user.js"
@@ -0,0 +1,24 @@
+const user={
+ namespaced: true,
+ state:{
+ userInfo:{name:'vue',age:5},
+ },
+ mutations:{
+ changeUserInfo(state,payload){
+ console.log('userInfo的changeUserInfo');
+ state.userInfo=payload
+ }
+ },
+ actions:{
+ changeUserInfoByAction({commit},payload){// context commit
+ console.log('userInfo的changeUserInfoByActio');
+ commit('changeUserInfo',payload);
+ //联动的操作,还要把全局的name给修改
+ //因为 name 是全局的,官网提供了 他们可以接受 `root` 属性以访问根 dispatch 或 commit
+ commit('changeName','区块链',{root: true});
+ }
+ }
+
+ }
+
+ export default user;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/mutations.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/mutations.js"
new file mode 100644
index 0000000000000000000000000000000000000000..01134bad23a3b73a08e7ba03df939f73c1c3a10d
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/mutations.js"
@@ -0,0 +1,32 @@
+import axios from 'axios';
+const mutations={
+ changeName(state,name){
+ console.log('修改全局的name')
+ state.name=name;
+
+ },
+ changeBuyNum(state,num){
+ console.log('change buynum');
+ //请求后台数据,
+ axios.get('https://question.llblog.cc/api.php').then(res=>{
+ console.log(res);
+ state.buyNums = state.buyNums+num; //0+1 1+1 0
+ console.log(state.buyNums);
+ });
+
+ },
+ addToCart(state,product){
+ let inCart = false;
+ state.cart.forEach(el=>{
+ if(el.id==product.id){
+ el.num++
+ inCart=true;
+ }
+ })
+ if(!inCart){
+ state.push(product);
+ }
+ }
+}
+
+export default mutations;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/state.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/state.js"
new file mode 100644
index 0000000000000000000000000000000000000000..90f8d00b2a664f63a090ba52726e45cda7ce4376
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/store/state.js"
@@ -0,0 +1,8 @@
+const state={
+ name:'外卖系统',
+ cart:[],
+ buyNums:0,//购买的数量,每次点击购买时,把对应购买数量+1
+ //userInfo:{},
+
+}
+export default state;
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/vuex.md" "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/vuex.md"
new file mode 100644
index 0000000000000000000000000000000000000000..50fe2077b08c9e3ce440e6a50074c4f5a383348d
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-11vue/src/vuex.md"
@@ -0,0 +1,3 @@
+## mutioan 更改 Vuex 的 store 中的状态的唯一方法是提交 mutation,mutation 中的函数必须是同步的
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/App.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/App.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..72248fd61be78392d39e4189212a95a6d3cf0c56
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/App.vue"
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/components/CartItem.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/components/CartItem.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..6407152dc883992a2a77cafae0339a1eb9413f3a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/components/CartItem.vue"
@@ -0,0 +1,85 @@
+
+
+
+
+
{{name}}
+
+
+ {{price}}折起
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/components/HeaderBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/components/HeaderBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..56b1927836121838ac601f9fc7e60810b999a687
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/components/HeaderBase.vue"
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/data/product.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/data/product.js"
new file mode 100644
index 0000000000000000000000000000000000000000..33bcfc92bb743fd6b93c7f1bb6ed4d832094ad14
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/data/product.js"
@@ -0,0 +1,47 @@
+
+// export let products=[
+// {id:1,name:'韩国三熹玉3CE彩妆香水专场',img:'../assets/header.jpg',num:80,price:1000},
+// {id:2,name:'阿迪达斯三叶草运动户外专场',img:'../assets/center.jpg',num:90,price:2000},
+// {id:3,name:'UGG专场',img:'../assets/bottom.jpg',num:80,price:3000},
+// {id:4,name:'伊芙丽eifini女装专场',img:'../assets/yfl.jpg',num:67,price:3000}
+// ];
+
+// export let cart=[];
+
+export default {
+ name:'product',
+ products:[
+ {id:1,name:'韩国三熹玉3CE彩妆香水专场',img:'../assets/header.jpg',num:80,price:1000},
+ {id:2,name:'阿迪达斯三叶草运动户外专场',img:'../assets/center.jpg',num:90,price:2000},
+ {id:3,name:'UGG专场',img:'../assets/bottom.jpg',num:80,price:3000},
+ {id:4,name:'伊芙丽eifini女装专场',img:'../assets/yfl.jpg',num:67,price:3000}
+ ],
+ cart:[],
+
+ addToCart:function(id){
+
+ let inCart = false;
+ this.cart.forEach(el=>{
+ if(id==el.id){
+ inCart=true;
+ el.num++;
+ }
+ })
+ if(inCart==false){
+ this.products.forEach(el=>{
+ if(el.id==id){
+ let product =el;
+ product.num=1;
+ this.cart.push(product);
+ }
+ })
+ }
+ console.log(this.cart)
+ },
+ getCart(){
+ return this.cart;
+ },
+}
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/adidas.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/adidas.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..8fe067a09f1a02ff14144dccbca474f69b9094c0
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/adidas.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/akf.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/akf.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..23138e7d592667493502d1cc23279cd92c997d66
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/akf.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/lining.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/lining.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..48dfd1e7da19af708b5095258ff98ea2b67479d5
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/lining.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/threece.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/threece.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..2300dc74b2e7a4f07cab100bba56dae3eec489e9
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/threece.vue"
@@ -0,0 +1,239 @@
+
+
+
+
+
+
+
+
+
+ ¥79
+ ¥1107.2折
+
+
+
+
+
+
+
3CE |【柔焦唇妆】水唇釉雾面慕斯唇釉唇泥哑光
显白烂番茄色南瓜色
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥110
+
+
+
+ ¥79
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/ugg.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/ugg.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..ff48e788b35ad11d251b32a03d2fc7aa499af339
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/detail/ugg.vue"
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+ ¥259
+ ¥4995.2折
+
+
+
+
+
+
+
adidas NEO | 春季新款轻便耐磨低帮男女休闲鞋
男鞋女鞋运动鞋情侣鞋训练跑步黑
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥259
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/main.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/main.js"
new file mode 100644
index 0000000000000000000000000000000000000000..4753647c6caa881dafab5f28ccfc9a0d6b0404c2
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/main.js"
@@ -0,0 +1,61 @@
+import Vue from 'vue'
+import App from './App.vue'
+import axios from 'axios'
+//全局引入
+// import ElementUI from 'element-ui';
+// import 'element-ui/lib/theme-chalk/index.css';
+// Vue.use(ElementUI);
+
+//按需引入
+import {Button,Row,Input,Carousel,CarouselItem} from 'element-ui';
+
+//全局注册
+Vue.component(Button.name,Button);
+Vue.component(Input.name,Input);
+Vue.component(Carousel.name,Carousel);
+Vue.component(CarouselItem.name,CarouselItem);
+Vue.component(Row.name,Row);
+
+Vue.component('class7-button',Button);
+
+import VueScroller from 'vue-scroller'
+Vue.use(VueScroller)
+// 在js es2015,有优先级别,优先级别比较好的是 import
+//引入VueRouter
+import VueRouter from 'vue-router'
+//应用插件
+Vue.use(VueRouter)
+
+import store from './store';
+//引入路由器
+import router from './router/index';
+
+
+
+// axios.defaults.baseURL='http://123.207.32.32:8000';
+
+Vue.prototype.$axios=axios;
+
+
+
+
+//关闭生产环境提交
+Vue.config.productionTip = false
+//render 渲染 temldate.
+new Vue({
+ el:'#app',
+ // template:'',
+ // components:{
+ // App,
+ // }
+ //脚手架引入的vue是残缺的,为了性能
+ render: (createElement) => {
+ // console.log(typeof createElement);
+ return createElement(App)
+ },
+ beforeCreate:function(){
+ Vue.prototype.$bus=this;
+ },
+ router,
+ store
+})
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/AdvList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/AdvList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..bb5ef312701a881754ba1be890f5c7be152ad8f8
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/AdvList.vue"
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.price}}---{{item.num}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/BodyBase.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/BodyBase.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..632eeb0ba495302afc7c64858f4a13ba3a17ca3c
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/BodyBase.vue"
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
{{item.name}}
+
{{item.num}}折起
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/CartList.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/CartList.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..dc56a809c8e25c2524a27b252e85f806b27193d4
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/CartList.vue"
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/Detail.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/Detail.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..162b9e0199820068748f0aca273961d03a79951a
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/Detail.vue"
@@ -0,0 +1,263 @@
+
+
+
+ {{this.$store.getters.getName}}
+ {{this.$store.state.user.userInfo.name}}
+ {{this.$store.state.money}}
+
{{userInfo}}
+
+
+
+
+
+
+
+
+ ¥{{price}}
+ ¥4995.2折
+
+
+
+
+
+
+
{{name}}
+
+ 7天可退首单30元免邮上门退款
+
+
+
+
+
100%正品·专业鉴定·正品险
+
>
+
+
+
+
+
客服
+
+
+
购物车
+
+
+
+ ¥499
+
+
+
+ ¥{{price}}
+
+
+
特卖价 抢
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/Ele.vue" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/Ele.vue"
new file mode 100644
index 0000000000000000000000000000000000000000..7b291ae8b807809511b308092576672492c8f16f
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/pages/Ele.vue"
@@ -0,0 +1,114 @@
+
+
+
+ 默认按钮
+ 主要按钮
+ 成功按钮
+ 信息按钮
+ 警告按钮
+ 危险按钮
+ 自定义标签
+
+
+
+
+
+
+
+
+
+
+
+ 默认 Hover 指示器触发
+
+
+ {{ item }}
+
+
+
+
+ Click 指示器触发
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/router/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/router/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..7d33edbc86271d7f5f6792839098e943ea819422
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/router/index.js"
@@ -0,0 +1,54 @@
+// 配置路由规则
+import VueRouter from 'vue-router'
+//默认商品列表
+import BodyBase from '../pages/BodyBase'
+//默认商品广告列表
+import AdvList from '../pages/AdvList'
+import Detail from '../pages/Detail'
+import CartList from '../pages/CartList'
+import Ele from '../pages/Ele'
+
+//创建并暴露一个路由器
+export default new VueRouter({
+ routes: [
+ {
+ path: '/',
+ component: BodyBase,
+ },
+ {
+ path: '/ele',
+ component: Ele,
+ },
+ {
+ path: '/base',
+ component: BodyBase,
+ },
+ {
+ name:'listName',
+ path: '/adv',
+ component: AdvList,
+ meta:{
+ keepalive:true
+ }
+ },
+ {
+ name:'detail',
+ //path:'/detail',
+ path: '/detail/:id/:name',
+ component: Detail,
+ //props:{id:'id1',name:'name1'}, 对象写法
+ props:true
+ },
+ {
+ name:'cartList',
+ //path:'/detail',
+ path: '/cartList',
+ component: CartList,
+ //props:{id:'id1',name:'name1'}, 对象写法
+ props:true
+ },
+
+ ]
+})
+
+// export default router
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/actions.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/actions.js"
new file mode 100644
index 0000000000000000000000000000000000000000..fb14e72b726522cf3e294f62a89fda109fcf2e4b
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/actions.js"
@@ -0,0 +1,7 @@
+const actions={
+ add2Cart(context,product) {
+ console.log(product);
+ context.commit('addToCart',product);
+ }
+ };
+ export default actions;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/index.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..fe67add79b72b94016134af2805b8540c641bcd7
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/index.js"
@@ -0,0 +1,29 @@
+import Vuex from 'vuex';
+import Vue from 'vue';
+import mutations from './mutations'
+import actions from './actions'
+import user from './modules/user'
+Vue.use(Vuex);
+const store = new Vuex.Store({
+ state: {
+ name:'外卖系统',
+ cart:[],
+ buyNums:0,
+ money:0
+ },
+
+ mutations,
+ actions,
+
+ getters:{
+ getName:(state)=>{
+ return state.name+'----我们的项目';
+ }
+ },
+ modules:{
+ user
+ }
+
+ })
+ export default store;
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/modules/user.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/modules/user.js"
new file mode 100644
index 0000000000000000000000000000000000000000..68d1b2507c029352b964ad8016d034ad9d1b0f34
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/modules/user.js"
@@ -0,0 +1,22 @@
+const user={
+ namespaced: true,
+ //每个模块都有自己的 state mutation ....
+ state:{
+ userInfo:{name:'刘斌明天要准备',age:29}
+ },
+ mutations:{
+ changeUser(state,payload){
+ state.userInfo=payload;
+
+ }
+ },
+ actions:{
+ changeUserByAction({commit},payload){
+ commit('changeUser',payload)
+ //触发全局的mutation的修改
+ commit('makeMoney',1000,{ root: true })
+ }
+ }
+
+ }
+ export default user;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/mutations.js" "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/mutations.js"
new file mode 100644
index 0000000000000000000000000000000000000000..eee0d474fb15c7e64f26d898d8c1175d6b0c7829
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022-5-12vue/src/store/mutations.js"
@@ -0,0 +1,26 @@
+const mutations={
+ changeName(state,name){
+ state.name=name
+ },
+ //加入到购物车
+ addToCart(state,product){
+ console.log('购物商品修改');
+ console.log(state.buyNums)
+ let inCart = false;
+ state.cart.forEach(el=>{
+ if(el.id==product.id){
+ el.num++
+ inCart=true;
+ }
+ })
+ if(!inCart){
+ state.cart.push(product);
+ }
+ state.buyNums++;
+ console.log(state.buyNums,111);
+ },
+ makeMoney(state,payload){
+ state.money = state.money+payload
+ }
+ };
+ export default mutations;
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\345\223\215\345\272\224\345\274\217\345\267\245\345\205\267.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\345\223\215\345\272\224\345\274\217\345\267\245\345\205\267.html"
new file mode 100644
index 0000000000000000000000000000000000000000..7a1e08e45ac3f02d8c38b6f8e0391616d9ea722e
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\345\223\215\345\272\224\345\274\217\345\267\245\345\205\267.html"
@@ -0,0 +1,82 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
.col-md-8
+
.col-md-4
+
+
+
+
+
+
.col-md-4
+
.col-md-4
+
.col-md-4
+
+
+
+
+
+
+
.col-md-6
+
.col-md-6
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\240\205\346\240\274.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\240\205\346\240\274.html"
new file mode 100644
index 0000000000000000000000000000000000000000..0df378bdbff5f39197f71e86ec02cc85465c8cc8
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\240\205\346\240\274.html"
@@ -0,0 +1,73 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
.col-md-8
+
.col-md-4
+
+
+
+
+
+
.col-md-4
+
.col-md-4
+
.col-md-4
+
+
+
+
+
+
.col-md-6
+
.col-md-6
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\240\205\346\240\274\345\265\214\345\245\227\345\210\227.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\240\205\346\240\274\345\265\214\345\245\227\345\210\227.html"
new file mode 100644
index 0000000000000000000000000000000000000000..073a55acbdc61537a76db9d81dfe1fe8dcd816b6
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\240\205\346\240\274\345\265\214\345\245\227\345\210\227.html"
@@ -0,0 +1,83 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
.col-md-4
+
.col-md-4
+
.col-md-4
+
+
+
+
+
+
.col-md-6
+
.col-md-6
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\250\241\346\200\201\346\241\206.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\250\241\346\200\201\346\241\206.html"
new file mode 100644
index 0000000000000000000000000000000000000000..cc1c74d513f8677b4d6165127f655cfa43abebba
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\346\250\241\346\200\201\346\241\206.html"
@@ -0,0 +1,65 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\350\241\250\345\215\225.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\350\241\250\345\215\225.html"
new file mode 100644
index 0000000000000000000000000000000000000000..f5570c4dd9cd8e903afd3aaf10b6755dc388c343
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\350\241\250\345\215\225.html"
@@ -0,0 +1,62 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\350\241\250\346\240\274.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\350\241\250\346\240\274.html"
new file mode 100644
index 0000000000000000000000000000000000000000..a846ff32792390936df19322ded5d5d95a38d8ba
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.16\342\200\224bootstrap/\350\241\250\346\240\274.html"
@@ -0,0 +1,90 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Optional table caption.
+
+
+ # |
+ First Name |
+ Last Name |
+ Username |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry |
+ the Bird |
+ @twitter |
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.17\342\200\224\346\225\260\347\273\204\345\216\273\351\207\215/\345\216\273\351\207\215\347\256\227\346\263\225.txt" "b/\346\235\250\347\276\216\351\233\252/2022.05.17\342\200\224\346\225\260\347\273\204\345\216\273\351\207\215/\345\216\273\351\207\215\347\256\227\346\263\225.txt"
new file mode 100644
index 0000000000000000000000000000000000000000..1882f1c86e278bc48eec430a94f3c5cd67ac054e
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.17\342\200\224\346\225\260\347\273\204\345\216\273\351\207\215/\345\216\273\351\207\215\347\256\227\346\263\225.txt"
@@ -0,0 +1 @@
+arr=[1,2,2,3,4,5,6,6] дһδȥ
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.17\342\200\224\346\225\260\347\273\204\345\216\273\351\207\215/\346\225\260\347\273\204\345\216\273\351\207\215.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.17\342\200\224\346\225\260\347\273\204\345\216\273\351\207\215/\346\225\260\347\273\204\345\216\273\351\207\215.html"
new file mode 100644
index 0000000000000000000000000000000000000000..780168e903b9435ee8d501336ad8eac31df3c4bf
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.17\342\200\224\346\225\260\347\273\204\345\216\273\351\207\215/\346\225\260\347\273\204\345\216\273\351\207\215.html"
@@ -0,0 +1,58 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.19\342\200\224js/index.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.19\342\200\224js/index.html"
new file mode 100644
index 0000000000000000000000000000000000000000..8230d07e66fb0a832c2e757532b7a394cb024dd7
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.19\342\200\224js/index.html"
@@ -0,0 +1,68 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
点击我1!
+
+
点击我2!
+
+
点击我3!
+
+
点击我4!
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\235\250\347\276\216\351\233\252/2022.05.19\342\200\224js/\346\225\260\347\273\204.html" "b/\346\235\250\347\276\216\351\233\252/2022.05.19\342\200\224js/\346\225\260\347\273\204.html"
new file mode 100644
index 0000000000000000000000000000000000000000..92851b60068de042e1241bafe1c25e59226c1366
--- /dev/null
+++ "b/\346\235\250\347\276\216\351\233\252/2022.05.19\342\200\224js/\346\225\260\347\273\204.html"
@@ -0,0 +1,28 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
\ No newline at end of file