diff --git a/README.md b/README.md index 07b555c..e93d7a8 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ yshop基于当前流行技术组合: SpringBoot2+Jpa+MybatisPlus+SpringSecurit | | 后台系统 | 前端(公众号) | |--- |--- | --- | -| | https://yshop.dayouqiantu.cn |g公众号:YshopMall | +| | https://yshop.dayouqiantu.cn |H5:https://h5.dayouqiantu.cn 测试号:hupeng/123456,也可以自行注册 | | | 后台体验账号/密码:admin/123456 | 公众号:![输入图片说明](https://images.gitee.com/uploads/images/2019/1116/060936_fd73496c_477893.jpeg "qrcode_for_gh_95df5a2881cc_258.jpg") | @@ -24,7 +24,6 @@ yshop基于当前流行技术组合: SpringBoot2+Jpa+MybatisPlus+SpringSecurit #### 开源版本与VIP版本说明 - ### 开源版 1.包括整个商城系统后台、数据库、api(只是简单的配置好模块); @@ -41,7 +40,6 @@ yshop基于当前流行技术组合: SpringBoot2+Jpa+MybatisPlus+SpringSecurit 4、VIP为终身,【[详情请查看](https://gitee.com/guchengwuyue/yshopmall/wikis/pages?sort_id=1715823&doc_id=441578)】 - ## 商城功能 * 一:商品模块:商品添加、规格设置,商品上下架等 @@ -51,13 +49,12 @@ yshop基于当前流行技术组合: SpringBoot2+Jpa+MybatisPlus+SpringSecurit * 五:配置模块:各种配置 * 六:用户模块:登陆、注册、会员卡等 * 七:其他等 - + #### 已经完成功能 - 可以具体查看演示地址查看当前版本已经完成的功能,不再絮叨啦 - #### 项目结构 项目采用分模块开发方式 - yshop-api 公众号(H5)API模块 @@ -84,7 +81,7 @@ yshop基于当前流行技术组合: SpringBoot2+Jpa+MybatisPlus+SpringSecurit - + @@ -104,11 +101,11 @@ yshop基于当前流行技术组合: SpringBoot2+Jpa+MybatisPlus+SpringSecurit ## 技术选型 * 1 后端使用技术 - * 1.1 SpringBoot + * 1.1 SpringBoot2 * 1.2 mybatis、MyBatis-Plus * 1.3 SpringSecurity - * 1.4 JAP - * 1.5 Druid1 + * 1.4 JPA + * 1.5 Druid * 1.6 Slf4j * 1.7 Fastjson * 1.8 JWT @@ -120,6 +117,7 @@ yshop基于当前流行技术组合: SpringBoot2+Jpa+MybatisPlus+SpringSecurit * 1.14 Lombok * 1.15 Hutool * 1.16 Mapstruct + * 1.17 Redisson * 前端使用技术 * 2.1 Vue 全家桶 @@ -133,7 +131,8 @@ yshop基于当前流行技术组合: SpringBoot2+Jpa+MybatisPlus+SpringSecurit - 1.2版本分销功能已经发布 - 1.2.1增加了未付款订单取消功能库存销量退出、优惠券、积分功能,个人中心增加了积分流水 - 1.3版本新增拼团功能,已经发布 -- 1.4版本规划:补充公众号功能、新增redisson队列、发布mpvue小程序 +- 1.3.1版本手机端新增商户管理、后台新增统计 +- 1.4版本规划:补充公众号功能、发布mpvue小程序 #### 反馈交流 diff --git a/src/api/visits.js b/src/api/visits.js index 147ae7c..9d04510 100644 --- a/src/api/visits.js +++ b/src/api/visits.js @@ -20,3 +20,18 @@ export function getChartData() { method: 'get' }) } + + +export function gett() { + return request({ + url: 'api/data/count', + method: 'get' + }) +} + +export function chart() { + return request({ + url: 'api/data/chart', + method: 'get' + }) +} diff --git a/src/api/yxSystemConfig.js b/src/api/yxSystemConfig.js index fbefc8c..f7486a8 100644 --- a/src/api/yxSystemConfig.js +++ b/src/api/yxSystemConfig.js @@ -25,7 +25,7 @@ export function edit(data) { export function get() { return request({ - url: 'api/yxSystemConfig', + url: 'api/yxSystemConfig?size=50', method: 'get', }) } diff --git a/src/views/dashboard/BarChart.vue b/src/views/dashboard/BarChart.vue index 28e0aef..5062a09 100644 --- a/src/views/dashboard/BarChart.vue +++ b/src/views/dashboard/BarChart.vue @@ -6,6 +6,7 @@ import echarts from 'echarts' require('echarts/theme/macarons') // echarts theme import { debounce } from '@/utils' +import { chart } from '@/api/visits' const animationDuration = 6000 @@ -26,7 +27,8 @@ export default { }, data() { return { - chart: null + chart: null, + day: [],num: [] } }, mounted() { @@ -50,56 +52,60 @@ export default { initChart() { this.chart = echarts.init(this.$el, 'macarons') - this.chart.setOption({ - tooltip: { - trigger: 'axis', - axisPointer: { // 坐标轴指示器,坐标轴触发有效 - type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' - } - }, - grid: { - top: 10, - left: '2%', - right: '2%', - bottom: '3%', - containLabel: true - }, - xAxis: [{ - type: 'category', - data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], - axisTick: { - alignWithLabel: true - } - }], - yAxis: [{ - type: 'value', - axisTick: { - show: false - } - }], - series: [{ - name: 'pageA', - type: 'bar', - stack: 'vistors', - barWidth: '60%', - data: [79, 52, 200, 334, 390, 330, 220], - animationDuration - }, { - name: 'pageB', - type: 'bar', - stack: 'vistors', - barWidth: '60%', - data: [80, 52, 200, 334, 390, 330, 220], - animationDuration - }, { - name: 'pageC', - type: 'bar', - stack: 'vistors', - barWidth: '60%', - data: [30, 52, 200, 334, 390, 330, 220], - animationDuration - }] + chart().then(res => { + var _info = res.chart, + day = [], + num = []; + _info.forEach(function(item) { + day.push(item.time); + num.push(item.num); + }); + + console.log(day,num) + + this.chart.setOption({ + tooltip: { + trigger: 'axis', + axisPointer: { // 坐标轴指示器,坐标轴触发有效 + type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' + } + }, + grid: { + top: 10, + left: '2%', + right: '2%', + bottom: '3%', + containLabel: true + }, + xAxis: [{ + type: 'category', + data: day, + axisTick: { + alignWithLabel: true + } + }], + yAxis: [{ + type: 'value', + axisTick: { + show: false + } + }], + series: [{ + name: 'pageA', + type: 'line', + stack: 'vistors', + barWidth: '60%', + data: num, + animationDuration + }] + }) + }) + + console.log('day:'+this.day) + + + } } } diff --git a/src/views/dashboard/BarChartT.vue b/src/views/dashboard/BarChartT.vue new file mode 100644 index 0000000..abaf8d3 --- /dev/null +++ b/src/views/dashboard/BarChartT.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/views/dashboard/PanelGroup.vue b/src/views/dashboard/PanelGroup.vue index d15164a..a1dccbd 100644 --- a/src/views/dashboard/PanelGroup.vue +++ b/src/views/dashboard/PanelGroup.vue @@ -3,68 +3,73 @@
- +
-
日流量
- +
今日成交额
+
- +
-
日IP量
- +
昨日成交额
+
- +
-
周流量
- +
上周成交额
+
- +
-
周IP量
- +
本月成交额
+
- + + diff --git a/src/views/home.vue b/src/views/home.vue index bf2cad1..f6e6e41 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -2,28 +2,24 @@
- - - - + - + +
- +

本月成交额

+
- +
+

本月订单数

- -
- -
-
+
@@ -31,9 +27,9 @@ + + diff --git a/src/views/wechat/config/wxapp.vue b/src/views/wechat/config/wxapp.vue new file mode 100644 index 0000000..53b3733 --- /dev/null +++ b/src/views/wechat/config/wxapp.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/views/wechat/reply/index.vue b/src/views/wechat/reply/index.vue index 3cdaa7c..8befd8e 100644 --- a/src/views/wechat/reply/index.vue +++ b/src/views/wechat/reply/index.vue @@ -85,7 +85,6 @@
@@ -212,7 +211,7 @@ export default { add({key:this.key,status:this.status,data:this.dataGroup[this.type],type:this.type}).then(function (res) { Message({message: '设置成功',type: 'success'}) }).catch(function(err){ - Message({message: err,type: 'error'}) + //Message({message: err,type: 'error'}) }) }, check: function(){ @@ -226,14 +225,6 @@ export default { if(dataGroup.image.src == '') return this.returnError('请上传图片'); break; - case 'news': - if(dataGroup.news.length < 1) - return this.returnError('请选择图文消息'); - break; - case 'voice': - if(dataGroup.voice.src == '') - return this.returnError('请上传声音'); - break; } return true; },