diff --git a/course/customer/customer.vue b/course/customer/customer.vue new file mode 100644 index 0000000..7c8e143 --- /dev/null +++ b/course/customer/customer.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/pages.json b/pages.json index 995c27e..0359a5e 100644 --- a/pages.json +++ b/pages.json @@ -69,6 +69,14 @@ "navigationBarTitleText" : "用户隐私协议", "enablePullDownRefresh" : false } + }, + { + "path" : "customer/customer", + "style" : + { + "navigationBarTitleText" : "添加客服", + "enablePullDownRefresh" : false + } } ] }, diff --git a/pages/index/index.vue b/pages/index/index.vue index 074cf76..043761c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -107,11 +107,7 @@ }, // 跳转详情 toDetail(item) { - if (!item.isInEffect) { - this.$util.errMsg('课程已到期,请联系课程负责老师!') - } else { - this.$util.to(`/course/courseDetail/courseDetail?cid=${item.cid}&mallId=${item.mallId}`) - } + this.$util.to(!item.isInEffect ? `/course/customer/customer` : `/course/courseDetail/courseDetail?cid=${item.cid}&mallId=${item.mallId}`) // 过期了跳转到添加客服,否则跳详情 }, } } diff --git a/pages/login/login.vue b/pages/login/login.vue index 8467ffb..7b0fb3b 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -127,7 +127,7 @@ background-color: #fff; border-radius: 20rpx; .logo { - width: 500rpx; + width: 400rpx; margin-bottom: 80rpx; } .btn {