mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 13:09:38 +08:00
1
This commit is contained in:
parent
f94715fb79
commit
616c47b17a
11
miniprogram/api/meeting/meetingRoom.js
Normal file
11
miniprogram/api/meeting/meetingRoom.js
Normal file
@ -0,0 +1,11 @@
|
||||
import {
|
||||
request
|
||||
} from '../selfRequest';
|
||||
|
||||
// 查询条件筛选
|
||||
export function loginRq(param) {
|
||||
return request({
|
||||
url: '/api/roomContent/searchInfo/' + param,
|
||||
method: "get",
|
||||
});
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import {
|
||||
request
|
||||
} from '../../selfRequest';
|
||||
} from '../selfRequest';
|
||||
|
||||
// 微信登录接口
|
||||
export function companyRq(data) {
|
@ -5,7 +5,28 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
IMG_NAME: app.IMG_NAME
|
||||
IMG_NAME: app.IMG_NAME,
|
||||
queryParam: {
|
||||
switchTitle1: '包邮',
|
||||
switchTitle2: '团购',
|
||||
itemTitle: '筛选',
|
||||
meetingTypeDict: {
|
||||
list: [{
|
||||
text: '会议室类型',
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
text: '会议室',
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
text: '茶室',
|
||||
value: 2
|
||||
},
|
||||
],
|
||||
value: 0,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -18,6 +39,16 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
// 查询条件-会议类型
|
||||
meetingTypeQueryChange(e){
|
||||
console.log('meetingTypeQueryChange', e);
|
||||
let queryParam = this.data.queryParam;
|
||||
queryParam.meetingTypeDict.value = e.detail;
|
||||
this.setData({
|
||||
queryParam
|
||||
})
|
||||
},
|
||||
|
||||
// 会议室
|
||||
jumpMeetingRoom() {
|
||||
wx.navigateTo({
|
||||
|
@ -1,5 +1,9 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"van-field": "@vant/weapp/field/index"
|
||||
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
|
||||
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
|
||||
"van-cell": "@vant/weapp/cell/index",
|
||||
"van-switch": "@vant/weapp/switch/index",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
}
|
||||
}
|
@ -1,4 +1,12 @@
|
||||
<view class="container">
|
||||
<view class="containerView public">
|
||||
|
||||
<!-- 筛选条件 -->
|
||||
<view class="queryView">
|
||||
<van-dropdown-menu active-color="#4e96f8">
|
||||
<van-dropdown-item value="{{ queryParam.meetingTypeDict.value }}" options="{{ queryParam.meetingTypeDict.list }}" bind:change="meetingTypeQueryChange"/>
|
||||
</van-dropdown-menu>
|
||||
</view>
|
||||
|
||||
<!-- 会议室列表 -->
|
||||
<view class="meetingRoomView">
|
||||
<view class="meetingRoomItem" bind:tap="jumpMeetingRoom" wx:for="{{6}}" wx:for-index="idx">
|
||||
|
@ -1,10 +1,15 @@
|
||||
.container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: #ffffff;
|
||||
|
||||
.queryView{
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 999;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.meetingRoomView {
|
||||
margin-top: 100rpx;
|
||||
padding: 30rpx 30rpx;
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
let app = getApp();
|
||||
import {
|
||||
companyRq
|
||||
} from "../../../api/meeting/visitorIinvitation/visitorIinvitation.js"
|
||||
} from "../../../api/meeting/visitorIinvitation.js"
|
||||
|
||||
Page({
|
||||
|
||||
/**
|
||||
@ -24,43 +25,92 @@ Page({
|
||||
indexList: ["A", "B", "C", "D"],
|
||||
scrollTop: 0,
|
||||
/** mock客户数据*/
|
||||
customerList: [
|
||||
{
|
||||
customerList: [{
|
||||
firstLetter: "A",
|
||||
list: [
|
||||
{ code: "AB01", name: "A1客户" },
|
||||
{ code: "AB02", name: "A2客户" },
|
||||
{ code: "AB03", name: "A3客户" },
|
||||
list: [{
|
||||
code: "AB01",
|
||||
name: "A1客户"
|
||||
},
|
||||
{
|
||||
code: "AB02",
|
||||
name: "A2客户"
|
||||
},
|
||||
{
|
||||
code: "AB03",
|
||||
name: "A3客户"
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
firstLetter: "B",
|
||||
list: [
|
||||
{ code: "BB01", name: "B1客户" },
|
||||
{ code: "BB02", name: "B2客户" },
|
||||
{ code: "BB03", name: "B3客户" },
|
||||
{ code: "BB04", name: "B4客户" },
|
||||
list: [{
|
||||
code: "BB01",
|
||||
name: "B1客户"
|
||||
},
|
||||
{
|
||||
code: "BB02",
|
||||
name: "B2客户"
|
||||
},
|
||||
{
|
||||
code: "BB03",
|
||||
name: "B3客户"
|
||||
},
|
||||
{
|
||||
code: "BB04",
|
||||
name: "B4客户"
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
firstLetter: "C",
|
||||
list: [
|
||||
{ code: "CB01", name: "C1客户" },
|
||||
{ code: "CB02", name: "C2客户" },
|
||||
{ code: "CB03", name: "C3客户" },
|
||||
{ code: "CB04", name: "C4客户" },
|
||||
{ code: "CB05", name: "C5客户" },
|
||||
list: [{
|
||||
code: "CB01",
|
||||
name: "C1客户"
|
||||
},
|
||||
{
|
||||
code: "CB02",
|
||||
name: "C2客户"
|
||||
},
|
||||
{
|
||||
code: "CB03",
|
||||
name: "C3客户"
|
||||
},
|
||||
{
|
||||
code: "CB04",
|
||||
name: "C4客户"
|
||||
},
|
||||
{
|
||||
code: "CB05",
|
||||
name: "C5客户"
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
firstLetter: "D",
|
||||
list: [
|
||||
{ code: "DB01", name: "D1客户" },
|
||||
{ code: "DB02", name: "D2客户" },
|
||||
{ code: "DB03", name: "D3客户" },
|
||||
{ code: "DB04", name: "D4客户" },
|
||||
{ code: "DB05", name: "D5客户" },
|
||||
{ code: "DB06", name: "D6客户" },
|
||||
list: [{
|
||||
code: "DB01",
|
||||
name: "D1客户"
|
||||
},
|
||||
{
|
||||
code: "DB02",
|
||||
name: "D2客户"
|
||||
},
|
||||
{
|
||||
code: "DB03",
|
||||
name: "D3客户"
|
||||
},
|
||||
{
|
||||
code: "DB04",
|
||||
name: "D4客户"
|
||||
},
|
||||
{
|
||||
code: "DB05",
|
||||
name: "D5客户"
|
||||
},
|
||||
{
|
||||
code: "DB06",
|
||||
name: "D6客户"
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
@ -177,18 +227,29 @@ Page({
|
||||
});
|
||||
},
|
||||
afterRead(event) {
|
||||
const { file } = event.detail;
|
||||
const {
|
||||
file
|
||||
} = event.detail;
|
||||
// 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
|
||||
wx.uploadFile({
|
||||
url: 'https://example.weixin.qq.com/upload', // 仅为示例,非真实的接口地址
|
||||
filePath: file.url,
|
||||
name: 'file',
|
||||
formData: { user: 'test' },
|
||||
formData: {
|
||||
user: 'test'
|
||||
},
|
||||
success(res) {
|
||||
// 上传完成需要更新 fileList
|
||||
const { fileList = [] } = this.data;
|
||||
fileList.push({ ...file, url: res.data });
|
||||
this.setData({ fileList });
|
||||
const {
|
||||
fileList = []
|
||||
} = this.data;
|
||||
fileList.push({
|
||||
...file,
|
||||
url: res.data
|
||||
});
|
||||
this.setData({
|
||||
fileList
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user