Merge branch 'main' of https://dd3skj.picp.vip/zhouhefeng/zhgh_zjitc
This commit is contained in:
@@ -164,6 +164,24 @@ layout("/mobile/platform.html"){
|
|||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.course-action {
|
||||||
|
margin-top: 10px;
|
||||||
|
padding-top: 10px;
|
||||||
|
border-top: 1px solid #ebedf0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.course-action .van-button {
|
||||||
|
min-width: 96px;
|
||||||
|
height: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.course-action .van-button + .van-button {
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div id="app" v-cloak>
|
<div id="app" v-cloak>
|
||||||
<van-sticky>
|
<van-sticky>
|
||||||
@@ -240,24 +258,28 @@ layout("/mobile/platform.html"){
|
|||||||
<span style="color: #1867b0">{{o.courseTimeName}}</span>
|
<span style="color: #1867b0">{{o.courseTimeName}}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<div class="course-action"
|
||||||
<span @click.stop="showPic(FILE_DOMAIN + '/fileStreamPreview?id=' + o.classQrCode)"
|
v-if="(activityStatus !== '1' && o.isSign === false)
|
||||||
v-if="o.isSign === true && o.classQrCode"
|
|| (o.isSign === true && getWechatFileId())
|
||||||
style="color: #dd6363">点我查看微信群二维码</span>
|
|| (o.isSign === true && moment().valueOf() < moment(activity.activitySignUpEndTime).valueOf())">
|
||||||
</div>
|
<van-button type="primary" color="#1867b0" round size="mini"
|
||||||
<van-button type="primary" color="#1867b0" round size="mini"
|
v-if="activityStatus !== '1' && o.isSign === false"
|
||||||
v-if="activityStatus !== '1' && o.isSign === false"
|
@click.stop="signUp(o)">
|
||||||
style="position: absolute; left: 74%; bottom: 10%; width: 74px; height: 28px"
|
我要报名
|
||||||
@click.stop="signUp(o)">
|
</van-button>
|
||||||
我要报名
|
|
||||||
</van-button>
|
|
||||||
|
|
||||||
<van-button type="primary" color="#dd6363" round size="mini"
|
<van-button type="primary" color="#07c160" round size="mini"
|
||||||
v-if="o.isSign === true && moment().valueOf() < moment(activity.activitySignUpEndTime).valueOf()"
|
v-if="o.isSign === true && getWechatFileId()"
|
||||||
style="position: absolute; left: 74%; bottom: 10%; width: 74px; height: 28px"
|
@click.stop="showWechatQrCode">
|
||||||
@click.stop="cancel(o)">
|
微信群二维码
|
||||||
取消报名
|
</van-button>
|
||||||
</van-button>
|
|
||||||
|
<van-button type="primary" color="#dd6363" round size="mini"
|
||||||
|
v-if="o.isSign === true && moment().valueOf() < moment(activity.activitySignUpEndTime).valueOf()"
|
||||||
|
@click.stop="cancel(o)">
|
||||||
|
取消报名
|
||||||
|
</van-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<image v-if="activityStatus !== '1' && o.isSign === true && moment().valueOf() >= moment(activity.activitySignUpEndTime).valueOf()"
|
<image v-if="activityStatus !== '1' && o.isSign === true && moment().valueOf() >= moment(activity.activitySignUpEndTime).valueOf()"
|
||||||
style="position: absolute; left: 77%; top: 58%;"
|
style="position: absolute; left: 77%; top: 58%;"
|
||||||
@@ -494,6 +516,24 @@ layout("/mobile/platform.html"){
|
|||||||
showPic(url) {
|
showPic(url) {
|
||||||
vant.ImagePreview([url])
|
vant.ImagePreview([url])
|
||||||
},
|
},
|
||||||
|
getWechatFileId() {
|
||||||
|
const wechat = this.tableData.wechat
|
||||||
|
if (!wechat) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
if (Array.isArray(wechat)) {
|
||||||
|
return wechat.length > 0 ? wechat[0].id : ''
|
||||||
|
}
|
||||||
|
return wechat.id
|
||||||
|
},
|
||||||
|
showWechatQrCode() {
|
||||||
|
const id = this.getWechatFileId()
|
||||||
|
if (!id) {
|
||||||
|
vant.Toast('暂无微信群二维码')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.showPic(FILE_DOMAIN + '/fileStreamPreview?id=' + id)
|
||||||
|
},
|
||||||
findTime(o) {
|
findTime(o) {
|
||||||
const today = moment().format('YYYY-MM-DD')
|
const today = moment().format('YYYY-MM-DD')
|
||||||
return o.courseStartTime.substr(0, 10) === today
|
return o.courseStartTime.substr(0, 10) === today
|
||||||
|
|||||||
Reference in New Issue
Block a user