Commit 9b1d553f authored by LiZongLin's avatar LiZongLin

合并冲突

parents 15d9d07f 415dd752
...@@ -87,13 +87,13 @@ ...@@ -87,13 +87,13 @@
}, },
onLoad() { onLoad() {
this.login() this.login()
this.getList() // this.getList()
}, },
// created() { created() {
// uni.setStorageSync("title", '赛事活动') // uni.setStorageSync("title", '赛事活动')
// this.getList() // this.getList()
// this.getList() this.getList()
// }, },
onShow() { onShow() {
console.log('onShow') console.log('onShow')
this.getList() this.getList()
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
overflow-x:hidden; overflow-x:hidden;
.activity_item { .activity_item {
margin: 20rpx 20rpx 20rpx 20rpx; margin: 30rpx 30rpx 30rpx 30rpx;
height: 100%; height: 100%;
// width: 706rpx; // width: 706rpx;
background: #ffffff; background: #ffffff;
...@@ -229,10 +229,10 @@ ...@@ -229,10 +229,10 @@
.image-status { .image-status {
// justify-content: end; // justify-content: end;
position: absolute; position: absolute;
padding-left: 87%; padding-left: 86%;
top: -5rpx; top: 0rpx;
width: 105rpx; width: 98rpx;
height: 105rpx; height: 98rpx;
z-index: 99; z-index: 99;
// margin-left: 128rpx; // margin-left: 128rpx;
} }
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
height: 77rpx; height: 77rpx;
opacity: 0.6; opacity: 0.6;
background: #000000; background: #000000;
top: -90rpx; top: -80rpx;
z-index: 9; z-index: 9;
font-size: 18px; font-size: 18px;
font-weight: 500; font-weight: 500;
......
...@@ -115,14 +115,20 @@ ...@@ -115,14 +115,20 @@
signupId: null, signupId: null,
} }
}, },
// onLaunch(){
// this.getList(this.activityId)
// },
onLoad(options) { onLoad(options) {
console.log('onLoad')
this.activityId =Number.parseInt(options.activity_id) this.activityId =Number.parseInt(options.activity_id)
console.log(this.activityId)
this.getList(this.activityId) this.getList(this.activityId)
}, },
onShow() { // onShow() {
console.log('onShow') // console.log('onShow')
this.getList(this.activityId) // this.getList(this.activityId)
}, // },
filters: { filters: {
ellipsis(value){ ellipsis(value){
if (!value) return ''; if (!value) return '';
...@@ -139,6 +145,7 @@ ...@@ -139,6 +145,7 @@
methods:{ methods:{
getList(activityId){ getList(activityId){
getActivity(activityId).then(response=>{ getActivity(activityId).then(response=>{
console.log(response)
this.activityObject = response.data this.activityObject = response.data
this.activityObject.detail = this.activityObject.detail.replace(/src="/,`src="https://www.aiwanyundong.com`) this.activityObject.detail = this.activityObject.detail.replace(/src="/,`src="https://www.aiwanyundong.com`)
console.log(this.activityObject) console.log(this.activityObject)
...@@ -249,6 +256,18 @@ ...@@ -249,6 +256,18 @@
}, },
//立即报名 //立即报名
immedSignIn(){ immedSignIn(){
var signInSum = 0
var limitSum = 0
for (var i = 0; i < this.activityObject.tjtActivityProjectVoList.length; i++) {
signInSum = signInSum + this.activityObject.tjtActivityProjectVoList[i].projectSignupNum
}
for (var i = 0; i < this.activityObject.tjtActivityProjectVoList.length; i++) {
limitSum = limitSum + this.activityObject.tjtActivityProjectVoList[i].limitPeople
}
console.log(signInSum)
console.log(limitSum)
if(signInSum === limitSum)
return uni.$showMsg('报名人数已满1!')
if (this.activityObject.activityStatus === '2') { if (this.activityObject.activityStatus === '2') {
return uni.$showMsg('活动已结束!') return uni.$showMsg('活动已结束!')
} }
...@@ -337,7 +356,7 @@ ...@@ -337,7 +356,7 @@
height: 77rpx; height: 77rpx;
opacity: 0.6; opacity: 0.6;
background: #000000; background: #000000;
top: -90rpx; top: -82rpx;
z-index: 9; z-index: 9;
font-size: 18px; font-size: 18px;
font-weight: 500; font-weight: 500;
......
...@@ -212,7 +212,7 @@ import { ...@@ -212,7 +212,7 @@ import {
if(this.projectIndex===this.projectList.length) if(this.projectIndex===this.projectList.length)
return '' return ''
else else
return this.projectSignupNum + '人/' + this.limitPeople + '人' return this.projectSignupNum + '/' + this.limitPeople
} }
}, },
methods: { methods: {
...@@ -241,39 +241,40 @@ import { ...@@ -241,39 +241,40 @@ import {
return uni.$showMsg('报名人数已满!') return uni.$showMsg('报名人数已满!')
} }
if(this.projectFee !== 0){ if(this.projectFee !== 0){
this.info.status = '0'
addsignInInfo(this.info).then(response=>{ addsignInInfo(this.info).then(response=>{
console.log(response) console.log(response)
if(response.code === 500) if(response.data.status ==='1')
return uni.$showMsg(response.msg) return uni.$showMsg(response.msg)
this.orderVo.signupId = response.data this.orderVo.signupId = response.data.signupId
this.orderVo.wechatId = this.info.wechatId this.orderVo.wechatId = this.info.wechatId
// if(response.code === 200){ if(response.data.status === '0'){
// addUnifiedOrder(this.orderVo).then(response =>{ addUnifiedOrder(this.orderVo).then(response =>{
// console.log(response) console.log(response)
// uni.requestPayment({ uni.requestPayment({
// provider:'wxpay', provider:'wxpay',
// timeStamp: response.data.timeStamp, timeStamp: response.data.timeStamp,
// nonceStr: response.data.nonceStr, nonceStr: response.data.nonceStr,
// package: response.data.package, package: response.data.package,
// signType: response.data.signType, signType: response.data.signType,
// paySign: response.data.paySign, paySign: response.data.paySign,
// success:function(res){ success:function(res){
// console.log('success'+ JSON.stringify(res)) console.log('success'+ JSON.stringify(res))
// uni.showLoading({ uni.showLoading({
// title: '报名成功!', title: '报名成功!',
// }) })
// setTimeout(() => { setTimeout(() => {
// uni.navigateBack({ uni.navigateBack({
// delta: 1 delta: 1
// }); });
// }, 1000); }, 1000);
// }, },
// fail: function (err) { fail: function (err) {
// console.log('fail:' + JSON.stringify(err)); console.log('fail:' + JSON.stringify(err));
// } }
// }) })
// }) })
// } }
}) })
}else{ }else{
this.info.status = '1' this.info.status = '1'
......
...@@ -54,12 +54,12 @@ ...@@ -54,12 +54,12 @@
contentFlag: false, contentFlag: false,
url: '', url: '',
personnel: { personnel: {
consultType:'1', consultType:'',
consultContent: '', consultContent: '',
nickName: '', nickName: '',
phone: '', phone: '',
wechatId: '', wechatId: '',
consult_type : '0' // consult_type : '0'
}, },
rules: { rules: {
// consultContent: { // consultContent: {
...@@ -128,7 +128,8 @@ ...@@ -128,7 +128,8 @@
onLoad(options) { onLoad(options) {
this.personnel.wechatId = this.userInfo.wechatId this.personnel.wechatId = this.userInfo.wechatId
console.log("this.userInfo:", this.userInfo) console.log("this.userInfo:", this.userInfo)
this.url = options.url this.personnel.consultType = options.consultType
console.log("从别的页面传来的consultType--->", this.personnel.consultType)
}, },
onReady() { onReady() {
// 需要在onReady中设置规则 // 需要在onReady中设置规则
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
}, },
messageConsult(e) { messageConsult(e) {
uni.navigateTo({ uni.navigateTo({
url: '/pages_new_media/tity_message_consult/tity_message_consult?url=' + this.url url: '/pages_new_media/tity_message_consult/tity_message_consult?consultType=' + 1
}) })
}, },
......
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