|
@@ -1,18 +1,18 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
<view class="top">
|
|
|
- <img :src="info.img" alt="" class="topimg">
|
|
|
+ <img :src="img" alt="" class="topimg">
|
|
|
</view>
|
|
|
<view class="cont">
|
|
|
<view class="name">{{info.activityName}}</view>
|
|
|
- <view class="name2">{{info.startTime.slice(0,10)}}~{{info.endTime.slice(0,10)}}</view>
|
|
|
+ <view class="name2" v-if="info.startTime">{{info.startTime.slice(0,10)}}~{{info.endTime.slice(0,10)}}</view>
|
|
|
<view class="name3">{{info.activityContent}}</view>
|
|
|
</view>
|
|
|
<view class="shopBox">
|
|
|
<view class="shopBoxTop">
|
|
|
<view class="shopMs">活动门店</view>
|
|
|
<view class="shopTy" @click="showuse">
|
|
|
- <view class="shopTyTxt">{{shopNum}}家门店通用</view>
|
|
|
+ <view class="shopTyTxt">{{shopckList.length}}家门店通用</view>
|
|
|
<img src="../../static/img/jt2.png" alt="" class="shopjt">
|
|
|
</view>
|
|
|
</view>
|
|
@@ -36,10 +36,10 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
- <view class="detailBOx" v-if="info.imgList">
|
|
|
+ <view class="detailBOx" v-if="imgListArr">
|
|
|
<view class="detailTitle">活动详情</view>
|
|
|
- <view class="detailImgBox" v-for="(item,index) in info.imgList.split(',')">
|
|
|
- <img :src="item" alt="" class="detailImg">
|
|
|
+ <view class="detailImgBox" v-for="(item,index) in imgListArr">
|
|
|
+ <img :src="item.img" alt="" class="detailImg">
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -105,19 +105,24 @@
|
|
|
bgmMusic:'',
|
|
|
payshow:false,
|
|
|
mp3Url:'',
|
|
|
+ id:'',
|
|
|
+ img:'',
|
|
|
+ imgListArr:''
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
- if(opt.type==1){
|
|
|
- this.type=1;
|
|
|
- this.info = uni.getStorageSync("editdata");
|
|
|
- this.shopNum=this.info.shopList.split(',').length
|
|
|
- uni.setNavigationBarTitle({
|
|
|
- title:this.info.activityName
|
|
|
- })
|
|
|
- }
|
|
|
- this.getShopinfo()
|
|
|
- this.shopckList= uni.getStorageSync("shopckList");
|
|
|
+ // if(opt.type==1){
|
|
|
+ // this.type=1;
|
|
|
+ // this.info = uni.getStorageSync("editdata");
|
|
|
+ // this.shopNum=this.info.shopList.split(',').length
|
|
|
+ // uni.setNavigationBarTitle({
|
|
|
+ // title:this.info.activityName
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+
|
|
|
+ this.id=opt.id;
|
|
|
+ this.getDetails()
|
|
|
+ /* this.shopckList= uni.getStorageSync("shopckList");
|
|
|
this.ckmusic=uni.getStorageSync("ckmusic");
|
|
|
if(this.ckmusic){
|
|
|
this.mp3Url=this.ckmusic.music;
|
|
@@ -133,7 +138,7 @@
|
|
|
console.log(res.errMsg);
|
|
|
console.log(res.errCode);
|
|
|
});
|
|
|
- }
|
|
|
+ } */
|
|
|
|
|
|
//console.log(this.bgmMusic)
|
|
|
|
|
@@ -142,6 +147,49 @@
|
|
|
this.bgmMusic.stop()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getDetails(){
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
+ this.$http('openH5SetTheGuest/getAtivityDetails', {
|
|
|
+ id:this.id
|
|
|
+ },'GET').then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ this.info=res.data.data
|
|
|
+ // this.activityName=jkdata.activityName;
|
|
|
+ // this.activityContent=jkdata.activityContent;
|
|
|
+ // this.money=jkdata.money;
|
|
|
+ // this.number=jkdata.number;
|
|
|
+
|
|
|
+ // this.clWhereString=jkdata.clWhere;
|
|
|
+ // this.clWhereList=this.clWhereString.split(',');
|
|
|
+ // this.startTime=jkdata.startTime.slice(0,10);
|
|
|
+ // this.endTime=jkdata.endTime.slice(0,10);
|
|
|
+ // this.payType=jkdata.payType;
|
|
|
+ this.img=res.data.img.img;
|
|
|
+ /* if(res.data.imgList){
|
|
|
+ res.data.imgList.forEach(item=>{
|
|
|
+ this.imgListArr.push(item.img)
|
|
|
+ })
|
|
|
+ } */
|
|
|
+ this.imgListArr=res.data.imgList
|
|
|
+ this.shopckList=res.data.shopList;
|
|
|
+ console.log()
|
|
|
+ this.getShopinfo()
|
|
|
+
|
|
|
+ this.ckMusic=res.data.selectedMusic;
|
|
|
+ if(this.ckMusic){
|
|
|
+ this.music=this.ckMusic.id;
|
|
|
+
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ //console.log(this.imgListArr)
|
|
|
+
|
|
|
+ //this.list=res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
play2(){
|
|
|
this.bgmMusic.play();
|
|
|
this.payshow=false;
|