This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0fa970
commit 041fc84
Showing
28 changed files
with
289 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<card :header="{title:'更多服务'}"> | ||
<grid slot="content"> | ||
<grid-item v-for="item in items" :label="item.label" :link="item.link"> | ||
<img slot="icon" :src="item.img"> | ||
</grid-item> | ||
</grid> | ||
</card> | ||
</template> | ||
|
||
<script> | ||
import { mapMutations } from 'vuex' | ||
import { Grid, GridItem, Card } from 'vux' | ||
export default { | ||
data() { | ||
return { | ||
items: [{ | ||
label: "百度", | ||
link: "https://www.baidu.com", | ||
img: require("../assets/vux_logo.png"), | ||
}, { | ||
label: "滴滴", | ||
link: "https://common.diditaxi.com.cn/general/webEntry?code=031RcUHP1bDB5717NpHP1U6KHP1RcUHV&state=123#/", | ||
img: require("../assets/vux_logo.png"), | ||
}, { | ||
label: "美团外卖", | ||
link: "https://takeaway.dianping.com/waimai/wxwallet#!index/source=redir", | ||
img: require("../assets/vux_logo.png"), | ||
}] | ||
} | ||
}, | ||
components: { | ||
Grid, | ||
GridItem, | ||
Card | ||
}, | ||
mounted() { | ||
this.SET_TITLE(this.$t('Discovery')) | ||
this.SET_RIGHT_OPTION({show:false}) | ||
}, | ||
methods: { | ||
...mapMutations(['SET_TITLE','SET_RIGHT_OPTION']) | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import axios from 'axios' | ||
import { weatherhost } from './api' | ||
|
||
export const getFutureWeather = (params) => axios.get(weatherhost + '/daily.json', {params}) | ||
|
||
export const getNowWeather = (params) => axios.get(weatherhost + '/now.json', {params}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import jsonp from 'jsonp' | ||
import querystring from 'querystring' | ||
|
||
export default function(url, data, params) { | ||
return new Promise((resolve, reject) => { | ||
if (data) url += "?" + querystring.stringify(data) | ||
params = params || {timeout: 15000} | ||
if (!params.timeout) params.timeout = 15000 | ||
jsonp(url, params, (err, data) => { | ||
if (err) { | ||
reject(err) | ||
} else { | ||
resolve(data) | ||
} | ||
}) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,37 @@ | ||
<template> | ||
<grid> | ||
<grid-item v-for="item in items" :label="item.label" :link="item.link"> | ||
<img slot="icon" :src="item.img"> | ||
</grid-item> | ||
</grid> | ||
<panel header="我的博客" :footer="footer" :list="list" :type="type"></panel> | ||
</template> | ||
|
||
<script> | ||
import {mapMutations} from 'vuex' | ||
import { Grid, GridItem } from 'vux' | ||
import {Panel} from 'vux' | ||
export default { | ||
components:{ | ||
Panel, | ||
}, | ||
export default { | ||
data() { | ||
return { | ||
items: [{ | ||
label: "百度", | ||
link: "https://www.baidu.com", | ||
img: require("../assets/vux_logo.png"), | ||
}, { | ||
label: "滴滴", | ||
link: "https://common.diditaxi.com.cn/general/webEntry?code=031RcUHP1bDB5717NpHP1U6KHP1RcUHV&state=123#/", | ||
img: require("../assets/vux_logo.png"), | ||
}, { | ||
label: "美团外卖", | ||
link: "https://takeaway.dianping.com/waimai/wxwallet#!index/source=redir", | ||
img: require("../assets/vux_logo.png"), | ||
}] | ||
data(){ | ||
return { | ||
type:'1', | ||
list: [{ | ||
src: 'http://placeholder.qiniudn.com/60x60/3cc51f/ffffff', | ||
title: '标题一', | ||
desc: '由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。', | ||
url: '/component/cell' | ||
}, { | ||
src: 'http://placeholder.qiniudn.com/60x60/3cc51f/ffffff', | ||
title: '标题二', | ||
desc: '由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。', | ||
url: { | ||
path: '/component/radio', | ||
replace: false | ||
} | ||
}], | ||
footer: { | ||
title: '查看更多', | ||
url: 'http://vux.li' | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
components: { | ||
Grid, | ||
GridItem, | ||
}, | ||
mounted() { | ||
this.SET_TITLE(this.$t('Discovery')) | ||
this.SET_RIGHT_OPTION({show:false}) | ||
}, | ||
methods: { | ||
...mapMutations(['SET_TITLE','SET_RIGHT_OPTION']) | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!DOCTYPE html><html><head><title></title><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><link href=static/css/app.c6cd963247f10bcd2bc803ef623e0506.css rel=stylesheet></head><body ontouchstart><div id=app></div><script type=text/javascript src=static/js/manifest.bfe82b42cf8a38e31fe7.js></script><script type=text/javascript src=static/js/vendor.e0d3a0d1c4d6e0fcae0e.js></script><script type=text/javascript src=static/js/app.39248fcefdfe65656f6a.js></script></body></html> | ||
<!DOCTYPE html><html><head><title></title><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><link href=static/css/app.4991fa34f3c2b5f8f86172c9c2ae23e8.css rel=stylesheet></head><body ontouchstart><div id=app></div><script type=text/javascript src=static/js/manifest.e883c423124f145cf9eb.js></script><script type=text/javascript src=static/js/vendor.6ad37f95fe52935f074a.js></script><script type=text/javascript src=static/js/app.86e8f1bb15306bd55091.js></script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
www/static/js/app.39248fcefdfe65656f6a.js → www/static/js/app.86e8f1bb15306bd55091.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.