| xqd
@@ -176,7 +176,6 @@
|
|
|
components:{Poster},
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
//活动加入vip跳转
|
|
|
jump_type_vip_Activity: '',
|
|
|
jump_config_vip_Activity: {},
|
| xqd
@@ -250,10 +249,8 @@
|
|
|
return;
|
|
|
}
|
|
|
this.videoContext = uni.createVideoContext('myVideo')
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
- onLoad(op) {
|
|
|
+ onLoad(op) {
|
|
|
this.activity_project_id = op.id
|
|
|
this.getDetail(op.id)
|
|
|
this.admin = this.$store.getters.userInfo
|
| xqd
@@ -326,47 +323,47 @@
|
|
|
activity_project_id: id
|
|
|
}).then(res => {
|
|
|
// console.log(res, "detail")
|
|
|
- if (res.code == 0) {
|
|
|
- this.voteDetail = res.data
|
|
|
- uni.getStorage({
|
|
|
- key: `is_vip_${this.voteDetail.id}`,
|
|
|
- success: (data)=> {
|
|
|
- this.is_vip = data.data === 1 ? true : false
|
|
|
- },
|
|
|
- fail:()=>{
|
|
|
- this.is_vip = false;
|
|
|
- }
|
|
|
- });
|
|
|
+ // if (res.code == 0) {
|
|
|
+ // this.voteDetail = res.data
|
|
|
+ // uni.getStorage({
|
|
|
+ // key: `is_vip_${this.voteDetail.id}`,
|
|
|
+ // success: (data)=> {
|
|
|
+ // this.is_vip = data.data === 1 ? true : false
|
|
|
+ // },
|
|
|
+ // fail:()=>{
|
|
|
+ // this.is_vip = false;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
- this.startTime = res.data.activity.start_time.replace(/-/g, "/")
|
|
|
- // “yyyy-MM-dd-hh-mm-ss”.replace(/-/g,"/")
|
|
|
- this.endTime = res.data.activity.end_time.replace(/-/g, "/")
|
|
|
- this.cancelTime(this.startTime, this.endTime)
|
|
|
- //活动可以使用的投票数
|
|
|
- this.userCanVoteNum = res.data.user_can_vote_num
|
|
|
- if (this.userCanVoteNum > 0) {
|
|
|
- this.isVoteNum = true
|
|
|
- } else {
|
|
|
- this.isVoteNum = false
|
|
|
- }
|
|
|
- callback && callback()
|
|
|
- this.sourceId = res.data.id
|
|
|
- //跳转vip小程序获得投票数
|
|
|
- this.vipRewardTicketNum = res.data.activity.vip_reward_ticket_num
|
|
|
- // this.info =JSON.parse( res.data.img_urls)
|
|
|
- this.info = JSON.parse(res.data.img_urls).map(item => {
|
|
|
- return {
|
|
|
- img: item
|
|
|
- }
|
|
|
- })
|
|
|
- //跳转h5和小程序
|
|
|
- this.jump_type = res.data.jump_type,
|
|
|
- this.jump_config = res.data.jump_config
|
|
|
- //banner展示视频或者图片
|
|
|
- this.resource_type = res.data.resource_type
|
|
|
- this.video_url = res.data.video_url
|
|
|
- //视频自动播放
|
|
|
- this.openVideoPlay()
|
|
|
+ // this.startTime = res.data.activity.start_time.replace(/-/g, "/")
|
|
|
+ // // “yyyy-MM-dd-hh-mm-ss”.replace(/-/g,"/")
|
|
|
+ // this.endTime = res.data.activity.end_time.replace(/-/g, "/")
|
|
|
+ // this.cancelTime(this.startTime, this.endTime)
|
|
|
+ // //活动可以使用的投票数
|
|
|
+ // this.userCanVoteNum = res.data.user_can_vote_num
|
|
|
+ // if (this.userCanVoteNum > 0) {
|
|
|
+ // this.isVoteNum = true
|
|
|
+ // } else {
|
|
|
+ // this.isVoteNum = false
|
|
|
+ // }
|
|
|
+ // callback && callback()
|
|
|
+ // this.sourceId = res.data.id
|
|
|
+ // //跳转vip小程序获得投票数
|
|
|
+ // this.vipRewardTicketNum = res.data.activity.vip_reward_ticket_num
|
|
|
+ // // this.info =JSON.parse( res.data.img_urls)
|
|
|
+ // this.info = JSON.parse(res.data.img_urls).map(item => {
|
|
|
+ // return {
|
|
|
+ // img: item
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // //跳转h5和小程序
|
|
|
+ // this.jump_type = res.data.jump_type,
|
|
|
+ // this.jump_config = res.data.jump_config
|
|
|
+ // //banner展示视频或者图片
|
|
|
+ // this.resource_type = res.data.resource_type
|
|
|
+ // this.video_url = res.data.video_url
|
|
|
+ // //视频自动播放
|
|
|
+ // this.openVideoPlay()
|
|
|
//海报图片
|
|
|
// this.posterData.mainImg = res.data.share_img
|
|
|
// this.codeImg = res.data.qrcode_url
|
| xqd
@@ -863,15 +860,15 @@
|
|
|
.img {
|
|
|
margin-left: 48rpx;
|
|
|
width: 544rpx;
|
|
|
- height: 440rpx;
|
|
|
+ height: 306rpx;
|
|
|
background: $bgColor;
|
|
|
border-radius: 12rpx;
|
|
|
@include flexlayout();
|
|
|
margin-bottom: 32rpx;
|
|
|
|
|
|
image {
|
|
|
- width: 420rpx;
|
|
|
- height: 440rpx;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
border-radius: 12rpx;
|
|
|
}
|
|
|
}
|