From 3fb7e4fb4b4a6a295a8bc0f8cc7d716abde8b43a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= <781521347@qq.com>
Date: Tue, 26 Oct 2021 15:02:51 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8B=E6=8B=89?=
=?UTF-8?q?=EF=BC=8C=E6=A6=9C=E5=8D=95=E6=8E=92=E8=A1=8C=E6=A6=9C=E6=8C=89?=
=?UTF-8?q?=E5=A4=A9=E6=95=B0=E6=8E=92=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/index.js | 6 ------
pages.json | 3 ++-
pages/course/detail.vue | 22 ++++++++++++++++++----
pages/home/index.vue | 1 +
pages/study/editDabang.vue | 1 +
5 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/config/index.js b/config/index.js
index d972d01..1dccdb5 100644
--- a/config/index.js
+++ b/config/index.js
@@ -1,14 +1,8 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
-<<<<<<< HEAD
// export const VUE_APP_API_URL = 'http://192.168.0.112: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://139.186.134.205:9006/api'
-export const VUE_APP_API_URL = 'http://192.168.0.110:8098/api'
-// export const VUE_APP_API_URL = 'https://www.cyjyyjy.com:8096/api'
->>>>>>> 00824c5a0f2aa21e0580a759ffd2d820250d7841
// 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/pages.json b/pages.json
index ec1c408..0393ece 100644
--- a/pages.json
+++ b/pages.json
@@ -74,7 +74,8 @@
{
"path": "pages/course/detail",
"style": {
- "navigationBarTitleText": "课程详情"
+ "navigationBarTitleText": "课程详情",
+ "enablePullDownRefresh": true
}
},
{
diff --git a/pages/course/detail.vue b/pages/course/detail.vue
index 548d637..c7709d6 100644
--- a/pages/course/detail.vue
+++ b/pages/course/detail.vue
@@ -244,11 +244,11 @@
this.tabInitTop= res.top;
}
}).exec();
- if(this.$yroute.query.teacherId){
+ if(this.$yroute.query.teacherId){ //服务老师分享链接
this.courseId = this.$yroute.query.courseId;
this.validCode = this.$yroute.query.validCode;
this.teacherId = this.$yroute.query.teacherId;
- } else{
+ } else{ //普通进入详情页
this.courseId = this.$yroute.query.id;
}
if(this.userInfo.uid){
@@ -272,6 +272,17 @@
},
mounted(){
+ },
+ onPullDownRefresh() {
+ this.getDetail()
+ },
+ onShareAppMessage: function(res) {
+ console.log(this.detail.id)
+ return {
+ title: this.detail.courseName,
+ imageUrl:this.detail.imageArr[0],
+ path: '/pages/course/detail?id=' + this.detail.id,
+ }
},
methods: {
getPhoneNumber: function(e) {
@@ -352,7 +363,8 @@
this.hour = Math.floor(this.times / (60 * 60)) - (this.day * 24);
this.minute = Math.floor(this.times / 60) - (this.day * 24 * 60) - (this.hour * 60);
this.second = Math.floor(this.times) - (this.day * 24 * 60 * 60) - (this.hour * 60 * 60) - (this.minute * 60);
- console.log(this.times)
+ // console.log(this.times)
+ uni.stopPullDownRefresh()
})
},
@@ -399,7 +411,9 @@
} else if(res.data.state == 1){
if(this.detail.courseType == 1){ //直播课程弹出引导下载小程序
this.showSignUp = true
- this.getDetail()
+ setTimeout(()=>{
+ this.getDetail()
+ },1500)
} else{
uni.showToast({
title: '报名成功!'
diff --git a/pages/home/index.vue b/pages/home/index.vue
index a27aa72..253ee31 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -305,6 +305,7 @@ export default {
that.$set(that, 'articleList', res.data.articleDtos)
uni.hideLoading()
that.setOpenShare()
+ uni.stopPullDownRefresh()
console.log(res.data.courseDtos)
})
},
diff --git a/pages/study/editDabang.vue b/pages/study/editDabang.vue
index 031e2f0..99c3094 100644
--- a/pages/study/editDabang.vue
+++ b/pages/study/editDabang.vue
@@ -92,6 +92,7 @@
},
}
}
+
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 253ee31..90e7f81 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -6,9 +6,9 @@
搜索商品
-
+
diff --git a/pages/shop/GoodSearch/index.vue b/pages/shop/GoodSearch/index.vue
index 0ee76e6..25cb205 100644
--- a/pages/shop/GoodSearch/index.vue
+++ b/pages/shop/GoodSearch/index.vue
@@ -59,7 +59,7 @@ export default {
this.toSearch(search);
},
toSearch(s) {
- this.$yrouter.push({ path: "/pages/shop/GoodsList/index", query: { s } });
+ this.$yrouter.push({ path:"pagesB/pages/shop/GoodsList/index", query: { s } });
},
getData() {
getSearchKeyword().then(res => {
diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue
index 126d6fb..b4df87b 100644
--- a/pages/user/User/index.vue
+++ b/pages/user/User/index.vue
@@ -61,7 +61,7 @@
地点:{{item.coursePlace}}
- 扫一扫
+
已签到
@@ -239,10 +239,11 @@ export default {
return {
MyMenus: [],
switchActive: false,
- isWeixin: false,
+ isWeixin: false
}
},
computed: mapGetters(['userInfo']),
+ watch: {},
methods: {
...mapMutations(['updateAuthorizationPage']),
startQr: function() {
diff --git a/pages/user/feedBack/index.vue b/pages/user/feedBack/index.vue
index 4b3aae9..72b1250 100644
--- a/pages/user/feedBack/index.vue
+++ b/pages/user/feedBack/index.vue
@@ -10,6 +10,8 @@
v-model="content"/>
{{fontnum}}/100
+ 注:该反馈功能只做收集会员反馈信息,不做解答,如有问题需要解答,可联系服务老师进行沟通。
+ 您反馈的信息我们会及时跟进,感谢您的宝贵建议,谢谢!
提交
@@ -56,11 +58,13 @@