diff --git a/api/knowledge.js b/api/knowledge.js new file mode 100644 index 0000000..77e03f9 --- /dev/null +++ b/api/knowledge.js @@ -0,0 +1,22 @@ +import request from "@/utils/request"; + +/** + * 课程文章分类 + */ +export function getCategory(data) { + return request.get("/api/CourseCategory", data); +} + +/** + * 通过分类查找文章列表 + */ +export function getArticle(data) { + return request.get("/article/listByCategoryId", data); +} + +/** + * 获取文章详情 + */ +export function getArticleDetails(data) { + return request.get("/article/details/"+data); +} \ No newline at end of file diff --git a/assets/css/base.less b/assets/css/base.less index 6ef3e59..65037fa 100644 --- a/assets/css/base.less +++ b/assets/css/base.less @@ -32,6 +32,10 @@ padding: 0 0.3*100rpx; } /* layout */ +.acea-row-nowrap { + display: flex; + /* 辅助类 */ +} .acea-row { display: flex; flex-wrap: wrap; diff --git a/components/luch-audio/luch-audio.vue b/components/luch-audio/luch-audio.vue new file mode 100644 index 0000000..8b0ab43 --- /dev/null +++ b/components/luch-audio/luch-audio.vue @@ -0,0 +1,225 @@ + + + + + + + + + {{ name }} + {{ author }} + + {{ audioTimeUpdate }} + + + + + + + diff --git a/components/luch-audio/readme.md b/components/luch-audio/readme.md new file mode 100644 index 0000000..b584ec4 --- /dev/null +++ b/components/luch-audio/readme.md @@ -0,0 +1,65 @@ +**插件使用说明** + +- 基于 uni.createInnerAudioContext() 封装audio音频组件(样式同原生audio组件) +- 支持双向绑定 +- 支持自定义修改样式 + + +**Example** +--- + +``` javascript + + +// 控制变量audioPlay ,如果true音频会播放,否则暂停 +``` + +**Attributes** +-- + +参数|说明|类型|可选值|默认值|required +--|:- +play|是否播放,双向绑定,需加 ` .sync `|Boolean| — | — |true +src|资源路径|String| — | — | — +poster|封面图片路径|String| — | — | — +name|音频名称|String| — | 未知音频 | — +author|作者名字|String| — | 未知作者 | — +autoplay|是否自动开始播放|Boolean| — | false | — +loop|是否循环播放|Boolean| — | false | — +obeyMuteSwitch|是否遵循系统静音开关,当此参数为 false 时,即使用户打开了静音开关,也能继续发出声音|Boolean| — | true | — + +其他api 可在组件内 ` contextInit ` 函数初始化时自定义添加 + +**平台支持度** +-- + +5+App|H5|微信小程序|支付宝小程序|百度小程序|头条小程序 +--|:- +yes|yes|yes|no|yes|yes + +**注意:**以上平台支持度为uni-app 对` uni.createInnerAudioContext() ` api 的支持度,本组件的支持度本人只在微信小程序使用过,其他平台*未做测试* + +**使用** +-- + +下载后把该文件放至 components 文件夹或 特定平台组件 文件夹即可 + +**更新** +-- + +- v0.0.1 组件 + +**可扩展性** +-- + +api 增加参考 ` https://uniapp.dcloud.io/api/media/audio-context?id=createinneraudiocontext ` + +组件内的播放暂停图标本人因为要发布组件,所以使用了base64,大家可自行替换; + +实例获取可以通过ref 获取组件内的 ` innerAudioContext ` (未实验,只是估计 0.0) + +**说明** +-- + +切换src 或者切换页面都会销毁实例 +写本组件的原因就是原生audio组件无法修改宽度,导致某些情况下显示不全,本组件是100%自适应布局; diff --git a/components/wuc-tab/wuc-tab.vue b/components/wuc-tab/wuc-tab.vue new file mode 100644 index 0000000..1d381fa --- /dev/null +++ b/components/wuc-tab/wuc-tab.vue @@ -0,0 +1,133 @@ + + + + + + {{item.categoryName}} + + + + + + + {{item.categoryName}} + + + + + + diff --git a/pages.json b/pages.json index 90f035d..18ebe0a 100644 --- a/pages.json +++ b/pages.json @@ -3,7 +3,7 @@ { "path": "pages/Loading/index", "style": { - "navigationBarTitleText": "yshop商城" + "navigationBarTitleText": "禪易精舍" } }, { @@ -39,11 +39,21 @@ { "path": "pages/home/index", "style": { - "navigationBarTitleText": "yshop商城", - "navigationBarTextStyle": "white", - "navigationStyle": "custom" + "navigationBarTitleText": "禪易" } }, + { + "path": "pages/knowledge/index", + "style": { + "navigationBarTitleText": "文章" + } + }, + { + "path": "pages/knowledge/detail", + "style": { + "navigationBarTitleText": "文章详情" + } + }, { "path": "pages/shop/GoodSearch/index", "style": { @@ -432,14 +442,13 @@ "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "Yshop", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8", + "navigationBarBackgroundColor": "#fff", + "backgroundColor": "#fff", "navigationStyle": "default" }, "tabBar": { - "color": "#282828", - "selectedColor": "#eb3729", - "borderStyle": "black", + "color": "#666666", + "selectedColor": "#F99C10", "backgroundColor": "#ffffff", "height": "50px", "fontSize": "10px", @@ -448,28 +457,52 @@ "list": [ { "pagePath": "pages/home/index", - "iconPath": "static/icon-home.png", - "selectedIconPath": "static/icon-home-hot.png", - "text": "首页" + "iconPath": "static/tab1.png", + "selectedIconPath": "static/tab1.png", + "text": "禪易" }, - { - "pagePath": "pages/shop/GoodsClass/index", - "iconPath": "static/icon-class.png", - "selectedIconPath": "static/icon-class-hot.png", - "text": "分类" - }, - { - "pagePath": "pages/shop/ShoppingCart/index", - "iconPath": "static/icon-cart.png", - "selectedIconPath": "static/icon-cart-hot.png", - "text": "购物车" - }, - { - "pagePath": "pages/user/User/index", - "iconPath": "static/icon-user.png", - "selectedIconPath": "static/icon-user-hot.png", - "text": "我的" - } + { + "pagePath": "pages/home/index", + "iconPath": "static/tab2.png", + "selectedIconPath": "static/tab2.png", + "text": "学习" + }, + { + "pagePath": "pages/knowledge/index", + "iconPath": "static/tab3.png", + "selectedIconPath": "static/tab3.png", + "text": "文章" + }, + { + "pagePath": "pages/shop/GoodsClass/index", + "iconPath": "static/tab4.png", + "selectedIconPath": "static/tab4.png", + "text": "商城" + }, + { + "pagePath": "pages/user/User/index", + "iconPath": "static/tab5.png", + "selectedIconPath": "static/tab5.png", + "text": "我的" + } + // { + // "pagePath": "pages/shop/GoodsClass/index", + // "iconPath": "static/icon-class.png", + // "selectedIconPath": "static/icon-class-hot.png", + // "text": "分类" + // }, + // { + // "pagePath": "pages/shop/ShoppingCart/index", + // "iconPath": "static/icon-cart.png", + // "selectedIconPath": "static/icon-cart-hot.png", + // "text": "购物车" + // }, + // { + // "pagePath": "pages/user/User/index", + // "iconPath": "static/icon-user.png", + // "selectedIconPath": "static/icon-user-hot.png", + // "text": "我的" + // } ] } } diff --git a/pages/home/components/HotCommodity.vue b/pages/home/components/HotCommodity.vue index 3a4b25b..0e26eb8 100644 --- a/pages/home/components/HotCommodity.vue +++ b/pages/home/components/HotCommodity.vue @@ -1,219 +1,220 @@ - - - 热门榜单 - - 更多 - - - - - - - - - - - hot - - - - - ¥{{ mgoods.price }} - 销量{{ mgoods.sales }}{{mgoods.unitName}} - - - - - - - - - - - - - - - + + + 热门榜单 + + 更多 + + + + + + + + + + + hot + + + + + ¥{{ mgoods.price }} + 销量{{ mgoods.sales }}{{mgoods.unitName}} + + + + + + + + + + + + + + + diff --git a/pages/home/components/PromoteProduct.vue b/pages/home/components/PromoteProduct.vue index 1cb219a..97bb564 100644 --- a/pages/home/components/PromoteProduct.vue +++ b/pages/home/components/PromoteProduct.vue @@ -1,43 +1,43 @@ - - - 促销单品 - - 更多 - - - - - - - - - - - 促销 - - - - - 日常价:¥{{ mgoods.price }} - 仅剩:{{ mgoods.stock }}{{ mgoods.unitName }} - - - - - - - - - - - - - - - + + + 促销单品 + + 更多 + + + + + + + + + + + 促销 + + + + + 日常价:¥{{ mgoods.price }} + 仅剩:{{ mgoods.stock }}{{ mgoods.unitName }} + + + + + + + + + + + + + + + + diff --git a/pages/home/index.vue b/pages/home/index.vue index 39a6084..6150992 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1,52 +1,139 @@ - - - - - {{ item.componentContent.title }} - - - - - - - 搜索商品 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + 搜索商品 + + + + + + + + + + + + + + + 今日·宜忌 + 2021年06月07日 + + + + 四月二十四 + + + + 星期一 + 辛丑牛年 甲午月 丙戌日 + + + + 宜 + 安机械 移徙 入宅 出行 祭祀 祈福 动土祭祀 祈福 动土 + + + 忌 + 开市 伐木 作梁 作灶 + + + + + + 今日还没有求签哦! + 每日一签 + + + + + + + 周公解梦 + + + + 周易八卦 + + + + 八字财运 + + + + + + + 今日推荐 + 查看全部课程 + + + + + + 【一代天骄·王者少年】 + + 国学 + 商学院 + + ¥199 + + 中国 武汉 + 2021 5 31-6.3 + + + + + + + + + 学习榜单 + 查看全部榜单 + + + + + + + + 20 + + + 连续11天打卡站桩 + + 5.28开始 + 280人已参与 + + + + + + + + + + 大家都在看 + 查看全部文章 + + + + + + 《满愿手抄经》礼盒,中国的传家手礼盒,中国的传家手礼盒,中国的传家手抄… + 抱朴书院孕育自华夏优秀传统文书院孕育自华夏优秀传统书院孕育自华夏优秀传统化… + + 商学院·琴 + 2021.5.28 + + + + + + 没有更多内容了~ + diff --git a/pages/knowledge/detail.vue b/pages/knowledge/detail.vue new file mode 100644 index 0000000..7e36a44 --- /dev/null +++ b/pages/knowledge/detail.vue @@ -0,0 +1,113 @@ + + + {{detail.title}} + + 免费 + {{detail.addTime}} + ·{{detail.author}} + + + + + + + + + + + + + + diff --git a/pages/knowledge/index.vue b/pages/knowledge/index.vue new file mode 100644 index 0000000..c0f83be --- /dev/null +++ b/pages/knowledge/index.vue @@ -0,0 +1,214 @@ + + + + + + + + + 国学介绍 + + 抱朴书院孕育自华夏优秀传统文化,以“博学致用抱朴含虚”为院训,以“弘扬国粹,利益社会”为动力。 + + + + + + + + + + + + {{item.title}} + {{item.synopsis}} + + {{item.chargeType == 0 ? '免费' : item.articleCharge}} + {{item.addTime}} + + + + + + + + + + + diff --git a/static/60x60.png b/static/60x60.png deleted file mode 100644 index 6984932..0000000 Binary files a/static/60x60.png and /dev/null differ diff --git a/static/api.png b/static/api.png deleted file mode 100644 index 58f93e1..0000000 Binary files a/static/api.png and /dev/null differ diff --git a/static/apiHL.png b/static/apiHL.png deleted file mode 100644 index f8cbd7d..0000000 Binary files a/static/apiHL.png and /dev/null differ diff --git a/static/apiIndex.png b/static/apiIndex.png deleted file mode 100644 index 890dba5..0000000 Binary files a/static/apiIndex.png and /dev/null differ diff --git a/static/app-plus/location@3x.png b/static/app-plus/location@3x.png deleted file mode 100644 index c195e0a..0000000 Binary files a/static/app-plus/location@3x.png and /dev/null differ diff --git a/static/app-plus/uni@2x.png b/static/app-plus/uni@2x.png deleted file mode 100644 index 8e3a80f..0000000 Binary files a/static/app-plus/uni@2x.png and /dev/null differ diff --git a/static/article1.png b/static/article1.png new file mode 100644 index 0000000..09ac648 Binary files /dev/null and b/static/article1.png differ diff --git a/static/c1.png b/static/c1.png deleted file mode 100644 index 9d38fdc..0000000 Binary files a/static/c1.png and /dev/null differ diff --git a/static/c2.png b/static/c2.png deleted file mode 100644 index ce956d7..0000000 Binary files a/static/c2.png and /dev/null differ diff --git a/static/c3.png b/static/c3.png deleted file mode 100644 index 216202a..0000000 Binary files a/static/c3.png and /dev/null differ diff --git a/static/c4.png b/static/c4.png deleted file mode 100644 index fb8b477..0000000 Binary files a/static/c4.png and /dev/null differ diff --git a/static/c5.png b/static/c5.png deleted file mode 100644 index 310bfb1..0000000 Binary files a/static/c5.png and /dev/null differ diff --git a/static/c6.png b/static/c6.png deleted file mode 100644 index c3c45d8..0000000 Binary files a/static/c6.png and /dev/null differ diff --git a/static/c7.png b/static/c7.png deleted file mode 100644 index a1e7390..0000000 Binary files a/static/c7.png and /dev/null differ diff --git a/static/c8.png b/static/c8.png deleted file mode 100644 index c32633c..0000000 Binary files a/static/c8.png and /dev/null differ diff --git a/static/c9.png b/static/c9.png deleted file mode 100644 index 51bcf6a..0000000 Binary files a/static/c9.png and /dev/null differ diff --git a/static/compass.png b/static/compass.png deleted file mode 100644 index fba87a5..0000000 Binary files a/static/compass.png and /dev/null differ diff --git a/static/component.png b/static/component.png deleted file mode 100644 index fbb116d..0000000 Binary files a/static/component.png and /dev/null differ diff --git a/static/componentHL.png b/static/componentHL.png deleted file mode 100644 index 31f83a0..0000000 Binary files a/static/componentHL.png and /dev/null differ diff --git a/static/componentIndex.png b/static/componentIndex.png deleted file mode 100644 index 8ad0534..0000000 Binary files a/static/componentIndex.png and /dev/null differ diff --git a/static/date-icon.png b/static/date-icon.png new file mode 100644 index 0000000..eb5f9c2 Binary files /dev/null and b/static/date-icon.png differ diff --git a/static/date-icon2.png b/static/date-icon2.png new file mode 100644 index 0000000..6ada311 Binary files /dev/null and b/static/date-icon2.png differ diff --git a/static/extui.png b/static/extui.png deleted file mode 100644 index 7508e08..0000000 Binary files a/static/extui.png and /dev/null differ diff --git a/static/extuiHL.png b/static/extuiHL.png deleted file mode 100644 index 612b499..0000000 Binary files a/static/extuiHL.png and /dev/null differ diff --git a/static/extuiIndex.png b/static/extuiIndex.png deleted file mode 100644 index dd4d963..0000000 Binary files a/static/extuiIndex.png and /dev/null differ diff --git a/static/f-menu1.png b/static/f-menu1.png new file mode 100644 index 0000000..139fe28 Binary files /dev/null and b/static/f-menu1.png differ diff --git a/static/f-menu2.png b/static/f-menu2.png new file mode 100644 index 0000000..936ee9b Binary files /dev/null and b/static/f-menu2.png differ diff --git a/static/f-menu3.png b/static/f-menu3.png new file mode 100644 index 0000000..7945055 Binary files /dev/null and b/static/f-menu3.png differ diff --git a/static/home-banner.png b/static/home-banner.png new file mode 100644 index 0000000..7a026bb Binary files /dev/null and b/static/home-banner.png differ diff --git a/static/img1.png b/static/img1.png new file mode 100644 index 0000000..531eb30 Binary files /dev/null and b/static/img1.png differ diff --git a/static/img2.png b/static/img2.png new file mode 100644 index 0000000..983787d Binary files /dev/null and b/static/img2.png differ diff --git a/static/live-logo.gif b/static/live-logo.gif deleted file mode 100644 index a155913..0000000 Binary files a/static/live-logo.gif and /dev/null differ diff --git a/static/location.png b/static/location.png deleted file mode 100644 index c195e0a..0000000 Binary files a/static/location.png and /dev/null differ diff --git a/static/logo.png b/static/logo.png deleted file mode 100644 index b5771e2..0000000 Binary files a/static/logo.png and /dev/null differ diff --git a/static/next.png b/static/next.png new file mode 100644 index 0000000..f43dbbb Binary files /dev/null and b/static/next.png differ diff --git a/static/prev.png b/static/prev.png new file mode 100644 index 0000000..4b38c5f Binary files /dev/null and b/static/prev.png differ diff --git a/static/qiuqian-bg.png b/static/qiuqian-bg.png new file mode 100644 index 0000000..556181a Binary files /dev/null and b/static/qiuqian-bg.png differ diff --git a/static/saoyisao-icon.png b/static/saoyisao-icon.png new file mode 100644 index 0000000..614f9df Binary files /dev/null and b/static/saoyisao-icon.png differ diff --git a/static/shuijiao.jpg b/static/shuijiao.jpg deleted file mode 100644 index b654b9c..0000000 Binary files a/static/shuijiao.jpg and /dev/null differ diff --git a/static/suosou.png b/static/suosou.png new file mode 100644 index 0000000..fe4224e Binary files /dev/null and b/static/suosou.png differ diff --git a/static/tab1.png b/static/tab1.png new file mode 100644 index 0000000..db33fb8 Binary files /dev/null and b/static/tab1.png differ diff --git a/static/tab2.png b/static/tab2.png new file mode 100644 index 0000000..f5a0e69 Binary files /dev/null and b/static/tab2.png differ diff --git a/static/tab3.png b/static/tab3.png new file mode 100644 index 0000000..c5a9398 Binary files /dev/null and b/static/tab3.png differ diff --git a/static/tab4.png b/static/tab4.png new file mode 100644 index 0000000..dc58483 Binary files /dev/null and b/static/tab4.png differ diff --git a/static/tab5.png b/static/tab5.png new file mode 100644 index 0000000..2469930 Binary files /dev/null and b/static/tab5.png differ diff --git a/static/uni.png b/static/uni.png deleted file mode 100644 index 8e3a80f..0000000 Binary files a/static/uni.png and /dev/null differ