diff --git a/App.vue b/App.vue
index 2d20bb3..b9bfc6e 100644
--- a/App.vue
+++ b/App.vue
@@ -88,4 +88,22 @@ export default {
@import './assets/css/base.less';
@import './assets/css/reset.less';
@import './assets/css/style.less';
+/* #ifdef APP-PLUS ||MP-WEIXIN */
+ checkbox .wx-checkbox-input {
+ border-radius: 50% !important;
+ /* color: #ffffff !important; */
+ }
+
+ checkbox .wx-checkbox-input.wx-checkbox-input-checked {
+ color: #fff;
+ background: #FDBF68;
+ border-color: #FDBF68 !important;
+ }
+
+ /* .wx-checkbox-input.wx-checkbox-input-checked {
+ border: none !important;
+ } */
+
+ /* #endif */
+
diff --git a/api/knowledge.js b/api/knowledge.js
index 909296c..2ee1356 100644
--- a/api/knowledge.js
+++ b/api/knowledge.js
@@ -7,6 +7,13 @@ export function getCategory(data) {
return request.get("/CourseCategory", data);
}
+/**
+ * 文章分类
+ */
+export function getArticleCategorys(data) {
+ return request.get("/CourseCategory/getArticleCategorys", data);
+}
+
/**
* 通过分类查找文章列表
*/
@@ -21,12 +28,64 @@ export function getArticleDetails(data) {
return request.get("/article/details/"+data);
}
+/**
+ * 获取解锁所有文章费用
+ */
+export function getUnlockAllArticlePrice(data) {
+ return request.get("/article/getUnlockAllArticlePrice");
+}
+/**
+ * 获取解锁文章
+ */
+export function unlockArticle(data) {
+ return request.post("/article/unlockArticle",data);
+}
/**
* 获取学习榜单列表
*/
export function getStudyList(data) {
return request.post("/StudyList/listStudyList",data);
}
+/**
+ * 获取学习榜单详情
+ */
+export function getStudyDetail(data) {
+ return request.get("/StudyList/studyListDetail?id="+data);
+}
+/**
+ * 报名榜单
+ */
+export function enterStudyList(data) {
+ return request.post("/StudyList/enterStudyList",data);
+}
+/**
+ * 获取榜单打榜进度
+ */
+export function myProgress(data) {
+ return request.get("/StudyList/myProgress?studyListId="+data);
+}
+
+/**
+ * 发布打榜分享
+ */
+export function studyListPublish(data) {
+ return request.post("/StudyList/studyListPublish",data);
+}
+
+/**
+ * 发布打榜点赞
+ */
+export function studyListVote(data) {
+ return request.post("/StudyList/studyListVote",data);
+}
+
+/**
+ * 获取打榜日记
+ */
+export function myStudylist(data) {
+ return request.get("/StudyList/myStudylist?listId="+data);
+}
+
/**
* 获取课程列表
*/
@@ -46,4 +105,18 @@ export function getCourseDetail(data) {
*/
export function enterCourse(data) {
return request.post("/user/enterCourse",data);
+}
+
+/**
+ * 课程扫码签到
+ */
+export function signCourse(data) {
+ return request.get("/user/signCourse?courseId="+data);
+}
+
+/**
+ * 意见反馈
+ */
+export function feedBack(data) {
+ return request.post("/user/feedback",data);
}
\ No newline at end of file
diff --git a/api/serverTeacher.js b/api/serverTeacher.js
new file mode 100644
index 0000000..03fcce5
--- /dev/null
+++ b/api/serverTeacher.js
@@ -0,0 +1,78 @@
+import request from "@/utils/request";
+
+/**
+ * 完善资料
+ */
+export function editSelfData(data) {
+ return request.post("/user/sellerActive", data);
+}
+
+/**
+ * 获取会员管理列表
+ */
+export function getSellerMembers(data) {
+ return request.post("/user/sellerMembers", data);
+}
+
+/**
+ * 获取会员管理列表
+ */
+export function getMembersList(data) {
+ return request.post("/user/getSellerMembersByLevel");
+}
+
+/**
+ * 课程添加会员
+ */
+export function addMembers(data) {
+ return request.post("/user/addMembers",data);
+}
+/**
+ * 获取会员等级列表
+ */
+export function getMyMemberLevels(data) {
+ return request.get("/user/getMyMemberLevels");
+}
+/**
+ * 获取会员详情
+ */
+export function getMemberDetail(data) {
+ return request.post("/user/sellerMembersDetail", data);
+}
+
+
+
+/**
+ * 获取课程管理列表
+ */
+export function sellerCourses(data) {
+ return request.post("/user/sellerCourses", data);
+}
+
+/**
+ * 获取课程详情
+ */
+export function getCourseDetail(data) {
+ return request.get("/user/sellerCoursesDetail?id="+data);
+}
+
+/**
+ * 设置座位
+ */
+export function setMemberSeat(data) {
+ return request.post("/user/addMembersCourseSeat",data);
+}
+
+/**
+ * 发送验证码
+ */
+export function getVerificationCode(data) {
+ return request.post("/user/getVerificationCode",data);
+}
+
+/**
+ * 获取会员榜单日记
+ */
+export function myMemberStudylist(data) {
+ return request.post("/user/myMemberStudylist", data);
+}
\ No newline at end of file
diff --git a/api/user.js b/api/user.js
index b3d6343..b3119ab 100644
--- a/api/user.js
+++ b/api/user.js
@@ -434,3 +434,17 @@ export function setDetection() {
export function getRechargeApi() {
return request.get('recharge/index')
}
+
+/*
+ * 获取我的课程列表
+ * */
+export function getMyCourseList(q) {
+ return request.get('/Course/listCoursesByMemberId?type='+q)
+}
+
+/*
+ * 获取我的打榜列表
+ * */
+export function getStudyList(q) {
+ return request.get('/StudyList/getStudyListByMemberId?type='+q)
+}
\ No newline at end of file
diff --git a/assets/css/base.less b/assets/css/base.less
index ddc63cd..a24722f 100644
--- a/assets/css/base.less
+++ b/assets/css/base.less
@@ -2,18 +2,19 @@
/**
*相关初始化
*/
+
.font-color-red {
- color: #eb3729 !important;
+ color: #E5270F !important;
}
.bg-color-red {
- background-color: #eb3729 !important;
+ background-color: #E5270F !important;
}
.icon-color {
- color: #eb3729;
+ color: #E5270F;
}
.cart-color {
- color: #eb3729 !important;
- border: 1px solid #eb3729 !important;
+ color: #E5270F !important;
+ border: 1px solid #E5270F !important;
}
/* padding20 */
.padding20 {
diff --git a/assets/css/reset.less b/assets/css/reset.less
index 6aa0929..85e9ea0 100644
--- a/assets/css/reset.less
+++ b/assets/css/reset.less
@@ -34,8 +34,26 @@ input{line-height: normal; box-sizing:border-box;}
transform: scaleY(0.33);
}
}
-.line1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width: 100%;}
-.line2{word-break:break-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
+.line1{
+ overflow:hidden;
+ text-overflow:ellipsis;
+ white-space:nowrap;
+ width: 100%;
+}
+.line2{
+ word-break:break-all;
+ display:-webkit-box;
+ -webkit-line-clamp:2;
+ -webkit-box-orient:vertical;
+ overflow:hidden;
+}
+.line5{
+ word-break:break-all;
+ display:-webkit-box;
+ -webkit-line-clamp:5;
+ -webkit-box-orient:vertical;
+ overflow:hidden;
+}
.mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:55;background-color:rgba(0,0,0,0.5);}
diff --git a/components/AddressWindow.vue b/components/AddressWindow.vue
index 18300f5..2c2b1c4 100644
--- a/components/AddressWindow.vue
+++ b/components/AddressWindow.vue
@@ -65,7 +65,7 @@ export default {
this.$emit("input", false);
},
goAddressPages: function() {
- this.$yrouter.push({ path: "/pages/user/address/AddAddress/index" });
+ this.$yrouter.push('/pagesB/pages/user/address/AddressManagement/index')
this.$emit("redirect");
},
tapAddress: function(index) {
diff --git a/components/OrderGoods.vue b/components/OrderGoods.vue
index 61554d8..b2f141a 100644
--- a/components/OrderGoods.vue
+++ b/components/OrderGoods.vue
@@ -2,7 +2,7 @@
共{{ cartInfo.length }}件商品
-
+
@@ -12,8 +12,9 @@
x {{ cart.cartNum }}
{{ cart.productInfo.attrInfo.sku }}
- {{ cart.costPrice }}积分
- ¥{{ cart.truePrice }}
+ ¥{{ cart.productInfo.price }}+{{ cart.productInfo.giveIntegral }}积分
+
评价
@@ -38,10 +39,55 @@ export default {
methods: {
routerGo(cart) {
this.$yrouter.push({
- path: '/pages/shop/GoodsEvaluate/index',
+ path: '/pagesB/pages/shop/GoodsEvaluate/index',
query: { id: cart.unique },
})
},
},
}
+
diff --git a/components/ProductWindow.vue b/components/ProductWindow.vue
index 4bf6fae..f8d87bd 100644
--- a/components/ProductWindow.vue
+++ b/components/ProductWindow.vue
@@ -138,3 +138,8 @@ export default {
},
};
+
diff --git a/components/wuc-tab/wuc-tab.vue b/components/wuc-tab/wuc-tab.vue
index 1d381fa..faa95e2 100644
--- a/components/wuc-tab/wuc-tab.vue
+++ b/components/wuc-tab/wuc-tab.vue
@@ -124,7 +124,7 @@ swiper {
background-color: #0081ff;
}
.text-orange{
- color: #f37b1d
+ color: #EB5744;
}
.text-xl {
diff --git a/config/index.js b/config/index.js
index 73d6e27..8cbb594 100644
--- a/config/index.js
+++ b/config/index.js
@@ -1,7 +1,8 @@
// 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.110:8088/api'
+export const VUE_APP_API_URL = 'http://192.168.0.114:8088/api'
+// export const VUE_APP_API_URL = 'https://www.cyjyyjy.com/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/manifest.json b/manifest.json
index fced5a7..ca0cb31 100644
--- a/manifest.json
+++ b/manifest.json
@@ -21,7 +21,8 @@
"OAuth" : {},
"Payment" : {},
"Share" : {},
- "Geolocation" : {}
+ "Geolocation" : {},
+ "Push" : {}
},
/* 应用发布信息 */
"distribute" : {
@@ -58,25 +59,26 @@
"sdkConfigs" : {
"oauth" : {
"weixin" : {
- "appid" : "wx7c84ede33062d1e4",
+ "appid" : "wx030578b829a4a49a",
"appsecret" : "c47ef66d3311194da44e60387d5c1abd",
"UniversalLinks" : "https://yixiang.co/app/"
}
},
"payment" : {
"weixin" : {
- "appid" : "wx7c84ede33062d1e4",
+ "appid" : "wx030578b829a4a49a",
"UniversalLinks" : "https://yixiang.co/app/"
}
},
"share" : {
"weixin" : {
- "appid" : "wx7c84ede33062d1e4",
+ "appid" : "wx030578b829a4a49a",
"UniversalLinks" : "https://yixiang.co/app/"
}
},
"ad" : {},
- "geolocation" : {}
+ "geolocation" : {},
+ "push" : {}
},
"splashscreen" : {
"ios" : {
diff --git a/pages.json b/pages.json
index d25b70d..a00494d 100644
--- a/pages.json
+++ b/pages.json
@@ -64,13 +64,14 @@
{
"path": "pages/study/dabang",
"style": {
- "navigationBarTitleText": "打榜"
+ "navigationBarTitleText": "打榜",
+ "enablePullDownRefresh": true
}
},
{
"path": "pages/study/bangdanRecord",
"style": {
- "navigationBarTitleText": "我的打榜记录"
+ "navigationBarTitleText": "我的打榜日记"
}
},
{
@@ -85,6 +86,12 @@
"navigationBarTitleText": "文章详情"
}
},
+ {
+ "path": "pages/knowledge/unlock",
+ "style": {
+ "navigationBarTitleText": "解锁文章"
+ }
+ },
{
"path": "pages/shop/GoodSearch/index",
"style": {
@@ -94,7 +101,7 @@
{
"path": "pages/shop/GoodsClass/index",
"style": {
- "navigationBarTitleText": "商品分类"
+ "navigationBarTitleText": "商城"
}
},
{
@@ -197,7 +204,55 @@
"style": {
"navigationBarTitleText": "退货列表"
}
- }
+ },
+ {
+ "path": "pages/serviceTeacher/index",
+ "style": {
+ "navigationBarTitleText": "禪易"
+ }
+ },
+ {
+ "path": "pages/serviceTeacher/setSelfData",
+ "style": {
+ "navigationBarTitleText": "个人资料"
+ }
+ },
+ {
+ "path": "pages/serviceTeacher/memberManagement",
+ "style": {
+ "navigationBarTitleText": "会员管理"
+ }
+ },
+ {
+ "path": "pages/serviceTeacher/memberDetail",
+ "style": {
+ "navigationBarTitleText": "会员详情"
+ }
+ },
+ {
+ "path": "pages/serviceTeacher/memberDabang",
+ "style": {
+ "navigationBarTitleText": "会员打榜日记"
+ }
+ },
+ {
+ "path": "pages/serviceTeacher/courseManagement",
+ "style": {
+ "navigationBarTitleText": "课程管理"
+ }
+ },
+ {
+ "path": "pages/serviceTeacher/courseDetail",
+ "style": {
+ "navigationBarTitleText": "课程详情"
+ }
+ },
+ {
+ "path": "pages/serviceTeacher/addMember",
+ "style": {
+ "navigationBarTitleText": "添加学员"
+ }
+ }
// {
// "path": "pages/activity/GoodsGroup/index",
// "style": {
@@ -533,38 +588,39 @@
"color": "#666666",
"selectedColor": "#F99C10",
"backgroundColor": "#ffffff",
+ "borderStyle":"white",
"height": "50px",
- "fontSize": "10px",
+ "fontSize": "12px",
"iconWidth": "24px",
"spacing": "3px",
"list": [
{
"pagePath": "pages/home/index",
- "iconPath": "static/tab1.png",
+ "iconPath": "static/tab1-d.png",
"selectedIconPath": "static/tab1.png",
"text": "禪易"
},
{
"pagePath": "pages/course/index",
- "iconPath": "static/tab2.png",
+ "iconPath": "static/tab2-d.png",
"selectedIconPath": "static/tab2.png",
"text": "学习"
},
{
"pagePath": "pages/knowledge/index",
- "iconPath": "static/tab3.png",
+ "iconPath": "static/tab3-d.png",
"selectedIconPath": "static/tab3.png",
"text": "文章"
},
{
"pagePath": "pages/shop/GoodsClass/index",
- "iconPath": "static/tab4.png",
+ "iconPath": "static/tab4-d.png",
"selectedIconPath": "static/tab4.png",
"text": "商城"
},
{
"pagePath": "pages/user/User/index",
- "iconPath": "static/tab5.png",
+ "iconPath": "static/tab5-d.png",
"selectedIconPath": "static/tab5.png",
"text": "我的"
}
diff --git a/pages/Loading/index.vue b/pages/Loading/index.vue
index 348fc8b..3ab16d8 100644
--- a/pages/Loading/index.vue
+++ b/pages/Loading/index.vue
@@ -7,7 +7,7 @@
diff --git a/pages/home/index.vue b/pages/home/index.vue
index ef8fe03..3acf3a5 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/pages/serviceTeacher/addMember.vue b/pages/serviceTeacher/addMember.vue
new file mode 100644
index 0000000..ec8dbc3
--- /dev/null
+++ b/pages/serviceTeacher/addMember.vue
@@ -0,0 +1,355 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/serviceTeacher/courseDetail.vue b/pages/serviceTeacher/courseDetail.vue
new file mode 100644
index 0000000..a401faf
--- /dev/null
+++ b/pages/serviceTeacher/courseDetail.vue
@@ -0,0 +1,406 @@
+
+
+
+
+
+
+
+ 未开始
+ 进行中
+ 已结束
+ 已取消
+ {{detail.courseName}}
+
+ {{detail.courseIntroduce}}
+
+
+ 活动时间及地点
+
+
+
+ {{detail.coursePlace}}
+
+
+
+
+ {{detail.courseStartTime}} 至 {{detail.courseEndTime}}
+
+
+
+
+
+
+ 保存座位
+
+
+
+ 添加学员
+
+
+
+
+ 学员列表({{detail.courseMemberList.length || 0}})
+
+
+
+ 排序
+
+
+ 未安排/已安排
+ 签到情况
+
+
+
+
+
+
+
+
+
+ {{item.memberName}}
+ 未签到
+ 已签到
+
+
+ 拨号
+
+
+
+ 座位安排
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/serviceTeacher/courseManagement.vue b/pages/serviceTeacher/courseManagement.vue
new file mode 100644
index 0000000..5cf224b
--- /dev/null
+++ b/pages/serviceTeacher/courseManagement.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+ 未完成
+ 已完成
+
+
+
+
+ {{item.courseName}}
+ {{item.courseIntroduce}}
+ 时间:{{(item.courseStartTime.split(' ')[0]).replace(/\-/g, '.')}} 至 {{(item.courseEndTime.split(' ')[0]).replace(/\-/g,'.')}}
+ 地点:{{item.coursePlace}}
+ 报名总人数:{{item.courseEnterPerson}}
+
+
+
+
+
+
+ {{item.signedNum}}/{{item.realEnterPerson}}
+ 未开始
+ 报名中
+ 签到中
+ 已结束
+ 已取消
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/serviceTeacher/index.vue b/pages/serviceTeacher/index.vue
new file mode 100644
index 0000000..1db7d0f
--- /dev/null
+++ b/pages/serviceTeacher/index.vue
@@ -0,0 +1,121 @@
+
+
+
+
+
+ {{userInfo.realName || userInfo.nickname}}
+
+
+ 请先完善个人信息
+
+
+ 课程管理
+
+
+
+ 会员管理
+
+
+
+
+
+
+
diff --git a/pages/serviceTeacher/memberDabang.vue b/pages/serviceTeacher/memberDabang.vue
new file mode 100644
index 0000000..90981d7
--- /dev/null
+++ b/pages/serviceTeacher/memberDabang.vue
@@ -0,0 +1,203 @@
+
+
+
+ {{studyListDto.listName}}
+
+ 时间:{{studyListDto.listStartTime.split(' ')[0]}} 至 {{studyListDto.listEndTime.split(' ')[0]}}(共{{studyListDto.clockTimes}}天)
+ 进行中:{{studyListDto.signTimes}}/{{studyListDto.clockTimes}}
+
+
+
+
+
+
+
+
+
+
+ {{item.realName}}
+ {{item.recordTime}}
+
+
+
+ {{item.content}}
+
+
+
+
+
+
+
+ {{item.voteNum}}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/serviceTeacher/memberDetail.vue b/pages/serviceTeacher/memberDetail.vue
new file mode 100644
index 0000000..d9395ff
--- /dev/null
+++ b/pages/serviceTeacher/memberDetail.vue
@@ -0,0 +1,248 @@
+
+
+
+
+
+
+
+ {{member.realName}}
+ {{member.level}}级会员
+
+
+
+ {{member.integral}}积分
+
+
+
+ 拨号
+
+
+ 课程({{detail.cyCourseDtos.length}})
+ 打榜({{detail.studyListDtos.length}})
+
+
+
+
+
+
+ {{item.courseName}}
+ 时间:{{item.courseStartTime.split(' ')[0]}} 至 {{item.courseEndTime.split(' ')[0]}}
+ 地点:{{item.coursePlace}}
+
+ 未签到
+ 已签到
+ 签到未开放
+ 缺席
+ 课程已取消
+
+ 座位:{{item.seat || '暂未安排座位'}}
+
+
+
+
+
+
+ {{item.listName}}
+ {{item.listStartTime.split(' ')[0]}}-{{item.listEndTime.split(' ')[0]}}
+ {{item.integral}}积分
+
+
+ {{item.signState == 2 ? '+' : '-'}} {{item.integral}}积分
+ 打榜成功 {{item.signTimes}}/{{item.clockTimes}}
+ 打榜失败 {{item.signTimes}}/{{item.clockTimes}}
+
+
+
+
+
+
+
+
+
diff --git a/pages/serviceTeacher/memberManagement.vue b/pages/serviceTeacher/memberManagement.vue
new file mode 100644
index 0000000..4f78875
--- /dev/null
+++ b/pages/serviceTeacher/memberManagement.vue
@@ -0,0 +1,185 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{member.realName}}
+ {{member.integral}}积分
+
+
+
+ 课程 {{member.finishCourseNum}}/{{member.enterCourseNum}}
+
+
+
+ 打榜 {{member.finishStudylistNm}}/{{member.enterStudylistNum}}
+
+
+
+ 拨号
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/serviceTeacher/setSelfData.vue b/pages/serviceTeacher/setSelfData.vue
new file mode 100644
index 0000000..801db23
--- /dev/null
+++ b/pages/serviceTeacher/setSelfData.vue
@@ -0,0 +1,324 @@
+
+
+
+
+
+ 工作照
+ 请上传正面免冠半身照图像大小不超过200kb
+
+
+
+
+
+
+
+
+
+
+
+ 姓名
+
+
+
+
+
+
+ 注册口令
+
+
+
+
+
+
+ 性别
+
+
+
+
+
+
+
+
+ 手机号
+
+
+
+
+
+
+ 验证码
+
+
+
+
+
+ {{disabled ? second + '秒后重新发送' : '发送验证码'}}
+
+
+
+
+ {{userInfo.isPromoter == 1 ? '保存修改' : '保存'}}
+
+
+
+
+
+
diff --git a/pages/shop/GoodsClass/index.vue b/pages/shop/GoodsClass/index.vue
index c811e55..b3b7072 100644
--- a/pages/shop/GoodsClass/index.vue
+++ b/pages/shop/GoodsClass/index.vue
@@ -1,5 +1,8 @@
+
+
+
-
+
- 亲爱的,下午好
- 慵懒的猫
+ 亲爱的,{{getTime()}}
+ {{userInfo.nickname}}
- 2000积分
+ {{userInfo.integral}}积分
- 您还有积分未使用
+ 您还有{{userInfo.integral}}积分未使用
-
+
- 禅意能量
+ {{item.children[0].cateName}}
-
-
+
+
- 禅易香囊 纯手工制作提神…
- 199元+100积分
- 51人购买
+ {{goods.storeName}}
+ {{goods.price}}元+{{goods.giveIntegral}}积分
+ 已出售{{goods.sales}}{{goods.unitName}}
-
+
@@ -114,12 +117,12 @@
diff --git a/pages/study/bangdanRecord.vue b/pages/study/bangdanRecord.vue
index d322ebd..86fa3ba 100644
--- a/pages/study/bangdanRecord.vue
+++ b/pages/study/bangdanRecord.vue
@@ -1,32 +1,85 @@
-
+
- 失宠的猫咪
- 5小时前
+ {{item.realName}}
+ {{item.recordTime}}
-
- 抱朴书院孕育自华夏优秀传统文化,以“博学致用,朴含虚”为院训,以“弘扬国粹…
+ {{item.content}}
+
+
-
-
-
-
-
-
-
- 55
+
+
+
+ {{item.voteNum}}
diff --git a/pages/study/editDabang.vue b/pages/study/editDabang.vue
index f7c5e85..d2f7ca9 100644
--- a/pages/study/editDabang.vue
+++ b/pages/study/editDabang.vue
@@ -1,12 +1,12 @@
-
+
-
+
@@ -15,31 +15,71 @@
上传图片
- 发布
+ 发布
@@ -55,6 +95,9 @@
width: 100%;
padding: 50rpx 0;
border-bottom: 1px solid #ececec;
+ textarea{
+ width: 100%;
+ }
}
.upload-img-box{
margin-top: 50rpx;
@@ -67,6 +110,7 @@
position: relative;
margin-right: 20rpx;
font-size: 28rpx;
+ margin-bottom: 20rpx;
image{
width: 100%;
height: 100%;
diff --git a/pages/user/PersonalData/index.vue b/pages/user/PersonalData/index.vue
index df7dabc..42eb2ea 100644
--- a/pages/user/PersonalData/index.vue
+++ b/pages/user/PersonalData/index.vue
@@ -29,6 +29,12 @@
+
+ 真实姓名
+
+
+
+
ID号
@@ -163,9 +169,17 @@ export default {
submit: function () {
let userInfo = this.userInfo;
+ if(userInfo.realName == ''){
+ uni.showToast({
+ title:'请填写真实姓名',
+ icon: "none"
+ })
+ return
+ }
postUserEdit({
nickname: trim(this.userInfo.nickname),
avatar: this.avatar,
+ realName: trim(this.userInfo.realName)
}).then(
(res) => {
this.$store.dispatch("userInfo", true);
@@ -174,7 +188,9 @@ export default {
icon: "none",
duration: 2000,
});
- this.$yrouter.back();
+ setTimeout(()=>{
+ this.$yrouter.back();
+ },2000)
},
(err) => {
uni.showToast({
@@ -210,3 +226,10 @@ export default {
},
};
+
diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue
index b6393a8..ee72d8a 100644
--- a/pages/user/User/index.vue
+++ b/pages/user/User/index.vue
@@ -12,7 +12,7 @@
{{ userInfo.nickname }}
- {{ userInfo.vipName }}
+ {{ userInfo.levelName}}
@@ -32,40 +32,48 @@
- 积分:2000
+ 积分:{{userInfo.integral}}
-
-
- 服务老师
-
+
+
+
+
+ {{userInfo.sellerName || '点击联系服务老师'}}
-
- 王老师
-
+
+
+
+
+ 服务老师主页
-
+
我参与的
-
-
- 《阴阳五行》一个人的阴阳五行…
- 2021 5 31-6.3 8:30-18:30
-
-
- 地点:中国·武汉
- 去签到
+
+
+
+ {{item.courseName}}
+ {{item.courseStartTime.split(' ')[0]}}~{{item.courseEndTime.split(' ')[0]}}
+
+
+ 地点:{{item.coursePlace}}
+ 扫一扫
+ 已签到
+
-
+
-
- 连续11天打卡站桩
+
+ {{item.listName}}
- 已连续12天
- 立即打榜
+ 已连续{{item.signTimes}}天
+ {{item.enterState ? '已打卡' : '立即打卡'}}
@@ -104,21 +112,27 @@
- {{ userInfo.orderStatusNum.unpaidCount }}
+
+ {{ userInfo.orderStatusNum.unpaidCount }}
+
待付款
- {{ userInfo.orderStatusNum.unshippedCount }}
+
+ {{ userInfo.orderStatusNum.unshippedCount }}
+
待发货
- {{ userInfo.orderStatusNum.receivedCount }}
+
+ {{ userInfo.orderStatusNum.receivedCount }}
+
待收货
@@ -140,6 +154,7 @@
+
@@ -151,7 +166,7 @@
- 学习帮打卡
+ 学习榜打卡
@@ -175,6 +190,13 @@
收货地址
+
+
+
+
+ 我是服务老师
+
+
@@ -85,11 +122,16 @@
line-height: 98rpx;
}
.tab-item-active{
- font-size: 40rpx;
- font-size: 500;
+ font-weight: 600;
border-bottom: 4rpx solid #EB5744;
}
}
+ .no-content{
+ font-size: 28rpx;
+ color: #666666;
+ text-align: center;
+ padding: 30rpx 0;
+ }
.course-list-box{
width: 100%;
.course-item{
@@ -127,11 +169,15 @@
margin-bottom: 6rpx;
}
}
+
}
}
+ .colG{
+ color: #8FB85B !important;
+ }
.knowledge-list {
width: 100%;
- margin-top: 50rpx;
+ // margin-top: 50rpx;
.knowledge-item {
background: #fff;
padding: 32rpx;
@@ -143,6 +189,7 @@
image {
width: 100%;
height: 100%;
+ border-radius: 10rpx;
}
}
.knowledge-info-box {
@@ -170,9 +217,9 @@
color: #999;
margin-top: 28rpx;
.price{
- font-size: 36rpx;
+ font-size: 28rpx;
color: #EA533E;
- font-weight: 600;
+ font-weight: 500;
}
.signin-btn{
width: 156rpx;
diff --git a/pagesB/pages/user/address/AddressManagement/index.vue b/pagesB/pages/user/address/AddressManagement/index.vue
index 3bf1a14..f7309ce 100644
--- a/pagesB/pages/user/address/AddressManagement/index.vue
+++ b/pagesB/pages/user/address/AddressManagement/index.vue
@@ -75,6 +75,9 @@
background-color: #fff;
height: 100vh;
}
+.address-management .footer{
+ height: 200rpx;
+}
-
diff --git a/static/addMenber.png b/static/addMenber.png
new file mode 100644
index 0000000..4fd04d3
Binary files /dev/null and b/static/addMenber.png differ
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/backhome-icon.png b/static/backhome-icon.png
new file mode 100644
index 0000000..61f69c5
Binary files /dev/null and b/static/backhome-icon.png differ
diff --git a/static/dabang-icon.png b/static/dabang-icon.png
new file mode 100644
index 0000000..b13e1e0
Binary files /dev/null and b/static/dabang-icon.png differ
diff --git a/static/default-headerimg.png b/static/default-headerimg.png
new file mode 100644
index 0000000..085018d
Binary files /dev/null and b/static/default-headerimg.png differ
diff --git a/static/dizhi.png b/static/dizhi.png
new file mode 100644
index 0000000..ee5a621
Binary files /dev/null and b/static/dizhi.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/img2.png b/static/img2.png
deleted file mode 100644
index 983787d..0000000
Binary files a/static/img2.png and /dev/null differ
diff --git a/static/jifen1.png b/static/jifen1.png
new file mode 100644
index 0000000..52162d4
Binary files /dev/null and b/static/jifen1.png differ
diff --git a/static/jifen2.png b/static/jifen2.png
new file mode 100644
index 0000000..2210377
Binary files /dev/null and b/static/jifen2.png differ
diff --git a/static/jifen3.png b/static/jifen3.png
new file mode 100644
index 0000000..bee4174
Binary files /dev/null and b/static/jifen3.png differ
diff --git a/static/jifen4.png b/static/jifen4.png
new file mode 100644
index 0000000..85328d2
Binary files /dev/null and b/static/jifen4.png differ
diff --git a/static/kecheng-icon.png b/static/kecheng-icon.png
new file mode 100644
index 0000000..538a1e1
Binary files /dev/null and b/static/kecheng-icon.png differ
diff --git a/static/kecheng-icon2.png b/static/kecheng-icon2.png
new file mode 100644
index 0000000..10ac53a
Binary files /dev/null and b/static/kecheng-icon2.png differ
diff --git a/static/like.png b/static/like.png
new file mode 100644
index 0000000..b2356dc
Binary files /dev/null and b/static/like.png differ
diff --git a/static/lock.png b/static/lock.png
new file mode 100644
index 0000000..35f1a6d
Binary files /dev/null and b/static/lock.png differ
diff --git a/static/message.png b/static/message.png
new file mode 100644
index 0000000..df34881
Binary files /dev/null and b/static/message.png differ
diff --git a/static/num1.png b/static/num1.png
new file mode 100644
index 0000000..488bd3e
Binary files /dev/null and b/static/num1.png differ
diff --git a/static/num2.png b/static/num2.png
new file mode 100644
index 0000000..775b6ca
Binary files /dev/null and b/static/num2.png differ
diff --git a/static/num3.png b/static/num3.png
new file mode 100644
index 0000000..7f0c95a
Binary files /dev/null and b/static/num3.png differ
diff --git a/static/sort-icon.png b/static/sort-icon.png
new file mode 100644
index 0000000..ef10177
Binary files /dev/null and b/static/sort-icon.png differ
diff --git a/static/success.png b/static/success.png
new file mode 100644
index 0000000..9603997
Binary files /dev/null and b/static/success.png differ
diff --git a/static/tab1-d.png b/static/tab1-d.png
new file mode 100644
index 0000000..b19b057
Binary files /dev/null and b/static/tab1-d.png differ
diff --git a/static/tab2-d.png b/static/tab2-d.png
new file mode 100644
index 0000000..e2c5ad1
Binary files /dev/null and b/static/tab2-d.png differ
diff --git a/static/tab3-d.png b/static/tab3-d.png
new file mode 100644
index 0000000..d2a787b
Binary files /dev/null and b/static/tab3-d.png differ
diff --git a/static/tab4-d.png b/static/tab4-d.png
new file mode 100644
index 0000000..6ef7c6c
Binary files /dev/null and b/static/tab4-d.png differ
diff --git a/static/tab5-d.png b/static/tab5-d.png
new file mode 100644
index 0000000..b3eca9f
Binary files /dev/null and b/static/tab5-d.png differ
diff --git a/static/time.png b/static/time.png
new file mode 100644
index 0000000..36aeed8
Binary files /dev/null and b/static/time.png differ
diff --git a/static/user-menu6.png b/static/user-menu6.png
new file mode 100644
index 0000000..8769066
Binary files /dev/null and b/static/user-menu6.png differ
diff --git a/static/vipmanage-icon.png b/static/vipmanage-icon.png
new file mode 100644
index 0000000..dd5bfdd
Binary files /dev/null and b/static/vipmanage-icon.png differ
diff --git a/utils/index.js b/utils/index.js
index 2f46afd..644dc2b 100644
--- a/utils/index.js
+++ b/utils/index.js
@@ -523,6 +523,11 @@ export const handleLoginStatus = (location, complete, fail, success) => {
path: '/pages/authorization/index',
name: '授权页面',
},
+ {
+ path: '/pages/course/index',
+ name: '课程首页',
+ },
+
]
// 是否可以访问
@@ -1068,6 +1073,55 @@ export function chooseImage(callback) {
},
})
}
+export function chooseImages(callback) {
+ uni.chooseImage({
+ count: 9,
+ sourceType: ['album'],
+ success: res => {
+ const tempFilePaths = res.tempFilePaths;
+ for(let i = 0;i < tempFilePaths.length; i++) {
+ uni.getImageInfo({
+ src: tempFilePaths[i],
+ success: image => {
+ uni.showLoading({ title: '图片上传中', mask: true })
+ uni.uploadFile({
+ url: `${VUE_APP_API_URL}/api/upload`,
+ file: image,
+ filePath: image.path,
+ header: {
+ Authorization: 'Bearer ' + store.getters.token,
+ },
+ name: 'file',
+ success: res => {
+ if (callback) {
+ callback(JSON.parse(res.data).link)
+ }
+ },
+ fail: err => {
+ uni.showToast({
+ title: '上传图片失败',
+ icon: 'none',
+ duration: 2000,
+ })
+ },
+ complete: res => {
+ uni.hideLoading()
+ },
+ })
+ },
+ fail: err => {
+ uni.showToast({
+ title: '获取图片信息失败',
+ icon: 'none',
+ duration: 2000,
+ })
+ },
+ })
+ }
+
+ },
+ })
+}
export function handleErrorMessage(err) {
console.log(err)
diff --git a/utils/request.js b/utils/request.js
index bf56fae..a57b9b2 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -91,6 +91,7 @@ function baseRequest(options) {
const data = res.data || {}
if (res.status !== 200) {
return Promise.reject({ msg: '请求失败', res, data })
+ return Promise.resolve({ msg: res.data.msg, res, data })
}
// console.log(data)
if ([401, 403].indexOf(data.status) !== -1) {
@@ -99,9 +100,11 @@ function baseRequest(options) {
} else if (data.status === 200) {
return Promise.resolve(data, res)
} else if (data.status == 5101) {
- return Promise.reject({ msg: res.data.msg, res, data })
+ // return Promise.reject({ msg: res.data.msg, res, data })
+ return Promise.resolve({ msg: res.data.msg, res, data })
} else {
- return Promise.reject({ msg: res.data.msg, res, data })
+ // return Promise.reject({ msg: res.data.msg, res, data })
+ return Promise.resolve({ msg: res.data.msg, res, data })
}
})
}