|
@@ -75,7 +75,8 @@
|
|
|
<view class="bricon">
|
|
|
|
|
|
<!-- <rich-text style="white-space:pre-wrap;" :nodes="actItemList.brief"></rich-text> -->
|
|
|
- <u-parse :content="actItemList.brief" :selectable="true" :lazyLoad="true" :loadingImg="imgLoading"></u-parse>
|
|
|
+ <u-parse :content="actItemList.brief" :selectable="true" :lazyLoad="true"
|
|
|
+ :loadingImg="imgLoading"></u-parse>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -106,8 +107,10 @@
|
|
|
</view>
|
|
|
<view class="rightBtn">
|
|
|
<view class="btnt1" v-if="actItemList.openid==oid">本人创建,暂不支持加入</view>
|
|
|
- <view class="btnt" v-else-if="!isSign" @click="applyAdd">立即报名</view>
|
|
|
- <view class="btnt" v-else-if="isSign" @click="cancelAdd">取消报名</view>
|
|
|
+ <view class="btnt" v-else-if="!isSign && !isExpired" @click="applyAdd">立即报名</view>
|
|
|
+ <view class="btnt" v-else-if="isSign && !isExpired" @click="cancelAdd">取消报名</view>
|
|
|
+ <view class="btnt" v-else-if="isSign && isExpired" @click="lookPlayback">查看回放</view>
|
|
|
+ <view class="btnt" style="background-color: #ccc;" v-else-if="!isSign && isExpired">报名时间结束</view>
|
|
|
<!-- <view class="btnt1" v-else-if="actItemList.bnum>=actItemList.pers">人数已满</view> -->
|
|
|
|
|
|
<!-- <view class="btnt1" v-else-if="isSign && actItemList.openid!=oid">已报名</view> -->
|
|
@@ -173,6 +176,8 @@
|
|
|
collArr: [],
|
|
|
//报名成功弹窗
|
|
|
showPopupConfirm: false,
|
|
|
+ //过期日期
|
|
|
+ dTime: '',
|
|
|
|
|
|
// 用户订阅列表
|
|
|
// subArr: [],
|
|
@@ -192,7 +197,7 @@
|
|
|
applyUserlist: [],
|
|
|
pic_coll2: 'https://teacherapi.cocorobo.cn/teaching-file/static/mine/Collect_yellow.png',
|
|
|
|
|
|
- imgLoading:'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/file-1712113517547.png'
|
|
|
+ imgLoading: 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/file-1712113517547.png'
|
|
|
// nodes: [{
|
|
|
// name: 'div',
|
|
|
// attrs: {
|
|
@@ -225,8 +230,8 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
onShareTimeline() {
|
|
|
uni.share({
|
|
|
provider: "weixin",
|
|
@@ -248,6 +253,16 @@
|
|
|
// onUnload() {
|
|
|
// this.$store.dispatch('asyncDelAll')
|
|
|
// },
|
|
|
+ computed: {
|
|
|
+ isExpired() {
|
|
|
+ let dTime = this.dTime.split(',')
|
|
|
+ let bint = new Date(dTime[0]).getTime()
|
|
|
+ let now = new Date().getTime()
|
|
|
+ // console.log("过期时间",bint);
|
|
|
+ // console.log("当前日期",now);
|
|
|
+ return bint < now
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
//跳转到第三方链接
|
|
|
gotoLink(e) {
|
|
@@ -257,6 +272,21 @@
|
|
|
url: "/pages/skipone/skipone?url=" + encodeURIComponent(link),
|
|
|
});
|
|
|
},
|
|
|
+ // 查看回放
|
|
|
+ lookPlayback() {
|
|
|
+ if (!(!!this.actItemList.playback)) {
|
|
|
+ uni.showToast({
|
|
|
+ title: "暂无回放",
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ uni.navigateTo({
|
|
|
+ // url: "/pages/skipone/skipone?item='+ encodeURIComponent(JSON.stringify(item))"
|
|
|
+ url: "/pages/skipone/skipone?item=" + encodeURIComponent(JSON.stringify(this.actItemList
|
|
|
+ .playback))
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
// 获取页面数据
|
|
|
getdata() {
|
|
@@ -266,7 +296,10 @@
|
|
|
acId: this.acId,
|
|
|
}
|
|
|
this.$request('/selectActivityID', "POST", data).then(res => {
|
|
|
- // console.log('页面数据', res[0][0]);
|
|
|
+ console.log('页面数据', res[0][0]);
|
|
|
+ this.dTime = res[0][0].begin_at;
|
|
|
+ // console.log('this.dTime',this.dTime);
|
|
|
+
|
|
|
let srrt = this.datejudge(res[0][0].begin_at)
|
|
|
console.log('srrt', srrt);
|
|
|
res[0][0].begin_at = srrt
|
|
@@ -407,6 +440,7 @@
|
|
|
this.isSign = res[0][0].num
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
// 收藏事件
|
|
|
coll() {
|
|
|
const value = this.$store.state.user.openid;
|