描述:文档修改

This commit is contained in:
SelfRidicule 2024-06-25 17:33:04 +08:00
parent 728538d458
commit e468f7feab
10 changed files with 103 additions and 227 deletions

View File

@ -3,12 +3,12 @@ App({
APPID: 'wx5582a07c1fbbcf06', APPID: 'wx5582a07c1fbbcf06',
APPSECRET: 'ad24130a8919c613efd9538f69abafd3', APPSECRET: 'ad24130a8919c613efd9538f69abafd3',
tenantId : '1', // 地区-郑州 tenantId : '1', // 地区-郑州
// 域名
DOMAIN_NAME_PREFIX: 'https://www.chuangzhikj.com',
// 本地测试 // 本地测试
// DOMAIN_NAME_PREFIX: 'http://192.168.0.11',
// DOMAIN_NAME: 'http://192.168.0.11:9227', //接口域名 // DOMAIN_NAME: 'http://192.168.0.11:9227', //接口域名
// IMG_NAME: 'http://192.168.0.11:9227', // IMG_NAME: 'http://192.168.0.11:9227',
// 生产 // 生产
DOMAIN_NAME_PREFIX: 'https://www.chuangzhikj.com',
DOMAIN_NAME: 'https://www.chuangzhikj.com/saas-ics', //接口域名 DOMAIN_NAME: 'https://www.chuangzhikj.com/saas-ics', //接口域名
IMG_NAME: 'https://www.chuangzhikj.com/saas-ics', IMG_NAME: 'https://www.chuangzhikj.com/saas-ics',
globals: { globals: {

View File

@ -36,10 +36,10 @@ Page({
"text": "首页" "text": "首页"
}, },
{ {
"pagePath": "pages/meeting/accessControl/accessControl", "pagePath": "pages/meeting/meetingReservation/meetingReservation",
"iconPath": "/images/tabbar/openDoor.png", "iconPath": "/images/tabbar/openDoor.png",
"selectedIconPath": "/images/tabbar/openDoor.png", "selectedIconPath": "/images/tabbar/openDoor.png",
"text": "开门", "text": "预约",
"bulge": true, "bulge": true,
}, },
{ {
@ -108,52 +108,52 @@ Page({
img: "/profile/static/index/menu-hyyy.png", img: "/profile/static/index/menu-hyyy.png",
path: "/pages/meeting/meetingReservation/meetingReservation" path: "/pages/meeting/meetingReservation/meetingReservation"
}, },
{ // {
name: "展厅预约", // name: "展厅预约",
img: "/profile/static/index/menu-ztyy.png", // img: "/profile/static/index/menu-ztyy.png",
path: "/pages/meeting/exhibition/list/list" // path: "/pages/meeting/exhibition/list/list"
}, // },
{ // {
name: "访客预约", // name: "访客预约",
img: "/profile/static/index/menu-fkyy.png", // img: "/profile/static/index/menu-fkyy.png",
path: "/pages/meeting/visitorIinvitation/list/list" // path: "/pages/meeting/visitorIinvitation/list/list"
}, // },
{ {
name: "预约记录", name: "预约记录",
img: "/profile/static/index/menu-yyjl.png", img: "/profile/static/index/menu-yyjl.png",
path: "/pages/meeting/reservationRecord/reservationRecord" path: "/pages/meeting/reservationRecord/meetingRecord/meetingRecord"
}, },
{ // {
name: "远程门禁", // name: "远程门禁",
img: "/profile/static/index/menu-ycmj.png", // img: "/profile/static/index/menu-ycmj.png",
path: "/pages/meeting/accessControl/accessControl" // path: "/pages/meeting/accessControl/accessControl"
}, // },
{ // {
name: "报修服务", // name: "报修服务",
img: "/profile/static/index/menu-bxfw.png", // img: "/profile/static/index/menu-bxfw.png",
path: "/pages/parkRepair/parkRepair" // path: "/pages/parkRepair/parkRepair"
}, // },
{ // {
name: "投诉建议", // name: "投诉建议",
img: "/profile/static/index/menu-tsjy.png", // img: "/profile/static/index/menu-tsjy.png",
path: "/pages/complaint/complaint" // path: "/pages/complaint/complaint"
}, // },
{ // {
name: "社群活动", // name: "社群活动",
img: "/profile/static/index/menu-sqhd.png", // img: "/profile/static/index/menu-sqhd.png",
path: "/pages/community/community" // path: "/pages/community/community"
}, // },
{ // {
name: "政策中心", // name: "政策中心",
img: "/profile/static/index/menu-zczx.png", // img: "/profile/static/index/menu-zczx.png",
path: "/pages/notice/notice" // path: "/pages/notice/notice"
}, // },
{ // {
name: "入住申请", // name: "入住申请",
img: "/profile/static/index/menu-rzsq.png", // img: "/profile/static/index/menu-rzsq.png",
path: "/pages/applyType/applyType" // path: "/pages/applyType/applyType"
}, // },
], ],
bannerList: [], bannerList: [],
@ -165,20 +165,6 @@ Page({
onLoad(options) { onLoad(options) {
console.log('onLoad options', options); console.log('onLoad options', options);
let _this = this; let _this = this;
// 获取到二维码原始链接内容
if (options.q) {
let url = decodeURIComponent(options.q)
let urlParam = getUrlParamsObj(url);
// 自动绑定园区
wx.setStorageSync('parkId', urlParam.parkId)
wx.setStorageSync('parkName', urlParam.parkName)
// 是否携带其他参数
if (!urlParam.noParam) {
_this.setData({
qrcodeParam: urlParam
})
}
}
}, },
// 切换tabbar // 切换tabbar
@ -186,7 +172,7 @@ Page({
const data = e.currentTarget.dataset const data = e.currentTarget.dataset
console.log('switchTab', data) console.log('switchTab', data)
const url = data.path const url = data.path
if (url == 'pages/meeting/accessControl/accessControl') { if (url == 'pages/meeting/meetingReservation/meetingReservation') {
wx.navigateTo({ wx.navigateTo({
url: '/' + url url: '/' + url
}) })
@ -212,8 +198,16 @@ Page({
_this.setData({ _this.setData({
userDetail userDetail
}) })
// 登录用户是否选择园区 // 园区id
_this.userIsPark() let parkId = wx.getStorageSync('parkId');
// 查询轮播图
getParkRq(parkId).then(res => {
console.log('getParkRq', res);
let bannerList = res.bannerImages.map(item => item.url)
_this.setData({
bannerList
})
})
} else { } else {
app.selfShowMsg(res.msg, '/pages/login/login') app.selfShowMsg(res.msg, '/pages/login/login')
} }
@ -223,41 +217,6 @@ Page({
} }
}, },
// 登录用户是否选择园区
userIsPark() {
let _this = this;
let parkId = wx.getStorageSync('parkId');
if (parkId) {
_this.setData({
parkName: wx.getStorageSync('parkName')
})
getParkRq(parkId).then(res => {
console.log('getParkRq', res);
let bannerList = res.bannerImages.map(item => item.url)
_this.setData({
bannerList
})
})
// 判断是否扫码
if (_this.data.qrcodeParam) {
// 扫码调用地址
_this.scanCallUrl()
}
} else {
wx.navigateTo({
url: '/pages/index/parkList/parkList',
})
}
},
// 跳转园区
jumpPark() {
wx.navigateTo({
url: '/pages/index/parkList/parkList',
})
},
navapply(e) { navapply(e) {
if (wx.getStorageSync('token')) { if (wx.getStorageSync('token')) {
@ -276,62 +235,6 @@ Page({
} }
}, },
// 扫一扫
jumpScan() {
let _this = this;
wx.scanCode({
scanType: 'qrCode',
success(res) {
console.log('success', res)
let url = res.result;
// 判断二维码是否符合规范
if (url.indexOf(app.DOMAIN_NAME_PREFIX) != -1) {
let urlParam = getUrlParamsObj(url);
// 判断是否有设备参数
if (!urlParam.noParam) {
_this.setData({
qrcodeParam: urlParam
})
// 扫码调用地址
_this.scanCallUrl()
} else {
// 危险通知
_this.showErrMsg('请预约会议!')
}
} else {
// 危险通知
_this.showErrMsg('二维码不正确!')
}
},
fail(res) {
console.log('fail', res)
// 危险通知
_this.showErrMsg('扫码失败!')
}
})
},
// 扫码调用地址
scanCallUrl() {
let _this = this;
let qrcodeParam = _this.data.qrcodeParam;
qrcodeParam.userId = wx.getStorageSync('userId')
callScanUrl(qrcodeParam).then(res => {
// 清空扫码数据
_this.setData({
qrcodeParam: null
})
if (res.code == 0) {
// 成功通知
_this.showSuccessMsg(res.msg)
} else {
// 危险通知
_this.showErrMsg(res.msg)
}
})
},
// 成功通知 // 成功通知
showSuccessMsg(msg) { showSuccessMsg(msg) {
Notify({ Notify({

View File

@ -1,14 +1,8 @@
<view class="containerView public"> <view class="containerView public">
<!-- 园区 -->
<view bindtap="navparkList" class="topList">
<text style="font-size: 28rpx;">当前园区:{{parkName? parkName:'请先选择园区'}}</text>
<text style="color: #939393;font-size: 36rpx;"> > </text>
</view>
<view class="topHead"> <view class="topHead">
<image class="scanImg" src="{{IMG_NAME + '/profile/static/index/scan.png'}}" mode="aspectFill" bind:tap="jumpScan"></image> <!-- <image class="scanImg" src="{{IMG_NAME + '/profile/static/index/scan.png'}}" mode="aspectFill" bind:tap="jumpScan"></image> -->
<view class="title ellipsisFont" bind:tap="jumpPark">{{parkName}}</view> <view class="title ellipsisFont">{{parkName}}</view>
</view> </view>
<view class="loopView"> <view class="loopView">

View File

@ -31,9 +31,7 @@
</view> </view>
<view class="propOpen"></view> <view class="propOpen"></view>
<view class="priceView"> <view class="priceView">
<view class="price">¥{{room.money > 0 ? room.money + '/小时' : '免费'}}</view> <view class="unit">{{room.shape}}</view>
<text decode>&nbsp;</text>
<view class="unit">{{room.duration}}小时起)</view>
</view> </view>
</view> </view>
<view class="imgView"> <view class="imgView">

View File

@ -17,10 +17,10 @@
<view class="item" wx:for="{{room.roomItemList}}" wx:for-item="roomItem" wx:key="*this">#{{roomItem.name}}</view> <view class="item" wx:for="{{room.roomItemList}}" wx:for-item="roomItem" wx:key="*this">#{{roomItem.name}}</view>
</view> </view>
</view> </view>
<view class="priceView"> <!-- <view class="priceView">
<view class="price">¥{{room.money > 0 ? room.money * room.duration : '免费'}}/</view> <view class="price">¥{{room.money > 0 ? room.money * room.duration : '免费'}}/</view>
<view class="unit"><text decode>&nbsp;</text>{{room.duration}}小时 起</view> <view class="unit"><text decode>&nbsp;</text>{{room.duration}}小时 起</view>
</view> </view> -->
</view> </view>
<!-- 内容 --> <!-- 内容 -->
@ -53,13 +53,13 @@
<van-icon name="arrow" size="44rpx" /> <van-icon name="arrow" size="44rpx" />
</view> </view>
</view> </view>
<view class="itemView" bind:tap="jumpMeetingCoupon"> <!-- <view class="itemView" bind:tap="jumpMeetingCoupon">
<view class="label">优惠券</view> <view class="label">优惠券</view>
<view class="content"> <view class="content">
<view class="coupon {{couponId ? 'select' : ''}}">{{couponId? couponData.ticketName : couponUseCount + '张可用'}}</view> <view class="coupon {{couponId ? 'select' : ''}}">{{couponId? couponData.ticketName : couponUseCount + '张可用'}}</view>
<van-icon name="arrow" size="44rpx" /> <van-icon name="arrow" size="44rpx" />
</view> </view>
</view> </view> -->
<view class="itemView"> <view class="itemView">
<view class="label">总金额</view> <view class="label">总金额</view>
<view class="content"> <view class="content">
@ -68,23 +68,7 @@
</view> </view>
</view> </view>
<!-- 协议 --> <view class="submitBtn" bind:tap="submitCase">提交预约</view>
<view class="protocolView">
<van-checkbox value="{{ protocolFlag }}" bind:tap="protocolChange" icon-size="26rpx"></van-checkbox>
<view bind:tap="protocolChange">我已阅读并同意</view>
<view class="protocolTitle" bind:tap="jumpProtocol">{{protocolTitle}}</view>
</view>
<!-- 合计 -->
<view class="amountView">
<view class="priceView" bind:tap="priceDetail">
<view class="title">合计:</view>
<view class="price">¥{{totalAmount}}</view>
<view class="describe">价格明细</view>
<van-icon name="arrow-up" size="28rpx" color="red" />
</view>
<view class="caseBtn" bind:tap="submitCase">提交订单</view>
</view>
<!-- 提示 --> <!-- 提示 -->
<van-dialog id="van-dialog" /> <van-dialog id="van-dialog" />

View File

@ -186,9 +186,9 @@
.amountView { .amountView {
display: flex; display: flex;
justify-content: space-between; justify-content: flex-end;
align-items: center; align-items: center;
padding: 0 38rpx; padding: 40rpx 38rpx;
} }
.amountView .priceView { .amountView .priceView {
@ -215,6 +215,7 @@
.amountView .caseBtn { .amountView .caseBtn {
border-radius: 10rpx; border-radius: 10rpx;
padding: 16rpx 60rpx; padding: 16rpx 60rpx;
width: 100%;
color: white; color: white;
font-size: 30rpx; font-size: 30rpx;
background: #4e96f8; background: #4e96f8;

View File

@ -18,10 +18,6 @@
<view class="name">空间面积</view> <view class="name">空间面积</view>
<view class="value">{{detail.renArea}}m</view> <view class="value">{{detail.renArea}}m</view>
</view> </view>
<view class="typeItem">
<view class="name">办公面积</view>
<view class="value">{{detail.area}}m</view>
</view>
<view class="typeItem"> <view class="typeItem">
<view class="name">形式</view> <view class="name">形式</view>
<view class="value">{{detail.shape}}</view> <view class="value">{{detail.shape}}</view>
@ -44,18 +40,18 @@
</view> </view>
<!-- 价格 --> <!-- 价格 -->
<view class="priceView"> <!-- <view class="priceView">
<view class="leftLineTitle">价格</view> <view class="leftLineTitle">价格</view>
<view class="content">¥{{detail.money > 0 ? detail.money + '/小时' : '免费'}}<text decode>&nbsp;</text>{{detail.duration}}小时起)</view> <view class="content">¥{{detail.money > 0 ? detail.money + '/小时' : '免费'}}<text decode>&nbsp;</text>{{detail.duration}}小时起)</view>
<view class="remark" wx:if="{{detail.remake}}"> <view class="remark" wx:if="{{detail.remake}}">
<van-icon name="info-o" size="28rpx" /> <van-icon name="info-o" size="28rpx" />
{{detail.remake}} {{detail.remake}}
</view> </view>
</view> </view> -->
<!-- 地图 --> <!-- 地图 -->
<view class="mapView"> <view class="mapView">
<view class="leftLineTitle">空间周边</view> <view class="leftLineTitle">会议地点</view>
<map class="myMap" latitude="{{mapData.latitude}}" longitude="{{mapData.longitude}}" markers="{{mapData.markers}}" show-location bindtap="openMap"></map> <map class="myMap" latitude="{{mapData.latitude}}" longitude="{{mapData.longitude}}" markers="{{mapData.markers}}" show-location bindtap="openMap"></map>
</view> </view>

View File

@ -37,10 +37,10 @@ Page({
"text": "首页" "text": "首页"
}, },
{ {
"pagePath": "pages/meeting/accessControl/accessControl", "pagePath": "pages/meeting/meetingReservation/meetingReservation",
"iconPath": "/images/tabbar/openDoor.png", "iconPath": "/images/tabbar/openDoor.png",
"selectedIconPath": "/images/tabbar/openDoor.png", "selectedIconPath": "/images/tabbar/openDoor.png",
"text": "开门", "text": "预约",
"bulge": true, "bulge": true,
}, },
{ {
@ -52,32 +52,32 @@ Page({
], ],
customerPages: [{ customerPages: [{
name: "预约记录", name: "预约记录",
url: "/pages/meeting/reservationRecord/reservationRecord", url: "/pages/meeting/reservationRecord/meetingRecord/meetingRecord",
},
{
name: "我的活动",
url: "/pages/myActivities/myActivities",
},
{
name: "我的入驻",
url: "/pages/my/serviceApply/serviceApply"
},
{
name: "我的建议",
url: "/pages/complaint/complaint",
}, },
// { // {
// name: "我的活动",
// url: "/pages/myActivities/myActivities",
// },
// {
// name: "我的入驻",
// url: "/pages/my/serviceApply/serviceApply"
// },
// {
// name: "我的建议",
// url: "/pages/complaint/complaint",
// },
// {
// name: "账号设置", // name: "账号设置",
// url: "/pages/my/accountSetting/accountSetting", // url: "/pages/my/accountSetting/accountSetting",
// }, // },
{ // {
name: "我的服务", // name: "我的服务",
url: "/pages/enterpriseServices/myServiceList/myServiceList" // url: "/pages/enterpriseServices/myServiceList/myServiceList"
}, // },
{ // {
name: "我的报修", // name: "我的报修",
url: "/pages/parkRepair/parkRepair", // url: "/pages/parkRepair/parkRepair",
} // }
], ],
qrcodeParam: null, qrcodeParam: null,
}, },
@ -87,7 +87,7 @@ Page({
const data = e.currentTarget.dataset const data = e.currentTarget.dataset
console.log('switchTab', data) console.log('switchTab', data)
const url = data.path const url = data.path
if (url == 'pages/meeting/accessControl/accessControl') { if (url == 'pages/meeting/meetingReservation/meetingReservation') {
wx.navigateTo({ wx.navigateTo({
url: '/' + url url: '/' + url
}) })

View File

@ -13,11 +13,11 @@
<!-- 菜单 --> <!-- 菜单 -->
<view class="itemView"> <view class="itemView">
<!-- 扫一扫 --> <!-- 扫一扫 -->
<view class="itemData" bindtap='jumpScan'> <!-- <view class="itemData" bindtap='jumpScan'>
<view class="label">扫一扫</view> <view class="label">扫一扫</view>
<view class="propOpen"></view> <view class="propOpen"></view>
<van-icon name="scan" size="40rpx" color="gray" /> <van-icon name="scan" size="40rpx" color="gray" />
</view> </view> -->
<!-- 菜单列表 --> <!-- 菜单列表 -->
<view class="itemData" wx:for="{{customerPages}}" wx:key="*this" bindtap='navigateTo' data-url="{{item.url}}" data-name="{{item.name}}"> <view class="itemData" wx:for="{{customerPages}}" wx:key="*this" bindtap='navigateTo' data-url="{{item.url}}" data-name="{{item.name}}">
<view class="label">{{item.name}}</view> <view class="label">{{item.name}}</view>

View File

@ -56,12 +56,12 @@
<text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text> <text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text>
</view> </view>
</view> --> </view> -->
<view class="listBox" bindtap='jumpPark' data-name="园区"> <view class="listBox" data-name="园区">
<view style="width:24%;">园区</view> <view style="width:24%;">园区</view>
<view style="width:70%;text-align:right;color:#888888">{{parkName ? parkName : ''}}</view> <view style="width:70%;text-align:right;color:#888888">{{parkName ? parkName : ''}}</view>
<view style="width:6%;text-align:right"> <!-- <view style="width:6%;text-align:right">
<text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text> <text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text>
</view> </view> -->
</view> </view>
<view class="listBox" data-name="企业"> <view class="listBox" data-name="企业">
<view style="width:24%;">企业</view> <view style="width:24%;">企业</view>