Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
momo的小宝贝
vue2-elm
提交
a5b73794
V
vue2-elm
项目概览
momo的小宝贝
/
vue2-elm
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue2-elm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a5b73794
编写于
2月 12, 2017
作者:
M
maguohua
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updata
上级
f822a3df
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
545 addition
and
110 deletion
+545
-110
README.md
README.md
+1
-1
index.html
index.html
+101
-0
src/App.vue
src/App.vue
+0
-96
src/components/header/head.vue
src/components/header/head.vue
+1
-1
src/page/shop/children/foodDetail.vue
src/page/shop/children/foodDetail.vue
+2
-1
src/page/shop/children/shopDetail.vue
src/page/shop/children/shopDetail.vue
+209
-4
src/page/shop/children/shopSafe.vue
src/page/shop/children/shopSafe.vue
+202
-0
src/page/shop/shop.vue
src/page/shop/shop.vue
+13
-4
src/router/router.js
src/router/router.js
+7
-0
src/store/index.js
src/store/index.js
+3
-1
src/store/mutation-types.js
src/store/mutation-types.js
+2
-1
src/store/mutations.js
src/store/mutations.js
+4
-1
未找到文件。
README.md
浏览文件 @
a5b73794
...
...
@@ -24,7 +24,7 @@ vue2 + vue-rotuer2 + vuex2 + webpack + ES6/7 + fetch + sass + flex + svg + http-
-
[x] 购物车功能 -- 完成
-
[x] 店铺评价页面 -- 完成
-
[x] 单个食品详情页面 -- 完成
-
[
] 商家详情页
-
[
x
] 商家详情页
-
[ ] 登陆、注册
-
[ ] 修改密码
-
[ ] 个人中心
...
...
index.html
浏览文件 @
a5b73794
...
...
@@ -13,6 +13,107 @@
</head>
<body>
<div
id=
"app"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
style=
"position:absolute;width:0;height:0;visibility:hidden"
>
<defs>
<symbol
viewBox=
"0 0 60 60"
id=
"eleme"
>
<path
fill=
"#3CABFF"
fill-rule=
"evenodd"
d=
"M0 9.375A9.374 9.374 0 0 1 9.375 0h41.25A9.374 9.374 0 0 1 60 9.375v41.25A9.374 9.374 0 0 1 50.625 60H9.375A9.374 9.374 0 0 1 0 50.625V9.375zm35.94 30.204c-5.601 3.147-12.645 1.256-15.834-4.217-3.206-5.501-1.303-12.537 4.25-15.713 4.7-2.689 10.51-1.749 14.127 1.941L27.526 27.89a2.81 2.81 0 0 0-1.037 3.854 2.862 2.862 0 0 0 3.887 1.035l15.988-9.166a17.238 17.238 0 0 0-1.222-2.571c-4.777-8.198-15.358-11.007-23.632-6.275-8.275 4.734-11.11 15.217-6.332 23.415 4.77 8.184 15.322 10.997 23.59 6.297.877-.5 1.654-1.037 2.376-1.623l-1.31-2.248a2.868 2.868 0 0 0-3.893-1.028zm10.824-7.39l-1.418-2.425-4.911 2.798 2.835 4.846 2.454-1.399h.002a2.779 2.779 0 0 0 1.038-3.82z"
>
</path>
</symbol>
<symbol
viewBox=
"0 0 28 33"
id=
"user"
>
<path
fill-rule=
"evenodd"
d=
"M20.798 19.289c2.636-2.002 4.215-5.091 4.215-8.437 0-5.886-4.845-10.647-10.808-10.647S3.397 4.966 3.397 10.852c0 3.345 1.578 6.433 4.212 8.435l.264-2.678C4.358 18.32 1.591 21.403.168 25.187l1.478.556v-1.579c-1.485.73-1.485.73-1.501 1.079-.054.188-.054.188-.069.278a2.58 2.58 0 0 0-.026.229 9.112 9.112 0 0 0-.019.4c-.008.265-.014.617-.018 1.039-.005.511-.006 1.037-.006 1.451v.027c-.004 1.732 1.41 3.129 3.154 3.129h22.082a3.18 3.18 0 0 0 3.172-3.153l.011-1.305.008-.897.003-.296.001-.083v-.022-.006-.001l.002-.278-.093-.262c-1.385-3.918-4.203-7.122-7.812-8.88l.263 2.678zm-1.911-2.516l-2.045 1.553 2.309 1.125c2.856 1.392 5.106 3.949 6.218 7.093l-.09-.54V26.033l-.001.083-.003.296-.008.897-.011 1.305c0 .01-.011.021-.013.021H3.161c-.007 0 .005.011.005.032v-.031c0-.404.001-.92.006-1.418.004-.4.01-.732.017-.969.004-.121.008-.212.012-.262l-.006.043c-.009.06-.009.06-.058.229-.01.336-.01.336-1.49 1.063H2.74l.385-1.024c1.141-3.035 3.35-5.495 6.131-6.849l2.309-1.124-2.045-1.554c-1.859-1.412-2.964-3.576-2.964-5.92 0-4.129 3.418-7.488 7.649-7.488s7.649 3.359 7.649 7.488c0 2.344-1.106 4.509-2.966 5.921z"
class=
"path1"
>
</path>
</symbol>
<symbol
viewBox=
"0 0 32 31"
id=
"shop"
>
<g
fill-rule=
"evenodd"
>
<path
d=
"M28.232 1.822C27.905.728 26.97.152 25.759.152H5.588c-1.252 0-1.867.411-2.397 1.415l-.101.243-.443 1.434-.975 3.154-.002.007C.837 9.101.294 10.854.26 10.956l-.059.259c-.231 1.787.337 3.349 1.59 4.448 1.159 1.017 2.545 1.384 3.865 1.384.07 0 .07 0 .132-.002-.01.001-.01.001.061.002 1.32 0 2.706-.367 3.865-1.384a4.96 4.96 0 0 0 .413-.407l-1.043-.946-1.056.931c1.033 1.171 2.51 1.792 4.21 1.801.04.002.088.004.173.004 1.32 0 2.706-.367 3.865-1.384.148-.13.287-.267.418-.411l-1.044-.944-1.057.93c1.033 1.174 2.511 1.796 4.213 1.806.04.002.088.004.173.004 1.32 0 2.706-.367 3.865-1.384.15-.131.29-.27.422-.416l-1.046-.943-1.058.929c1.033 1.177 2.513 1.801 4.218 1.811.04.002.088.004.173.004 1.32 0 2.706-.367 3.865-1.384 1.206-1.058 1.858-2.812 1.676-4.426-.069-.61-.535-2.207-1.354-4.785l-.109-.342a327.554 327.554 0 0 0-1.295-3.966l-.122-.366.014.043h.004zm-2.684.85l.12.361.318.962c.329.999.658 2.011.965 2.973l.108.338c.719 2.262 1.203 3.92 1.24 4.249.08.711-.233 1.553-.735 1.993-.553.485-1.308.685-2.008.685l-.098-.002c-.987-.007-1.695-.306-2.177-.854l-1.044-1.189-1.06 1.175a2.192 2.192 0 0 1-.188.185c-.553.485-1.308.685-2.008.685l-.098-.002c-.985-.007-1.693-.305-2.174-.852l-1.043-1.185-1.059 1.171c-.058.064-.12.125-.186.183-.553.485-1.308.685-2.008.685l-.098-.002c-.984-.007-1.692-.304-2.173-.85L9.101 12.2l-1.058 1.166a2.248 2.248 0 0 1-.184.181c-.553.485-1.307.685-2.008.685l-.061-.001-.131.001c-.701 0-1.455-.2-2.008-.685-.538-.472-.767-1.102-.654-1.971l-1.396-.18 1.338.44c.043-.13.552-1.775 1.425-4.599l.002-.007.975-3.155.443-1.434-1.345-.415 1.245.658c.054-.102.042-.085-.083-.001-.122.082-.143.086-.009.086H25.763c.053 0-.164-.133-.225-.339l.014.043-.004-.001zM5.528 19.48c.778 0 1.408.63 1.408 1.408v7.424a1.408 1.408 0 1 1-2.816 0v-7.424c0-.778.63-1.408 1.408-1.408z"
>
</path>
<path
d=
"M.28 29.72c0-.707.58-1.28 1.277-1.28h28.155a1.28 1.28 0 0 1 .007 2.56H1.561A1.278 1.278 0 0 1 .28 29.72z"
>
</path>
<path
d=
"M26.008 19.48c.778 0 1.408.63 1.408 1.408v7.424a1.408 1.408 0 1 1-2.816 0v-7.424c0-.778.63-1.408 1.408-1.408z"
>
</path>
</g>
</symbol>
<symbol
viewBox=
"0 0 28 33"
id=
"location"
>
<g
fill-rule=
"evenodd"
>
<path
d=
"M20.809 21.6L12.9 29.509h1.616l-7.992-7.992a13.003 13.003 0 0 1-.506-.478c-4.25-4.25-4.25-11.14 0-15.389s11.14-4.25 15.389 0c4.25 4.25 4.25 11.14 0 15.389a10.81 10.81 0 0 1-.543.508l-.056.052zm1.56 1.669c.225-.196.443-.401.656-.613 5.142-5.142 5.142-13.48 0-18.622s-13.48-5.142-18.622 0c-5.142 5.142-5.142 13.48 0 18.622.18.18.364.354.553.522l8.753 8.755 8.661-8.664z"
class=
"path1"
>
</path>
<path
d=
"M9.428 16.739a6.063 6.063 0 1 0 8.573-8.575 6.063 6.063 0 0 0-8.573 8.575zm1.616-1.616a3.776 3.776 0 1 1 5.34-5.341 3.776 3.776 0 0 1-5.34 5.341z"
class=
"path2"
>
</path>
</g>
</symbol>
<symbol
id=
"star"
viewBox=
"0 0 32 32"
>
<path
class=
"path1"
d=
"M16 26.382l-8.16 4.992c-1.5 0.918-2.382 0.264-1.975-1.435l2.226-9.303-7.269-6.218c-1.337-1.143-0.987-2.184 0.755-2.322l9.536-0.758 3.667-8.835c0.674-1.624 1.772-1.613 2.442 0l3.667 8.835 9.536 0.758c1.753 0.139 2.082 1.187 0.755 2.322l-7.269 6.218 2.226 9.303c0.409 1.71-0.485 2.347-1.975 1.435l-8.16-4.992z"
>
</path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"backtop"
>
<g
fill-rule=
"evenodd"
>
<circle
cx=
"16"
cy=
"16"
r=
"15"
stroke=
"#999"
stroke-width=
"0.6"
fill=
"none"
/>
<line
x1=
"16"
y1=
"10"
x2=
"16"
y2=
"21"
style=
"stroke:#999;stroke-width:0.8"
/>
<line
x1=
"10"
y1=
"10"
x2=
"22"
y2=
"10"
style=
"stroke:#999;stroke-width:0.8"
/>
<path
d=
"M9.5 18 L16 10 L22.5 18"
style=
"stroke:#999;stroke-width:0.8;fill:none"
/>
<text
x=
"10"
y=
"27"
style=
"font-size:6px;fill:#999;font-weight:700;"
>
顶部
</text>
</g>
</symbol>
<symbol
viewBox=
"0 0 33 32"
id=
"default"
>
<path
fill=
"#3b87c8"
d=
"M13.374 29.064a.94.94 0 0 1-.941-.941V6.476l-7.285 6.899a.942.942 0 0 1-1.299-1.364l8.876-8.424a.94.94 0 0 1 1.59.681v23.855a.94.94 0 0 1-.941.941zM20.904 29.355h-.008a.94.94 0 0 1-.375-.078.943.943 0 0 1-.559-.86V3.944a.94.94 0 1 1 1.882 0v22.287l7.238-6.842a.94.94 0 0 1 1.289 1.366l-8.818 8.338a.943.943 0 0 1-.649.264z"
>
</path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"distance"
>
<path
fill=
"#2a9bd3"
d=
"M15.884 31.236l-.042.001a.888.888 0 0 1-.59-.224l-7.91-7.91a7.548 7.548 0 0 1-.498-.471 12.752 12.752 0 0 1-3.747-9.045C3.097 6.523 8.824.796 15.888.796s12.791 5.727 12.791 12.791c0 3.532-1.432 6.73-3.747 9.045-.196.196-.409.391-.613.578l-7.813 7.804a.886.886 0 0 1-.589.223l-.035-.001zm0-28.667C9.818 2.59 4.908 7.513 4.908 13.582c0 3.023 1.218 5.762 3.19 7.752l.461.435 7.316 7.316 7.2-7.2q.284-.249.551-.516a10.977 10.977 0 0 0 3.225-7.787c0-6.066-4.905-10.987-10.965-11.013z"
>
</path>
<path
fill=
"#2a9bd3"
d=
"M15.884 18.524a5.707 5.707 0 0 1-4.07-1.732l-.001-.001a5.76 5.76 0 1 1 4.119 1.734h-.05zm-2.817-2.942a3.982 3.982 0 1 0 0-5.626c-.726.717-1.175 1.713-1.175 2.813s.449 2.096 1.175 2.813z"
></path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"fengniao"
>
<path
fill=
"#27a9e1"
d=
"M5.953 2.793s-.117 1.801.857 3.56c.361.255 10.458 6.218 10.458 6.218L5.953 2.794z"
></path>
<path
fill=
"#b8e5fa"
d=
"M9.604.889s-.333 1.404.069 3.147c.254.307 7.801 8.116 7.801 8.116L9.604.889z"
></path>
<path
fill=
"#0089cf"
d=
"M29.282 14.601l-4.861-.361s-.133-.001-.147-.226h-.002a2.652 2.652 0 0 0-2.978-2.357h-.003l-.011.001-.12.019-.004.001c-.432.075-1.812.374-3.038 1.285 0 0-.167.121-.421.33L2.665 6.043s3.254 8.665 12.207 11.98c-1.6 2.849-7.407 13.48-7.407 13.48l2.446-1.306s.775-2.853 1.884-4.957c.609-.936 1.211-.992 1.498-1.141.291-.151 3.707-.765 6.431-4.339.897-1.166 1.244-2.666 1.723-4.261.28-.061 3.008-.651 3.789-.718 1.068-.092 4.045-.181 4.045-.181z"
></path>
<path
fill=
"#0089cf"
d=
"M7.392 17.849c-1.567-1.368-2.199-3.219-2.035-5.217-.232-.288-.45-.572-.654-.851-.484 2.903.555 4.854 2.176 6.269 1.538 1.342 3.635 1.85 5.466 1.577-1.674.109-3.563-.565-4.953-1.778z"
></path>
<path
fill=
"#0089cf"
d=
"M12.345 19.628h.002zm-7.642-7.846c.204.279.421.563.654.851-.164 1.998.468 3.849 2.035 5.217 1.292 1.128 3.016 1.79 4.597 1.79.12 0 .238-.004.356-.011a6.554 6.554 0 0 1-.975.071c-1.568 0-3.22-.54-4.49-1.648-1.621-1.415-2.66-3.366-2.176-6.269z"
></path>
</symbol>
<symbol
viewBox=
"0 0 23 32"
id=
"hot"
>
<path
fill=
"#f07373"
d=
"M9.859 29.375c-3.489-.771-6.362-3.097-7.187-5.551-.882-2.623-1.029-6.873-.238-9.318l-1.727.037.001.002.001.004.004.01.011.029.038.091c.039.09.086.191.142.3.155.304.349.627.586.955a7.477 7.477 0 0 0 2.711 2.318c.583.153.583.153 1.087-.188.187-.263.187-.263.224-.39.028-.094.041-.176.05-.28.01-.109.016-.238.022-.47.063-2.219.162-3.38.562-4.943a10.05 10.05 0 0 1 .814-2.185c1.433-2.723 4.843-6.053 6.699-7.021l-1.325-.962c-.064.382-.127.992-.131 1.722-.008 1.252.169 2.393.616 3.329.261.547.525.968 1.132 1.862l.23.339c.86 1.281 1.161 1.986 1.069 2.653l-.009.125c.069.517.069.517.781.906.451-.026.451-.026.578-.104.144-.093.144-.093.19-.136.041-.037.079-.077.123-.125.068-.076.153-.178.245-.295.22-.279.458-.615.677-.963.648-1.028 1.045-1.988 1.037-2.845l-.914.009-.706.581c.295.358.809 1.075 1.33 1.936.826 1.363 1.492 2.791 1.898 4.209 1.1 3.845.3 9.288-2.245 11.75a9.652 9.652 0 0 1-1.659 1.29 10.232 10.232 0 0 1-3.471 1.332c-.794.151-1.385.191-2.064.191h-.009a2.75 2.75 0 0 1-.373-.03 6.007 6.007 0 0 1-.585-.115 7.765 7.765 0 0 1-.536-.15l-.578 1.735a9.182 9.182 0 0 0 1.445.341c.221.031.43.048.627.048h.009a12.546 12.546 0 0 0 2.407-.224 12.011 12.011 0 0 0 4.088-1.572c.699-.431 1.358-.94 1.971-1.533 3.098-2.998 4-9.132 2.731-13.567-.455-1.591-1.188-3.161-2.092-4.653-.569-.939-1.134-1.727-1.482-2.15l-1.645-1.998.024 2.588c.004.412-.281 1.1-.756 1.853a9.64 9.64 0 0 1-.569.809 4.528 4.528 0 0 1-.158.195c.028-.027.028-.027.16-.113.122-.075.122-.075.57-.101.71.388.71.388.778.902h-.914l.906.125c.174-1.262-.261-2.281-1.362-3.922l-.235-.347c-.554-.817-.787-1.189-.995-1.624-.306-.642-.444-1.53-.438-2.53a10.566 10.566 0 0 1 .107-1.431L14.44.304l-1.628.85c-2.18 1.138-5.862 4.733-7.471 7.791a11.873 11.873 0 0 0-.967 2.583 19.2 19.2 0 0 0-.511 3.147c-.036.423-.061.839-.079 1.273-.011.281-.019.531-.029.924-.005.191-.01.298-.015.354a.403.403 0 0 1 .019-.077c.027-.099.027-.099.203-.346.492-.332.492-.332 1.112-.157a5.745 5.745 0 0 1-2.54-2.496 3.456 3.456 0 0 1-.093-.197l-.018-.044-.002-.006v.001l.001.002v.002l-.915-2.473-.812 2.51c-.917 2.836-.757 7.485.245 10.463 1.042 3.099 4.442 5.852 8.526 6.754l.395-1.785z"
></path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"price"
>
<path
fill=
"#e6b61a"
d=
"M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16zm0-2C8.268 30 2 23.732 2 16S8.268 2 16 2s14 6.268 14 14-6.268 14-14 14z"
></path><path
fill=
"#e6b61a"
d=
"M23.14 6.06l-5.12 8.65h4.48v1.54h-5.49v2.43h5.49v1.54h-5.49v5.1h-2.02v-5.1H9.53v-1.54h5.46v-2.43H9.53v-1.54h4.45L8.8 6.06h2.24l4.99 8.48 4.93-8.48h2.18z"
></path>
</symbol>
<symbol
viewBox=
"0 0 33 32"
id=
"rating"
>
<path
fill=
"#eba53b"
d=
"M27.087 31.84L16.8 25.553 6.504 31.84l2.824-11.727-9.186-7.878 12.019-.941L16.801.16l4.631 11.134 12.019.941-9.158 7.849zM16.8 23.369l7.407 4.527-2.014-8.471 6.588-5.647-8.659-.696L16.8 5.063l-3.341 8.019-8.659.696 6.588 5.647-2.014 8.471z"
></path>
</symbol>
<symbol
viewBox=
"0 0 38 32"
id=
"selected"
>
<path
fill=
"#3190e8"
d=
"M32.291 2.327c.582-.582 1.455-.582 2.036 0l2.036 2.036c.582.582.582 1.455 0 2.036L13.818 29.09c-.582.582-1.455.582-2.036 0L1.455 18.908c-.582-.582-.582-1.455 0-2.036l2.036-2.036c.582-.582 1.455-.582 2.036 0l7.273 7.273L32.291 2.327z"
></path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"speed"
>
<path
fill=
"#37c7b7"
d=
"M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16zm0-2C8.268 30 2 23.732 2 16S8.268 2 16 2s14 6.268 14 14-6.268 14-14 14z"
></path><path
fill=
"#37c7b7"
d=
"M15 7v11.002l5.678 4.882 1.304-1.517-5.33-4.583.348.758V6.999h-2z"
></path>
</symbol>
<symbol
viewBox=
"0 0 44 44"
id=
"cart-minus"
>
<path
fill-rule=
"evenodd"
d=
"M22 0C9.8 0 0 9.8 0 22s9.8 22 22 22 22-9.8 22-22S34.2 0 22 0zm0 42C11 42 2 33 2 22S11 2 22 2s20 9 20 20-9 20-20 20z"
clip-rule=
"evenodd"
></path>
<path
fill-rule=
"evenodd"
d=
"M32 20c1.1 0 2 .9 2 2s-.9 2-2 2H12c-1.1 0-2-.9-2-2s.9-2 2-2h20z"
clip-rule=
"evenodd"
></path>
</symbol>
<symbol
viewBox=
"0 0 44 44"
id=
"cart-add"
>
<path
fill=
"none"
d=
"M0 0h44v44H0z"
></path>
<path
fill-rule=
"evenodd"
d=
"M22 0C9.8 0 0 9.8 0 22s9.8 22 22 22 22-9.8 22-22S34.2 0 22 0zm10 24h-8v8c0 1.1-.9 2-2 2s-2-.9-2-2v-8h-8c-1.1 0-2-.9-2-2s.9-2 2-2h8v-8c0-1.1.9-2 2-2s2 .9 2 2v8h8c1.1 0 2 .9 2 2s-.9 2-2 2z"
clip-rule=
"evenodd"
></path>
</symbol>
<symbol
viewBox=
"0 0 24 32"
id=
"cart-remove"
>
<path
fill=
"#bbb"
fill-rule=
"evenodd"
d=
"M21.5 10h-19c-1.1 0-1.918.896-1.819 1.992l1.638 18.016C2.419 31.104 3.4 32 4.5 32h15c1.1 0 2.081-.896 2.182-1.992l1.637-18.016A1.798 1.798 0 0 0 21.5 10zM8 28H5L4 14h4v14zm6 0h-4V14h4v14zm5 0h-3V14h4l-1 14zm2-24h-2.941l-.353-2.514C17.592.669 16.823 0 15.998 0H8c-.825 0-1.593.668-1.708 1.486L5.94 4H3a3 3 0 0 0-3 3v1h24V7a3 3 0 0 0-3-3zM8.24 2h7.52l.279 2H7.96l.28-2z"
></path>
</symbol>
<symbol
viewBox=
"0 0 14 16"
id=
"cart"
>
<path
fill=
"#FFF"
fill-rule=
"evenodd"
d=
"M12.364 2.998H2.088L1.816.687a.455.455 0 0 0-.478-.431L.431.303A.454.454 0 0 0 0 .78l1.256 10.893c.006.293.011 1.325.933 1.325h9.546a.455.455 0 0 0 .455-.454v-.881a.454.454 0 0 0-.455-.455H3.05l-.11-.937h8.606c.998 0 1.889-.724 1.989-1.616l.455-4.04c.1-.893-.628-1.617-1.626-1.617zm-.45 4.245c-.075.669-.317 1.212-1.066 1.212H2.727L2.3 4.812h8.821c.749 0 1.065.543.99 1.212l-.197 1.219zM2.416 15.79a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm9.092 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"
></path>
</symbol>
<symbol
viewBox=
"0 0 58 58"
id=
"cart-icon"
>
<defs>
<filter
id=
"a"
width=
"200%"
height=
"200%"
x=
"-50%"
y=
"-50%"
filterUnits=
"objectBoundingBox"
><feOffset
in=
"SourceAlpha"
result=
"shadowOffsetOuter1"
/><feGaussianBlur
stdDeviation=
"1.5"
in=
"shadowOffsetOuter1"
result=
"shadowBlurOuter1"
/><feColorMatrix
values=
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
in=
"shadowBlurOuter1"
result=
"shadowMatrixOuter1"
/><feMerge><feMergeNode
in=
"shadowMatrixOuter1"
/><feMergeNode
in=
"SourceGraphic"
/></feMerge></filter><path
id=
"b"
d=
"M7.614 4.051c-1.066.086-1.452-.398-1.752-1.584C5.562 1.28.33 5.88.33 5.88l3.71 19.476c0 .148-1.56 7.515-1.56 7.515-.489 2.19.292 4.27 3.56 4.32 0 0 36.917.017 36.92.047 1.979-.012 2.981-.995 3.013-3.039.03-2.043-1.045-2.978-2.987-2.993L8.83 31.192s.86-3.865 1.077-3.865c0 0-5.788.122 32.065-1.956.606-.033 2.018-.764 2.298-1.848 1.113-4.317 4.008-13.26 4.458-15.64.932-4.925 2.061-8.558-4.28-7.405 0 0-35.768 3.487-36.833 3.573z"
/>
</defs>
<g
fill=
"none"
fill-rule=
"evenodd"
filter=
"url(#a)"
transform=
"translate(3 2)"
>
<g
transform=
"translate(5.038 7.808)"
><mask
id=
"c"
fill=
"#fff"
><use
xlink:href=
"#b"
/></mask><use
fill=
"#FFF"
xlink:href=
"#b"
/><path
fill=
"#2073C1"
d=
"M53.962 7.774l-5.701 19.305-40.78 1.574z"
opacity=
".1"
mask=
"url(#c)"
/></g><path
stroke=
"#FFF"
stroke-width=
"6"
d=
"M9.374 18.722S7.868 11.283 7.323 8.71C6.778 6.136 5.86 5.33 3.978 4.52 2.096 3.713.367 2.286.367 2.286"
stroke-linecap=
"round"
/><circle
cx=
"46"
cy=
"51"
r=
"4"
fill=
"#FFF"
/><circle
cx=
"12"
cy=
"51"
r=
"4"
fill=
"#FFF"
/>
</g>
</symbol>
<symbol
viewBox=
"0 0 14 14"
id=
"arrow-left"
>
<path
d=
"M0 0 L8 7 L0 14"
stroke=
"#fff"
stroke-width=
"1"
fill=
"none"
/>
</symbol>
<symbol
viewBox=
"0 0 1024 1024"
id=
"res-well"
><path
fill=
"#7ED321"
fill-rule=
"evenodd"
d=
"M512 0C229.376 0 0 229.376 0 512s229.376 512 512 512 512-229.376 512-512S794.624 0 512 0zM247.808 402.432c0-36.864 39.936-93.184 93.184-93.184s93.184 56.32 93.184 93.184c0 11.264-9.216 20.48-20.48 20.48-11.264 0-20.48-9.216-20.48-20.48 0-16.384-24.576-52.224-52.224-52.224-27.648 0-52.224 35.84-52.224 52.224 0 11.264-9.216 20.48-20.48 20.48-11.264 0-20.48-9.216-20.48-20.48zM512 800.768c-132.096 0-239.616-96.256-239.616-215.04 0-11.264 9.216-20.48 20.48-20.48 11.264 0 20.48 9.216 20.48 20.48 0 96.256 89.088 174.08 198.656 174.08 109.568 0 198.656-77.824 198.656-174.08 0-11.264 9.216-20.48 20.48-20.48 11.264 0 20.48 9.216 20.48 20.48 0 117.76-107.52 215.04-239.616 215.04zm243.712-377.856c-11.264 0-20.48-9.216-20.48-20.48 0-17.408-24.576-52.224-52.224-52.224-28.672 0-52.224 34.816-52.224 52.224 0 11.264-9.216 20.48-20.48 20.48-11.264 0-20.48-9.216-20.48-20.48 0-36.864 39.936-93.184 93.184-93.184s93.184 56.32 93.184 93.184c0 11.264-9.216 20.48-20.48 20.48z"
></path></symbol>
<symbol
viewBox=
"0 0 1024 1024"
id=
"res-bad"
><path
fill=
"#D0021B"
fill-rule=
"evenodd"
d=
"M512 0C230.326 0 0 230.326 0 512s230.573 512 512 512 512-230.326 512-512S793.674 0 512 0zM240.694 373.755l158.735-56.285 15.306 46.164L256 419.919l-15.306-46.164zm440.409 384.123c-10.122 0-20.49-10.122-25.674-20.49-10.122-10.122-61.47-25.674-148.366-25.674-86.896 0-138.245 15.306-148.366 25.674 0 10.122-10.122 20.49-25.674 20.49s-25.674-10.122-25.674-25.674c0-71.591 174.041-71.591 194.53-71.591 20.489 0 194.53 0 194.53 71.591 10.122 10.368 0 25.674-15.306 25.674zM768 419.919l-163.672-61.47 15.306-46.164 158.735 56.285-10.368 51.348-.001.001z"
></path></symbol>
</defs>
</svg>
<router-view></router-view>
</div>
</body>
...
...
src/App.vue
浏览文件 @
a5b73794
<
template
>
<div>
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
style=
"position:absolute;width:0;height:0;visibility:hidden"
>
<defs>
<symbol
viewBox=
"0 0 60 60"
id=
"eleme"
>
<path
fill=
"#3CABFF"
fill-rule=
"evenodd"
d=
"M0 9.375A9.374 9.374 0 0 1 9.375 0h41.25A9.374 9.374 0 0 1 60 9.375v41.25A9.374 9.374 0 0 1 50.625 60H9.375A9.374 9.374 0 0 1 0 50.625V9.375zm35.94 30.204c-5.601 3.147-12.645 1.256-15.834-4.217-3.206-5.501-1.303-12.537 4.25-15.713 4.7-2.689 10.51-1.749 14.127 1.941L27.526 27.89a2.81 2.81 0 0 0-1.037 3.854 2.862 2.862 0 0 0 3.887 1.035l15.988-9.166a17.238 17.238 0 0 0-1.222-2.571c-4.777-8.198-15.358-11.007-23.632-6.275-8.275 4.734-11.11 15.217-6.332 23.415 4.77 8.184 15.322 10.997 23.59 6.297.877-.5 1.654-1.037 2.376-1.623l-1.31-2.248a2.868 2.868 0 0 0-3.893-1.028zm10.824-7.39l-1.418-2.425-4.911 2.798 2.835 4.846 2.454-1.399h.002a2.779 2.779 0 0 0 1.038-3.82z"
>
</path>
</symbol>
<symbol
viewBox=
"0 0 28 33"
id=
"user"
>
<path
fill-rule=
"evenodd"
d=
"M20.798 19.289c2.636-2.002 4.215-5.091 4.215-8.437 0-5.886-4.845-10.647-10.808-10.647S3.397 4.966 3.397 10.852c0 3.345 1.578 6.433 4.212 8.435l.264-2.678C4.358 18.32 1.591 21.403.168 25.187l1.478.556v-1.579c-1.485.73-1.485.73-1.501 1.079-.054.188-.054.188-.069.278a2.58 2.58 0 0 0-.026.229 9.112 9.112 0 0 0-.019.4c-.008.265-.014.617-.018 1.039-.005.511-.006 1.037-.006 1.451v.027c-.004 1.732 1.41 3.129 3.154 3.129h22.082a3.18 3.18 0 0 0 3.172-3.153l.011-1.305.008-.897.003-.296.001-.083v-.022-.006-.001l.002-.278-.093-.262c-1.385-3.918-4.203-7.122-7.812-8.88l.263 2.678zm-1.911-2.516l-2.045 1.553 2.309 1.125c2.856 1.392 5.106 3.949 6.218 7.093l-.09-.54V26.033l-.001.083-.003.296-.008.897-.011 1.305c0 .01-.011.021-.013.021H3.161c-.007 0 .005.011.005.032v-.031c0-.404.001-.92.006-1.418.004-.4.01-.732.017-.969.004-.121.008-.212.012-.262l-.006.043c-.009.06-.009.06-.058.229-.01.336-.01.336-1.49 1.063H2.74l.385-1.024c1.141-3.035 3.35-5.495 6.131-6.849l2.309-1.124-2.045-1.554c-1.859-1.412-2.964-3.576-2.964-5.92 0-4.129 3.418-7.488 7.649-7.488s7.649 3.359 7.649 7.488c0 2.344-1.106 4.509-2.966 5.921z"
class=
"path1"
>
</path>
</symbol>
<symbol
viewBox=
"0 0 32 31"
id=
"shop"
>
<g
fill-rule=
"evenodd"
>
<path
d=
"M28.232 1.822C27.905.728 26.97.152 25.759.152H5.588c-1.252 0-1.867.411-2.397 1.415l-.101.243-.443 1.434-.975 3.154-.002.007C.837 9.101.294 10.854.26 10.956l-.059.259c-.231 1.787.337 3.349 1.59 4.448 1.159 1.017 2.545 1.384 3.865 1.384.07 0 .07 0 .132-.002-.01.001-.01.001.061.002 1.32 0 2.706-.367 3.865-1.384a4.96 4.96 0 0 0 .413-.407l-1.043-.946-1.056.931c1.033 1.171 2.51 1.792 4.21 1.801.04.002.088.004.173.004 1.32 0 2.706-.367 3.865-1.384.148-.13.287-.267.418-.411l-1.044-.944-1.057.93c1.033 1.174 2.511 1.796 4.213 1.806.04.002.088.004.173.004 1.32 0 2.706-.367 3.865-1.384.15-.131.29-.27.422-.416l-1.046-.943-1.058.929c1.033 1.177 2.513 1.801 4.218 1.811.04.002.088.004.173.004 1.32 0 2.706-.367 3.865-1.384 1.206-1.058 1.858-2.812 1.676-4.426-.069-.61-.535-2.207-1.354-4.785l-.109-.342a327.554 327.554 0 0 0-1.295-3.966l-.122-.366.014.043h.004zm-2.684.85l.12.361.318.962c.329.999.658 2.011.965 2.973l.108.338c.719 2.262 1.203 3.92 1.24 4.249.08.711-.233 1.553-.735 1.993-.553.485-1.308.685-2.008.685l-.098-.002c-.987-.007-1.695-.306-2.177-.854l-1.044-1.189-1.06 1.175a2.192 2.192 0 0 1-.188.185c-.553.485-1.308.685-2.008.685l-.098-.002c-.985-.007-1.693-.305-2.174-.852l-1.043-1.185-1.059 1.171c-.058.064-.12.125-.186.183-.553.485-1.308.685-2.008.685l-.098-.002c-.984-.007-1.692-.304-2.173-.85L9.101 12.2l-1.058 1.166a2.248 2.248 0 0 1-.184.181c-.553.485-1.307.685-2.008.685l-.061-.001-.131.001c-.701 0-1.455-.2-2.008-.685-.538-.472-.767-1.102-.654-1.971l-1.396-.18 1.338.44c.043-.13.552-1.775 1.425-4.599l.002-.007.975-3.155.443-1.434-1.345-.415 1.245.658c.054-.102.042-.085-.083-.001-.122.082-.143.086-.009.086H25.763c.053 0-.164-.133-.225-.339l.014.043-.004-.001zM5.528 19.48c.778 0 1.408.63 1.408 1.408v7.424a1.408 1.408 0 1 1-2.816 0v-7.424c0-.778.63-1.408 1.408-1.408z"
>
</path>
<path
d=
"M.28 29.72c0-.707.58-1.28 1.277-1.28h28.155a1.28 1.28 0 0 1 .007 2.56H1.561A1.278 1.278 0 0 1 .28 29.72z"
>
</path>
<path
d=
"M26.008 19.48c.778 0 1.408.63 1.408 1.408v7.424a1.408 1.408 0 1 1-2.816 0v-7.424c0-.778.63-1.408 1.408-1.408z"
>
</path>
</g>
</symbol>
<symbol
viewBox=
"0 0 28 33"
id=
"location"
>
<g
fill-rule=
"evenodd"
>
<path
d=
"M20.809 21.6L12.9 29.509h1.616l-7.992-7.992a13.003 13.003 0 0 1-.506-.478c-4.25-4.25-4.25-11.14 0-15.389s11.14-4.25 15.389 0c4.25 4.25 4.25 11.14 0 15.389a10.81 10.81 0 0 1-.543.508l-.056.052zm1.56 1.669c.225-.196.443-.401.656-.613 5.142-5.142 5.142-13.48 0-18.622s-13.48-5.142-18.622 0c-5.142 5.142-5.142 13.48 0 18.622.18.18.364.354.553.522l8.753 8.755 8.661-8.664z"
class=
"path1"
>
</path>
<path
d=
"M9.428 16.739a6.063 6.063 0 1 0 8.573-8.575 6.063 6.063 0 0 0-8.573 8.575zm1.616-1.616a3.776 3.776 0 1 1 5.34-5.341 3.776 3.776 0 0 1-5.34 5.341z"
class=
"path2"
>
</path>
</g>
</symbol>
<symbol
id=
"star"
viewBox=
"0 0 32 32"
>
<path
class=
"path1"
d=
"M16 26.382l-8.16 4.992c-1.5 0.918-2.382 0.264-1.975-1.435l2.226-9.303-7.269-6.218c-1.337-1.143-0.987-2.184 0.755-2.322l9.536-0.758 3.667-8.835c0.674-1.624 1.772-1.613 2.442 0l3.667 8.835 9.536 0.758c1.753 0.139 2.082 1.187 0.755 2.322l-7.269 6.218 2.226 9.303c0.409 1.71-0.485 2.347-1.975 1.435l-8.16-4.992z"
>
</path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"backtop"
>
<g
fill-rule=
"evenodd"
>
<circle
cx=
"16"
cy=
"16"
r=
"15"
stroke=
"#999"
stroke-width=
"0.6"
fill=
"none"
/>
<line
x1=
"16"
y1=
"10"
x2=
"16"
y2=
"21"
style=
"stroke:#999;stroke-width:0.8"
/>
<line
x1=
"10"
y1=
"10"
x2=
"22"
y2=
"10"
style=
"stroke:#999;stroke-width:0.8"
/>
<path
d=
"M9.5 18 L16 10 L22.5 18"
style=
"stroke:#999;stroke-width:0.8;fill:none"
/>
<text
x=
"10"
y=
"27"
style=
"font-size:6px;fill:#999;font-weight:700;"
>
顶部
</text>
</g>
</symbol>
<symbol
viewBox=
"0 0 33 32"
id=
"default"
>
<path
fill=
"#3b87c8"
d=
"M13.374 29.064a.94.94 0 0 1-.941-.941V6.476l-7.285 6.899a.942.942 0 0 1-1.299-1.364l8.876-8.424a.94.94 0 0 1 1.59.681v23.855a.94.94 0 0 1-.941.941zM20.904 29.355h-.008a.94.94 0 0 1-.375-.078.943.943 0 0 1-.559-.86V3.944a.94.94 0 1 1 1.882 0v22.287l7.238-6.842a.94.94 0 0 1 1.289 1.366l-8.818 8.338a.943.943 0 0 1-.649.264z"
>
</path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"distance"
>
<path
fill=
"#2a9bd3"
d=
"M15.884 31.236l-.042.001a.888.888 0 0 1-.59-.224l-7.91-7.91a7.548 7.548 0 0 1-.498-.471 12.752 12.752 0 0 1-3.747-9.045C3.097 6.523 8.824.796 15.888.796s12.791 5.727 12.791 12.791c0 3.532-1.432 6.73-3.747 9.045-.196.196-.409.391-.613.578l-7.813 7.804a.886.886 0 0 1-.589.223l-.035-.001zm0-28.667C9.818 2.59 4.908 7.513 4.908 13.582c0 3.023 1.218 5.762 3.19 7.752l.461.435 7.316 7.316 7.2-7.2q.284-.249.551-.516a10.977 10.977 0 0 0 3.225-7.787c0-6.066-4.905-10.987-10.965-11.013z"
>
</path>
<path
fill=
"#2a9bd3"
d=
"M15.884 18.524a5.707 5.707 0 0 1-4.07-1.732l-.001-.001a5.76 5.76 0 1 1 4.119 1.734h-.05zm-2.817-2.942a3.982 3.982 0 1 0 0-5.626c-.726.717-1.175 1.713-1.175 2.813s.449 2.096 1.175 2.813z"
></path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"fengniao"
>
<path
fill=
"#27a9e1"
d=
"M5.953 2.793s-.117 1.801.857 3.56c.361.255 10.458 6.218 10.458 6.218L5.953 2.794z"
></path>
<path
fill=
"#b8e5fa"
d=
"M9.604.889s-.333 1.404.069 3.147c.254.307 7.801 8.116 7.801 8.116L9.604.889z"
></path>
<path
fill=
"#0089cf"
d=
"M29.282 14.601l-4.861-.361s-.133-.001-.147-.226h-.002a2.652 2.652 0 0 0-2.978-2.357h-.003l-.011.001-.12.019-.004.001c-.432.075-1.812.374-3.038 1.285 0 0-.167.121-.421.33L2.665 6.043s3.254 8.665 12.207 11.98c-1.6 2.849-7.407 13.48-7.407 13.48l2.446-1.306s.775-2.853 1.884-4.957c.609-.936 1.211-.992 1.498-1.141.291-.151 3.707-.765 6.431-4.339.897-1.166 1.244-2.666 1.723-4.261.28-.061 3.008-.651 3.789-.718 1.068-.092 4.045-.181 4.045-.181z"
></path>
<path
fill=
"#0089cf"
d=
"M7.392 17.849c-1.567-1.368-2.199-3.219-2.035-5.217-.232-.288-.45-.572-.654-.851-.484 2.903.555 4.854 2.176 6.269 1.538 1.342 3.635 1.85 5.466 1.577-1.674.109-3.563-.565-4.953-1.778z"
></path>
<path
fill=
"#0089cf"
d=
"M12.345 19.628h.002zm-7.642-7.846c.204.279.421.563.654.851-.164 1.998.468 3.849 2.035 5.217 1.292 1.128 3.016 1.79 4.597 1.79.12 0 .238-.004.356-.011a6.554 6.554 0 0 1-.975.071c-1.568 0-3.22-.54-4.49-1.648-1.621-1.415-2.66-3.366-2.176-6.269z"
></path>
</symbol>
<symbol
viewBox=
"0 0 23 32"
id=
"hot"
>
<path
fill=
"#f07373"
d=
"M9.859 29.375c-3.489-.771-6.362-3.097-7.187-5.551-.882-2.623-1.029-6.873-.238-9.318l-1.727.037.001.002.001.004.004.01.011.029.038.091c.039.09.086.191.142.3.155.304.349.627.586.955a7.477 7.477 0 0 0 2.711 2.318c.583.153.583.153 1.087-.188.187-.263.187-.263.224-.39.028-.094.041-.176.05-.28.01-.109.016-.238.022-.47.063-2.219.162-3.38.562-4.943a10.05 10.05 0 0 1 .814-2.185c1.433-2.723 4.843-6.053 6.699-7.021l-1.325-.962c-.064.382-.127.992-.131 1.722-.008 1.252.169 2.393.616 3.329.261.547.525.968 1.132 1.862l.23.339c.86 1.281 1.161 1.986 1.069 2.653l-.009.125c.069.517.069.517.781.906.451-.026.451-.026.578-.104.144-.093.144-.093.19-.136.041-.037.079-.077.123-.125.068-.076.153-.178.245-.295.22-.279.458-.615.677-.963.648-1.028 1.045-1.988 1.037-2.845l-.914.009-.706.581c.295.358.809 1.075 1.33 1.936.826 1.363 1.492 2.791 1.898 4.209 1.1 3.845.3 9.288-2.245 11.75a9.652 9.652 0 0 1-1.659 1.29 10.232 10.232 0 0 1-3.471 1.332c-.794.151-1.385.191-2.064.191h-.009a2.75 2.75 0 0 1-.373-.03 6.007 6.007 0 0 1-.585-.115 7.765 7.765 0 0 1-.536-.15l-.578 1.735a9.182 9.182 0 0 0 1.445.341c.221.031.43.048.627.048h.009a12.546 12.546 0 0 0 2.407-.224 12.011 12.011 0 0 0 4.088-1.572c.699-.431 1.358-.94 1.971-1.533 3.098-2.998 4-9.132 2.731-13.567-.455-1.591-1.188-3.161-2.092-4.653-.569-.939-1.134-1.727-1.482-2.15l-1.645-1.998.024 2.588c.004.412-.281 1.1-.756 1.853a9.64 9.64 0 0 1-.569.809 4.528 4.528 0 0 1-.158.195c.028-.027.028-.027.16-.113.122-.075.122-.075.57-.101.71.388.71.388.778.902h-.914l.906.125c.174-1.262-.261-2.281-1.362-3.922l-.235-.347c-.554-.817-.787-1.189-.995-1.624-.306-.642-.444-1.53-.438-2.53a10.566 10.566 0 0 1 .107-1.431L14.44.304l-1.628.85c-2.18 1.138-5.862 4.733-7.471 7.791a11.873 11.873 0 0 0-.967 2.583 19.2 19.2 0 0 0-.511 3.147c-.036.423-.061.839-.079 1.273-.011.281-.019.531-.029.924-.005.191-.01.298-.015.354a.403.403 0 0 1 .019-.077c.027-.099.027-.099.203-.346.492-.332.492-.332 1.112-.157a5.745 5.745 0 0 1-2.54-2.496 3.456 3.456 0 0 1-.093-.197l-.018-.044-.002-.006v.001l.001.002v.002l-.915-2.473-.812 2.51c-.917 2.836-.757 7.485.245 10.463 1.042 3.099 4.442 5.852 8.526 6.754l.395-1.785z"
></path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"price"
>
<path
fill=
"#e6b61a"
d=
"M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16zm0-2C8.268 30 2 23.732 2 16S8.268 2 16 2s14 6.268 14 14-6.268 14-14 14z"
></path><path
fill=
"#e6b61a"
d=
"M23.14 6.06l-5.12 8.65h4.48v1.54h-5.49v2.43h5.49v1.54h-5.49v5.1h-2.02v-5.1H9.53v-1.54h5.46v-2.43H9.53v-1.54h4.45L8.8 6.06h2.24l4.99 8.48 4.93-8.48h2.18z"
></path>
</symbol>
<symbol
viewBox=
"0 0 33 32"
id=
"rating"
>
<path
fill=
"#eba53b"
d=
"M27.087 31.84L16.8 25.553 6.504 31.84l2.824-11.727-9.186-7.878 12.019-.941L16.801.16l4.631 11.134 12.019.941-9.158 7.849zM16.8 23.369l7.407 4.527-2.014-8.471 6.588-5.647-8.659-.696L16.8 5.063l-3.341 8.019-8.659.696 6.588 5.647-2.014 8.471z"
></path>
</symbol>
<symbol
viewBox=
"0 0 38 32"
id=
"selected"
>
<path
fill=
"#3190e8"
d=
"M32.291 2.327c.582-.582 1.455-.582 2.036 0l2.036 2.036c.582.582.582 1.455 0 2.036L13.818 29.09c-.582.582-1.455.582-2.036 0L1.455 18.908c-.582-.582-.582-1.455 0-2.036l2.036-2.036c.582-.582 1.455-.582 2.036 0l7.273 7.273L32.291 2.327z"
></path>
</symbol>
<symbol
viewBox=
"0 0 32 32"
id=
"speed"
>
<path
fill=
"#37c7b7"
d=
"M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16zm0-2C8.268 30 2 23.732 2 16S8.268 2 16 2s14 6.268 14 14-6.268 14-14 14z"
></path><path
fill=
"#37c7b7"
d=
"M15 7v11.002l5.678 4.882 1.304-1.517-5.33-4.583.348.758V6.999h-2z"
></path>
</symbol>
<symbol
viewBox=
"0 0 44 44"
id=
"cart-minus"
>
<path
fill-rule=
"evenodd"
d=
"M22 0C9.8 0 0 9.8 0 22s9.8 22 22 22 22-9.8 22-22S34.2 0 22 0zm0 42C11 42 2 33 2 22S11 2 22 2s20 9 20 20-9 20-20 20z"
clip-rule=
"evenodd"
></path>
<path
fill-rule=
"evenodd"
d=
"M32 20c1.1 0 2 .9 2 2s-.9 2-2 2H12c-1.1 0-2-.9-2-2s.9-2 2-2h20z"
clip-rule=
"evenodd"
></path>
</symbol>
<symbol
viewBox=
"0 0 44 44"
id=
"cart-add"
>
<path
fill=
"none"
d=
"M0 0h44v44H0z"
></path>
<path
fill-rule=
"evenodd"
d=
"M22 0C9.8 0 0 9.8 0 22s9.8 22 22 22 22-9.8 22-22S34.2 0 22 0zm10 24h-8v8c0 1.1-.9 2-2 2s-2-.9-2-2v-8h-8c-1.1 0-2-.9-2-2s.9-2 2-2h8v-8c0-1.1.9-2 2-2s2 .9 2 2v8h8c1.1 0 2 .9 2 2s-.9 2-2 2z"
clip-rule=
"evenodd"
></path>
</symbol>
<symbol
viewBox=
"0 0 24 32"
id=
"cart-remove"
>
<path
fill=
"#bbb"
fill-rule=
"evenodd"
d=
"M21.5 10h-19c-1.1 0-1.918.896-1.819 1.992l1.638 18.016C2.419 31.104 3.4 32 4.5 32h15c1.1 0 2.081-.896 2.182-1.992l1.637-18.016A1.798 1.798 0 0 0 21.5 10zM8 28H5L4 14h4v14zm6 0h-4V14h4v14zm5 0h-3V14h4l-1 14zm2-24h-2.941l-.353-2.514C17.592.669 16.823 0 15.998 0H8c-.825 0-1.593.668-1.708 1.486L5.94 4H3a3 3 0 0 0-3 3v1h24V7a3 3 0 0 0-3-3zM8.24 2h7.52l.279 2H7.96l.28-2z"
></path>
</symbol>
<symbol
viewBox=
"0 0 14 16"
id=
"cart"
>
<path
fill=
"#FFF"
fill-rule=
"evenodd"
d=
"M12.364 2.998H2.088L1.816.687a.455.455 0 0 0-.478-.431L.431.303A.454.454 0 0 0 0 .78l1.256 10.893c.006.293.011 1.325.933 1.325h9.546a.455.455 0 0 0 .455-.454v-.881a.454.454 0 0 0-.455-.455H3.05l-.11-.937h8.606c.998 0 1.889-.724 1.989-1.616l.455-4.04c.1-.893-.628-1.617-1.626-1.617zm-.45 4.245c-.075.669-.317 1.212-1.066 1.212H2.727L2.3 4.812h8.821c.749 0 1.065.543.99 1.212l-.197 1.219zM2.416 15.79a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm9.092 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"
></path>
</symbol>
<symbol
viewBox=
"0 0 58 58"
id=
"cart-icon"
>
<defs>
<filter
id=
"a"
width=
"200%"
height=
"200%"
x=
"-50%"
y=
"-50%"
filterUnits=
"objectBoundingBox"
><feOffset
in=
"SourceAlpha"
result=
"shadowOffsetOuter1"
/><feGaussianBlur
stdDeviation=
"1.5"
in=
"shadowOffsetOuter1"
result=
"shadowBlurOuter1"
/><feColorMatrix
values=
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
in=
"shadowBlurOuter1"
result=
"shadowMatrixOuter1"
/><feMerge><feMergeNode
in=
"shadowMatrixOuter1"
/><feMergeNode
in=
"SourceGraphic"
/></feMerge></filter><path
id=
"b"
d=
"M7.614 4.051c-1.066.086-1.452-.398-1.752-1.584C5.562 1.28.33 5.88.33 5.88l3.71 19.476c0 .148-1.56 7.515-1.56 7.515-.489 2.19.292 4.27 3.56 4.32 0 0 36.917.017 36.92.047 1.979-.012 2.981-.995 3.013-3.039.03-2.043-1.045-2.978-2.987-2.993L8.83 31.192s.86-3.865 1.077-3.865c0 0-5.788.122 32.065-1.956.606-.033 2.018-.764 2.298-1.848 1.113-4.317 4.008-13.26 4.458-15.64.932-4.925 2.061-8.558-4.28-7.405 0 0-35.768 3.487-36.833 3.573z"
/>
</defs>
<g
fill=
"none"
fill-rule=
"evenodd"
filter=
"url(#a)"
transform=
"translate(3 2)"
>
<g
transform=
"translate(5.038 7.808)"
><mask
id=
"c"
fill=
"#fff"
><use
xlink:href=
"#b"
/></mask><use
fill=
"#FFF"
xlink:href=
"#b"
/><path
fill=
"#2073C1"
d=
"M53.962 7.774l-5.701 19.305-40.78 1.574z"
opacity=
".1"
mask=
"url(#c)"
/></g><path
stroke=
"#FFF"
stroke-width=
"6"
d=
"M9.374 18.722S7.868 11.283 7.323 8.71C6.778 6.136 5.86 5.33 3.978 4.52 2.096 3.713.367 2.286.367 2.286"
stroke-linecap=
"round"
/><circle
cx=
"46"
cy=
"51"
r=
"4"
fill=
"#FFF"
/><circle
cx=
"12"
cy=
"51"
r=
"4"
fill=
"#FFF"
/>
</g>
</symbol>
</defs>
</svg>
<transition
name=
"router-fade"
mode=
"out-in"
>
<router-view></router-view>
</transition>
...
...
src/components/header/head.vue
浏览文件 @
a5b73794
...
...
@@ -48,7 +48,7 @@
#head_top
{
background-color
:
$blue
;
position
:
fixed
;
z-index
:
9999
;
z-index
:
100
;
left
:
0
;
top
:
0
;
@include
wh
(
100%
,
1
.95rem
);
...
...
src/page/shop/children/foodDetail.vue
浏览文件 @
a5b73794
...
...
@@ -74,12 +74,13 @@
.rating_page
{
position
:
absolute
;
top
:
1
.95rem
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background-color
:
#fff
;
z-index
:
10
;
padding-top
:
1
.95rem
;
p
,
span
{
font-family
:
Helvetica
Neue
,
Tahoma
,
Arial
;
}
...
...
src/page/shop/children/shopDetail.vue
浏览文件 @
a5b73794
<
template
>
<div
class=
"rating_page"
>
<head-top
head-title=
"评论"
go-back=
'true'
></head-top>
<head-top
head-title=
"商家详情"
go-back=
'true'
></head-top>
<section
class=
"activities_container"
>
<header>
活动与属性
</header>
<ul
class=
"actibities_ul"
>
<li
v-for=
"item in shopDetail.activities"
:key=
"item.id"
>
<span
:style=
'
{backgroundColor: "#" + item.icon_color}'>
{{
item
.
icon_name
}}
</span>
<span>
{{
item
.
description
}}
(APP专享)
</span>
</li>
</ul>
<ul
class=
"actibities_ul"
>
<li
v-for=
"item in shopDetail.supports"
:key=
"item.id"
>
<span
:style=
'
{backgroundColor: "#" + item.icon_color}'>
{{
item
.
icon_name
}}
</span>
<span>
{{
item
.
description
}}
(APP专享)
</span>
</li>
</ul>
</section>
<section
class=
"shop_status_container"
>
<router-link
to=
"/shop/shopDetail/shopSafe"
class=
"shop_status_header"
>
<span
class=
"shop_detail_title"
>
食品监督安全公示
</span>
<div>
<span
class=
"identification_detail"
>
企业认证详情
</span>
<svg
width=
"14"
height=
"14"
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
class=
"description_arrow"
>
<path
d=
"M0 0 L8 7 L0 14"
stroke=
"#bbb"
stroke-width=
"1.5"
fill=
"none"
/>
</svg>
</div>
</router-link>
<section
class=
"shop_statu_detail"
>
<div>
<svg
class=
"shop_status"
v-if=
"shopDetail.status == 1"
>
<use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#res-well"
></use>
</svg>
<svg
class=
"res-well"
v-else
>
<use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#res-bad"
></use>
</svg>
</div>
<div
class=
"check_date"
>
<p>
<span>
监督检查结果:
</span>
<span
class=
"shop_status_well"
v-if=
"shopDetail.status == 1"
>
良好
</span>
<span
class=
"shop_status_bad"
v-else
>
差
</span>
</p>
<p>
<span>
检查日期:
</span>
<span>
{{
shopDetail
.
identification
.
identificate_date
.
split
(
'
T
'
)[
0
]
}}
</span>
</p>
</div>
</section>
</section>
<section
class=
"shop_status_info"
>
<header>
商家信息
</header>
<p>
{{
shopDetail
.
name
}}
</p>
<p>
地址:
{{
shopDetail
.
address
}}
</p>
<p>
营业时间:[
{{
shopDetail
.
opening_hours
[
0
]
}}
]
</p>
<p
@
click=
"showLicenseImg(shopDetail.license.business_license_image)"
>
<span>
营业执照
</span>
<svg
width=
"14"
height=
"14"
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
class=
"description_arrow"
>
<path
d=
"M0 0 L8 7 L0 14"
stroke=
"#bbb"
stroke-width=
"1.5"
fill=
"none"
/>
</svg></p>
<p
@
click=
"showLicenseImg(shopDetail.license.catering_service_license_image)"
>
<span>
餐饮服务许可证
</span>
<svg
width=
"14"
height=
"14"
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
class=
"description_arrow"
>
<path
d=
"M0 0 L8 7 L0 14"
stroke=
"#bbb"
stroke-width=
"1.5"
fill=
"none"
/>
</svg>
</p>
</section>
<transition
name=
"fade"
>
<section
class=
"license_container"
v-if=
"showlicenseImg"
@
click=
"showlicenseImg = false"
>
<img
:src=
"getImgPath(licenseImg)"
>
</section>
</transition>
<transition
name=
"router-slid"
>
<router-view></router-view>
</transition>
</div>
</
template
>
<
script
>
import
headTop
from
'
../../../components/header/head
'
import
{
mapState
}
from
'
vuex
'
import
{
getImgPath
}
from
'
../../../components/common/mixin
'
export
default
{
data
(){
return
{
licenseImg
:
null
,
showlicenseImg
:
false
,
}
},
mounted
(){
},
computed
:
{
...
mapState
([
'
shopDetail
'
]),
},
components
:
{
headTop
,
},
props
:[],
mixins
:[
getImgPath
],
methods
:
{
showLicenseImg
(
img
){
this
.
licenseImg
=
img
;
this
.
showlicenseImg
=
true
;
},
}
}
</
script
>
...
...
@@ -32,7 +118,126 @@
left
:
0
;
right
:
0
;
bottom
:
0
;
background-color
:
#fff
;
padding-top
:
1
.95rem
;
background-color
:
#ebebeb
;
z-index
:
18
;
}
.activities_container
{
background-color
:
#fff
;
margin
:
.4rem
0
;
padding-bottom
:
.6rem
;
header
{
@include
sc
(
.75rem
,
#333
);
line-height
:
1
.8rem
;
padding-left
:
.6rem
;
border-bottom
:
1px
solid
#f1f1f1
;
margin-bottom
:
.3rem
;
}
.actibities_ul
{
padding
:
0
.6rem
;
li
{
margin-bottom
:
.2rem
;
span
:nth-of-type
(
1
)
{
@include
sc
(
.45rem
,
#fff
);
padding
:
.1rem
;
border
:
1px
;
border-radius
:
0
.1rem
;
margin-right
:
.2rem
;
}
span
:nth-of-type
(
2
)
{
@include
sc
(
.55rem
,
#666
);
}
}
}
}
.shop_status_container
{
background-color
:
#fff
;
margin-bottom
:
.4rem
;
.shop_status_header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
line-height
:
1
.8rem
;
padding
:
0
.6rem
;
border-bottom
:
0
.025rem
solid
#f1f1f1
;
.shop_detail_title
{
@include
sc
(
.75rem
,
#333
);
}
.identification_detail
{
@include
sc
(
.7rem
,
#bbb
);
vertical-align
:
middle
;
}
svg
{
@include
wh
(
.6rem
,
.6rem
);
vertical-align
:
middle
;
}
}
.shop_statu_detail
{
display
:
flex
;
padding
:
.6rem
;
svg
{
@include
wh
(
2rem
,
2rem
);
margin-right
:
.6rem
;
}
.check_date
{
span
{
@include
sc
(
.55rem
,
#666
);
}
.shop_status_well
{
color
:
rgb
(
126
,
211
,
33
);
}
.shop_status_bad
{
color
:
red
;
}
}
}
}
.shop_status_info
{
background-color
:
#fff
;
margin-bottom
:
.4rem
;
header
{
line-height
:
1
.8rem
;
padding
:
0
.6rem
;
@include
sc
(
.75rem
,
#333
);
border-bottom
:
0
.025rem
solid
#f1f1f1
;
}
p
{
@include
sc
(
.6rem
,
#666
);
padding
:
.7rem
.6rem
.7rem
0
;
margin-left
:
.6rem
;
border-bottom
:
0
.025rem
solid
#f5f5f5
;
}
span
{
color
:
#666
;
}
p
:nth-of-type
(
4
),
p
:nth-of-type
(
5
)
{
display
:
flex
;
justify-content
:
space-between
;
}
}
.license_container
{
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background-color
:
rgba
(
0
,
0
,
0
,.
5
);
z-index
:
101
;
img
{
width
:
100%
;
@include
center
;
}
}
.fade-enter-active
,
.fade-leave-active
{
transition
:
opacity
.5s
;
}
.fade-enter
,
.fade-leave-active
{
opacity
:
0
;
}
.router-slid-enter-active
,
.router-slid-leave-active
{
transition
:
all
.4s
;
}
.router-slid-enter
,
.router-slid-leave-active
{
transform
:
translateX
(
100%
);
}
</
style
>
src/page/shop/children/shopSafe.vue
0 → 100644
浏览文件 @
a5b73794
<
template
>
<div
class=
"safe_shop"
>
<head-top
head-title=
"食品监督安全公示"
go-back=
'true'
></head-top>
<section
class=
"shop_status_container"
>
<header>
食品监督安全公示
</header>
<section
class=
"shop_statu_detail"
>
<div>
<svg
class=
"shop_status"
v-if=
"shopDetail.status == 1"
>
<use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#res-well"
></use>
</svg>
<svg
class=
"res-well"
v-else
>
<use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#res-bad"
></use>
</svg>
</div>
<div
class=
"check_date"
>
<p>
<span>
监督检查结果:
</span>
<span
class=
"shop_status_well"
v-if=
"shopDetail.status == 1"
>
良好
</span>
<span
class=
"shop_status_bad"
v-else
>
差
</span>
</p>
<p>
<span>
检查日期:
</span>
<span>
{{
shopDetail
.
identification
.
identificate_date
.
split
(
'
T
'
)[
0
]
}}
</span>
</p>
</div>
</section>
</section>
<section
class=
"shop_status_container"
>
<header>
<span>
工商登记信息
</span>
</header>
<ul>
<li>
<p>
企业名称
</p>
<p>
{{
shopDetail
.
identification
.
company_name
}}
</p>
</li>
<li>
<p>
工商执照注册号
</p>
<p>
{{
shopDetail
.
identification
.
identificate_agency
}}
</p>
</li>
<li>
<p>
注册资本
</p>
<p>
{{
shopDetail
.
identification
.
registered_number
}}
</p>
</li>
<li>
<p>
注册地址
</p>
<p>
{{
shopDetail
.
identification
.
registered_address
}}
</p>
</li>
<li>
<p>
属地监管所
</p>
<p>
{{
shopDetail
.
identification
.
registered_principal
}}
</p>
</li>
<li>
<p>
法定代表人
</p>
<p>
{{
shopDetail
.
identification
.
legal_person
}}
</p>
</li>
<li>
<p>
经营范围
</p>
<p>
{{
shopDetail
.
identification
.
operation_period
}}
</p>
</li>
</ul>
</section>
<section
class=
"shop_status_container"
>
<header>
餐饮许可证
</header>
<ul>
<li>
<p>
营业范围
</p>
<p>
{{
shopDetail
.
identification
.
operation_period
}}
</p>
</li>
<li>
<p>
许可证有效期
</p>
<p>
{{
shopDetail
.
identification
.
licenses_date
}}
</p>
</li>
<li>
<p>
许可证号
</p>
<p>
{{
shopDetail
.
identification
.
licenses_number
}}
</p>
</li>
<li>
<p>
发证时间
</p>
<p>
{{
shopDetail
.
identification
.
licenses_scope
}}
</p>
</li>
<li>
<p>
发证机关
</p>
<p>
{{
shopDetail
.
identification
.
registered_principal
}}
</p>
</li>
</ul>
</section>
<section
class=
"license_img shop_status_container"
>
<header>
许可证书
</header>
<div
class=
"img_container"
>
<img
:src=
"getImgPath(shopDetail.license.business_license_image)"
>
<img
:src=
"getImgPath(shopDetail.license.catering_service_license_image)"
>
</div>
</section>
</div>
</
template
>
<
script
>
import
{
mapState
}
from
'
vuex
'
import
headTop
from
'
../../../components/header/head
'
import
{
getImgPath
}
from
'
../../../components/common/mixin
'
export
default
{
data
(){
return
{
}
},
mounted
(){
},
computed
:
{
...
mapState
([
'
shopDetail
'
]),
},
components
:
{
headTop
,
},
mixins
:[
getImgPath
],
methods
:
{
showLicenseImg
(
img
){
this
.
licenseImg
=
img
;
this
.
showlicenseImg
=
true
;
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../../../style/mixin.scss'
;
.safe_shop
{
position
:
absolute
;
top
:
0
;
left
:
0
;
padding-top
:
1
.95rem
;
background-color
:
#ebebeb
;
z-index
:
102
;
}
ul
{
margin-left
:
1rem
;
padding
:
.4rem
0
;
li
{
margin-bottom
:
.4rem
;
p
{
line-height
:
1rem
;
}
p
:nth-of-type
(
1
)
{
@include
sc
(
.55rem
,
#333
);
}
p
:nth-of-type
(
2
)
{
@include
sc
(
.5rem
,
#999
);
}
}
}
.shop_status_container
{
background-color
:
#fff
;
margin-bottom
:
.4rem
;
header
{
line-height
:
1
.8rem
;
padding
:
0
.6rem
;
border-bottom
:
0
.025rem
solid
#f1f1f1
;
@include
sc
(
.75rem
,
#333
);
}
.shop_statu_detail
{
display
:
flex
;
padding
:
.6rem
;
svg
{
@include
wh
(
2rem
,
2rem
);
margin-right
:
.6rem
;
}
.check_date
{
span
{
@include
sc
(
.55rem
,
#666
);
}
.shop_status_well
{
color
:
rgb
(
126
,
211
,
33
);
}
.shop_status_bad
{
color
:
red
;
}
}
}
}
.license_img
{
padding
:
.6rem
;
background-color
:
#fff
;
.img_container
{
background-color
:
#ebebeb
;
img
{
width
:
40%
;
height
:
auto
;
margin
:
.4rem
;
vertical-align
:
middle
;
}
}
}
</
style
>
src/page/shop/shop.vue
浏览文件 @
a5b73794
...
...
@@ -4,7 +4,7 @@
<header
class=
"shop_detail_header"
ref=
"shopheader"
:style=
"
{zIndex: showActivities? '14':'10'}">
<img
:src=
"getImgPath(shopDetailData.image_path)"
class=
"header_cover_img"
>
<section
class=
"description_header"
>
<
section
class=
"description_top"
@
click=
"showActivitiesFun
"
>
<
router-link
to=
"/shop/shopDetail"
class=
"description_top
"
>
<section
class=
"description_left"
>
<img
:src=
"getImgPath(shopDetailData.image_path)"
>
</section>
...
...
@@ -16,13 +16,16 @@
<svg
width=
"14"
height=
"14"
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
class=
"description_arrow"
>
<path
d=
"M0 0 L8 7 L0 14"
stroke=
"#fff"
stroke-width=
"1"
fill=
"none"
/>
</svg>
</
section
>
</
router-link
>
<footer
class=
"description_footer"
v-if=
"shopDetailData.activities.length"
@
click=
"showActivitiesFun"
>
<p
class=
"ellipsis"
>
<span
class=
"tip_icon"
:style=
"
{backgroundColor: '#' + shopDetailData.activities[0].icon_color, borderColor: '#' + shopDetailData.activities[0].icon_color}">
{{
shopDetailData
.
activities
[
0
].
icon_name
}}
</span>
<span>
{{
shopDetailData
.
activities
[
0
].
description
}}
(APP专享)
</span>
</p>
<p>
{{
shopDetailData
.
activities
.
length
}}
个活动
</p>
<svg
class=
"footer_arrow"
>
<use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#arrow-left"
></use>
</svg>
</footer>
<transition
name=
"fade"
>
<section
class=
"activities_details"
v-if=
"showActivities"
>
...
...
@@ -346,7 +349,7 @@
},
methods
:
{
...
mapMutations
([
'
RECORD_ADDRESS
'
,
'
ADD_CART
'
,
'
REDUCE_CART
'
,
'
INIT_BUYCART
'
,
'
CLEAR_CART
'
'
RECORD_ADDRESS
'
,
'
ADD_CART
'
,
'
REDUCE_CART
'
,
'
INIT_BUYCART
'
,
'
CLEAR_CART
'
,
'
RECORD_SHOPDETAIL
'
]),
//初始化时获取基本数据
async
initData
(){
...
...
@@ -363,6 +366,7 @@
this
.
ratingList
=
await
getRatingList
(
this
.
ratingOffset
);
this
.
ratingScoresData
=
await
ratingScores
(
this
.
shopId
);
this
.
ratingTagsList
=
await
ratingTags
(
this
.
shopId
);
this
.
RECORD_SHOPDETAIL
(
this
.
shopDetailData
)
//隐藏加载动画
this
.
showLoading
=
false
;
},
...
...
@@ -624,7 +628,7 @@
.description_footer
{
@include
fj
;
margin-top
:
0
.5rem
;
padding-right
:
.4
rem
;
padding-right
:
1
rem
;
p
{
@include
sc
(
.5rem
,
#fff
);
span
{
...
...
@@ -640,6 +644,11 @@
.ellipsis
{
width
:
87%
;
}
.footer_arrow
{
@include
wh
(
.45rem
,
.45rem
);
position
:
absolute
;
right
:
.3rem
;
}
}
.activities_details
{
position
:
fixed
;
...
...
src/router/router.js
浏览文件 @
a5b73794
...
...
@@ -14,6 +14,7 @@ const vipcard = r => require.ensure([], () => r(require('../page/vipcard/vipcard
const
food
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'
../page/food/food
'
)),
'
food
'
)
const
foodDetail
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'
../page/shop/children/foodDetail
'
)),
'
foodDetail
'
)
const
shopDetail
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'
../page/shop/children/shopDetail
'
)),
'
shopDetail
'
)
const
shopSafe
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'
../page/shop/children/shopSafe
'
)),
'
shopSafe
'
)
export
default
[{
...
...
@@ -35,6 +36,12 @@ export default [{
{
path
:
'
shopDetail
'
,
component
:
shopDetail
,
children
:
[
{
path
:
'
shopSafe
'
,
component
:
shopSafe
,
},
]
}
]
},
//商铺详情页
...
...
src/store/index.js
浏览文件 @
a5b73794
...
...
@@ -10,11 +10,13 @@ const state = {
latitude
:
''
,
// 当前位置纬度
longitude
:
''
,
// 当前位置经度
cartList
:
{},
// 加入购物车的商品列表
shopDetail
:
null
,
//商家详情信息
}
export
default
new
Vuex
.
Store
({
state
,
getters
,
actions
,
mutations
mutations
,
})
\ No newline at end of file
src/store/mutation-types.js
浏览文件 @
a5b73794
...
...
@@ -2,4 +2,5 @@ export const RECORD_ADDRESS = 'RECORD_ADDRESS'
export
const
ADD_CART
=
'
ADD_CART
'
export
const
REDUCE_CART
=
'
REDUCE_CART
'
export
const
INIT_BUYCART
=
'
INIT_BUYCART
'
export
const
CLEAR_CART
=
'
CLEAR_CART
'
\ No newline at end of file
export
const
CLEAR_CART
=
'
CLEAR_CART
'
export
const
RECORD_SHOPDETAIL
=
'
RECORD_SHOPDETAIL
'
\ No newline at end of file
src/store/mutations.js
浏览文件 @
a5b73794
import
{
RECORD_ADDRESS
,
ADD_CART
,
REDUCE_CART
,
INIT_BUYCART
,
CLEAR_CART
}
from
'
./mutation-types.js
'
import
{
RECORD_ADDRESS
,
ADD_CART
,
REDUCE_CART
,
INIT_BUYCART
,
CLEAR_CART
,
RECORD_SHOPDETAIL
}
from
'
./mutation-types.js
'
import
{
setStore
,
getStore
}
from
'
../config/mUtils
'
export
default
{
...
...
@@ -7,6 +7,9 @@ export default {
state
.
latitude
=
latitude
;
state
.
longitude
=
longitude
;
},
[
RECORD_SHOPDETAIL
](
state
,
detail
){
state
.
shopDetail
=
detail
;
},
// 加入购物车
[
ADD_CART
]
(
state
,
{
shopid
,
category_id
,
item_id
,
food_id
,
name
,
price
,
specs
})
{
let
cart
=
state
.
cartList
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录