|
|
@ -103,7 +103,9 @@ |
|
|
|
<uv-icon name="close" color="#fff" @click="$refs.popup.close();"></uv-icon> |
|
|
|
</view> |
|
|
|
<view class="popup-list"> |
|
|
|
<view class="list-item" v-for="(item,i) in typeList" :key="i" @click="chooseClick(item,i)"> |
|
|
|
<view class="list-item" |
|
|
|
v-for="(item,i) in typeList" :key="i" |
|
|
|
@click="chooseClick(item,i)"> |
|
|
|
<view class="item-l" :class="chooseIndex == i ? 'chooose-class' : ''"> |
|
|
|
<view>{{item.name}}</view> |
|
|
|
<view class="item-l-val">¥{{item.price}}</view> |
|
|
@ -141,18 +143,18 @@ |
|
|
|
numValue:0, |
|
|
|
ewmImg:'', |
|
|
|
typeList:[ |
|
|
|
{ |
|
|
|
name:'早鸟票', |
|
|
|
price:168 |
|
|
|
}, |
|
|
|
{ |
|
|
|
name:'单人票', |
|
|
|
price:198.01 |
|
|
|
}, |
|
|
|
{ |
|
|
|
name:'尊享票', |
|
|
|
price:268 |
|
|
|
} |
|
|
|
// { |
|
|
|
// name:'早鸟票', |
|
|
|
// price: 0 |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name:'单人票', |
|
|
|
// price: 0 |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name:'尊享票', |
|
|
|
// price: 0 |
|
|
|
// } |
|
|
|
], |
|
|
|
activityId:'', |
|
|
|
isCollect : false, |
|
|
@ -193,9 +195,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: function(res) { |
|
|
|
|
|
|
|
console.log("失败", res) |
|
|
|
|
|
|
|
console.log("失败", res) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -230,14 +230,42 @@ |
|
|
|
} |
|
|
|
this.$api('activityInfo', data,res=> { |
|
|
|
if(res.code==200) { |
|
|
|
|
|
|
|
let adminUser = res.result.adminUser || {} |
|
|
|
|
|
|
|
this.activityDetails = res.result.activityInfo |
|
|
|
this.numValue = res.result.adminUser.num |
|
|
|
this.ewmImg = res.result.adminUser.img |
|
|
|
this.numValue = adminUser.num |
|
|
|
this.ewmImg = adminUser.img |
|
|
|
this.adminUserInfo = res.result.adminUserInfo |
|
|
|
this.isCollect = res.result.collect |
|
|
|
this.typeList[0].price = res.result.activityInfo.birdPrice; |
|
|
|
this.typeList[1].price = res.result.activityInfo.personPrice; |
|
|
|
this.typeList[2].price = res.result.activityInfo.expensivePrice; |
|
|
|
|
|
|
|
this.typeList = [] |
|
|
|
|
|
|
|
if(res.result.activityInfo.birdPrice){ |
|
|
|
this.typeList.push({ |
|
|
|
price : res.result.activityInfo.birdPrice, |
|
|
|
name : '早鸟票', |
|
|
|
type : 0, |
|
|
|
}) |
|
|
|
} |
|
|
|
if(res.result.activityInfo.personPrice){ |
|
|
|
this.typeList.push({ |
|
|
|
price : res.result.activityInfo.personPrice, |
|
|
|
name : '单人票', |
|
|
|
type : 1, |
|
|
|
}) |
|
|
|
} |
|
|
|
if(res.result.activityInfo.expensivePrice){ |
|
|
|
this.typeList.push({ |
|
|
|
price : res.result.activityInfo.expensivePrice, |
|
|
|
name : '尊享票', |
|
|
|
type : 2, |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// this.typeList[0].price = res.result.activityInfo.birdPrice; |
|
|
|
// this.typeList[1].price = res.result.activityInfo.personPrice; |
|
|
|
// this.typeList[2].price = res.result.activityInfo.expensivePrice; |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -264,7 +292,7 @@ |
|
|
|
confirmClick(typePrice) { |
|
|
|
this.$api('createOrder',{ |
|
|
|
id:this.activityId, |
|
|
|
typePrice:typePrice, |
|
|
|
typePrice: this.typeList[typePrice].type, |
|
|
|
type:0 |
|
|
|
},res=>{ |
|
|
|
if(res.code === 200) { |
|
|
|