列表倒叙 上传凭证 bug修改

This commit is contained in:
fengachen
2021-10-20 13:37:53 +08:00
parent 9e707240f9
commit ec7bbe713f
8 changed files with 100 additions and 74 deletions
+4 -1
View File
@@ -17,7 +17,10 @@ Page({
}) })
let params = { let params = {
pageNo: this.data.pageNo, pageNo: this.data.pageNo,
pageSize: this.data.pageSize pageSize: this.data.pageSize,
// 创建时间倒叙排序
column:'createTime',
order:'desc'
} }
UserApi.committeeList(params).then(res=>{ UserApi.committeeList(params).then(res=>{
if(res.success){ if(res.success){
+4 -1
View File
@@ -12,7 +12,10 @@ Page({
searchParams: { searchParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
companyName: '' companyName: '',
// 创建时间倒叙排序
column:'createTime',
order:'desc'
}, },
// 数据 // 数据
dataSource: [], dataSource: [],
+4 -1
View File
@@ -13,7 +13,10 @@ Page({
meetingStatus: '', // 会议状态 meetingStatus: '', // 会议状态
meetingType: '', // 工作组会议:1 标协会议 2 国际研讨会 3 其他会议 4 分标委会议 5 meetingType: '', // 工作组会议:1 标协会议 2 国际研讨会 3 其他会议 4 分标委会议 5
meetingStartTime: '', // 开始时间 meetingStartTime: '', // 开始时间
meetingEndTime: '' // 结束时间 meetingEndTime: '', // 结束时间
// 创建时间倒叙排序
column: 'createTime',
order: 'desc'
}, },
// 会议筛选参数 // 会议筛选参数
meetingStatus: ['可报名', '未开始', '进行中', '已结束'], meetingStatus: ['可报名', '未开始', '进行中', '已结束'],
@@ -5,7 +5,10 @@ import {
import MeetingApi from '../../assets/js/http/meetingApi' import MeetingApi from '../../assets/js/http/meetingApi'
import signUpApi from '../../assets/js/http/signUp' import signUpApi from '../../assets/js/http/signUp'
import {baseUrl,URL_CONFIG} from '../../assets/js/http/api' import {
baseUrl,
URL_CONFIG
} from '../../assets/js/http/api'
Page({ Page({
/** /**
@@ -50,17 +53,23 @@ Page({
orderCode: this.data.ordeCode, orderCode: this.data.ordeCode,
paymentRecord: this.data.imageIds paymentRecord: this.data.imageIds
} }
if(Array.isArray(this.data.imageIds)){
param.paymentRecord = this.data.imageIds.join(',')
}
signUpApi.uploadPayRecord(param).then(res => { signUpApi.uploadPayRecord(param).then(res => {
console.log(res); console.log(res);
if (res.success) { if (res.success) {
wx.showToast({ wx.showToast({
title: res.message, title: res.message,
icon: "success", icon: "success",
duration: 800, duration: 2000,
}); success(){
wx.navigateBack({ wx.navigateBack({
delta: 1, delta: 1,
}) })
}
});
} else { } else {
wx.showToast({ wx.showToast({
title: res.message, title: res.message,
@@ -78,12 +87,14 @@ Page({
if (res.success) { if (res.success) {
this.setData({ this.setData({
singInPersonInfo: res.result, singInPersonInfo: res.result,
ordeCode:res.result.orderCode ordeCode: res.result.orderCode,
// 这是为了不点击图片上传的bug
imageIds: res.result.paymentRecord.split(',')
}) })
// 已经审核的获取审核凭证的src // 已经审核的获取审核凭证的src
if (res.result.checkResult !== 0) { if (res.result.checkResult !== 0) {
this.setData({ this.setData({
payRecordImgSrc:baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.paymentRecord payRecordImgSrc: baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.paymentRecord,
}) })
} }
console.log(this.data.payRecordImgSrc); console.log(this.data.payRecordImgSrc);
@@ -136,6 +147,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
// 获取上一个页面的会议数据 // 获取上一个页面的会议数据
const meetingInfo = JSON.parse(options.meetingInfo) const meetingInfo = JSON.parse(options.meetingInfo)
console.log(meetingInfo); console.log(meetingInfo);
@@ -170,9 +182,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function () {},
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
@@ -120,9 +120,8 @@
<view class="p-20"> <view class="p-20">
<text class="validate">缴费凭证</text> <text class="validate">缴费凭证</text>
<!-- 未审核的显示 --> <!-- 未审核的显示 -->
<!-- 这里需要处理回显 -->
<view class="payment-text" wx:if="{{singInPersonInfo.checkResult !== 1}}"> <view class="payment-text" wx:if="{{singInPersonInfo.checkResult !== 1}}">
<image-upload bindgetIds='getImagesId' maxLength='1' initImgsList="{{singInPersonInfo.paymentRecord}}"></image-upload> <image-upload bindgetIds='getImagesId' maxLength='1' initImgsList="{{singInPersonInfo.paymentRecord}}" id="img"></image-upload>
</view> </view>
<!-- 审核通过的显示 --> <!-- 审核通过的显示 -->
+4 -1
View File
@@ -23,7 +23,10 @@ Page({
}) })
let params = { let params = {
pageNo: this.data.pageNo, pageNo: this.data.pageNo,
pageSize: this.data.pageSize pageSize: this.data.pageSize,
// 创建时间倒叙排序
column:'createTime',
order:'desc'
} }
UserApi.contractList(params).then(res=>{ UserApi.contractList(params).then(res=>{
if(res.success && res.result.records && res.result.records.length){ if(res.success && res.result.records && res.result.records.length){
+3 -1
View File
@@ -11,7 +11,9 @@ Page({
companyId: '', companyId: '',
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
name: '' name: '',
column:'createTime',
order:'desc'
}, },
// 数据 // 数据
dataSource: [], dataSource: [],
+4 -1
View File
@@ -14,7 +14,10 @@ Page({
needInvoice: '', // 是否需要发票 0 4 needInvoice: '', // 是否需要发票 0 4
pack: '', // 是否打包 0 1 pack: '', // 是否打包 0 1
year: '', // 运行年份 year: '', // 运行年份
particularYear:'',// 资料网元的运行年份 particularYear:'',// 资料网元的运行年份,
// 创建时间倒叙排序
column:'createTime',
order:'desc'
} }
}, },
// 发票改变 // 发票改变