赞
踩
文末获取源码
开发语言:Java
框架:ssm
JDK版本:JDK1.8
服务器:tomcat7
数据库:mysql 5.7/8.0
数据库工具:Navicat11
开发软件:eclipse/myeclipse/idea
Maven包:Maven3.3.9
浏览器:谷歌浏览器
小程序框架:uniapp
小程序开发软件:HBuilder X
小程序运行软件:微信开发者
微信阅读网站小程序借助微信开发者工具开发用户前端,使用SSM框架和Java语言开发管理员后台,使用Mysql创建数据表保存本系统产生的数据。系统可以提供信息显示和相应服务,其管理员管理书城,图书订单,图书章节,回复用户留言,管理用户以及阅读资讯。用户购买并支付图书订单,查看图书章节,发布留言,管理图书收藏信息。
总之,微信阅读网站小程序可以更加方便用户购买图书章节,在线阅读图书各个章节内容。
在前面分析的管理员功能的基础上,进行接下来的设计工作,最终展示设计的管理员结构图(见下图)。管理员管理书城,图书订单,图书章节,回复用户留言,管理用户以及阅读资讯。
在前面分析的用户功能的基础上,进行接下来的设计工作,最终展示设计的用户结构图(见下图)。用户购买并支付图书订单,查看图书章节,发布留言,管理图书收藏信息。
书城管理
图书订单管理
章节信息管理
图书信息
图书订单
- methods: {
- jump(url) {
- if (this.queryIndex == 0) {
- localStorage.setItem('indexQueryCondition', document.getElementById("dianyingxinxidianyingmingcheng").value);
- }
- jump(url)
- },
- queryChange(event) {
- this.queryIndex = event.target.value;
- if (this.queryIndex == 0) {
- this.dianyingxinxidianyingmingcheng = this.queryList[event.target.value].queryName;
- }
- }
- }
- });
-
- layui.use(['layer', 'form', 'element', 'carousel', 'http', 'jquery'], function() {
- var layer = layui.layer;
- var element = layui.element;
- var form = layui.form;
- var carousel = layui.carousel;
- var http = layui.http;
- var jquery = layui.jquery;
- vue.baseurl=http.baseurl;
- // 获取轮播图 数据
- http.request('config/list', 'get', {
- page: 1,
- limit: 5
- }, function(res) {
- if (res.data.list.length > 0) {
- let swiperList = [];
- res.data.list.forEach(element => {
- if (element.value != null) {
- swiperList.push({
- img: http.baseurl + element.value
- });
- }
- });
-
- vue.swiperList = swiperList;
-
- vue.$nextTick(() => {
- carousel.render({
- elem: '#test1',
- width: '89.6%',
- height: '500px',
- arrow: 'hover',
- anim: 'default',
- autoplay: 'true',
- interval: '3000',
- indicator: 'inside'
- });
-
- })
-
- // vue.$nextTick(()=>{
- // window.xznSlide();
- // });
- }
- });
-
-
- http.request('news/list', 'get', {
- page: 1,
- order: 'desc'
- }, function(res) {
- var newsList = res.data.list;
- for(var i = 0; i<newsList.length; i++) {
- let d = newsList[i].addtime.split(' ')
- d = d[0].split('-')
- newsList[i].year = d[0]
- newsList[i].month = d[1] + '-' + d[2]
- }
-
- vue.newsList = newsList;
- if (newsList.length > 0 && newsList.length <= 2) {
- vue.leftNewsList = res.data.list
- } else {
- var leftNewsList = []
- for (let i = 0; i <= 2; i++) {
- leftNewsList.push(newsList[i]);
- }
- vue.leftNewsList = leftNewsList
- }
- if (newsList.length > 2 && newsList.length <= 8) {
- var rightNewsList = []
- for (let i = 3; i <= newsList.length; i++) {
- rightNewsList.push(newsList[i]);
- }
- vue.rightNewsList = rightNewsList
- }
-
- let flag = 10;
- let options = {"navigation":{"nextEl":".swiper-button-next","prevEl":".swiper-button-prev"},"slidesPerView":5,"loop":true,"spaceBetween":20,"autoplay":{"delay":3000,"disableOnInteraction":false}}
- options.pagination = {el:'null'}
- if(flag == 3) {
- vue.$nextTick(() => {
- new Swiper('#newsnews', options)
- })
- }
-
- if(flag == 6) {
- let sixSwiper = {
- loop: true,
- speed: 2500,
- slidesPerView: 3,
- spaceBetween: 10,
- centeredSlides: true,
- watchSlidesProgress: true,
- autoplay: {
- delay: 0,
- stopOnLastSlide: false,
- disableOnInteraction: false
- }
- }
-
- vue.$nextTick(() => {
- new Swiper('#new-list-6', sixSwiper)
- })
- }
- });
-
- // 获取推荐信息
- var autoSortUrl = "dianyingxinxi/autoSort";
- if(localStorage.getItem('userid')!=null) {
- autoSortUrl = "dianyingxinxi/autoSort2";
- }
- http.request(autoSortUrl, 'get', {
- page: 1,
- limit: 3 * 1
- }, function(res) {
- vue.dianyingxinxiRecommend = res.data.list
- let flag = 1;
- let options = {"navigation":{"nextEl":".swiper-button-next","prevEl":".swiper-button-prev"},"slidesPerView":5,"loop":true,"spaceBetween":20,"autoplay":{"delay":3000,"disableOnInteraction":false}}
- options.pagination = {el:'null'}
- if(flag == 3) {
- vue.$nextTick(() => {
- new Swiper('#recommenddianyingxinxi', options)
- })
- }
-
-
- if(flag == 5) {
- vue.$nextTick(() => {
- var swiper = new Swiper('#recommend-five-swiperdianyingxinxi', {
- loop: true,
- speed: 500,
- slidesPerView: 5,
- spaceBetween: 10,
- autoplay: {"delay":3000,"disableOnInteraction":false},
- centeredSlides: true,
- watchSlidesProgress: true,
- on: {
- setTranslate: function() {
- slides = this.slides
- for (i = 0; i < slides.length; i++) {
- slide = slides.eq(i)
- progress = slides[i].progress
- // slide.html(progress.toFixed(2)); //看清楚progress是怎么变化的
- slide.css({
- 'opacity': '',
- 'background': ''
- });
- slide.transform(''); //清除样式
-
- slide.transform('scale(' + (1.5 - Math.abs(progress) / 4) + ')');
- }
- },
- setTransition: function(transition) {
- for (var i = 0; i < this.slides.length; i++) {
- var slide = this.slides.eq(i)
- slide.transition(transition);
- }
- },
- },
- navigation: {"nextEl":".swiper-button-next","prevEl":".swiper-button-prev"},
- pagination: {"el":".swiper-pagination","clickable":true},
- });
- })
- }
- });
-
- });
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。