|
@@ -91,7 +91,7 @@
|
|
|
<view class="title">活动详情</view>
|
|
|
<view class="line">
|
|
|
<view class="lineLeft">
|
|
|
- <span class="linexx">*</span> <span>活动说明</span>
|
|
|
+ <span>活动说明</span>
|
|
|
</view>
|
|
|
<view class="lineRight">
|
|
|
<textarea placeholder-class="inputPlace" v-model="activityContent" placeholder="请输入" class="textsr"/>
|
|
@@ -114,19 +114,19 @@
|
|
|
<view class="lineLeft">
|
|
|
<span>音乐</span>
|
|
|
</view>
|
|
|
- <view class="lineRight musicRight">
|
|
|
+ <view class="lineRight musicRight" @click="goMusic">
|
|
|
<view class="musicMS">选择/更换音乐</view>
|
|
|
<img src="../../static/img/jt.png" alt="" class="musicJt">
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="musicBox">
|
|
|
- <view class="musicLine" v-for="(item,index) in 3">
|
|
|
+ <view class="musicBox" v-if="ckMusic">
|
|
|
+ <view class="musicLine">
|
|
|
<view class="musicLineLeft">
|
|
|
<img src="../../static/img/music.png" alt="" class="musicImg">
|
|
|
- <view class="musicName">Young For You - GALA.mp3</view>
|
|
|
+ <view class="musicName">{{ckMusic.name}}</view>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <img src="../../static/img/sanchu.png" alt="" class="musicDel">
|
|
|
+ <img src="../../static/img/sanchu.png" alt="" class="musicDel" @click="musicDel">
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -160,6 +160,7 @@
|
|
|
clWhereString:'',
|
|
|
imgListArr:[],
|
|
|
money:'',
|
|
|
+ ckMusic:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
@@ -167,17 +168,67 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
const shopckList = uni.getStorageSync("shopckList");
|
|
|
+ this.ckMusic=uni.getStorageSync("ckmusic")
|
|
|
+ if(this.ckMusic){
|
|
|
+ this.music=this.ckMusic.id
|
|
|
+ }
|
|
|
var shopNames=[];
|
|
|
var shopList=[];
|
|
|
- shopckList.forEach(item=>{
|
|
|
- shopNames.push(item.shopName)
|
|
|
- shopList.push(item.id)
|
|
|
- })
|
|
|
- this.shopNames=shopNames.join(',')
|
|
|
- this.shopList=shopList.join(',')
|
|
|
+ if(shopckList){
|
|
|
+ shopckList.forEach(item=>{
|
|
|
+ shopNames.push(item.shopName)
|
|
|
+ shopList.push(item.id)
|
|
|
+ })
|
|
|
+ this.shopNames=shopNames.join(',')
|
|
|
+ this.shopList=shopList.join(',')
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
preview(){
|
|
|
+ if(this.activityName==''){
|
|
|
+ uni.showToast({
|
|
|
+ title: '请输入活动名称',
|
|
|
+ icon:'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }else if(!this.startTime||!this.endTime){
|
|
|
+ uni.showToast({
|
|
|
+ title: '请选择报名时间',
|
|
|
+ icon:'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }else if(this.shopList==''){
|
|
|
+ uni.showToast({
|
|
|
+ title: '请选择活动门店',
|
|
|
+ icon:'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }else if(this.clWhere==''){
|
|
|
+ uni.showToast({
|
|
|
+ title: '请选择报名凭证',
|
|
|
+ icon:'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }else if(this.number==''){
|
|
|
+ uni.showToast({
|
|
|
+ title: '请输入最多报名人数',
|
|
|
+ icon:'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }else if(this.money==''){
|
|
|
+ uni.showToast({
|
|
|
+ title: '请输入支付金额',
|
|
|
+ icon:'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
var editdata={
|
|
|
id:this.id,
|
|
|
activityName:this.activityName,
|
|
@@ -210,6 +261,16 @@
|
|
|
url:'ckshop'
|
|
|
})
|
|
|
},
|
|
|
+ goMusic(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'ckmusic'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ musicDel(){
|
|
|
+ this.music='';
|
|
|
+ this.ckMusic=''
|
|
|
+ uni.removeStorageSync('ckmusic');
|
|
|
+ },
|
|
|
bindTimeChangeStart(e){
|
|
|
console.log(e)
|
|
|
this.startTime=e.detail.value;
|
|
@@ -296,6 +357,7 @@
|
|
|
}
|
|
|
.musicName{
|
|
|
color: #3C3C3C;font-size: 24rpx;
|
|
|
+ padding-left: 10rpx;
|
|
|
}
|
|
|
.musicLineLeft{
|
|
|
display: flex;
|