Commit e032cb69 authored by 王宝峰's avatar 王宝峰

Merge branch 'dev' of http://gitlab.91isoft.com:90/wyf/tjty-app into dev

parents 8dd4b4f6 a4ef38d3
...@@ -76,4 +76,14 @@ export function addUnifiedOrder(orderVo) { ...@@ -76,4 +76,14 @@ export function addUnifiedOrder(orderVo) {
method: 'post', method: 'post',
data: orderVo data: orderVo
}) })
}
//微信支付回调下
export function addUnifiedOrderWx(orderVo) {
return request({
url: 'http://bin001.free.idcfengye.com/dealFlow/stream/wxPayNotify',
method: 'post',
data: orderVo
})
} }
\ No newline at end of file
...@@ -220,8 +220,8 @@ ...@@ -220,8 +220,8 @@
.image { .image {
position: absolute; position: absolute;
border-top-left-radius: 15rpx; border-top-left-radius: 30rpx;
border-top-right-radius: 15rpx; border-top-right-radius: 30rpx;
height: 400rpx; height: 400rpx;
width: 100%; width: 100%;
} }
...@@ -230,6 +230,7 @@ ...@@ -230,6 +230,7 @@
// justify-content: end; // justify-content: end;
position: absolute; position: absolute;
padding-left: 86%; padding-left: 86%;
// right: 0.01rpx;
top: 0rpx; top: 0rpx;
width: 98rpx; width: 98rpx;
height: 98rpx; height: 98rpx;
......
...@@ -104,6 +104,8 @@ ...@@ -104,6 +104,8 @@
export default { export default {
data() { data() {
return { return {
//加载一次导航
isGoNavigate: false,
activityId: null, activityId: null,
wechatId: 1, wechatId: 1,
activityObject:{}, activityObject:{},
...@@ -122,6 +124,7 @@ ...@@ -122,6 +124,7 @@
onLoad(options) { onLoad(options) {
console.log('onLoad') console.log('onLoad')
this.activityId =Number.parseInt(options.activity_id) this.activityId =Number.parseInt(options.activity_id)
this.isGoNavigate = true
console.log(this.activityId) console.log(this.activityId)
this.getList(this.activityId) this.getList(this.activityId)
}, },
...@@ -264,39 +267,21 @@ ...@@ -264,39 +267,21 @@
for (var i = 0; i < this.activityObject.tjtActivityProjectVoList.length; i++) { for (var i = 0; i < this.activityObject.tjtActivityProjectVoList.length; i++) {
limitSum = limitSum + this.activityObject.tjtActivityProjectVoList[i].limitPeople limitSum = limitSum + this.activityObject.tjtActivityProjectVoList[i].limitPeople
} }
console.log(signInSum)
console.log(limitSum)
if(signInSum === limitSum) if(signInSum === limitSum)
return uni.$showMsg('报名人数已满1!') return uni.$showMsg('报名人数已满!')
if (this.activityObject.activityStatus === '2') { if (this.activityObject.activityStatus === '2') {
return uni.$showMsg('活动已结束!') return uni.$showMsg('活动已结束!')
} }
// let signupTime = Date.parse(this.activityObject.signupTime)
// console.log('signupTime'+signupTime)
// console.log('now'+Date.parse(new Date))
// if(signupTime <= Date.parse(new Date)){
// return uni.$showMsg('报名已结束!')}
console.log(Date.parse(this.activityObject.signupTime))
console.log(Date.parse(new Date()))
if (Date.parse(this.activityObject.signupTime.replace(/-/g, '/')) < Date.parse(new Date())) { if (Date.parse(this.activityObject.signupTime.replace(/-/g, '/')) < Date.parse(new Date())) {
return wx.showToast({ return uni.$showMsg('报名已结束!')}
title: '报名已结束!',
icon: 'none',
duration: 2000})
}
else{
uni.navigateTo({
url: '/pages_activity/activity_immedSignIn/activity_immedSignIn?activity_id=' + this.activityId
})
}
if(Date.parse(this.activityObject.activityEnd.replace(/-/g, '/'))< new Date()){ if(Date.parse(this.activityObject.activityEnd.replace(/-/g, '/'))< new Date()){
return uni.$showMsg('报名已结束!')} return uni.$showMsg('报名已结束!')}
else{
uni.navigateTo({ uni.navigateTo({
url: '/pages_activity/activity_immedSignIn/activity_immedSignIn?activity_id=' + this.activityId url: '/pages_activity/activity_immedSignIn/activity_immedSignIn?activity_id=' + this.activityId
}) })
} this.isGoNavigate = false
}, },
} }
} }
......
...@@ -59,7 +59,7 @@ import { ...@@ -59,7 +59,7 @@ import {
mapState mapState
} from 'vuex' } from 'vuex'
import { import {
getProjectInfo,addsignInInfo,addUnifiedOrder getProjectInfo,addsignInInfo,addUnifiedOrder,addUnifiedOrderWx
} from "@/api/activity.js"; } from "@/api/activity.js";
export default { export default {
data() { data() {
...@@ -243,12 +243,11 @@ import { ...@@ -243,12 +243,11 @@ import {
if(this.projectFee !== 0){ if(this.projectFee !== 0){
this.info.status = '0' this.info.status = '0'
addsignInInfo(this.info).then(response=>{ addsignInInfo(this.info).then(response=>{
console.log(response) console.log(response) //存在的话就返回报错
if(response.data.status ==='1') if(response.data.code === 500)
return uni.$showMsg(response.msg) return uni.$showMsg(response.msg)
this.orderVo.signupId = response.data.signupId this.orderVo.signupId = response.data.signupId
this.orderVo.wechatId = this.info.wechatId this.orderVo.wechatId = this.info.wechatId
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({
...@@ -274,7 +273,7 @@ import { ...@@ -274,7 +273,7 @@ import {
} }
}) })
}) })
}
}) })
}else{ }else{
this.info.status = '1' this.info.status = '1'
......
...@@ -15,11 +15,9 @@ ...@@ -15,11 +15,9 @@
</view> </view>
<noData v-if="!customerListLength" :style="fullHeight"></noData> <noData v-if="!customerListLength" :style="fullHeight"></noData>
<!-- 选项卡内容轮播滑动显示,current为当前第几个swiper子项 --> <!-- 选项卡内容轮播滑动显示,current为当前第几个swiper子项 -->
<!-- <swiper @change="change" :current="isActive" class="swiper-content" :style="fullHeight" <swiper @change="change" :current="isActive" class="swiper-content" :style="fullHeight"
v-if="customerList.length !== 0"> v-if="customerList.length !== 0">
<swiper-item class="swiperitem-content"> --> <swiper-item class="swiperitem-content" @touchmove.stop="stopTouchMove">
<view class="swiper-content" :style="fullHeight" v-if="customerList.length !== 0">
<view class="swiperitem-content">
<scroll-view scroll-y style="height: 100%;" @scrolltolower="lowerBottom" lower-threshold="150px" <scroll-view scroll-y style="height: 100%;" @scrolltolower="lowerBottom" lower-threshold="150px"
refresher-enabled="true" @refresherrefresh="refresh" :refresher-triggered="triggered"> refresher-enabled="true" @refresherrefresh="refresh" :refresher-triggered="triggered">
<view class="nav_item"> <view class="nav_item">
...@@ -34,11 +32,8 @@ ...@@ -34,11 +32,8 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
</view> </swiper-item>
</view> </swiper>
<!-- </swiper-item>
</swiper> -->
<view class="nav_item_bottom"> <view class="nav_item_bottom">
<button style="background-color:#3b7cde; color:white;" @click="goPhoneBtn(phoneNumber)">咨询电话</button> <button style="background-color:#3b7cde; color:white;" @click="goPhoneBtn(phoneNumber)">咨询电话</button>
<button type="primary" @click="gotoMessageConsult">留言咨询</button> <button type="primary" @click="gotoMessageConsult">留言咨询</button>
...@@ -158,6 +153,10 @@ ...@@ -158,6 +153,10 @@
} }
}); });
}, },
//限制页面左右滑动
stopTouchMove() {
return true
},
//留言咨询 //留言咨询
gotoMessageConsult() { gotoMessageConsult() {
console.log("准备进入到留言咨询。。。。") console.log("准备进入到留言咨询。。。。")
...@@ -357,7 +356,7 @@ ...@@ -357,7 +356,7 @@
min-height: calc(100% - 10%); min-height: calc(100% - 10%);
padding: 5rpx; padding: 5rpx;
height: auto; height: auto;
padding-bottom: 20%; padding-bottom: 35%;
.customer-item { .customer-item {
margin: 20rpx 5%; margin: 20rpx 5%;
......
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