This commit is contained in:
3321822538@qq.com 2025-02-20 14:34:21 +08:00
parent 518f1a9aa8
commit 6a3bdd7f05
17 changed files with 663 additions and 407 deletions

View File

@ -29,7 +29,7 @@
</template> </template>
<script> <script>
import { number } from 'echarts' // import { number } from 'echarts'
export default { export default {
data() { data() {

View File

@ -229,7 +229,7 @@
let data = { let data = {
ruleId:this.ruleId, ruleId:this.ruleId,
mode:this.type, mode:this.type,
hours:1, hours:this.huor,
price:this.price, price:this.price,
minHours:this.mintime, minHours:this.mintime,
explain:this.explain, explain:this.explain,
@ -348,6 +348,9 @@
padding-bottom: 30rpx; padding-bottom: 30rpx;
box-sizing: border-box; box-sizing: border-box;
margin-top: 30rpx; margin-top: 30rpx;
input{
width: 85%;
}
} }
.del{ .del{
position: absolute; position: absolute;

View File

@ -39,13 +39,13 @@
onLoad(option) { onLoad(option) {
if(option.roomId){ //and if(option.roomId){ //and
this.roomId = option.roomId this.roomId = option.roomId
this.https = 'https://testcha.chuangtewl.com?roomCode=' + this.roomId this.https = 'https://testcha.chuangtewl.com?f=' + this.roomId
}else if(option.storeId){ //- }else if(option.storeId){ //-
this.storeId = option.storeId this.storeId = option.storeId
this.https = 'https://testcha.chuangtewl.com?storeCode=' + this.storeId this.https = 'https://testcha.chuangtewl.com?d=' + this.storeId
}else if(option.toiletId){ // }else if(option.toiletId){ //
this.toiletId = option.toiletId this.toiletId = option.toiletId
this.https = 'https://testcha.chuangtewl.com?toiletId=' + this.toiletId this.https = 'https://testcha.chuangtewl.com?w=' + this.toiletId
} }
console.log(option) console.log(option)
this.qrFun() this.qrFun()

View File

@ -324,7 +324,7 @@
} }
} }
width: 680rpx; width: 680rpx;
height: 1260rpx; max-height: 1260rpx;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0rpx 8rpx 40rpx 0rpx rgba(72,137,59,0.1); box-shadow: 0rpx 8rpx 40rpx 0rpx rgba(72,137,59,0.1);
border-radius: 24rpx 24rpx 24rpx 24rpx; border-radius: 24rpx 24rpx 24rpx 24rpx;

View File

@ -7,6 +7,9 @@
<view class="tishi" style="margin-top: 0;"> <view class="tishi" style="margin-top: 0;">
押金收费 押金收费
</view> </view>
<view class="wz">
押金套餐订单提前结束押金剩多少退还多少
</view>
<view class="" v-for="(item,index) in tclist" :key="index" @click="btnedit(item,1)"> <view class="" v-for="(item,index) in tclist" :key="index" @click="btnedit(item,1)">
<view class="item_list" v-if="item.mode == 1"> <view class="item_list" v-if="item.mode == 1">
<view class="shoufei"> <view class="shoufei">
@ -29,7 +32,7 @@
套餐收费 套餐收费
</view> </view>
<view class="wz"> <view class="wz">
订单提前结束剩余消费时长金额不返还 套餐订单提前结束剩余消费时长金额不返还
</view> </view>
<view class="item_list" v-for="(item,index) in modelist" :key="index" @click="btnedit(item,2)"> <view class="item_list" v-for="(item,index) in modelist" :key="index" @click="btnedit(item,2)">
<view class="shoufei"> <view class="shoufei">

View File

@ -232,7 +232,7 @@
}, },
// //
btnkdm(){ btnkdm(){
if(this.orderobj.userId != this.user.userId){ if(this.orderobj.userId == this.user.userId){
this.$u.get(`app/store/openGate/${this.orderobj.storeId}`).then(res => { this.$u.get(`app/store/openGate/${this.orderobj.storeId}`).then(res => {
if (res.code == 200) { if (res.code == 200) {
uni.showToast({ uni.showToast({
@ -249,7 +249,10 @@
} }
}) })
}else{ }else{
this.$u.get(`app/store/openGate/${this.orderobj.storeId}&isVerify=false`).then(res => { let data = {
isVerify:false
}
this.$u.get(`app/store/openGate/${this.orderobj.storeId}`,data).then(res => {
if (res.code == 200) { if (res.code == 200) {
uni.showToast({ uni.showToast({
title: '开启店门成功', title: '开启店门成功',

View File

@ -15,8 +15,6 @@
</view> </view>
<input type="text" class="ips" v-model="storeId" placeholder="请扫描设备上的二维码" style="margin-left: 32rpx;" <input type="text" class="ips" v-model="storeId" placeholder="请扫描设备上的二维码" style="margin-left: 32rpx;"
placeholder-class="my-placeholder"/> placeholder-class="my-placeholder"/>
<!-- <input type="text" class="ips" v-model="storeIds" v-if="storeIds" placeholder="请扫描设备上的二维码" style="margin-left: 32rpx;"
placeholder-class="my-placeholder" /> -->
</view> </view>
<view class="machao"> <view class="machao">
MAC号{{obj.mac == undefined ? '--' : obj.mac}} MAC号{{obj.mac == undefined ? '--' : obj.mac}}
@ -25,7 +23,7 @@
电压{{obj.voltage == undefined ? '--' : obj.voltage}}V 电压{{obj.voltage == undefined ? '--' : obj.voltage}}V
</view> </view>
<view class="machao"> <view class="machao">
功率{{obj.realTimePower == undefined ? '--' : obj.realTimePower}}KW 功率{{obj.realTimePower == undefined ? '--' : obj.realTimePower}}W
</view> </view>
<view class="machao"> <view class="machao">
电流{{obj.electricity == undefined ? '--' : obj.electricity}}A 电流{{obj.electricity == undefined ? '--' : obj.electricity}}A
@ -41,10 +39,14 @@
<view class="machao"> <view class="machao">
版本号{{obj.version == undefined ? '--' : obj.version}} 版本号{{obj.version == undefined ? '--' : obj.version}}
</view> </view>
<view class="machao">
最后更新时间{{obj.lastPullTime == undefined ? '--' : obj.lastPullTime}}
</view>
<view class="machao"> <view class="machao">
最后在线时间{{obj.lastOnlineTime == undefined ? '--' : obj.lastOnlineTime}} 最后在线时间{{obj.lastOnlineTime == undefined ? '--' : obj.lastOnlineTime}}
</view> </view>
<view class="jiaozhun"> <view class="jiaozhun">
<view class="input"> <view class="input">
<button @click="btnjian">-</button> <button @click="btnjian">-</button>
@ -57,6 +59,17 @@
</view> </view>
<view class="list"> <view class="list">
<view class="anniulist">
<view class="anniu" @click="btnkaim">
开门
</view>
<view class="anniu" @click="btncq">
重启
</view>
<view class="anniu" @click="btnsxs">
刷新
</view>
</view>
<view class="anniulist"> <view class="anniulist">
<view class="anniu" @click="btnkq"> <view class="anniu" @click="btnkq">
开启 开启
@ -65,7 +78,7 @@
关闭 关闭
</view> </view>
<view class="anniu" @click="btnsx"> <view class="anniu" @click="btnsx">
刷新 同步
</view> </view>
</view> </view>
<view class="fanhui" @click="btnfh"> <view class="fanhui" @click="btnfh">
@ -116,16 +129,93 @@
} }
}, },
methods: { methods: {
//
btnkaim(){
this.$u.put(`/app/device/admin/openDoor?sn=${this.storeId}`).then(res =>{
if(res.code == 200){
uni.showToast({
title: '开门成功',
icon: 'success',
duration:2000
})
}else{
uni.showToast({
title: res.msg,
icon: 'none',
duration:2000
})
}
})
},
//
btncq(){
this.$u.put(`/app/device/admin/reboot?sn=${this.storeId}`).then(res =>{
if(res.code == 200){
uni.showToast({
title: '重启成功',
icon: 'success',
duration:2000
})
}else{
uni.showToast({
title: res.msg,
icon: 'none',
duration:2000
})
}
})
},
//
btnsxs(){
this.$u.put(`/app/device/admin/uploadData?sn=${this.storeId}`).then(res =>{
if(res.code == 200){
console.log(res.data.vxs);
this.obj = res.data
this.id = res.data.deviceId
if(res.data.vxs == null || res.data.vxs == 0){
this.xshu = 1
}else{
this.xshu = res.data.vxs
}
if (res.data.onlineStatus == 0) {
this.onlineStatus = '离线'
} else if (res.data.onlineStatus == 1) {
this.onlineStatus = '在线'
}
if (res.data.powerStatus == 0) {
this.powerStatus = '关闭'
} else if (res.data.powerStatus == 1) {
this.powerStatus = '开启'
}
uni.showToast({
title: res.msg,
icon: 'success',
duration: 2000,
})
uni.hideLoading()
}else{
uni.showToast({
title: res.msg,
icon: 'none',
duration:2000
})
}
})
},
//
btnjian(){ btnjian(){
this.valuedian = Number(this.valuedian) - 1 this.valuedian = Number(this.valuedian) - 1
}, },
//
btnadd(){ btnadd(){
this.valuedian = Number(this.valuedian) + 1 this.valuedian = Number(this.valuedian) + 1
}, },
//
btnjiaozhun(){ btnjiaozhun(){
console.log(this.valuedian,this.obj.voltage,this.xshu );
this.x = this.valuedian / this.obj.voltage * this.xshu this.x = this.valuedian / this.obj.voltage * this.xshu
this.x = this.x.toFixed(3)
console.log(this.x) console.log(this.x)
this.x = this.x.toFixed(3)
this.$u.put(`/app/device/admin/${this.obj.deviceId}/vxs?vxs=${this.x}`).then(res => { this.$u.put(`/app/device/admin/${this.obj.deviceId}/vxs?vxs=${this.x}`).then(res => {
if(res.code == 200){ if(res.code == 200){
uni.showToast({ uni.showToast({
@ -142,12 +232,13 @@
} }
}) })
}, },
//
btnmy() { btnmy() {
uni.reLaunch({ uni.reLaunch({
url: '/page_user/luru' url: '/page_shanghu/index'
}) })
}, },
//
qrcode() { qrcode() {
uni.scanCode({ uni.scanCode({
onlyFromCamera: true, onlyFromCamera: true,
@ -160,7 +251,7 @@
} }
let sceneValue = res.result let sceneValue = res.result
let decodedValue = decodeURIComponent(sceneValue) let decodedValue = decodeURIComponent(sceneValue)
let id = getQueryParam(decodedValue, 'sn') let id = getQueryParam(decodedValue, 's')
this.storeId = id this.storeId = id
this.getsn() this.getsn()
}, },
@ -173,13 +264,13 @@
} }
}) })
}, },
//
getsn() { getsn() {
this.$u.get(`/app/device/admin/get?sn=${this.storeId}`).then(res => { this.$u.get(`/app/device/admin/get?sn=${this.storeId}`).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.obj = res.data this.obj = res.data
this.id = res.data.deviceId this.id = res.data.deviceId
if(res.data.vxs == null){ if(res.data.vxs == null || res.data.vxs == 0){
this.xshu = 1 this.xshu = 1
}else{ }else{
this.xshu = res.data.vxs this.xshu = res.data.vxs
@ -224,9 +315,6 @@
}) })
this.$u.put(`/app/device/admin/${this.id}/switch?open=true`).then((res) => { this.$u.put(`/app/device/admin/${this.id}/switch?open=true`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
// setTimeout(()=>{
// this.btnsx()
// },1000)
uni.showToast({ uni.showToast({
title: '开启成功', title: '开启成功',
icon: 'success', icon: 'success',
@ -267,20 +355,19 @@
} }
}) })
}, },
// //
btnsx() { btnsx() {
this.$u.get(`/app/device/v2/refreshIot?sn=${this.storeId}`).then((res) => {
this.$u.get(`/app/device/v2/refreshIot?deviceNo=${this.storeId}`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.getsn() this.getsn()
uni.showToast({ uni.showToast({
title: '刷新成功', title: '同步成功',
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
} else { } else {
uni.showToast({ uni.showToast({
title: '刷新失败', title: '同步失败',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
@ -338,13 +425,12 @@
.anniulist { .anniulist {
width: 658rpx; width: 658rpx;
margin: auto; margin: auto;
margin-top: 200rpx; margin-top: 20rpx;
text-align: left; text-align: left;
font-size: 32rpx; font-size: 32rpx;
display: flex; display: flex;
justify-content: space-between;
.anniu { .anniu {
margin-right: 20rpx;
width: 30%; width: 30%;
height: 90rpx; height: 90rpx;
border-radius: 20rpx; border-radius: 20rpx;

View File

@ -270,8 +270,8 @@
return results ? decodeURIComponent(results[1].replace(/\+/g, ' ')) : null; return results ? decodeURIComponent(results[1].replace(/\+/g, ' ')) : null;
} }
// storeCode roomCode // storeCode roomCode
let storeCode = getQueryParam(decodedValue, 'storeCode'); let storeCode = getQueryParam(decodedValue, 'd');
let roomCode = getQueryParam(decodedValue, 'roomCode'); let roomCode = getQueryParam(decodedValue, 'f');
if (storeCode) { if (storeCode) {
this.$u.get(`app/getId?storeCode=${storeCode}`).then(resp =>{ this.$u.get(`app/getId?storeCode=${storeCode}`).then(resp =>{
if(resp.code == 200){ if(resp.code == 200){

View File

@ -8,9 +8,11 @@
</view> </view>
<view class="serchshop"> <view class="serchshop">
<view class="dingwei" @click="btnweizhi"> <view class="dingwei" @click="btnweizhi">
<image src="https://api.ccttiot.com/smartmeter/img/static/uSDeC51wazjnZ9cFQx6l" mode="" class="dwimg"></image> <image src="https://api.ccttiot.com/smartmeter/img/static/uSDeC51wazjnZ9cFQx6l" mode="" class="dwimg">
</image>
{{tit}} {{tit}}
<image src="https://api.ccttiot.com/smartmeter/img/static/u0FZH7ZLG168c7W0FUMk" mode="" class="xlimg"></image> <image src="https://api.ccttiot.com/smartmeter/img/static/u0FZH7ZLG168c7W0FUMk" mode="" class="xlimg">
</image>
</view> </view>
<view class="search"> <view class="search">
<input type="text" v-model="sousuovalue" @confirm="confirm" placeholder="搜索门店" /> <input type="text" v-model="sousuovalue" @confirm="confirm" placeholder="搜索门店" />
@ -22,23 +24,24 @@
<view class="tabqh"> <view class="tabqh">
<view @click="btntabindex(1)" :class="tabindex == 1 ? 'activetab' : ''"> <view @click="btntabindex(1)" :class="tabindex == 1 ? 'activetab' : ''">
<text>茶室</text> <text>茶室</text>
<image v-if="tabindex == 1" src="https://api.ccttiot.com/smartmeter/img/static/uHFOqckZJiCEP9JOtMvj" mode=""></image> <image v-if="tabindex == 1" src="https://api.ccttiot.com/smartmeter/img/static/uHFOqckZJiCEP9JOtMvj"
mode=""></image>
</view> </view>
<view @click="btntabindex(2)" :class="tabindex == 2 ? 'activetab' : ''"> <view @click="btntabindex(2)" :class="tabindex == 2 ? 'activetab' : ''">
<text>棋牌</text> <text>棋牌</text>
<image v-if="tabindex == 2" src="https://api.ccttiot.com/smartmeter/img/static/uQ6c41aBHWUOD02aK9WQ" mode=""></image> <image v-if="tabindex == 2" src="https://api.ccttiot.com/smartmeter/img/static/uQ6c41aBHWUOD02aK9WQ"
mode=""></image>
</view> </view>
<view @click="btntabindex(3)" style="width: 34%;" :class="tabindex == 3 ? 'activetab' : ''"> <view @click="btntabindex(3)" style="width: 34%;" :class="tabindex == 3 ? 'activetab' : ''">
<text>台球</text> <text>台球</text>
<image v-if="tabindex == 3" style="transform: rotateY(180deg)" src="https://api.ccttiot.com/smartmeter/img/static/uHFOqckZJiCEP9JOtMvj" mode=""></image> <image v-if="tabindex == 3" style="transform: rotateY(180deg)"
src="https://api.ccttiot.com/smartmeter/img/static/uHFOqckZJiCEP9JOtMvj" mode=""></image>
</view> </view>
</view> </view>
<view class="shoplist" <view class="shoplist" @touchstart="onTouchStart" @touchend="onTouchEnd" @touchcancel="onTouchCancel">
@touchstart="onTouchStart"
@touchend="onTouchEnd"
@touchcancel="onTouchCancel">
<view class="shop_item" v-for="(item,index) in listshop" :key="index" @click="btndetail(item.storeId,item)"> <view class="shop_item" v-for="(item,index) in listshop" :key="index"
@click="btndetail(item.storeId,item)">
<view class="lt"> <view class="lt">
<image :src="item.pictures[0]" mode="aspectFill"></image> <image :src="item.pictures[0]" mode="aspectFill"></image>
<!-- <view class="hour"> <!-- <view class="hour">
@ -53,23 +56,35 @@
{{item.address.length > 13 ? item.address.slice(0,13) + '...' : item.address}} {{item.address.length > 13 ? item.address.slice(0,13) + '...' : item.address}}
</view> </view>
<view class="storebq"> <view class="storebq">
<image v-if="item.typeTags && item.typeTags.some(tag => tag == 1)" src="https://api.ccttiot.com/smartmeter/img/static/u7ilmXTNlXUbbvfSgOa1" mode=""></image> <image v-if="item.typeTags && item.typeTags.some(tag => tag == 1)"
<image v-if="item.typeTags && item.typeTags.some(tag => tag == 2)" src="https://api.ccttiot.com/smartmeter/img/static/umA2EUZkovZEA0hCLmP3" mode=""></image> src="https://api.ccttiot.com/smartmeter/img/static/u7ilmXTNlXUbbvfSgOa1" mode="">
<image v-if="item.typeTags && item.typeTags.some(tag => tag == 3)" src="https://api.ccttiot.com/smartmeter/img/static/uPjeCCnwjiJlCNqURltX" mode=""></image> </image>
<image v-if="item.typeTags && item.typeTags.some(tag => tag == 2)"
src="https://api.ccttiot.com/smartmeter/img/static/umA2EUZkovZEA0hCLmP3" mode="">
</image>
<image v-if="item.typeTags && item.typeTags.some(tag => tag == 3)"
src="https://api.ccttiot.com/smartmeter/img/static/uPjeCCnwjiJlCNqURltX" mode="">
</image>
</view> </view>
<view class="juli"> <view class="juli">
<view class="kmjuli"> <view class="kmjuli">
距我{{item.distance == undefined ? '--' : item.distance}}km 距我{{item.distance == undefined ? '--' : item.distance}}km
</view> </view>
<view class="juliimg"> <view class="juliimg">
<image @click.stop="btndaohang(item.lng,item.lat,item.name,item.address)" src="https://api.ccttiot.com/smartmeter/img/static/ufhdTzq4mHUlHgCKgI5Y" mode=""></image> <image @click.stop="btndaohang(item.lng,item.lat,item.name,item.address)"
<image @click.stop="btntel(item.serverPhone)" src="https://api.ccttiot.com/smartmeter/img/static/uOxtHZOxGREoFVXEv73f" mode=""></image> src="https://api.ccttiot.com/smartmeter/img/static/ufhdTzq4mHUlHgCKgI5Y" mode="">
</image>
<image @click.stop="btntel(item.serverPhone)"
src="https://api.ccttiot.com/smartmeter/img/static/uOxtHZOxGREoFVXEv73f" mode="">
</image>
</view> </view>
</view> </view>
<view class="yuding"> <view class="yuding">
<image src="https://api.ccttiot.com/smartmeter/img/static/u7zHXOY1SGwic7jQESUR" mode="" class="one"></image> <image src="https://api.ccttiot.com/smartmeter/img/static/u7zHXOY1SGwic7jQESUR" mode=""
class="one"></image>
预定包间 预定包间
<image src="https://api.ccttiot.com/smartmeter/img/static/urIGUWi7cHWqp9qem3Ag" mode="" class="two"></image> <image src="https://api.ccttiot.com/smartmeter/img/static/urIGUWi7cHWqp9qem3Ag" mode=""
class="two"></image>
</view> </view>
</view> </view>
</view> </view>
@ -85,27 +100,40 @@
<image src="https://api.ccttiot.com/smartmeter/img/static/uuoqWaq7HnXBteQayaz4" mode=""></image> <image src="https://api.ccttiot.com/smartmeter/img/static/uuoqWaq7HnXBteQayaz4" mode=""></image>
</view> </view>
<view class="xuanfu" v-if="imgflag"> <view class="xuanfu" v-if="imgflag">
<image @click="btnopen(1)" src="https://api.ccttiot.com/smartmeter/img/static/uKeCHdot1z4QJldDe3UL" mode=""></image> <image @click="btnopen(1)" src="https://api.ccttiot.com/smartmeter/img/static/uKeCHdot1z4QJldDe3UL" mode="">
<image @click="btnopen(2)" src="https://api.ccttiot.com/smartmeter/img/static/u4lmGbm77OWC2Uik2737" mode=""></image> </image>
<image @click="btnopen(3)" src="https://api.ccttiot.com/smartmeter/img/static/uUjamKC7Kvd9KMLLOeBD" mode=""></image> <image @click="btnopen(2)" src="https://api.ccttiot.com/smartmeter/img/static/u4lmGbm77OWC2Uik2737" mode="">
<image @click="btnopen(6)" src="https://api.ccttiot.com/smartmeter/img/static/u3AxwRFjWnSAAYyNS70w" mode=""></image> </image>
<image @click="btnopen(4)" src="https://api.ccttiot.com/smartmeter/img/static/u9ccoP5o6Gt6rCKwsXva" mode=""></image> <image @click="btnopen(3)" src="https://api.ccttiot.com/smartmeter/img/static/uUjamKC7Kvd9KMLLOeBD" mode="">
<image @click="btnopen(5)" src="https://api.ccttiot.com/smartmeter/img/static/uONMVGcplNBtVnjlHaeh" mode=""></image> </image>
<image @click="btnopen(6)" src="https://api.ccttiot.com/smartmeter/img/static/u3AxwRFjWnSAAYyNS70w" mode="">
</image>
<image @click="btnopen(4)" src="https://api.ccttiot.com/smartmeter/img/static/u9ccoP5o6Gt6rCKwsXva" mode="">
</image>
<image @click="btnopen(5)" src="https://api.ccttiot.com/smartmeter/img/static/uONMVGcplNBtVnjlHaeh" mode="">
</image>
</view> </view>
<view class="xuanfus" v-else> <view class="xuanfus" v-else>
<image @click="btnopen(1)" src="https://api.ccttiot.com/smartmeter/img/static/uKeCHdot1z4QJldDe3UL" mode=""></image> <image @click="btnopen(1)" src="https://api.ccttiot.com/smartmeter/img/static/uKeCHdot1z4QJldDe3UL" mode="">
<image @click="btnopen(2)" src="https://api.ccttiot.com/smartmeter/img/static/u4lmGbm77OWC2Uik2737" mode=""></image> </image>
<image @click="btnopen(6)" src="https://api.ccttiot.com/smartmeter/img/static/u3AxwRFjWnSAAYyNS70w" mode=""></image> <image @click="btnopen(2)" src="https://api.ccttiot.com/smartmeter/img/static/u4lmGbm77OWC2Uik2737" mode="">
<image @click="btnopen(3)" src="https://api.ccttiot.com/smartmeter/img/static/uUjamKC7Kvd9KMLLOeBD" mode=""></image> </image>
<image @click="btnopen(4)" src="https://api.ccttiot.com/smartmeter/img/static/u9ccoP5o6Gt6rCKwsXva" mode=""></image> <image @click="btnopen(6)" src="https://api.ccttiot.com/smartmeter/img/static/u3AxwRFjWnSAAYyNS70w" mode="">
<image @click="btnopen(5)" src="https://api.ccttiot.com/smartmeter/img/static/uONMVGcplNBtVnjlHaeh" mode=""></image> </image>
<image @click="btnopen(3)" src="https://api.ccttiot.com/smartmeter/img/static/uUjamKC7Kvd9KMLLOeBD" mode="">
</image>
<image @click="btnopen(4)" src="https://api.ccttiot.com/smartmeter/img/static/u9ccoP5o6Gt6rCKwsXva" mode="">
</image>
<image @click="btnopen(5)" src="https://api.ccttiot.com/smartmeter/img/static/uONMVGcplNBtVnjlHaeh" mode="">
</image>
</view> </view>
<view class="karaokeroom" v-if="jinxinflag"> <view class="karaokeroom" v-if="jinxinflag">
<view class="top"> <view class="top">
正在进行中的订单 正在进行中的订单
</view> </view>
<view class="roomlist"> <view class="roomlist">
<view class="room_item" v-for="(item,index) in jinxinglist" :key="index" :id="mdindex == index ? 'active' : ''" @click="btnmd(index,item)"> <view class="room_item" v-for="(item,index) in jinxinglist" :key="index"
:id="mdindex == index ? 'active' : ''" @click="btnmd(index,item)">
<view class="lt"> <view class="lt">
<image :src="item.picture" mode=""></image> <image :src="item.picture" mode=""></image>
</view> </view>
@ -117,7 +145,8 @@
<text>预约包厢</text> <text>{{item.roomName == null ? '--' : item.roomName}}</text> <text>预约包厢</text> <text>{{item.roomName == null ? '--' : item.roomName}}</text>
</view> </view>
<view class=""> <view class="">
<text>开始时间</text> <text>{{item.reserveStartTime == null ? '--' : item.reserveStartTime}}</text> <text>开始时间</text>
<text>{{item.reserveStartTime == null ? '--' : item.reserveStartTime}}</text>
</view> </view>
<view class=""> <view class="">
<text>结束时间</text> <text>{{item.reserveEndTime == null ? '--' : item.reserveEndTime}}</text> <text>结束时间</text> <text>{{item.reserveEndTime == null ? '--' : item.reserveEndTime}}</text>
@ -129,7 +158,8 @@
{{jinxintxt}} {{jinxintxt}}
</view> </view>
</view> </view>
<image v-if="jinxinflag" @click="jinxinflag = false" class="jinxinx" src="https://api.ccttiot.com/smartmeter/img/static/uH5fAInJQYhf3wlXkuYI" mode=""></image> <image v-if="jinxinflag" @click="jinxinflag = false" class="jinxinx"
src="https://api.ccttiot.com/smartmeter/img/static/uH5fAInJQYhf3wlXkuYI" mode=""></image>
<view class="mask" v-if="jinxinflag"></view> <view class="mask" v-if="jinxinflag"></view>
<!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --> <!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 --><!-- 厕所 -->
<view class="cesuoul" v-if="cesuoflag"> <view class="cesuoul" v-if="cesuoflag">
@ -184,6 +214,22 @@
csindex: -1, csindex: -1,
} }
}, },
//
onShareAppMessage: function() {
return {
title: '共享时光屋',
path: '/pages/nearbystores/index'
}
},
//
onShareTimeline: function() {
return {
title: '共享时光屋',
query: '',
path: '/pages/nearbystores/index'
}
},
onLoad(option) { onLoad(option) {
if (option.cityId) { if (option.cityId) {
this.cityid = option.cityId this.cityid = option.cityId
@ -301,7 +347,8 @@
let roomId = this.jinxinglist[this.mdindex].roomId let roomId = this.jinxinglist[this.mdindex].roomId
let orderNo = this.jinxinglist[this.mdindex].orderNo let orderNo = this.jinxinglist[this.mdindex].orderNo
uni.navigateTo({ uni.navigateTo({
url:'/page_user/xudan?roomId=' + roomId + '&orderNo=' + orderNo + '&viewType=' + this.viewType url: '/page_user/xudan?roomId=' + roomId + '&orderNo=' + orderNo + '&viewType=' + this
.viewType
}) })
} }
}, },
@ -394,6 +441,8 @@
let sceneValue = res.result let sceneValue = res.result
let decodedValue = decodeURIComponent(sceneValue) let decodedValue = decodeURIComponent(sceneValue)
let id = getQueryParam(decodedValue, 'sn') let id = getQueryParam(decodedValue, 'sn')
let storeCode = getQueryParam(decodedValue, 'd');
let roomCode = getQueryParam(decodedValue, 'f');
if (id) { if (id) {
let that = this let that = this
let data = { let data = {
@ -412,7 +461,8 @@
content: '该设备未绑定,你需进行绑定吗?', content: '该设备未绑定,你需进行绑定吗?',
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
that.$u.put("/app/device/bind", data).then(res => { that.$u.put("/app/device/bind", data)
.then(res => {
if (res.code == 200) { if (res.code == 200) {
uni.showToast({ uni.showToast({
title: '绑定成功', title: '绑定成功',
@ -433,6 +483,58 @@
}) })
} }
}) })
} else if (storeCode) {
this.$u.get(`app/getId?storeCode=${storeCode}`).then(resp => {
if (resp.code == 200) {
uni.navigateTo({
url:'/pages/index/index?storeId=' + resp.data
})
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
})
}
})
} else if (roomCode) {
this.$u.get(`app/getId?roomCode=${roomCode}`).then(resp => {
if (resp.code == 200) {
console.log('这是 roomId:', resp.data);
let roomId = resp.data
this.$u.get(`/app/order/getInProgressOrderList`).then(res => {
if (res.code == 200) {
if (res.data == null || res.data.length == 0) {
uni.navigateTo({
url: '/pages/myorder/index?roomId=' + roomId
})
} else {
uni.navigateTo({
url: '/page_user/dingdanxq?orderNo=' + res.data[0].orderNo + '&viewType=' + res.data[0].roomType2
})
}
} else if (res.code == 401) {
uni.navigateTo({
url: '/pages/login/index'
})
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
})
}
})
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
})
}
})
} else {
console.log('URL 中未找到 storeCode 或 roomCode');
} }
} }
}) })
@ -454,7 +556,8 @@
} else { } else {
this.cesuolist = res.rows this.cesuolist = res.rows
if (this.cesuolist.length == 1) { if (this.cesuolist.length == 1) {
this.$u.get(`/app/room/openToilet/${this.cesuolist[0].toiletId}`).then(res => { this.$u.get(`/app/room/openToilet/${this.cesuolist[0].toiletId}`).then(
res => {
if (res.code == 200) { if (res.code == 200) {
uni.showToast({ uni.showToast({
title: '打开成功', title: '打开成功',
@ -527,7 +630,8 @@
keyword: this.sousuovalue, keyword: this.sousuovalue,
type: this.type type: this.type
} }
this.$u.post(`/app/getStoreListByLocation?pageNum=${this.pagesum}&pageSize=${this.pagesize}`,data).then(res => { this.$u.post(`/app/getStoreListByLocation?pageNum=${this.pagesum}&pageSize=${this.pagesize}`, data).then(
res => {
if (res.code == 200) { if (res.code == 200) {
this.xiaflag = true this.xiaflag = true
this.total = res.total this.total = res.total
@ -637,7 +741,8 @@
// //
btndetail(storeId, item) { btndetail(storeId, item) {
uni.reLaunch({ uni.reLaunch({
url:'/pages/index/index?storeId=' + storeId + '&tit=' + item.name + '&distance=' + item.distance url: '/pages/index/index?storeId=' + storeId + '&tit=' + item.name + '&distance=' + item
.distance
}) })
}, },
// //
@ -661,16 +766,19 @@
background: #fff; background: #fff;
border-radius: 0rpx 0rpx 0rpx 0rpx; border-radius: 0rpx 0rpx 0rpx 0rpx;
} }
#active { #active {
border: 1px solid #226914 !important; border: 1px solid #226914 !important;
background-color: #226914 !important; background-color: #226914 !important;
color: #fff !important; color: #fff !important;
} }
.activetab { .activetab {
font-weight: 600 !important; font-weight: 600 !important;
font-size: 40rpx !important; font-size: 40rpx !important;
color: #3D3D3D !important; color: #3D3D3D !important;
} }
.cesuoul { .cesuoul {
width: 260rpx; width: 260rpx;
max-height: 500rpx; max-height: 500rpx;
@ -683,6 +791,7 @@
z-index: 99; z-index: 99;
padding: 30rpx; padding: 30rpx;
box-sizing: border-box; box-sizing: border-box;
.anniuqx { .anniuqx {
width: 100%; width: 100%;
height: 80rpx; height: 80rpx;
@ -695,8 +804,10 @@
font-size: 32rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
} }
.cesuoli { .cesuoli {
width: 100%; width: 100%;
.caocuo { .caocuo {
.name { .name {
width: 100%; width: 100%;
@ -704,6 +815,7 @@
margin-top: 20rpx; margin-top: 20rpx;
font-size: 32rpx; font-size: 32rpx;
} }
.kaiguan { .kaiguan {
padding: 10rpx; padding: 10rpx;
background-color: #226914; background-color: #226914;
@ -718,6 +830,7 @@
} }
} }
.tabqh { .tabqh {
display: flex; display: flex;
width: 100%; width: 100%;
@ -728,6 +841,7 @@
// left: 0; // left: 0;
position: relative; position: relative;
border-radius: 30rpx 30rpx 0 0; border-radius: 30rpx 30rpx 0 0;
view { view {
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
@ -737,12 +851,14 @@
height: 84rpx; height: 84rpx;
line-height: 84rpx; line-height: 84rpx;
position: relative; position: relative;
text { text {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
} }
image { image {
height: 84rpx; height: 84rpx;
position: absolute; position: absolute;
@ -751,6 +867,7 @@
} }
} }
} }
.jinxinx { .jinxinx {
width: 60rpx; width: 60rpx;
height: 60rpx; height: 60rpx;
@ -760,6 +877,7 @@
transform: translateX(-50%); transform: translateX(-50%);
z-index: 2; z-index: 2;
} }
.karaokeroom { .karaokeroom {
position: fixed; position: fixed;
top: 332rpx; top: 332rpx;
@ -770,6 +888,7 @@
height: 828rpx; height: 828rpx;
background: linear-gradient(180deg, #DEF1DA 0%, #FFFFFF 100%, #FFFFFF 100%); background: linear-gradient(180deg, #DEF1DA 0%, #FFFFFF 100%, #FFFFFF 100%);
border-radius: 36rpx 36rpx 36rpx 36rpx; border-radius: 36rpx 36rpx 36rpx 36rpx;
.top { .top {
font-weight: 600; font-weight: 600;
font-size: 44rpx; font-size: 44rpx;
@ -779,6 +898,7 @@
margin-top: 52rpx; margin-top: 52rpx;
margin-bottom: 44rpx; margin-bottom: 44rpx;
} }
.anniu { .anniu {
width: 584rpx; width: 584rpx;
height: 86rpx; height: 86rpx;
@ -794,9 +914,11 @@
transform: translateX(-50%); transform: translateX(-50%);
bottom: 72rpx; bottom: 72rpx;
} }
.roomlist { .roomlist {
height: 480rpx; height: 480rpx;
overflow: scroll; overflow: scroll;
.room_item { .room_item {
width: 584rpx; width: 584rpx;
height: 224rpx; height: 224rpx;
@ -809,6 +931,7 @@
padding: 34rpx; padding: 34rpx;
box-sizing: border-box; box-sizing: border-box;
margin-top: 26rpx; margin-top: 26rpx;
.lt { .lt {
image { image {
width: 154rpx; width: 154rpx;
@ -820,6 +943,7 @@
} }
} }
} }
.mask { .mask {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
@ -829,13 +953,16 @@
background-color: #000; background-color: #000;
opacity: .2; opacity: .2;
} }
.page { .page {
width: 750rpx; width: 750rpx;
.xuanfu { .xuanfu {
position: fixed; position: fixed;
top: 38%; top: 38%;
right: 30rpx; right: 30rpx;
animation: fadeInDowns .5s ease-out forwards; animation: fadeInDowns .5s ease-out forwards;
image { image {
width: 90rpx; width: 90rpx;
height: 90rpx; height: 90rpx;
@ -843,31 +970,37 @@
margin-bottom: 44rpx; margin-bottom: 44rpx;
} }
} }
@keyframes fadeInDowns { @keyframes fadeInDowns {
from { from {
opacity: 0; opacity: 0;
transform: translateX(50px); transform: translateX(50px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateX(0); transform: translateX(0);
} }
} }
@keyframes fadeInDown { @keyframes fadeInDown {
from { from {
opacity: 0; opacity: 0;
transform: translateX(-50px); transform: translateX(-50px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateX(0); transform: translateX(0);
} }
} }
.xuanfus { .xuanfus {
position: fixed; position: fixed;
top: 34%; top: 34%;
right: -80rpx; right: -80rpx;
animation: fadeInDown .5s ease-out forwards; animation: fadeInDown .5s ease-out forwards;
image { image {
width: 90rpx; width: 90rpx;
height: 90rpx; height: 90rpx;
@ -875,6 +1008,7 @@
margin-top: 44rpx; margin-top: 44rpx;
} }
} }
.jiameng { .jiameng {
width: 100%; width: 100%;
text-align: center; text-align: center;
@ -883,6 +1017,7 @@
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
.gb { .gb {
width: 100rpx; width: 100rpx;
height: 40rpx; height: 40rpx;
@ -894,16 +1029,19 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 0 30rpx 0 0; border-radius: 0 30rpx 0 0;
text { text {
font-size: 34rpx; font-size: 34rpx;
} }
} }
image { image {
width: 710rpx; width: 710rpx;
height: 196rpx; height: 196rpx;
border-radius: 30rpx; border-radius: 30rpx;
} }
} }
.shoplist { .shoplist {
width: 750rpx; width: 750rpx;
max-height: 1250rpx; max-height: 1250rpx;
@ -916,6 +1054,7 @@
overflow: scroll; overflow: scroll;
padding-bottom: 240rpx !important; padding-bottom: 240rpx !important;
box-sizing: border-box; box-sizing: border-box;
.shop_item { .shop_item {
margin: auto; margin: auto;
display: flex; display: flex;
@ -927,16 +1066,19 @@
padding: 20rpx 18rpx; padding: 20rpx 18rpx;
box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.15); box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.15);
border-radius: 18rpx 18rpx 18rpx 18rpx; border-radius: 18rpx 18rpx 18rpx 18rpx;
.rt { .rt {
.storebq { .storebq {
margin-top: 16rpx; margin-top: 16rpx;
display: flex; display: flex;
image { image {
width: 108rpx; width: 108rpx;
height: 40rpx; height: 40rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
} }
.yuding { .yuding {
display: flex; display: flex;
align-items: center; align-items: center;
@ -944,22 +1086,26 @@
color: #48893B; color: #48893B;
margin-top: 26rpx; margin-top: 26rpx;
margin-left: 248rpx; margin-left: 248rpx;
.one { .one {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
.two { .two {
width: 14rpx; width: 14rpx;
height: 36rpx; height: 36rpx;
margin-left: 10rpx; margin-left: 10rpx;
} }
} }
.juli { .juli {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 16rpx; margin-top: 16rpx;
align-items: center; align-items: center;
.kmjuli { .kmjuli {
width: 210rpx; width: 210rpx;
height: 40rpx; height: 40rpx;
@ -970,6 +1116,7 @@
font-size: 26rpx; font-size: 26rpx;
color: #48893B; color: #48893B;
} }
.juliimg { .juliimg {
image { image {
width: 60rpx; width: 60rpx;
@ -978,24 +1125,29 @@
} }
} }
} }
.dizhi { .dizhi {
font-size: 26rpx; font-size: 26rpx;
color: #7C7C7C; color: #7C7C7C;
margin-top: 16rpx; margin-top: 16rpx;
} }
.name { .name {
font-weight: 600; font-weight: 600;
font-size: 36rpx; font-size: 36rpx;
color: #3D3D3D; color: #3D3D3D;
} }
} }
.lt { .lt {
margin-right: 38rpx; margin-right: 38rpx;
image { image {
width: 186rpx; width: 186rpx;
height: 220rpx; height: 220rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
.hour { .hour {
font-size: 32rpx; font-size: 32rpx;
color: #48893B; color: #48893B;
@ -1004,6 +1156,7 @@
} }
} }
} }
.serchshop { .serchshop {
display: flex; display: flex;
margin-top: 40rpx; margin-top: 40rpx;
@ -1012,6 +1165,7 @@
padding-left: 34rpx; padding-left: 34rpx;
padding-right: 34rpx; padding-right: 34rpx;
box-sizing: border-box; box-sizing: border-box;
.search { .search {
width: 468rpx; width: 468rpx;
height: 72rpx; height: 72rpx;
@ -1019,28 +1173,33 @@
background: #FFFFFF; background: #FFFFFF;
border-radius: 6rpx 6rpx 6rpx 6rpx; border-radius: 6rpx 6rpx 6rpx 6rpx;
position: relative; position: relative;
input { input {
margin-left: 94rpx; margin-left: 94rpx;
height: 72rpx; height: 72rpx;
line-height: 72rpx; line-height: 72rpx;
} }
/deep/ .uicon-search { /deep/ .uicon-search {
position: absolute; position: absolute;
top: 24rpx !important; top: 24rpx !important;
left: 26rpx !important; left: 26rpx !important;
} }
} }
.dingwei { .dingwei {
display: flex; display: flex;
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
color: #48893B; color: #48893B;
align-items: center; align-items: center;
.dwimg { .dwimg {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
margin-right: 12rpx; margin-right: 12rpx;
} }
.xlimg { .xlimg {
width: 26rpx; width: 26rpx;
height: 14rpx; height: 14rpx;
@ -1048,6 +1207,7 @@
} }
} }
} }
.title { .title {
font-weight: 600; font-weight: 600;
font-size: 36rpx; font-size: 36rpx;
@ -1057,6 +1217,7 @@
padding-left: 34rpx; padding-left: 34rpx;
box-sizing: border-box; box-sizing: border-box;
} }
.imgbj { .imgbj {
width: 750rpx; width: 750rpx;
height: 610rpx; height: 610rpx;

View File

@ -282,7 +282,7 @@
}else{ }else{
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'success', icon: 'none',
duration:2000 duration:2000
}) })
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1007 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 769 B