-
Notifications
You must be signed in to change notification settings - Fork 4
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
徐钰 徐
authored and
徐钰 徐
committed
Oct 31, 2018
1 parent
685b379
commit f4e810f
Showing
111 changed files
with
787 additions
and
944 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 |
---|---|---|
@@ -1,106 +1,126 @@ | ||
<script> | ||
export default { | ||
created () { | ||
// 调用API从本地缓存中获取数据 | ||
const logs = wx.getStorageSync('logs') || [] | ||
logs.unshift(Date.now()) | ||
wx.setStorageSync('logs', logs) | ||
console.log('app created and cache logs by setStorageSync') | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
/*通用样式*/ | ||
*{ | ||
margin:0rpx; | ||
padding:0rpx; | ||
} | ||
.body { | ||
background-color: #f2f2f2; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
.box-shadow{ | ||
border-radius: 10rpx; | ||
box-shadow: 0rpx 8rpx 36rpx rgba(204,202,202,0.3); | ||
box-sizing: border-box; | ||
} | ||
.clearfix{ | ||
display: table; | ||
clear: both; | ||
content: ""; | ||
} | ||
.fl{ | ||
float: left; | ||
} | ||
.fr{ | ||
float: right; | ||
} | ||
.i-icon{ | ||
display:block; | ||
} | ||
.span-inline{ | ||
display: inline-block; | ||
} | ||
.span-block{ | ||
display: block; | ||
} | ||
.btn{ | ||
width:180rpx; | ||
height: 50rpx; | ||
line-height: 50rpx; | ||
border-radius: 10rpx; | ||
display: inline-block; | ||
} | ||
.width710{ | ||
width:710rpx; | ||
} | ||
.big-input{ | ||
width: 460rpx; | ||
height: 40rpx; | ||
border-radius: 10rpx; | ||
border:2rpx solid #cccccc; | ||
} | ||
/*样色样式*/ | ||
.bgff{ | ||
background-color: #ffffff; | ||
} | ||
.theme-color{ | ||
background-color: #fece00; | ||
} | ||
.color11{ | ||
color: #111111; | ||
} | ||
.color52{ | ||
color:#525252; | ||
} | ||
.color75{ | ||
color: #757575; | ||
} | ||
.color00{ | ||
color:#ffcc00; | ||
} | ||
/*部分tab 样式*/ | ||
#tab_select ul li { | ||
height: 70rpx; | ||
line-height: 70rpx; | ||
float: left; | ||
background: #FFFFFF; | ||
text-align: center; | ||
font-size: 28rpx; | ||
font-weight: 400; | ||
} | ||
#tab_select ul li.tab_select_now { | ||
color: #FECE00; | ||
} | ||
.tab_content_now { | ||
display: block; | ||
} | ||
<script> | ||
export default { | ||
created() { | ||
// 调用API从本地缓存中获取数据 | ||
const logs = wx.getStorageSync('logs') || [] | ||
logs.unshift(Date.now()) | ||
wx.setStorageSync('logs', logs) | ||
console.log('app created and cache logs by setStorageSync') | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
/*通用样式*/ | ||
* { | ||
margin: 0rpx; | ||
padding: 0rpx; | ||
} | ||
.body { | ||
background-color: #f2f2f2; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
.box-shadow { | ||
border-radius: 10rpx; | ||
box-shadow: 0rpx 8rpx 36rpx rgba(204, 202, 202, 0.3); | ||
box-sizing: border-box; | ||
} | ||
.clearfix { | ||
display: table; | ||
clear: both; | ||
content: ""; | ||
} | ||
.fl { | ||
float: left; | ||
} | ||
.fr { | ||
float: right; | ||
} | ||
.i-icon { | ||
display: block; | ||
} | ||
.span-inline { | ||
display: inline-block; | ||
} | ||
.span-block { | ||
display: block; | ||
} | ||
.btn { | ||
width: 180rpx; | ||
height: 50rpx; | ||
line-height: 50rpx; | ||
border-radius: 10rpx; | ||
display: inline-block; | ||
} | ||
.width710 { | ||
width: 710rpx; | ||
} | ||
.big-input { | ||
width: 460rpx; | ||
height: 40rpx; | ||
border-radius: 10rpx; | ||
border: 2rpx solid #cccccc; | ||
} | ||
/*样色样式*/ | ||
.bgff { | ||
background-color: #ffffff; | ||
} | ||
.theme-color { | ||
background-color: #ffd000; | ||
} | ||
.color11 { | ||
color: #111111; | ||
} | ||
.color52 { | ||
color: #525252; | ||
} | ||
.color75 { | ||
color: #757575; | ||
} | ||
.color00 { | ||
color: #ffcc00; | ||
} | ||
/*部分tab 样式*/ | ||
#tab_select ul li { | ||
height: 70rpx; | ||
line-height: 70rpx; | ||
float: left; | ||
background: #FFFFFF; | ||
text-align: center; | ||
font-size: 28rpx; | ||
font-weight: 400; | ||
} | ||
#tab_select ul li.tab_select_now { | ||
color: #FECE00; | ||
} | ||
.tab_content_now { | ||
display: block; | ||
} | ||
</style> |
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,22 @@ | ||
import Command from './Command'; | ||
export default class MySalesEchartCommand extends Command { | ||
constructor(app) { | ||
super(app); | ||
} | ||
async handle(xDate) { | ||
let yData = null; | ||
let [salesInfo, sellTop, merchandiseTop, statics] = await this.service('http.myStoreStatusSales').salesInfo( | ||
xDate); | ||
yData = statics; | ||
console.log('XU-ZHENG', xDate, yData, this.service('mp.eCharts')); | ||
let result = await this.service('mp.eCharts').createChart(xDate, yData, true); | ||
console.log('MySalesEchartCommand-------MySalesEchartCommand', result); | ||
this.store().dispatch({ | ||
type: 'model.my.sales.echart/chartDatas', | ||
chartDatas: result | ||
}); | ||
} | ||
static commandName() { | ||
return 'MYSALESECHARTS'; | ||
} | ||
} |
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
Oops, something went wrong.