Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
momo的小宝贝
vue2-elm
提交
a3682797
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,体验更适合开发者的 AI 搜索 >>
提交
a3682797
编写于
1月 16, 2018
作者:
C
catchme
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改拼写错误
上级
4484ea05
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
13 addition
and
13 deletion
+13
-13
src/components/common/computeTime.vue
src/components/common/computeTime.vue
+1
-1
src/page/food/food.vue
src/page/food/food.vue
+2
-2
src/page/login/login.vue
src/page/login/login.vue
+2
-2
src/page/msite/msite.vue
src/page/msite/msite.vue
+5
-5
src/page/shop/shop.vue
src/page/shop/shop.vue
+2
-2
src/service/getData.js
src/service/getData.js
+1
-1
未找到文件。
src/components/common/computeTime.vue
浏览文件 @
a3682797
...
...
@@ -78,7 +78,7 @@
.page
{
display
:
inline-block
;
.rem_time
{
@include
sc
(
.55rem
,
#
orange
);
@include
sc
(
.55rem
,
orange
);
padding
:
.1rem
.2rem
;
border-radius
:
.15rem
;
}
...
...
src/page/food/food.vue
浏览文件 @
a3682797
...
...
@@ -176,7 +176,7 @@ import {mapState, mapMutations} from 'vuex'
import
headTop
from
'
src/components/header/head
'
import
shopList
from
'
src/components/common/shoplist
'
import
{
getImgPath
}
from
'
src/components/common/mixin
'
import
{
msiteAdress
,
foodCategory
,
foodDelivery
,
foodActivity
}
from
'
src/service/getData
'
import
{
msiteAd
d
ress
,
foodCategory
,
foodDelivery
,
foodActivity
}
from
'
src/service/getData
'
export
default
{
data
(){
...
...
@@ -225,7 +225,7 @@ export default {
//防止刷新页面时,vuex状态丢失,经度纬度需要重新获取,并存入vuex
if
(
!
this
.
latitude
)
{
//获取位置信息
let
res
=
await
msiteAdress
(
this
.
geohash
);
let
res
=
await
msiteAd
d
ress
(
this
.
geohash
);
// 记录当前经度纬度进入vuex
this
.
RECORD_ADDRESS
(
res
);
}
...
...
src/page/login/login.vue
浏览文件 @
a3682797
...
...
@@ -21,7 +21,7 @@
<input
v-if=
"!showPassword"
type=
"password"
placeholder=
"密码"
v-model=
"passWord"
>
<input
v-else
type=
"text"
placeholder=
"密码"
v-model=
"passWord"
>
<div
class=
"button_switch"
:class=
"
{change_to_text: showPassword}">
<div
class=
"circ
el
_button"
:class=
"
{trans_to_right: showPassword}" @click="changePassWordType">
</div>
<div
class=
"circ
le
_button"
:class=
"
{trans_to_right: showPassword}" @click="changePassWordType">
</div>
<span>
abc
</span>
<span>
...
</span>
</div>
...
...
@@ -278,7 +278,7 @@
border
:
1px
;
border-radius
:
0
.5rem
;
position
:
relative
;
.circ
el
_button
{
.circ
le
_button
{
transition
:
all
.3s
;
position
:
absolute
;
top
:
-0
.2rem
;
...
...
src/page/msite/msite.vue
浏览文件 @
a3682797
...
...
@@ -8,7 +8,7 @@
</svg>
</router-link>
<router-link
to=
"/home"
slot=
"msite-title"
class=
"msite_title"
>
<span
class=
"title_text ellipsis"
>
{{
msi
et
Title
}}
</span>
<span
class=
"title_text ellipsis"
>
{{
msi
te
Title
}}
</span>
</router-link>
</head-top>
<nav
class=
"msite_nav"
>
...
...
@@ -46,7 +46,7 @@ import {mapMutations} from 'vuex'
import
headTop
from
'
src/components/header/head
'
import
footGuide
from
'
src/components/footer/footGuide
'
import
shopList
from
'
src/components/common/shoplist
'
import
{
msiteAdress
,
msiteFoodTypes
,
cityGuess
}
from
'
src/service/getData
'
import
{
msiteAd
d
ress
,
msiteFoodTypes
,
cityGuess
}
from
'
src/service/getData
'
import
'
src/plugins/swiper.min.js
'
import
'
src/style/swiper.min.css
'
...
...
@@ -54,7 +54,7 @@ export default {
data
(){
return
{
geohash
:
''
,
// city页面传递过来的地址geohash
msi
etTitle
:
'
请选择地址...
'
,
// msiet
页面头部标题
msi
teTitle
:
'
请选择地址...
'
,
// msite
页面头部标题
foodTypes
:
[],
// 食品分类列表
hasGetData
:
false
,
//是否已经获取地理位置数据,成功之后再获取商铺列表信息
imgBaseUrl
:
'
https://fuss10.elemecdn.com
'
,
//图片域名地址
...
...
@@ -70,8 +70,8 @@ export default {
//保存geohash 到vuex
this
.
SAVE_GEOHASH
(
this
.
geohash
);
//获取位置信息
let
res
=
await
msiteAdress
(
this
.
geohash
);
this
.
msi
et
Title
=
res
.
name
;
let
res
=
await
msiteAd
d
ress
(
this
.
geohash
);
this
.
msi
te
Title
=
res
.
name
;
// 记录当前经度纬度
this
.
RECORD_ADDRESS
(
res
);
...
...
src/page/shop/shop.vue
浏览文件 @
a3682797
...
...
@@ -317,7 +317,7 @@
<
script
>
import
{
mapState
,
mapMutations
}
from
'
vuex
'
import
{
msiteAdress
,
shopDetails
,
foodMenu
,
getRatingList
,
ratingScores
,
ratingTags
}
from
'
src/service/getData
'
import
{
msiteAd
d
ress
,
shopDetails
,
foodMenu
,
getRatingList
,
ratingScores
,
ratingTags
}
from
'
src/service/getData
'
import
loading
from
'
src/components/common/loading
'
import
buyCart
from
'
src/components/common/buyCart
'
import
ratingStar
from
'
src/components/common/ratingStar
'
...
...
@@ -427,7 +427,7 @@
async
initData
(){
if
(
!
this
.
latitude
)
{
//获取位置信息
let
res
=
await
msiteAdress
(
this
.
geohash
);
let
res
=
await
msiteAd
d
ress
(
this
.
geohash
);
// 记录当前经度纬度进入vuex
this
.
RECORD_ADDRESS
(
res
);
}
...
...
src/service/getData.js
浏览文件 @
a3682797
...
...
@@ -50,7 +50,7 @@ export const searchplace = (cityid, value) => fetch('/v1/pois', {
* 获取msite页面地址信息
*/
export
const
msiteAdress
=
geohash
=>
fetch
(
'
/v2/pois/
'
+
geohash
);
export
const
msiteAd
d
ress
=
geohash
=>
fetch
(
'
/v2/pois/
'
+
geohash
);
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录