diff --git a/api/knowledge.js b/api/knowledge.js index 77e03f9..933960c 100644 --- a/api/knowledge.js +++ b/api/knowledge.js @@ -19,4 +19,17 @@ export function getArticle(data) { */ export function getArticleDetails(data) { return request.get("/article/details/"+data); +} + +/** + * 获取学习榜单列表 + */ +export function getStudyList(data) { + return request.post("/api/StudyList/listStudyList",data); +} +/** + * 获取课程列表 + */ +export function getCourses(data) { + return request.post("/api/cyCourse/listCourses",data); } \ No newline at end of file diff --git a/assets/css/base.less b/assets/css/base.less index 65037fa..ddc63cd 100644 --- a/assets/css/base.less +++ b/assets/css/base.less @@ -31,6 +31,7 @@ .pad30 { padding: 0 0.3*100rpx; } + /* layout */ .acea-row-nowrap { display: flex; @@ -41,48 +42,48 @@ flex-wrap: wrap; /* 辅助类 */ } -.acea-row.row-middle { +.acea-row.row-middle,.acea-row-nowrap.row-middle{ align-items: center; } -.acea-row.row-top { +.acea-row.row-top,.acea-row-nowrap.row-top { align-items: flex-start; } .acea-row.row-bottom { align-items: flex-end; } -.acea-row.row-center { +.acea-row.row-center,.acea-row-nowrap.row-center { justify-content: center; } -.acea-row.row-right { +.acea-row.row-right,.acea-row-nowrap.row-right { justify-content: flex-end; } -.acea-row.row-left { +.acea-row.row-left,.acea-row-nowrap.row-left { justify-content: flex-start; } -.acea-row.row-between { +.acea-row.row-between,.acea-row-nowrap.row-between { justify-content: space-between; } -.acea-row.row-around { +.acea-row.row-around, .acea-row-nowrap.row-around{ justify-content: space-around; } -.acea-row.row-column-around { +.acea-row.row-column-around,.acea-row-nowrap.row-column-around { flex-direction: column; justify-content: space-around; } .acea-row.row-column { flex-direction: column; } -.acea-row.row-column-between { +.acea-row.row-column-between,.acea-row-nowrap.row-column-between { flex-direction: column; justify-content: space-between; } /* 上下左右垂直居中 */ -.acea-row.row-center-wrapper { +.acea-row.row-center-wrapper,.acea-row-nowrap.row-center-wrapper { align-items: center; justify-content: center; } /* 上下两边居中对齐 */ -.acea-row.row-between-wrapper { +.acea-row.row-between-wrapper,.acea-row-nowrap.row-between-wrapper { align-items: center; justify-content: space-between; } diff --git a/assets/css/style.less b/assets/css/style.less index 4db2b1a..91d22c4 100644 --- a/assets/css/style.less +++ b/assets/css/style.less @@ -2273,16 +2273,16 @@ page { } .user .header:after { - position: absolute; - left: 0; - right: 0; - bottom: -0.98 * 100rpx; - z-index: -1; - content: ''; - height: 1 * 100rpx; - width: 100%; - border-radius: 0 0 50% 50%; - background-color: #eb3729; + // position: absolute; + // left: 0; + // right: 0; + // bottom: -0.98 * 100rpx; + // z-index: -1; + // content: ''; + // height: 1 * 100rpx; + // width: 100%; + // border-radius: 0 0 50% 50%; + // background-color: #eb3729; } .user .header .picTxt .pictrue { @@ -2396,7 +2396,7 @@ page { padding: 0 0.3 * 100rpx; border-bottom: 1px dashed #eee; font-size: 0.3 * 100rpx; - color: #282828; + color: #222; } .user .wrapper .myOrder .title .allOrder { @@ -2414,8 +2414,8 @@ page { } .user .wrapper .myOrder .orderState .item { - font-size: 0.26 * 100rpx; - color: #454545; + font-size: 0.24 * 100rpx; + color: #222; flex: 1; -o-flex: 1; -ms-flex: 1; @@ -2423,8 +2423,8 @@ page { } .user .wrapper .myOrder .orderState .item .pictrue { - width: 0.49 * 100rpx; - height: 0.42 * 100rpx; + width: 0.52 * 100rpx; + height: 0.52* 100rpx; margin: 0 auto 0.18 * 100rpx auto; } @@ -2440,35 +2440,37 @@ page { } .user .wrapper .myService .serviceList { - padding: 0.08 * 100rpx 0 0.27 * 100rpx 0; + // padding: 0.08 * 100rpx 0 0.27 * 100rpx 0; + padding: 0.2 * 100rpx 0.3 * 100rpx; } .user .wrapper .myService .serviceList .item { width: 100%; text-align: left; - font-size: 0.26 * 100rpx; - color: #333; + font-size: 0.32 * 100rpx; + color: #222; display: flex; align-items: center; - padding: 0.2 * 100rpx 0.3 * 100rpx; + padding: 0.3 * 100rpx 0; position: relative; + border-bottom: 1px solid #ECECEC; .iconfont { font-size: 0.26 * 100rpx; color: #666; } - &::after { - content: ''; - display: block; - position: absolute; - left: 0.3 * 100rpx; - right: 0; - bottom: 0; - border-bottom: 1rpx solid #f5f5f5; - z-index: 99; - height: 1rpx; - } + // &::after { + // content: ''; + // display: block; + // position: absolute; + // left: 0.3 * 100rpx; + // right: 0; + // bottom: 0; + // border-bottom: 1rpx solid #f5f5f5; + // z-index: 99; + // height: 1rpx; + // } } .user .wrapper .myService .serviceList .item .pictrue { diff --git a/config/index.js b/config/index.js index f77ddc2..73d6e27 100644 --- a/config/index.js +++ b/config/index.js @@ -1,7 +1,7 @@ // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api' // export const VUE_APP_API_URL = 'http://139.186.134.205:9006/api' -export const VUE_APP_API_URL = 'http://192.168.0.109:8088/api' +export const VUE_APP_API_URL = 'http://192.168.0.110:8088/api' // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api' // export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; diff --git a/main.js b/main.js index f54133c..af82e52 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ import Vue from 'vue' import App from './App' -// import router from "./router"; +// import router from "./router"; import store from './store' import schema from 'async-validator' import dialog from './utils/dialog' diff --git a/pages.json b/pages.json index 55500fd..691ab8a 100644 --- a/pages.json +++ b/pages.json @@ -12,24 +12,19 @@ "navigationBarTitleText": "微信授权" } }, - { - "path": "pages/user/Login/index", - "style": { - "navigationBarTitleText": "登录" - } - }, + // { + // "path": "pages/user/Login/index", + // "style": { + // "navigationBarTitleText": "登录" + // } + // }, { "path": "pages/user/Register/index", "style": { "navigationBarTitleText": "注册" } }, - { - "path": "pages/user/RetrievePassword/index", - "style": { - "navigationBarTitleText": "重置密码" - } - }, + { "path": "pages/launch/index", "style": { @@ -60,6 +55,24 @@ "navigationBarTitleText": "打榜详情" } }, + { + "path": "pages/study/editDabang", + "style": { + "navigationBarTitleText": "打卡" + } + }, + { + "path": "pages/study/dabang", + "style": { + "navigationBarTitleText": "打榜" + } + }, + { + "path": "pages/study/bangdanRecord", + "style": { + "navigationBarTitleText": "我的打榜记录" + } + }, { "path": "pages/knowledge/index", "style": { @@ -91,17 +104,13 @@ } }, { - "path": "pages/shop/StoreList/index", - "style": { - "navigationBarTitleText": "商家列表" - } - }, - { - "path": "pages/shop/GoodsList/index", + "path": "pages/shop/GoodsCon/index", "style": { - "navigationBarTitleText": "商品列表" + "navigationBarTitleText": "商品详情" } }, + + { "path": "pages/NotDefined/index", "style": { @@ -114,198 +123,39 @@ "navigationBarTitleText": "我的" } }, - { - "path": "pages/shop/GoodsCollection/index", - "style": { - "navigationBarTitleText": "商品收藏" - } - }, - { - "path": "pages/shop/GoodsFoot/index", - "style": { - "navigationBarTitleText": "我的足迹" - } - }, - { - "path": "pages/shop/news/NewsDetail/index", - "style": { - "navigationBarTitleText": "新闻详情" - } - }, - { - "path": "pages/shop/news/NewsList/index", - "style": { - "navigationBarTitleText": "新闻列表" - } - }, - { - "path": "pages/shop/EvaluateList/index", - "style": { - "navigationBarTitleText": "评价列表" - } - }, - { - "path": "pages/shop/GoodsEvaluate/index", - "style": { - "navigationBarTitleText": "商品评价" - } - }, - { - "path": "pages/shop/GoodsPromotion/index", - "style": { - "navigationBarTitleText": "促销商品" - } - }, - { - "path": "pages/shop/HotNewGoods/index", - "style": { - "navigationBarTitleText": "热门商品" - } - }, - { - "path": "pages/shop/GoodsCon/index", - "style": { - "navigationBarTitleText": "商品详情" - } - }, - { - "path": "pages/shop/IntegralGoodsCon/index", - "style": { - "navigationBarTitleText": "积分商品详情" - } - }, - { - "path": "pages/user/BindingPhone/index", - "style": { - "navigationBarTitleText": "绑定手机号" - } - }, - { - "path": "pages/user/address/AddAddress/index", - "style": { - "navigationBarTitleText": "新增收货地址" - } - }, - { - "path": "pages/user/UserAccount/index", - "style": { - "navigationBarTitleText": "账户余额" - } - }, - { - "path": "pages/user/address/AddressManagement/index", - "style": { - "navigationBarTitleText": "收货地址" - } - }, - { - "path": "pages/user/promotion/Poster/index", - "style": { - "navigationBarTitleText": "推广名片" - } - }, - { - "path": "pages/user/signIn/Sign/index", - "style": { - "navigationBarTitleText": "签到" - } - }, - { - "path": "pages/user/signIn/SignRecord/index", - "style": { - "navigationBarTitleText": "签到记录" - } - }, - { - "path": "pages/user/promotion/CashAudit/index", - "style": { - "navigationBarTitleText": "提现结果" - } - }, - { - "path": "pages/user/promotion/PromoterOrder/index", - "style": { - "navigationBarTitleText": "分销详情" - } - }, - { - "path": "pages/user/promotion/PromoterList/index", - "style": { - "navigationBarTitleText": "分销列表" - } - }, - { - "path": "pages/user/promotion/UserPromotion/index", - "style": { - "navigationBarTitleText": "佣金" - } - }, - { - "path": "pages/user/UserBill/index", - "style": { - "navigationBarTitleText": "账单记录" - } - }, - { - "path": "pages/user/promotion/CashRecord/index", - "style": { - "navigationBarTitleText": "提现记录" - } - }, - { - "path": "pages/user/promotion/CommissionDetails/index", - "style": { - "navigationBarTitleText": "佣金明细" - } - }, - { - "path": "pages/user/signIn/Integral/index", - "style": { - "navigationBarTitleText": "我的积分" - } - }, - { - "path": "pages/user/UserVip/index", - "style": { - "navigationBarTitleText": "用户vip" - } - }, + + + { + "path": "pages/user/myCourses/index", + "style": { + "navigationBarTitleText": "我的课程" + } + }, + { + "path": "pages/user/myBangdan/index", + "style": { + "navigationBarTitleText": "我的打卡榜" + } + }, + { + "path": "pages/user/joinUs/index", + "style": { + "navigationBarTitleText": "招贤纳士" + } + }, + { + "path": "pages/user/feedBack/index", + "style": { + "navigationBarTitleText": "意见反馈" + } + }, { "path": "pages/user/PersonalData/index", "style": { "navigationBarTitleText": "个人资料" } }, - { - "path": "pages/user/coupon/UserCoupon/index", - "style": { - "navigationBarTitleText": "优惠券" - } - }, - { - "path": "pages/user/coupon/GetCoupon/index", - "style": { - "navigationBarTitleText": "领取优惠券" - } - }, - { - "path": "pages/user/promotion/UserCash/index", - "style": { - "navigationBarTitleText": "提现" - } - }, - { - "path": "pages/user/CustomerList/index", - "style": { - "navigationBarTitleText": "客服列表" - } - }, - { - "path": "pages/user/Recharge/index", - "style": { - "navigationBarTitleText": "充值" - } - }, + { "path": "pages/order/MyOrder/index", "style": { @@ -340,117 +190,332 @@ "path": "pages/order/GoodsReturn/index", "style": { "navigationBarTitleText": "商品退货" - } + } }, { "path": "pages/order/ReturnList/index", "style": { "navigationBarTitleText": "退货列表" } - }, - { - "path": "pages/orderAdmin/OrderIndex/index", - "style": { - "navigationBarTitleText": "商家订单统计" - } - }, - { - "path": "pages/orderAdmin/AdminOrderList/index", - "style": { - "navigationBarTitleText": "订单" - } - }, - { - "path": "pages/orderAdmin/GoodsDeliver/index", - "style": { - "navigationBarTitleText": "发货" - } - }, - { - "path": "pages/orderAdmin/AdminOrder/index", - "style": { - "navigationBarTitleText": "商家订单列表" - } - }, - { - "path": "pages/orderAdmin/Statistics/index", - "style": { - "navigationBarTitleText": "商家统计数据" - } - }, - { - "path": "pages/orderAdmin/OrderCancellation/index", - "style": { - "navigationBarTitleText": "商家核销订单" - } - }, - { - "path": "pages/activity/Poster/index", - "style": { - "navigationBarTitleText": "推广海报" - } - }, - { - "path": "pages/activity/DargainDetails/index", - "style": { - "navigationBarTitleText": "帮砍价" - } - }, - { - "path": "pages/activity/GoodsBargain/index", - "style": { - "navigationBarTitleText": "砍价列表" - } - }, - { - "path": "pages/activity/BargainRecord/index", - "style": { - "navigationBarTitleText": "砍价记录" - } - }, - { - "path": "pages/activity/GoodsGroup/index", - "style": { - "navigationBarTitleText": "团购商品列表" - } - }, - { - "path": "pages/activity/GroupDetails/index", - "style": { - "navigationBarTitleText": "团购商品详情" - } - }, - { - "path": "pages/activity/GroupRule/index", - "style": { - "navigationBarTitleText": "团购规则" - } - }, - { - "path": "pages/activity/GoodsSeckill/index", - "style": { - "navigationBarTitleText": "秒杀" - } - }, - { - "path": "pages/activity/SeckillDetails/index", - "style": { - "navigationBarTitleText": "秒杀详情" - } - }, - { - "path": "pages/map/index", - "style": { - "navigationBarTitleText": "地图" - } - }, - { - "path": "pages/shop/Live/LiveList/index", - "style": { - "navigationBarTitleText": "直播列表" - } } + // { + // "path": "pages/activity/GoodsGroup/index", + // "style": { + // "navigationBarTitleText": "团购商品列表" + // } + // }, + // { + // "path": "pages/orderAdmin/OrderIndex/index", + // "style": { + // "navigationBarTitleText": "商家订单统计" + // } + // } ], + "subPackages": [ + { + "root": "pagesB", + "pages": [ + { + "path": "pages/shop/StoreList/index", + "style": { + "navigationBarTitleText": "商家列表" + } + }, + { + "path": "pages/shop/GoodsList/index", + "style": { + "navigationBarTitleText": "商品列表" + } + }, + { + "path": "pages/shop/GoodsCollection/index", + "style": { + "navigationBarTitleText": "商品收藏" + } + }, + { + "path": "pages/shop/GoodsFoot/index", + "style": { + "navigationBarTitleText": "我的足迹" + } + }, + + { + "path": "pages/shop/EvaluateList/index", + "style": { + "navigationBarTitleText": "评价列表" + } + }, + { + "path": "pages/shop/GoodsEvaluate/index", + "style": { + "navigationBarTitleText": "商品评价" + } + }, + { + "path": "pages/shop/GoodsPromotion/index", + "style": { + "navigationBarTitleText": "促销商品" + } + }, + { + "path": "pages/shop/HotNewGoods/index", + "style": { + "navigationBarTitleText": "热门商品" + } + }, + + { + "path": "pages/shop/IntegralGoodsCon/index", + "style": { + "navigationBarTitleText": "积分商品详情" + } + }, + { + "path": "pages/user/RetrievePassword/index", + "style": { + "navigationBarTitleText": "重置密码" + } + }, + { + "path": "pages/shop/news/NewsDetail/index", + "style": { + "navigationBarTitleText": "新闻详情" + } + }, + { + "path": "pages/shop/news/NewsList/index", + "style": { + "navigationBarTitleText": "新闻列表" + } + }, + { + "path": "pages/user/BindingPhone/index", + "style": { + "navigationBarTitleText": "绑定手机号" + } + }, + { + "path": "pages/user/address/AddAddress/index", + "style": { + "navigationBarTitleText": "新增收货地址" + } + }, + { + "path": "pages/user/UserAccount/index", + "style": { + "navigationBarTitleText": "账户余额" + } + }, + { + "path": "pages/user/address/AddressManagement/index", + "style": { + "navigationBarTitleText": "收货地址" + } + }, + { + "path": "pages/user/promotion/Poster/index", + "style": { + "navigationBarTitleText": "推广名片" + } + }, + { + "path": "pages/user/signIn/Sign/index", + "style": { + "navigationBarTitleText": "签到" + } + }, + { + "path": "pages/user/signIn/SignRecord/index", + "style": { + "navigationBarTitleText": "签到记录" + } + }, + { + "path": "pages/user/promotion/CashAudit/index", + "style": { + "navigationBarTitleText": "提现结果" + } + }, + { + "path": "pages/user/promotion/PromoterOrder/index", + "style": { + "navigationBarTitleText": "分销详情" + } + }, + { + "path": "pages/user/promotion/PromoterList/index", + "style": { + "navigationBarTitleText": "分销列表" + } + }, + { + "path": "pages/user/promotion/UserPromotion/index", + "style": { + "navigationBarTitleText": "佣金" + } + }, + { + "path": "pages/user/UserBill/index", + "style": { + "navigationBarTitleText": "账单记录" + } + }, + { + "path": "pages/user/promotion/CashRecord/index", + "style": { + "navigationBarTitleText": "提现记录" + } + }, + { + "path": "pages/user/promotion/CommissionDetails/index", + "style": { + "navigationBarTitleText": "佣金明细" + } + }, + { + "path": "pages/user/signIn/Integral/index", + "style": { + "navigationBarTitleText": "我的积分" + } + }, + { + "path": "pages/user/UserVip/index", + "style": { + "navigationBarTitleText": "用户vip" + } + }, + { + "path": "pages/user/coupon/UserCoupon/index", + "style": { + "navigationBarTitleText": "优惠券" + } + }, + { + "path": "pages/user/coupon/GetCoupon/index", + "style": { + "navigationBarTitleText": "领取优惠券" + } + }, + { + "path": "pages/user/promotion/UserCash/index", + "style": { + "navigationBarTitleText": "提现" + } + }, + { + "path": "pages/user/CustomerList/index", + "style": { + "navigationBarTitleText": "客服列表" + } + }, + { + "path": "pages/user/Recharge/index", + "style": { + "navigationBarTitleText": "充值" + } + }, + + { + "path": "pages/orderAdmin/AdminOrderList/index", + "style": { + "navigationBarTitleText": "订单" + } + }, + { + "path": "pages/orderAdmin/GoodsDeliver/index", + "style": { + "navigationBarTitleText": "发货" + } + }, + { + "path": "pages/orderAdmin/AdminOrder/index", + "style": { + "navigationBarTitleText": "商家订单列表" + } + }, + { + "path": "pages/orderAdmin/Statistics/index", + "style": { + "navigationBarTitleText": "商家统计数据" + } + }, + { + "path": "pages/orderAdmin/OrderCancellation/index", + "style": { + "navigationBarTitleText": "商家核销订单" + } + }, + { + "path": "pages/activity/Poster/index", + "style": { + "navigationBarTitleText": "推广海报" + } + }, + { + "path": "pages/activity/GoodsGroup/index", + "style": { + "navigationBarTitleText": "团购商品列表" + } + }, + { + "path": "pages/activity/DargainDetails/index", + "style": { + "navigationBarTitleText": "帮砍价" + } + }, + { + "path": "pages/activity/GoodsBargain/index", + "style": { + "navigationBarTitleText": "砍价列表" + } + }, + { + "path": "pages/activity/BargainRecord/index", + "style": { + "navigationBarTitleText": "砍价记录" + } + }, + + { + "path": "pages/activity/GroupDetails/index", + "style": { + "navigationBarTitleText": "团购商品详情" + } + }, + { + "path": "pages/activity/GroupRule/index", + "style": { + "navigationBarTitleText": "团购规则" + } + }, + { + "path": "pages/activity/GoodsSeckill/index", + "style": { + "navigationBarTitleText": "秒杀" + } + }, + { + "path": "pages/activity/SeckillDetails/index", + "style": { + "navigationBarTitleText": "秒杀详情" + } + }, + { + "path": "pages/map/index", + "style": { + "navigationBarTitleText": "地图" + } + }, + { + "path": "pages/shop/Live/LiveList/index", + "style": { + "navigationBarTitleText": "直播列表" + } + } + ] + } + ], "easycom": { "autoscan": true, "custom": { diff --git a/pages/course/detail.vue b/pages/course/detail.vue index e69de29..9584582 100644 --- a/pages/course/detail.vue +++ b/pages/course/detail.vue @@ -0,0 +1,580 @@ + + + + + diff --git a/pages/course/index.vue b/pages/course/index.vue index bb1a2d5..321b7e3 100644 --- a/pages/course/index.vue +++ b/pages/course/index.vue @@ -1,225 +1,306 @@ - + diff --git a/pages/home/index.vue b/pages/home/index.vue index 6150992..5922dab 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -7,7 +7,7 @@ - + @@ -23,11 +23,11 @@ - 四月二十四 + {{todayDate}} - 星期一 + {{week}} 辛丑牛年 甲午月 丙戌日 @@ -67,10 +67,10 @@ 今日推荐 - 查看全部课程 + 查看全部课程 - + 【一代天骄·王者少年】 @@ -91,11 +91,11 @@ 学习榜单 - 查看全部榜单 + 查看全部榜单 - + @@ -116,7 +116,7 @@ 大家都在看 - 查看全部文章 + 查看全部文章 @@ -203,7 +203,6 @@ export default { info: { fastList: [], bastBanner: [], - bastList: [], }, likeInfo: [], @@ -265,6 +264,10 @@ export default { observeParents: true, }, bgImage: '', + chinese: ['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九'], + weeks: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], + week:'', + todayDate:'', } }, computed: { @@ -284,14 +287,11 @@ export default { onLoad: function() { this.getLocation() let that = this - // uni.showLoading({ - // title: "加载中", - // }); + this.getDate(); getCanvas() .then(res => {}) .catch(error => { this.homeData = JSON.parse(error.data.json) - console.log(this.homeData) }) getHomeData().then(res => { that.logoUrl = res.data.logoUrl @@ -312,6 +312,30 @@ export default { }, methods: { ...mapActions(['getLocation']), + getDate(){ + var today = new Date(); + var m = (today.getMonth()+1).toString(); + var d = today.getDate().toString(); + var day = today.getDay(); + this.week = this.weeks[day] + if (m.length == 2) { + if (m.charAt(0) == "0") { + this.todayDate += (this.chinese[m.charAt(1)] + "月"); + } + if (m.charAt(0) == "1") { + this.todayDate += ("十" + this.chinese[m.charAt(1)] + "月"); + } + } else { + this.todayDate += (this.chinese[m.charAt(0)] + "月"); + } + //如果日为两位数,则返回十的月份拼接两次数据,其它则返回寻常的值 + if (d.length == 2) { + this.todayDate += (this.chinese[d.charAt(0)] + "十" + this.chinese[d.charAt(1)]); + } + else { + this.todayDate += (this.chinese[d.charAt(0)]); + } + }, onShareTimeline: function() { return { title: this.miniHomeRemark, @@ -326,6 +350,32 @@ export default { path: 'pages/home/index?spread=' + uni.getStorageSync('uid'), } }, + toCourseDetail(id){ + this.$yrouter.push({ + path: '/pages/course/detail', + query: { + id:id, + }, + }) + }, + toStudyDetail(id){ + this.$yrouter.push({ + path: '/pages/study/detail', + query: { + id:id, + }, + }) + }, + toKnowledge(){ + uni.switchTab({ + url: "/pages/knowledge/index" + }) + }, + toCourse(){ + uni.switchTab({ + url: "/pages/course/index" + }) + }, goRoll(item) { if (item.uniapp_url) { this.$yrouter.push(item.uniapp_url) diff --git a/pages/knowledge/components/secondMenu.vue b/pages/knowledge/components/secondMenu.vue index b8d04e5..4a60acb 100644 --- a/pages/knowledge/components/secondMenu.vue +++ b/pages/knowledge/components/secondMenu.vue @@ -46,12 +46,15 @@ .second-menu-box{ width: 100%; margin-bottom: 40rpx; + padding-top: 34rpx; + background: #fff; + padding-bottom: 20rpx; .menu-item{ min-width: 76rpx; height: 62rpx; box-sizing: border-box; padding: 6rpx 20rpx; - font-size: 32rpx; + font-size: 28rpx; background: #F6F7F8; border-radius: 14rpx; color: #222; diff --git a/pages/knowledge/index.vue b/pages/knowledge/index.vue index 02925f6..7122b99 100644 --- a/pages/knowledge/index.vue +++ b/pages/knowledge/index.vue @@ -22,7 +22,7 @@ @secondMenuClick="secondMenuClick"> - + @@ -35,6 +35,7 @@ + 暂无内容... @@ -144,6 +145,12 @@ .knowledge-list{ width: 100%; + .no-content{ + font-size: 28rpx; + color: #666666; + text-align: center; + padding: 30rpx 0; + } .knowledge-item{ border-bottom: 1px solid #ECECEC; padding-bottom: 20rpx; diff --git a/pages/shop/GoodsClass/index.vue b/pages/shop/GoodsClass/index.vue index 4dde739..c811e55 100644 --- a/pages/shop/GoodsClass/index.vue +++ b/pages/shop/GoodsClass/index.vue @@ -7,7 +7,75 @@ - + + + + + + 亲爱的,下午好 + 慵懒的猫 + + + + + 2000积分 + + 您还有积分未使用 + + + + + + + 禅意能量 + + + + + + + 禅易香囊 纯手工制作提神… + 199元+100积分 + 51人购买 + + + + + + 禅易香囊 纯手工制作提神… + 199元+100积分 + 51人购买 + + + + + + 禅易香囊 纯手工制作提神… + 199元+100积分 + 51人购买 + + + + + + 禅易香囊 纯手工制作提神… + 199元+100积分 + 51人购买 + + + + + + + - diff --git a/pages/shop/GoodsEvaluate/index.vue b/pages/shop/GoodsEvaluate/index.vue deleted file mode 100644 index 3daf59c..0000000 --- a/pages/shop/GoodsEvaluate/index.vue +++ /dev/null @@ -1,199 +0,0 @@ - - - diff --git a/pages/study/bangdanRecord.vue b/pages/study/bangdanRecord.vue new file mode 100644 index 0000000..d322ebd --- /dev/null +++ b/pages/study/bangdanRecord.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/pages/study/dabang.vue b/pages/study/dabang.vue new file mode 100644 index 0000000..c370704 --- /dev/null +++ b/pages/study/dabang.vue @@ -0,0 +1,359 @@ + + + + + diff --git a/pages/study/detail.vue b/pages/study/detail.vue index 48d48ea..900c2a5 100644 --- a/pages/study/detail.vue +++ b/pages/study/detail.vue @@ -1,8 +1,313 @@ - diff --git a/pages/study/editDabang.vue b/pages/study/editDabang.vue new file mode 100644 index 0000000..f7c5e85 --- /dev/null +++ b/pages/study/editDabang.vue @@ -0,0 +1,93 @@ + + + diff --git a/pages/shop/GoodsFoot/index.vue b/pagesB/pages/shop/GoodsFoot/index.vue similarity index 100% rename from pages/shop/GoodsFoot/index.vue rename to pagesB/pages/shop/GoodsFoot/index.vue diff --git a/pages/shop/GoodsList/index.vue b/pagesB/pages/shop/GoodsList/index.vue similarity index 100% rename from pages/shop/GoodsList/index.vue rename to pagesB/pages/shop/GoodsList/index.vue diff --git a/pages/shop/GoodsPromotion/index.vue b/pagesB/pages/shop/GoodsPromotion/index.vue similarity index 100% rename from pages/shop/GoodsPromotion/index.vue rename to pagesB/pages/shop/GoodsPromotion/index.vue diff --git a/pages/shop/HotNewGoods/index.vue b/pagesB/pages/shop/HotNewGoods/index.vue similarity index 100% rename from pages/shop/HotNewGoods/index.vue rename to pagesB/pages/shop/HotNewGoods/index.vue diff --git a/pages/shop/IntegralGoodsCon/index.vue b/pagesB/pages/shop/IntegralGoodsCon/index.vue similarity index 100% rename from pages/shop/IntegralGoodsCon/index.vue rename to pagesB/pages/shop/IntegralGoodsCon/index.vue diff --git a/pages/shop/Live/LiveList/index.vue b/pagesB/pages/shop/Live/LiveList/index.vue similarity index 100% rename from pages/shop/Live/LiveList/index.vue rename to pagesB/pages/shop/Live/LiveList/index.vue diff --git a/pages/shop/StoreList/index.vue b/pagesB/pages/shop/StoreList/index.vue similarity index 100% rename from pages/shop/StoreList/index.vue rename to pagesB/pages/shop/StoreList/index.vue diff --git a/pages/shop/news/NewsDetail/index.vue b/pagesB/pages/shop/news/NewsDetail/index.vue similarity index 100% rename from pages/shop/news/NewsDetail/index.vue rename to pagesB/pages/shop/news/NewsDetail/index.vue diff --git a/pages/shop/news/NewsList/index.vue b/pagesB/pages/shop/news/NewsList/index.vue similarity index 100% rename from pages/shop/news/NewsList/index.vue rename to pagesB/pages/shop/news/NewsList/index.vue diff --git a/pages/user/BindingPhone/index.vue b/pagesB/pages/user/BindingPhone/index.vue similarity index 100% rename from pages/user/BindingPhone/index.vue rename to pagesB/pages/user/BindingPhone/index.vue diff --git a/pages/user/ChangePassword/index.vue b/pagesB/pages/user/ChangePassword/index.vue similarity index 100% rename from pages/user/ChangePassword/index.vue rename to pagesB/pages/user/ChangePassword/index.vue diff --git a/pages/user/CustomerList/index.vue b/pagesB/pages/user/CustomerList/index.vue similarity index 100% rename from pages/user/CustomerList/index.vue rename to pagesB/pages/user/CustomerList/index.vue diff --git a/pages/user/Login/index.vue b/pagesB/pages/user/Login/index.vue similarity index 100% rename from pages/user/Login/index.vue rename to pagesB/pages/user/Login/index.vue diff --git a/pages/user/Recharge/index.vue b/pagesB/pages/user/Recharge/index.vue similarity index 100% rename from pages/user/Recharge/index.vue rename to pagesB/pages/user/Recharge/index.vue diff --git a/pagesB/pages/user/Register/index.vue b/pagesB/pages/user/Register/index.vue new file mode 100644 index 0000000..f8d0c92 --- /dev/null +++ b/pagesB/pages/user/Register/index.vue @@ -0,0 +1,65 @@ + + + diff --git a/pages/user/RetrievePassword/index.vue b/pagesB/pages/user/RetrievePassword/index.vue similarity index 100% rename from pages/user/RetrievePassword/index.vue rename to pagesB/pages/user/RetrievePassword/index.vue diff --git a/pages/user/UserAccount/index.vue b/pagesB/pages/user/UserAccount/index.vue similarity index 100% rename from pages/user/UserAccount/index.vue rename to pagesB/pages/user/UserAccount/index.vue diff --git a/pages/user/UserBill/index.vue b/pagesB/pages/user/UserBill/index.vue similarity index 100% rename from pages/user/UserBill/index.vue rename to pagesB/pages/user/UserBill/index.vue diff --git a/pages/user/UserVip/index.vue b/pagesB/pages/user/UserVip/index.vue similarity index 100% rename from pages/user/UserVip/index.vue rename to pagesB/pages/user/UserVip/index.vue diff --git a/pagesB/pages/user/address/AddAddress/index.vue b/pagesB/pages/user/address/AddAddress/index.vue new file mode 100644 index 0000000..d6e5e82 --- /dev/null +++ b/pagesB/pages/user/address/AddAddress/index.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/pagesB/pages/user/address/AddressManagement/index.vue b/pagesB/pages/user/address/AddressManagement/index.vue new file mode 100644 index 0000000..3bf1a14 --- /dev/null +++ b/pagesB/pages/user/address/AddressManagement/index.vue @@ -0,0 +1,223 @@ + + + diff --git a/pages/user/coupon/GetCoupon/index.vue b/pagesB/pages/user/coupon/GetCoupon/index.vue similarity index 100% rename from pages/user/coupon/GetCoupon/index.vue rename to pagesB/pages/user/coupon/GetCoupon/index.vue diff --git a/pages/user/coupon/UserCoupon/index.vue b/pagesB/pages/user/coupon/UserCoupon/index.vue similarity index 100% rename from pages/user/coupon/UserCoupon/index.vue rename to pagesB/pages/user/coupon/UserCoupon/index.vue diff --git a/pages/user/promotion/CashAudit/index.vue b/pagesB/pages/user/promotion/CashAudit/index.vue similarity index 100% rename from pages/user/promotion/CashAudit/index.vue rename to pagesB/pages/user/promotion/CashAudit/index.vue diff --git a/pages/user/promotion/CashRecord/index.vue b/pagesB/pages/user/promotion/CashRecord/index.vue similarity index 100% rename from pages/user/promotion/CashRecord/index.vue rename to pagesB/pages/user/promotion/CashRecord/index.vue diff --git a/pages/user/promotion/CommissionDetails/index.vue b/pagesB/pages/user/promotion/CommissionDetails/index.vue similarity index 100% rename from pages/user/promotion/CommissionDetails/index.vue rename to pagesB/pages/user/promotion/CommissionDetails/index.vue diff --git a/pages/user/promotion/Poster/index.vue b/pagesB/pages/user/promotion/Poster/index.vue similarity index 100% rename from pages/user/promotion/Poster/index.vue rename to pagesB/pages/user/promotion/Poster/index.vue diff --git a/pages/user/promotion/PromoterList/index.vue b/pagesB/pages/user/promotion/PromoterList/index.vue similarity index 100% rename from pages/user/promotion/PromoterList/index.vue rename to pagesB/pages/user/promotion/PromoterList/index.vue diff --git a/pages/user/promotion/PromoterOrder/index.vue b/pagesB/pages/user/promotion/PromoterOrder/index.vue similarity index 100% rename from pages/user/promotion/PromoterOrder/index.vue rename to pagesB/pages/user/promotion/PromoterOrder/index.vue diff --git a/pages/user/promotion/UserCash/index.vue b/pagesB/pages/user/promotion/UserCash/index.vue similarity index 100% rename from pages/user/promotion/UserCash/index.vue rename to pagesB/pages/user/promotion/UserCash/index.vue diff --git a/pages/user/promotion/UserPromotion/index.vue b/pagesB/pages/user/promotion/UserPromotion/index.vue similarity index 100% rename from pages/user/promotion/UserPromotion/index.vue rename to pagesB/pages/user/promotion/UserPromotion/index.vue diff --git a/pages/user/signIn/Integral/index.vue b/pagesB/pages/user/signIn/Integral/index.vue similarity index 100% rename from pages/user/signIn/Integral/index.vue rename to pagesB/pages/user/signIn/Integral/index.vue diff --git a/pages/user/signIn/Sign/index.vue b/pagesB/pages/user/signIn/Sign/index.vue similarity index 100% rename from pages/user/signIn/Sign/index.vue rename to pagesB/pages/user/signIn/Sign/index.vue diff --git a/pages/user/signIn/SignRecord/index.vue b/pagesB/pages/user/signIn/SignRecord/index.vue similarity index 100% rename from pages/user/signIn/SignRecord/index.vue rename to pagesB/pages/user/signIn/SignRecord/index.vue diff --git a/static/article1.png b/static/article1.png deleted file mode 100644 index 09ac648..0000000 Binary files a/static/article1.png and /dev/null differ diff --git a/static/call-icon.png b/static/call-icon.png new file mode 100644 index 0000000..ff3695b Binary files /dev/null and b/static/call-icon.png differ diff --git a/static/course-icon1.png b/static/course-icon1.png new file mode 100644 index 0000000..38a651e Binary files /dev/null and b/static/course-icon1.png differ diff --git a/static/course-icon2.png b/static/course-icon2.png new file mode 100644 index 0000000..96e1348 Binary files /dev/null and b/static/course-icon2.png differ diff --git a/static/course-icon3.png b/static/course-icon3.png new file mode 100644 index 0000000..9d12aa1 Binary files /dev/null and b/static/course-icon3.png differ diff --git a/static/course-icon4.png b/static/course-icon4.png new file mode 100644 index 0000000..29a1d80 Binary files /dev/null and b/static/course-icon4.png differ diff --git a/static/error-icon.png b/static/error-icon.png new file mode 100644 index 0000000..6dc0083 Binary files /dev/null and b/static/error-icon.png differ diff --git a/static/home-banner.png b/static/home-banner.png deleted file mode 100644 index 7a026bb..0000000 Binary files a/static/home-banner.png and /dev/null differ diff --git a/static/myorder-icon1.png b/static/myorder-icon1.png new file mode 100644 index 0000000..8470a93 Binary files /dev/null and b/static/myorder-icon1.png differ diff --git a/static/myorder-icon2.png b/static/myorder-icon2.png new file mode 100644 index 0000000..d5c7a12 Binary files /dev/null and b/static/myorder-icon2.png differ diff --git a/static/myorder-icon3.png b/static/myorder-icon3.png new file mode 100644 index 0000000..3a3eb55 Binary files /dev/null and b/static/myorder-icon3.png differ diff --git a/static/myorder-icon4.png b/static/myorder-icon4.png new file mode 100644 index 0000000..d8087a5 Binary files /dev/null and b/static/myorder-icon4.png differ diff --git a/static/myorder-icon5.png b/static/myorder-icon5.png new file mode 100644 index 0000000..be1a59f Binary files /dev/null and b/static/myorder-icon5.png differ diff --git a/static/saoyisao.png b/static/saoyisao.png new file mode 100644 index 0000000..c2d0926 Binary files /dev/null and b/static/saoyisao.png differ diff --git a/static/titleL-icon.png b/static/titleL-icon.png new file mode 100644 index 0000000..06d2031 Binary files /dev/null and b/static/titleL-icon.png differ diff --git a/static/titleR-icon.png b/static/titleR-icon.png new file mode 100644 index 0000000..144bb03 Binary files /dev/null and b/static/titleR-icon.png differ diff --git a/static/user-index-bg.png b/static/user-index-bg.png new file mode 100644 index 0000000..76ce98b Binary files /dev/null and b/static/user-index-bg.png differ diff --git a/static/user-menu1.png b/static/user-menu1.png new file mode 100644 index 0000000..fe7b0c4 Binary files /dev/null and b/static/user-menu1.png differ diff --git a/static/user-menu2.png b/static/user-menu2.png new file mode 100644 index 0000000..b6c1937 Binary files /dev/null and b/static/user-menu2.png differ diff --git a/static/user-menu3.png b/static/user-menu3.png new file mode 100644 index 0000000..ef48580 Binary files /dev/null and b/static/user-menu3.png differ diff --git a/static/user-menu4.png b/static/user-menu4.png new file mode 100644 index 0000000..b504df9 Binary files /dev/null and b/static/user-menu4.png differ diff --git a/static/user-menu5.png b/static/user-menu5.png new file mode 100644 index 0000000..f640025 Binary files /dev/null and b/static/user-menu5.png differ diff --git a/static/zan.png b/static/zan.png new file mode 100644 index 0000000..56be942 Binary files /dev/null and b/static/zan.png differ diff --git a/utils/index.js b/utils/index.js index 4c8c5f4..2f46afd 100644 --- a/utils/index.js +++ b/utils/index.js @@ -733,7 +733,9 @@ export function back() { export function switchTab(location, complete, fail, success) { handleLoginStatus(location, complete, fail, success) + .then(params => { + console.log('params',params) uni.switchTab(params) }) .catch(error => { diff --git a/utils/subutil.wxs b/utils/subutil.wxs new file mode 100644 index 0000000..e58f6bc --- /dev/null +++ b/utils/subutil.wxs @@ -0,0 +1,31 @@ +var sub = function(val) { + if (val.length == 0 || val == undefined) { + return; + } + if (val.length > 17) { + return val.substring(0, 17) + "..."; + } else { + return val.substring(0, 1); + } +} +var filters = { + toFloat: function (value) { + return parseFloat(value) + }, + toStr: function (value) { + return value.toString() + }, + toNum: function (value) { + return value.toNumber() + }, +} +var spl = function(str){ + return str.split(" "); +} +module.exports = { + toFloat: filters.toFloat, + toStr: filters.toStr, + toNum: filters.toNum,//暴露接口调用 + sub: sub, + spl: spl +}; \ No newline at end of file