Commit 178ece16 authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp into master

parents 45dd34c4 f92327d0
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
<view v-if="detailsData && detailsData.ListState==1 && detailsData.EnrollList.length>0"> <view v-if="detailsData && detailsData.ListState==1 && detailsData.EnrollList.length>0">
<view class="box_conent_basic" v-for="(x,y) in detailsData.EnrollList"> <view class="box_conent_basic" v-for="(x,y) in detailsData.EnrollList">
<view class="box_conent_basic_img"> <view class="box_conent_basic_img">
<view class="box_conent_basic_img_t">内容</view> <view class="box_conent_basic_img_t">内容</view>
</view> </view>
<view class="box_conent_basic_c" style="padding: 0 5px;" > <view class="box_conent_basic_c" style="padding: 0 5px;" >
<view class="cans_c"> <view class="cans_c">
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
</view> </view>
</view> </view>
<view v-if='type==1 && detailsData'> <view v-if='detailsData'>
<view class="btn_bm" v-if="detailsData.ListState==1" @click="gosignUp">立即报名</view> <view class="btn_bm" v-if="detailsData.ListState==1" @click="gosignUp">立即报名</view>
<view class="btn_bm" style="background: #CCCCCC;" v-if="detailsData.ListState!=1">报名已截止</view> <view class="btn_bm" style="background: #CCCCCC;" v-if="detailsData.ListState!=1">报名已截止</view>
</view> </view>
...@@ -360,16 +360,13 @@ ...@@ -360,16 +360,13 @@
Id:0, Id:0,
detailsData:null, detailsData:null,
RankList:[], RankList:[],
type:1,//1位列表过来的 2 为自己报名列表过来的
controls:false, controls:false,
showAuth:false, showAuth:false,
u: {} u: {}
} }
}, },
onLoad(options) { onLoad(options) {
// uni.setNavigationBarTitle({
// title: "详情"
// })
uni.setNavigationBarColor({ uni.setNavigationBarColor({
frontColor: '#ffffff', frontColor: '#ffffff',
backgroundColor: '#111111', backgroundColor: '#111111',
...@@ -392,9 +389,6 @@ ...@@ -392,9 +389,6 @@
} }
} }
if(options && options.type){
this.type = options.type
}
}, },
methods:{ methods:{
reloadUserinfo() { reloadUserinfo() {
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
ObjectName:'', ObjectName:'',
show:false, show:false,
companyStatus:0, companyStatus:0,
type:1
} }
}, },
created() { created() {
...@@ -136,7 +136,6 @@ ...@@ -136,7 +136,6 @@
if (option && option.formData) { //解码 if (option && option.formData) { //解码
this.formData = JSON.parse(decodeURIComponent(option.formData)) this.formData = JSON.parse(decodeURIComponent(option.formData))
if(this.formData.ObjectId && this.formData.ObjectId>0){ if(this.formData.ObjectId && this.formData.ObjectId>0){
this.type=2
this.addMsg.Id = this.formData.Id this.addMsg.Id = this.formData.Id
this.addMsg.ListId = this.formData.ListId this.addMsg.ListId = this.formData.ListId
this.addMsg.ObjectType = this.formData.ObjectType this.addMsg.ObjectType = this.formData.ObjectType
...@@ -320,6 +319,7 @@ ...@@ -320,6 +319,7 @@
} }
}) })
console.log('调用接口')
this.addMsg.Content = JSON.stringify(dataList) this.addMsg.Content = JSON.stringify(dataList)
let that = this let that = this
...@@ -338,22 +338,14 @@ ...@@ -338,22 +338,14 @@
title: '申请成功', title: '申请成功',
icon: 'none' icon: 'none'
}) })
setTimeout(() => {
if(that.type==1){ uni.navigateBack({
setTimeout(() => { success: function() {
uni.redirectTo({ beforePage.$vm.getDetails(); // 执行前一个页面的方法
url: "/pages/kotra/billboard/mybillbordList" }
}) });
}, 1000) }, 1000)
}else{
setTimeout(() => {
uni.navigateBack({
success: function() {
beforePage.$vm.getDetails(); // 执行前一个页面的方法
}
});
}, 1000)
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment