This commit is contained in:
吴鹏 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>
<script>
import { number } from 'echarts'
// import { number } from 'echarts'
export default {
data() {

View File

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

View File

@ -39,13 +39,13 @@
onLoad(option) {
if(option.roomId){ //and
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){ //-
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){ //
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)
this.qrFun()

View File

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

View File

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

View File

@ -232,7 +232,7 @@
},
//
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 => {
if (res.code == 200) {
uni.showToast({
@ -249,7 +249,10 @@
}
})
}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) {
uni.showToast({
title: '开启店门成功',

View File

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

View File

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

View File

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

View File

@ -282,7 +282,7 @@
}else{
uni.showToast({
title: res.msg,
icon: 'success',
icon: 'none',
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