Browse Source

新增下拉,榜单排行榜按天数排行

master
杨豪 3 years ago
parent
commit
3fb7e4fb4b
  1. 6
      config/index.js
  2. 3
      pages.json
  3. 20
      pages/course/detail.vue
  4. 1
      pages/home/index.vue
  5. 1
      pages/study/editDabang.vue

6
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';

3
pages.json

@ -74,7 +74,8 @@
{
"path": "pages/course/detail",
"style": {
"navigationBarTitleText": "课程详情"
"navigationBarTitleText": "课程详情",
"enablePullDownRefresh": true
}
},
{

20
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
setTimeout(()=>{
this.getDetail()
},1500)
} else{
uni.showToast({
title: '报名成功!'

1
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)
})
},

1
pages/study/editDabang.vue

@ -92,6 +92,7 @@
},
}
}
</script>
<style lang="less" scoped>

Loading…
Cancel
Save