测试-床垫
This commit is contained in:
parent
3bd17e7245
commit
3dfd82456e
|
@ -16,12 +16,11 @@ const install = (Vue, vm) => {
|
||||||
// // 配置请求头信息
|
// // 配置请求头信息
|
||||||
// header: {
|
// header: {
|
||||||
// 'content-type': 'application/json;charset=UTF-8',
|
// 'content-type': 'application/json;charset=UTF-8',
|
||||||
|
|
||||||
// },
|
// },
|
||||||
// });
|
// });
|
||||||
Vue.prototype.$u.http.setConfig({
|
Vue.prototype.$u.http.setConfig({
|
||||||
baseUrl: 'http://192.168.2.81:3302',
|
// baseUrl: 'http://192.168.2.81:3302',
|
||||||
// baseUrl: 'https://kang.chuangtewl.com/prod-api',
|
baseUrl: 'https://kang.chuangtewl.com/prod-api',
|
||||||
loadingText: '努力加载中~',
|
loadingText: '努力加载中~',
|
||||||
loadingTime: 800,
|
loadingTime: 800,
|
||||||
// 设置自定义头部content-type
|
// 设置自定义头部content-type
|
||||||
|
|
|
@ -200,7 +200,7 @@
|
||||||
}
|
}
|
||||||
// console.log(that.tcidlist,indexInTcidList,'0202');
|
// console.log(that.tcidlist,indexInTcidList,'0202');
|
||||||
that.tcidlist = that.tcidlist.filter(item => item !== undefined)
|
that.tcidlist = that.tcidlist.filter(item => item !== undefined)
|
||||||
console.log(that.tcidlist,'10101010');
|
// console.log(that.tcidlist,'10101010');
|
||||||
let data = {
|
let data = {
|
||||||
storeIds: that.tcidlist,
|
storeIds: that.tcidlist,
|
||||||
suitId: that.suitId
|
suitId: that.suitId
|
||||||
|
@ -443,7 +443,6 @@
|
||||||
.time_item {
|
.time_item {
|
||||||
width: 134rpx;
|
width: 134rpx;
|
||||||
height: 48rpx;
|
height: 48rpx;
|
||||||
// background: #64B6A7;
|
|
||||||
border-radius: 6rpx 6rpx 6rpx 6rpx;
|
border-radius: 6rpx 6rpx 6rpx 6rpx;
|
||||||
margin-top: 18rpx;
|
margin-top: 18rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
@ -531,7 +530,6 @@
|
||||||
height: 58rpx;
|
height: 58rpx;
|
||||||
background: #D8D8D8;
|
background: #D8D8D8;
|
||||||
border-radius: 6rpx 6rpx 6rpx 6rpx;
|
border-radius: 6rpx 6rpx 6rpx 6rpx;
|
||||||
// padding-left: 30rpx;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
|
@ -539,7 +537,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.feelt {
|
.feelt {
|
||||||
// width: 174rpx;
|
|
||||||
height: 42rpx;
|
height: 42rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
@ -575,7 +572,6 @@
|
||||||
height: 58rpx;
|
height: 58rpx;
|
||||||
background: #D8D8D8;
|
background: #D8D8D8;
|
||||||
border-radius: 6rpx 6rpx 6rpx 6rpx;
|
border-radius: 6rpx 6rpx 6rpx 6rpx;
|
||||||
// padding-left: 30rpx;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
|
@ -721,7 +717,6 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
// overflow: hidden;
|
|
||||||
|
|
||||||
.tcname {
|
.tcname {
|
||||||
width: 654rpx;
|
width: 654rpx;
|
||||||
|
@ -783,8 +778,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
// margin-top: 30rpx;
|
|
||||||
// padding-left: 100rpx;
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,6 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.toptime{
|
.toptime{
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
// color: #000000;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,13 +239,6 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
// /deep/ .u-title {
|
|
||||||
// padding-bottom: 22rpx;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// /deep/ .u-icon__icon {
|
|
||||||
// padding-bottom: 22rpx;
|
|
||||||
// }
|
|
||||||
.active {
|
.active {
|
||||||
background-color: #8883F0 !important;
|
background-color: #8883F0 !important;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
@ -267,7 +260,6 @@
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
padding-top: 40rpx;
|
padding-top: 40rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
// justify-content: space-between;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-left: 50rpx;
|
padding-left: 50rpx;
|
||||||
padding-right: 50rpx;
|
padding-right: 50rpx;
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
<u-navbar :title="tit" :border-bottom="false" :background="bgc" title-color='#3D3D3D' back-icon-color="#3D3D3D"
|
<u-navbar :title="tit" :border-bottom="false" :background="bgc" title-color='#3D3D3D' back-icon-color="#3D3D3D"
|
||||||
title-size='38' height='44'></u-navbar>
|
title-size='38' height='44'></u-navbar>
|
||||||
|
|
||||||
<!-- <view class="cont" v-html="cont">
|
<view class="cont" v-html="cont">
|
||||||
|
|
||||||
</view> -->
|
</view>
|
||||||
<rich-text class="cont" :nodes="cont"></rich-text>
|
<!-- <rich-text class="cont" :nodes="cont"></rich-text> -->
|
||||||
|
|
||||||
|
|
||||||
<view class="" style="position: fixed;top: 0;left: 0;width: 100%;height: 100vh;z-index: -1;">
|
<view class="" style="position: fixed;top: 0;left: 0;width: 100%;height: 100vh;z-index: -1;">
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
<view class="thr">{{obj.storeName == undefined ? '--' : obj.storeName}}</view>
|
<view class="thr">{{obj.storeName == undefined ? '--' : obj.storeName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="jy">
|
<view class="jy">
|
||||||
<view class="one" style="width: 160rpx;">经营地址:</view>
|
<view class="one" style="width: 180rpx;">经营地址:</view>
|
||||||
<view class="two">{{obj.storeAddress == undefined ? '--' : obj.storeAddress}}</view>
|
<view class="two">{{obj.storeAddress == undefined ? '--' : obj.storeAddress}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="jy">
|
<view class="jy">
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
收益明细
|
收益明细
|
||||||
</view>
|
</view>
|
||||||
<view class="jy" v-for="(item,index) in obj.bonusList" :key="index">
|
<view class="jy" v-for="(item,index) in obj.bonusList" :key="index">
|
||||||
<view class="one">{{item.arrivalName == undefined ? '--' : item.arrivalName}}(<text v-if="item.arrivalType == 1">平台</text><text v-if="item.arrivalType == 2">公司</text><text v-if="item.arrivalType == 3">合作伙伴商</text><text v-if="item.arrivalType == 4">渠道商</text><text v-if="item.arrivalType == 5">创业者</text><text v-if="item.arrivalType == 6">经营场所</text>){{item.point}}%</view>
|
<view class="one">{{item.arrivalName == undefined ? '--' : item.arrivalName}}(<text v-if="item.arrivalType == 1">平台</text><text v-if="item.arrivalType == 2">公司</text><text v-if="item.arrivalType == 3">合作伙伴</text><text v-if="item.arrivalType == 4">渠道商</text><text v-if="item.arrivalType == 5">创业者</text><text v-if="item.arrivalType == 6">经营场所</text>){{item.point}}%</view>
|
||||||
<!-- <view class="two">¥{{item.amount== undefined ? '--' : otem.amount}}</view> -->
|
<!-- <view class="two">¥{{item.amount== undefined ? '--' : otem.amount}}</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<view class="wbd" v-else style="color: #8883F0;" @click.stop="btnbds(item.deviceId)">未绑定</view>
|
<view class="wbd" v-else style="color: #8883F0;" @click.stop="btnbds(item.deviceId)">未绑定</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bd">
|
<view class="bd">
|
||||||
<view class="one" style="width: 160rpx;">经营地址</view>
|
<view class="one" style="width: 180rpx;">经营地址</view>
|
||||||
<view class="one">{{item.storeAddress == undefined ? '--' : item.storeAddress}}</view>
|
<view class="one">{{item.storeAddress == undefined ? '--' : item.storeAddress}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cen" v-if="type == 2">
|
<view class="cen" v-if="type == 2">
|
||||||
|
|
|
@ -8,11 +8,10 @@
|
||||||
<view class="wz" @click="call" style="text-align: right;padding-right: 50rpx;"
|
<view class="wz" @click="call" style="text-align: right;padding-right: 50rpx;"
|
||||||
v-if="obj.storeContactMobile == null">
|
v-if="obj.storeContactMobile == null">
|
||||||
<image style="width: 48rpx;height: 50rpx;vertical-align: middle;"
|
<image style="width: 48rpx;height: 50rpx;vertical-align: middle;"
|
||||||
src="https://api.ccttiot.com/smartmeter/img/static/u9bYsfyXGAMwKMFfQAmL" mode=""></image>
|
src="https://api.ccttiot.com/smartmeter/img/static/u9bYsfyXGAMwKMFfQAmL" mode="aspectFit"></image>
|
||||||
<!-- <text>客服</text> -->
|
<!-- <text>客服</text> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="wz" @click="call"
|
<view class="wz" @click="call" style="text-align: right;padding-right: 50rpx;" v-else>
|
||||||
style="text-align: right;padding-right: 50rpx;" v-else>
|
|
||||||
<image style="width: 60rpx;height: 64rpx;vertical-align: middle;"
|
<image style="width: 60rpx;height: 64rpx;vertical-align: middle;"
|
||||||
src="https://api.ccttiot.com/smartmeter/img/static/u9bYsfyXGAMwKMFfQAmL" mode=""></image>
|
src="https://api.ccttiot.com/smartmeter/img/static/u9bYsfyXGAMwKMFfQAmL" mode=""></image>
|
||||||
<!-- <text>客服</text> -->
|
<!-- <text>客服</text> -->
|
||||||
|
@ -20,12 +19,13 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<!-- 套餐 -->
|
<!-- 套餐 @scrolltolower="onScrollToLower"-->
|
||||||
<view class="list">
|
<scroll-view class="list" scroll-y="true" @scroll="handleScroll" :scroll-top="scrollTop" scroll-with-animation="true">
|
||||||
<view class="list_item" :class="activeindex == item.suitId ? 'active' : ''" v-for="(item,index) in list" :key="index"
|
<view class="list_item" :class="activeindex == item.suitId ? 'active' : ''" v-for="(item,index) in list"
|
||||||
@click="btnactive(item)">
|
:key="index" @click="btnactive(item)">
|
||||||
<view class="tit">
|
<view class="tit">
|
||||||
<text class="tc" :class="activeindex == item.suitId ? 'active' : ''">{{item.name}}</text> <text class="yh"
|
<text class="tc" :class="activeindex == item.suitId ? 'active' : ''">{{item.name}}</text> <text
|
||||||
|
class="yh"
|
||||||
:class="activeindex == item.suitId ? 'actives' : ''">{{item.usePoint}}%用户选择</text>
|
:class="activeindex == item.suitId ? 'actives' : ''">{{item.usePoint}}%用户选择</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="bot">
|
<view class="bot">
|
||||||
|
@ -37,14 +37,16 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<image v-if="picimg" class="picdh" @click="btnscrll"
|
||||||
|
src="https://api.ccttiot.com/smartmeter/img/static/uDdjuHcC2h79pEBoQdTh" mode=""></image>
|
||||||
|
</scroll-view>
|
||||||
<!-- 说明 -->
|
<!-- 说明 -->
|
||||||
<view class="shuom">
|
<view class="shuom">
|
||||||
<view class="shuomtit">
|
<view class="shuomtit">
|
||||||
功能介绍
|
功能介绍
|
||||||
</view>
|
</view>
|
||||||
<view class="cont" style="height: 208rpx;" v-html="obj.funcInfo">
|
<view class="cont" style="height: 208rpx;" v-html="obj.funcInfo">
|
||||||
<!-- {{obj.funcInfo == undefined ? '暂无介绍...' : obj.funcInfo}} -->
|
<!-- {{obj.funcInfo == undefined ? '暂无介绍...'}} -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="shuom" style="max-height: 220rpx;margin-top: 30rpx;">
|
<view class="shuom" style="max-height: 220rpx;margin-top: 30rpx;">
|
||||||
|
@ -52,11 +54,13 @@
|
||||||
设备地址
|
设备地址
|
||||||
</view>
|
</view>
|
||||||
<view class="shuomwz">
|
<view class="shuomwz">
|
||||||
<image style="width: 30rpx;height: 30rpx;margin-right: 6rpx;" src="https://api.ccttiot.com/smartmeter/img/static/umUFE9oFeYo2Q7atp3jv" mode=""></image>
|
<image style="width: 30rpx;height: 30rpx;margin-right: 6rpx;"
|
||||||
|
src="https://api.ccttiot.com/smartmeter/img/static/umUFE9oFeYo2Q7atp3jv" mode=""></image>
|
||||||
{{obj.storeName == undefined ? '' : obj.storeName}} {{obj.room == undefined ? '--' : obj.room}}室
|
{{obj.storeName == undefined ? '' : obj.storeName}} {{obj.room == undefined ? '--' : obj.room}}室
|
||||||
</view>
|
</view>
|
||||||
<view class="shuomwz">
|
<view class="shuomwz">
|
||||||
<image style="width: 30rpx;height: 30rpx;margin-right: 6rpx;" src="https://api.ccttiot.com/smartmeter/img/static/uHHgD7nRON3WTmomzKVE" mode=""></image>
|
<image style="width: 30rpx;height: 30rpx;margin-right: 6rpx;"
|
||||||
|
src="https://api.ccttiot.com/smartmeter/img/static/uHHgD7nRON3WTmomzKVE" mode=""></image>
|
||||||
{{obj.storeAddress ? (obj.storeAddress.length > 18 ? obj.storeAddress.substring(0, 18) + '...' : obj.storeAddress) : '' }}
|
{{obj.storeAddress ? (obj.storeAddress.length > 18 ? obj.storeAddress.substring(0, 18) + '...' : obj.storeAddress) : '' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -95,9 +99,12 @@
|
||||||
<view class="kfshuzu">
|
<view class="kfshuzu">
|
||||||
<view class="item_val" v-for="(item,index) in kefulist" :key="index" @click="btncall(item.mobile)">
|
<view class="item_val" v-for="(item,index) in kefulist" :key="index" @click="btncall(item.mobile)">
|
||||||
<view class="lt">
|
<view class="lt">
|
||||||
<image v-if="item.type == 2" src="https://api.ccttiot.com/smartmeter/img/static/urCSQTavLmUje5oTIsE6" mode=""></image>
|
<image v-if="item.type == 2"
|
||||||
<image v-if="item.type == 3" src="https://api.ccttiot.com/smartmeter/img/static/uE5rZZvVutxxUj9I06m5" mode=""></image>
|
src="https://api.ccttiot.com/smartmeter/img/static/urCSQTavLmUje5oTIsE6" mode=""></image>
|
||||||
<image v-if="item.type == 4" src="https://api.ccttiot.com/smartmeter/img/static/uruHLe3W460sdXr2lcxF" mode=""></image>
|
<image v-if="item.type == 3"
|
||||||
|
src="https://api.ccttiot.com/smartmeter/img/static/uE5rZZvVutxxUj9I06m5" mode=""></image>
|
||||||
|
<image v-if="item.type == 4"
|
||||||
|
src="https://api.ccttiot.com/smartmeter/img/static/uruHLe3W460sdXr2lcxF" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="rt">
|
<view class="rt">
|
||||||
<view class="" v-if="item.type == 2">{{item.name}}</view>
|
<view class="" v-if="item.type == 2">{{item.name}}</view>
|
||||||
|
@ -133,6 +140,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
picimg: false,
|
||||||
jine: '',
|
jine: '',
|
||||||
zfflag: false,
|
zfflag: false,
|
||||||
jzflag: false,
|
jzflag: false,
|
||||||
|
@ -170,7 +178,8 @@
|
||||||
kfflag: false,
|
kfflag: false,
|
||||||
timer: null,
|
timer: null,
|
||||||
titflag: false,
|
titflag: false,
|
||||||
kefulist:[]
|
kefulist: [],
|
||||||
|
scrollTop:0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
@ -252,9 +261,14 @@
|
||||||
this.$u.get(`app/device/${this.id}/withSuitList`).then((res) => {
|
this.$u.get(`app/device/${this.id}/withSuitList`).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.list = res.data.suitList
|
this.list = res.data.suitList
|
||||||
|
if (this.list.length <= 3) {
|
||||||
|
this.picimg = false
|
||||||
|
} else {
|
||||||
|
this.picimg = true
|
||||||
|
}
|
||||||
this.obj = res.data
|
this.obj = res.data
|
||||||
this.onlineStatus = res.data.onlineStatus
|
this.onlineStatus = res.data.onlineStatus
|
||||||
this.mac = 'CTKG-' + res.data.mac
|
this.mac = 'CCYK:' + res.data.mac
|
||||||
this.getkefu()
|
this.getkefu()
|
||||||
} else if (res.code == 401) {
|
} else if (res.code == 401) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
@ -263,6 +277,24 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 滚动到底部
|
||||||
|
handleScroll(e) {
|
||||||
|
if (e.detail.deltaY <= 0) {
|
||||||
|
this.picimg = false
|
||||||
|
} else {
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.scrollTop = 0
|
||||||
|
if(this.list.length <= 3){
|
||||||
|
this.picimg = false
|
||||||
|
}else{
|
||||||
|
this.picimg = true
|
||||||
|
}
|
||||||
|
},500)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
btnscrll() {
|
||||||
|
this.scrollTop = 99999
|
||||||
|
},
|
||||||
// 点击支付
|
// 点击支付
|
||||||
btnzhifu() {
|
btnzhifu() {
|
||||||
if (this.onlineStatus == 0) {
|
if (this.onlineStatus == 0) {
|
||||||
|
@ -340,72 +372,149 @@
|
||||||
that.timer = null;
|
that.timer = null;
|
||||||
}
|
}
|
||||||
// 111111111111111111111111
|
// 111111111111111111111111
|
||||||
that.$u.put(`/app/bill/${that.orderno}/refreshPayResult`).then(res =>{
|
that.$u.put(
|
||||||
|
`/app/bill/${that.orderno}/refreshPayResult`
|
||||||
|
).then(res => {
|
||||||
// if(res.code == 200){
|
// if(res.code == 200){
|
||||||
that.$u.get('/app/bill/recharge/device/fail/list').then(res => {
|
that.$u.get(
|
||||||
|
'/app/bill/recharge/device/fail/list'
|
||||||
|
).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if(res.data.length != 0){
|
if (res.data
|
||||||
let dingobj = res.data[0].billNo
|
.length != 0) {
|
||||||
|
let dingobj =
|
||||||
|
res.data[0]
|
||||||
|
.billNo
|
||||||
uni.getNetworkType({
|
uni.getNetworkType({
|
||||||
success(res) {
|
success(
|
||||||
if (res.networkType !== 'none') {
|
res
|
||||||
|
) {
|
||||||
|
if (res
|
||||||
|
.networkType !==
|
||||||
|
'none'
|
||||||
|
) {
|
||||||
uni.getConnectedBluetoothDevices({
|
uni.getConnectedBluetoothDevices({
|
||||||
success(res) {
|
success(
|
||||||
that.jzflag = true
|
res
|
||||||
|
) {
|
||||||
|
that.jzflag =
|
||||||
|
true
|
||||||
that.startLoading()
|
that.startLoading()
|
||||||
setTimeout(()=> {
|
setTimeout
|
||||||
xBlufi.notifySendCustomData({
|
(() => {
|
||||||
customData: "time@" + that.jine
|
xBlufi
|
||||||
|
.notifySendCustomData({
|
||||||
|
customData: "11time@" +
|
||||||
|
that
|
||||||
|
.jine
|
||||||
})
|
})
|
||||||
},1500)
|
|
||||||
},
|
},
|
||||||
fail(err) {
|
1500
|
||||||
console.error('获取已连接蓝牙设备信息失败:',err)
|
)
|
||||||
|
},
|
||||||
|
fail(
|
||||||
|
err
|
||||||
|
) {
|
||||||
|
console
|
||||||
|
.error(
|
||||||
|
'获取已连接蓝牙设备信息失败:',
|
||||||
|
err
|
||||||
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
that.$u.get(`/app/bill/recharge/${dingobj}/bluetoothSuccess`).then(res => {
|
that.$u
|
||||||
if (res.code == 200) {
|
.get(
|
||||||
that.zhifuflag = true
|
`/app/bill/recharge/${dingobj}/bluetoothSuccess`
|
||||||
console.log('蓝牙离线充值成功11')
|
)
|
||||||
setTimeout(() => {
|
.then(
|
||||||
|
res => {
|
||||||
|
if (res
|
||||||
|
.code ==
|
||||||
|
200
|
||||||
|
) {
|
||||||
|
that.zhifuflag =
|
||||||
|
true
|
||||||
|
console
|
||||||
|
.log(
|
||||||
|
'蓝牙离线充值成功11'
|
||||||
|
)
|
||||||
|
setTimeout
|
||||||
|
(() => {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/pages/index/index?id=' + that.orderno
|
url: '/pages/index/index?id=' +
|
||||||
|
that
|
||||||
|
.orderno
|
||||||
})
|
})
|
||||||
},1000)
|
},
|
||||||
|
1000
|
||||||
|
)
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
console.log('手机未连接网络')
|
console
|
||||||
|
.log(
|
||||||
|
'手机未连接网络'
|
||||||
|
)
|
||||||
// this.baiflag = false
|
// this.baiflag = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.getNetworkType({
|
uni.getNetworkType({
|
||||||
success(res) {
|
success(
|
||||||
if (res.networkType !== 'none') {
|
res
|
||||||
|
) {
|
||||||
|
if (res
|
||||||
|
.networkType !==
|
||||||
|
'none'
|
||||||
|
) {
|
||||||
uni.getConnectedBluetoothDevices({
|
uni.getConnectedBluetoothDevices({
|
||||||
success(res) {
|
success(
|
||||||
that.jzflag = true
|
res
|
||||||
|
) {
|
||||||
|
that.jzflag =
|
||||||
|
true
|
||||||
that.startLoading()
|
that.startLoading()
|
||||||
setTimeout(()=> {
|
setTimeout
|
||||||
xBlufi.notifySendCustomData({
|
(() => {
|
||||||
customData: "time@" + that.jine
|
xBlufi
|
||||||
|
.notifySendCustomData({
|
||||||
|
customData: "11time@" +
|
||||||
|
that
|
||||||
|
.jine
|
||||||
})
|
})
|
||||||
},1500)
|
|
||||||
},
|
},
|
||||||
fail(err) {
|
1500
|
||||||
console.error('获取已连接蓝牙设备信息失败:',err)
|
)
|
||||||
|
},
|
||||||
|
fail(
|
||||||
|
err
|
||||||
|
) {
|
||||||
|
console
|
||||||
|
.error(
|
||||||
|
'获取已连接蓝牙设备信息失败:',
|
||||||
|
err
|
||||||
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
that.zhifuflag = true
|
that.zhifuflag =
|
||||||
setTimeout(() => {
|
true
|
||||||
|
setTimeout
|
||||||
|
(() => {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/pages/index/index?id=' + that.orderno
|
url: '/pages/index/index?id=' +
|
||||||
|
that
|
||||||
|
.orderno
|
||||||
})
|
})
|
||||||
},1000)
|
},
|
||||||
|
1000
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
console.log('手机未连接网络')
|
console
|
||||||
|
.log(
|
||||||
|
'手机未连接网络'
|
||||||
|
)
|
||||||
// this.baiflag = false
|
// this.baiflag = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -488,11 +597,14 @@
|
||||||
paySign: res.data.payParams.paySign,
|
paySign: res.data.payParams.paySign,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
that.zhifuflag = true
|
that.zhifuflag = true
|
||||||
that.$u.put(`/app/bill/${that.payNo}/refreshPayResult`).then(res => {})
|
that.$u.put(
|
||||||
|
`/app/bill/${that.payNo}/refreshPayResult`
|
||||||
|
).then(res => {
|
||||||
// 支付成功逻辑
|
// 支付成功逻辑
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index'
|
||||||
})
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
that.zhifuflag = true
|
that.zhifuflag = true
|
||||||
|
@ -590,7 +702,8 @@
|
||||||
case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS_STOP:
|
case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS_STOP:
|
||||||
if (options.result) {
|
if (options.result) {
|
||||||
let uniqueDevicesList = Array.from(new Set(this.devicesList));
|
let uniqueDevicesList = Array.from(new Set(this.devicesList));
|
||||||
let filteredDevices = uniqueDevicesList.filter(device => device.name.substring(0, 4) === "CTKG");
|
let filteredDevices = uniqueDevicesList.filter(device => device.name.substring(0, 4) ===
|
||||||
|
"CCYK");
|
||||||
// 将过滤后的数组重新赋值给 this.devicesList
|
// 将过滤后的数组重新赋值给 this.devicesList
|
||||||
this.devicesList = filteredDevices;
|
this.devicesList = filteredDevices;
|
||||||
}
|
}
|
||||||
|
@ -700,6 +813,7 @@
|
||||||
/deep/ .u-title {
|
/deep/ .u-title {
|
||||||
padding-bottom: 15rpx;
|
padding-bottom: 15rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.czdh {
|
.czdh {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
@ -708,18 +822,21 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
background-color: rgba(0, 0, 0, .5);
|
background-color: rgba(0, 0, 0, .5);
|
||||||
padding-top: 700rpx;
|
padding-top: 700rpx;
|
||||||
|
|
||||||
.bj {
|
.bj {
|
||||||
width: 500rpx;
|
width: 500rpx;
|
||||||
height: 300rpx;
|
height: 300rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
|
||||||
.tittop {
|
.tittop {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 50rpx;
|
padding-top: 50rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bfb {
|
.bfb {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -729,6 +846,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.qx {
|
.qx {
|
||||||
width: 68rpx;
|
width: 68rpx;
|
||||||
height: 68rpx;
|
height: 68rpx;
|
||||||
|
@ -745,6 +863,7 @@
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.kflist {
|
.kflist {
|
||||||
width: 590rpx;
|
width: 590rpx;
|
||||||
height: 778rpx;
|
height: 778rpx;
|
||||||
|
@ -757,6 +876,7 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
padding-top: 48rpx;
|
padding-top: 48rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.kftit {
|
.kftit {
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
|
@ -764,6 +884,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kfwz {
|
.kfwz {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
|
@ -771,9 +892,11 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kfshuzu {
|
.kfshuzu {
|
||||||
height: 580rpx;
|
height: 580rpx;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
|
||||||
.item_val {
|
.item_val {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -786,15 +909,18 @@
|
||||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 42rpx;
|
margin-top: 42rpx;
|
||||||
|
|
||||||
.lt {
|
.lt {
|
||||||
margin-right: 34rpx;
|
margin-right: 34rpx;
|
||||||
padding-top: 10rpx;
|
padding-top: 10rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 76rpx;
|
width: 76rpx;
|
||||||
height: 78rpx;
|
height: 78rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.rt {
|
.rt {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
|
@ -802,6 +928,31 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.picdh {
|
||||||
|
width: 30rpx;
|
||||||
|
height: 25rpx;
|
||||||
|
position: fixed;
|
||||||
|
top: 53%;
|
||||||
|
right: 76rpx;
|
||||||
|
z-index: 99;
|
||||||
|
opacity: .5;
|
||||||
|
animation: moveUpDown 1.5s infinite ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes moveUpDown {
|
||||||
|
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
transform: translateY(-10rpx);
|
||||||
|
/* 控制上下跳动的幅度 */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mask {
|
.mask {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -811,10 +962,12 @@
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
}
|
}
|
||||||
|
|
||||||
page {
|
page {
|
||||||
background-color: #F7FAFE;
|
background-color: #F7FAFE;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shibai {
|
.shibai {
|
||||||
margin-top: 50rpx;
|
margin-top: 50rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -870,16 +1023,18 @@
|
||||||
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
|
||||||
filter: blur(0px);
|
filter: blur(0px);
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 50rpx;
|
margin-top: 60rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.cont {
|
.cont {
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
max-height: 120rpx;
|
max-height: 120rpx;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shuomtit {
|
.shuomtit {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
|
|
|
@ -65,12 +65,20 @@
|
||||||
¥{{detailobj.money == undefined ? '--' : detailobj.money}}
|
¥{{detailobj.money == undefined ? '--' : detailobj.money}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="item_xx" v-if="detailobj.status == 3">
|
||||||
|
<view class="">
|
||||||
|
退款金额
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
¥{{detailobj.refundAmount == undefined ? '--' : detailobj.refundAmount}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="item_xx">
|
<view class="item_xx">
|
||||||
<view class="">
|
<view class="">
|
||||||
经营场所:
|
经营场所:
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
{{detailobj.storeName == undefined ? '--' : detailobj.storeName}}
|
{{detailobj.storeName == undefined ? '--' : detailobj.storeName}} {{detailobj.deviceRoom == undefined ? '' : detailobj.deviceRoom + '室'}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item_xx">
|
<view class="item_xx">
|
||||||
|
@ -197,6 +205,7 @@
|
||||||
isUsing: false,
|
isUsing: false,
|
||||||
timer: null,
|
timer: null,
|
||||||
timers: null,
|
timers: null,
|
||||||
|
pictrim:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
@ -363,7 +372,7 @@
|
||||||
success(res) {
|
success(res) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
xBlufi.notifySendCustomData({
|
xBlufi.notifySendCustomData({
|
||||||
customData: 'time0@'
|
customData: '11time0@'
|
||||||
})
|
})
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '操作成功',
|
title: '操作成功',
|
||||||
|
@ -405,6 +414,11 @@
|
||||||
|
|
||||||
// 点击临时开关
|
// 点击临时开关
|
||||||
btnimg() {
|
btnimg() {
|
||||||
|
if(this.pictrim == true){ //防止频繁点击
|
||||||
|
this.pictrim = false
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.pictrim = true
|
||||||
|
},5000)
|
||||||
if (this.detailobj.deviceOnlineStatus == 1) {
|
if (this.detailobj.deviceOnlineStatus == 1) {
|
||||||
this.$u.put(`/app/bill/switchDevice?billId=${this.billId}&open=false`).then(res => {
|
this.$u.put(`/app/bill/switchDevice?billId=${this.billId}&open=false`).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
@ -450,7 +464,7 @@
|
||||||
success(res) {
|
success(res) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
xBlufi.notifySendCustomData({
|
xBlufi.notifySendCustomData({
|
||||||
customData: 'close'
|
customData: '11close'
|
||||||
})
|
})
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '操作成功',
|
title: '操作成功',
|
||||||
|
@ -474,8 +488,20 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title: '请不要频繁点击',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
btnimgs() {
|
btnimgs() {
|
||||||
|
if(this.pictrim == true){ //防止频繁点击
|
||||||
|
this.pictrim = false
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.pictrim = true
|
||||||
|
},5000)
|
||||||
if (this.detailobj.deviceOnlineStatus == 1) {
|
if (this.detailobj.deviceOnlineStatus == 1) {
|
||||||
this.$u.put(`/app/bill/switchDevice?billId=${this.billId}&open=true`).then(res => {
|
this.$u.put(`/app/bill/switchDevice?billId=${this.billId}&open=true`).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
@ -521,7 +547,7 @@
|
||||||
success(res) {
|
success(res) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
xBlufi.notifySendCustomData({
|
xBlufi.notifySendCustomData({
|
||||||
customData: 'open'
|
customData: '11open'
|
||||||
})
|
})
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '操作成功',
|
title: '操作成功',
|
||||||
|
@ -545,6 +571,13 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title: '请不要频繁点击',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
btndel() {
|
btndel() {
|
||||||
|
@ -1036,7 +1069,7 @@
|
||||||
|
|
||||||
.list_item {
|
.list_item {
|
||||||
width: 658rpx;
|
width: 658rpx;
|
||||||
max-height: 380rpx;
|
max-height: 410rpx;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
|
||||||
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
||||||
|
|
|
@ -9,38 +9,16 @@
|
||||||
<view class="bh">
|
<view class="bh">
|
||||||
设备编号:{{item.deviceNo}}
|
设备编号:{{item.deviceNo}}
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="wc" v-if="item.status == 2" style="color: #e6b000;">
|
|
||||||
已支付
|
|
||||||
</view>
|
|
||||||
<view class="wc" v-if="item.status == 1" style="color: #004fd8;">
|
|
||||||
未支付
|
|
||||||
</view>
|
|
||||||
<view class="wc" v-if="item.status == 3" style="color: #e10328;">
|
|
||||||
已退款
|
|
||||||
</view>
|
|
||||||
<view class="wc" v-if="item.status == 4" style="color: #5d5d5d;">
|
|
||||||
已取消(用户)
|
|
||||||
</view>
|
|
||||||
<view class="wc" v-if="item.status == 5" style="color: #5d5d5d;">
|
|
||||||
已取消(系统)
|
|
||||||
</view>
|
|
||||||
<view class="wc" v-if="item.status == 6" style="color: #e6b000;">
|
|
||||||
支付中
|
|
||||||
</view>
|
|
||||||
<view class="wc" v-if="item.status == 7" style="color: #e10328;">
|
|
||||||
退款中
|
|
||||||
</view> -->
|
|
||||||
<view style="color: #17b402;" v-if="item.isUsing == true"> <text
|
<view style="color: #17b402;" v-if="item.isUsing == true"> <text
|
||||||
style="background-color: #17b402;"></text> 进行中 </view>
|
style="background-color: #17b402;"></text> 进行中 </view>
|
||||||
<view style="color: #8883F0;" v-if="item.isFinished == true"> <text
|
<view style="color: #8883F0;" v-if="item.isFinished == true && item.status != 3"> <text
|
||||||
style="background-color: #8883F0;"></text> 已完成 </view>
|
style="background-color: #8883F0;"></text> 已完成 </view>
|
||||||
<view class="" v-if="item.isUsing == false && item.isFinished == false">
|
<view v-if="item.status == 3" style="color: #e10328;"><text style="background-color: #e10328;"></text> 已退款</view>
|
||||||
|
<view class="" v-if="item.isUsing == false && item.isFinished == false && item.status != 3">
|
||||||
<view v-if="item.status == 1" style="color: #004fd8;"><text
|
<view v-if="item.status == 1" style="color: #004fd8;"><text
|
||||||
style="background-color: #004fd8;"></text> 未支付</view>
|
style="background-color: #004fd8;"></text> 未支付</view>
|
||||||
<view v-if="item.status == 2" style="color: #e6b000;"><text
|
<view v-if="item.status == 2" style="color: #e6b000;"><text
|
||||||
style="background-color: #e6b000;"></text> 支付成功</view>
|
style="background-color: #e6b000;"></text> 支付成功</view>
|
||||||
<view v-if="item.status == 3" style="color: #e10328;"><text
|
|
||||||
style="background-color: #e10328;"></text> 已退款</view>
|
|
||||||
<view v-if="item.status == 4" style="color: #5d5d5d;"><text
|
<view v-if="item.status == 4" style="color: #5d5d5d;"><text
|
||||||
style="background-color: #5d5d5d;"></text> 用户取消</view>
|
style="background-color: #5d5d5d;"></text> 用户取消</view>
|
||||||
<view v-if="item.status == 5" style="color: #5d5d5d;"><text
|
<view v-if="item.status == 5" style="color: #5d5d5d;"><text
|
||||||
|
@ -81,10 +59,10 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="item_xx">
|
<view class="item_xx">
|
||||||
<view class="">
|
<view class="">
|
||||||
租借店铺:
|
经营场所:
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
{{item.storeName}}
|
{{item.storeName}} {{item.deviceRoom == undefined ? '' : item.deviceRoom + '室'}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bot">
|
<view class="bot">
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
<view style="color: #8883F0;">{{obj.storeName == undefined ? '--' : obj.storeName}}</view>
|
<view style="color: #8883F0;">{{obj.storeName == undefined ? '--' : obj.storeName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="xiao">
|
<view class="xiao">
|
||||||
<view style="width: 160rpx;">经营地址</view>
|
<view style="width: 180rpx;">经营地址</view>
|
||||||
<view>{{obj.storeAddress == undefined ? '--' : obj.storeAddress}}</view>
|
<view>{{obj.storeAddress == undefined ? '--' : obj.storeAddress}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="xiao">
|
<view class="xiao">
|
||||||
<view>房间号</view>
|
<view>房间号</view>
|
||||||
<view>{{obj.room == undefined ? '--' : obj.storeAddress}}号</view>
|
<view>{{obj.deviceRoom == undefined ? '--' : obj.deviceRoom}}号</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="xiao">
|
<view class="xiao">
|
||||||
<view>支付时间</view>
|
<view>支付时间</view>
|
||||||
|
@ -51,13 +51,32 @@
|
||||||
<view>套餐金额</view>
|
<view>套餐金额</view>
|
||||||
<view>¥{{obj.money == undefined ? '--' : obj.money}}</view>
|
<view>¥{{obj.money == undefined ? '--' : obj.money}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="xiao" v-if="obj.status == 3">
|
||||||
|
<view>退款金额</view>
|
||||||
|
<view style="color: red;">¥{{obj.refundAmount == undefined ? '--' : obj.refundAmount}}</view>
|
||||||
|
</view>
|
||||||
<view class="xiao">
|
<view class="xiao">
|
||||||
<view>结束时间</view>
|
<view>结束时间</view>
|
||||||
<view>{{obj.suitEndTime == undefined ? '--' : obj.suitEndTime}}</view>
|
<view>{{obj.suitEndTime == undefined ? '--' : obj.suitEndTime}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="xiao">
|
<view class="xiao">
|
||||||
<view>订单状态</view>
|
<view>订单状态</view>
|
||||||
<view>使用中</view>
|
<view style="color: #17b402;" v-if="obj.isUsing == true"> <text
|
||||||
|
style="background-color: #17b402;"></text> 进行中 </view>
|
||||||
|
<view style="color: #8883F0;" v-if="obj.isFinished == true && obj.status != 3"> <text
|
||||||
|
style="background-color: #8883F0;"></text> 已完成 </view>
|
||||||
|
<view v-if="obj.status == 3" style="color: #e10328;"><text style="background-color: #e10328;"></text> 已退款</view>
|
||||||
|
<view class="" v-if="obj.isUsing == false && obj.isFinished == false && obj.status != 3">
|
||||||
|
<view v-if="obj.status == 1" style="color: rgb(99, 178, 168);"><text style="background-color: rgb(99, 178, 168);"></text> 未支付</view>
|
||||||
|
<view v-if="obj.status == 2" style="color: #e6b000;"><text style="background-color: #e6b000;"></text> 支付成功</view>
|
||||||
|
<view v-if="obj.status == 3" style="color: #e10328;"><text style="background-color: #e10328;"></text> 已退款</view>
|
||||||
|
<view v-if="obj.status == 4" style="color: #5d5d5d;"><text style="background-color: #5d5d5d;"></text> 用户取消</view>
|
||||||
|
<view v-if="obj.status == 5" style="color: #5d5d5d;"><text style="background-color: #5d5d5d;"></text> 系统超时取消</view>
|
||||||
|
<view v-if="obj.status == 6" style="color: #e6b000;"><text style="background-color: #e6b000;"></text> 支付中</view>
|
||||||
|
<view v-if="obj.status == 7" style="color: #e10328;"><text style="background-color: #e10328;"></text> 退款中</view>
|
||||||
|
<view v-if="obj.status == 8" style="color: rgb(99, 178, 168);"><text style="background-color: rgb(99, 178, 168);"></text> 押金未支付</view>
|
||||||
|
<view v-if="obj.status == 9" style="color: #e6b000;"><text style="background-color: #e6b000;"></text> 押金已支付</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="xiao">
|
<view class="xiao">
|
||||||
<view>直属合作伙伴</view>
|
<view>直属合作伙伴</view>
|
||||||
|
@ -75,8 +94,8 @@
|
||||||
收益明细
|
收益明细
|
||||||
</view>
|
</view>
|
||||||
<view class="xiao" v-for="(item,index) in obj.bonusList" :key="index">
|
<view class="xiao" v-for="(item,index) in obj.bonusList" :key="index">
|
||||||
<view class="one">{{item.arrivalName == undefined ? '--' : item.arrivalName}}(<text v-if="item.arrivalType == 1">平台</text><text v-if="item.arrivalType == 2">公司</text><text v-if="item.arrivalType == 3">合作伙伴商</text><text v-if="item.arrivalType == 4">渠道商</text><text v-if="item.arrivalType == 5">创业者</text><text v-if="item.arrivalType == 6">经营场所</text>){{item.point}}%</view>
|
<view class="one">{{item.arrivalName == undefined ? '--' : item.arrivalName}}(<text v-if="item.arrivalType == 1">平台</text><text v-if="item.arrivalType == 2">公司</text><text v-if="item.arrivalType == 3">合作伙伴</text><text v-if="item.arrivalType == 4">渠道商</text><text v-if="item.arrivalType == 5">创业者</text><text v-if="item.arrivalType == 6">经营场所</text>){{item.point}}%</view>
|
||||||
<view class="two">¥{{item.amount == undefined ? '--' : item.amount}}</view>
|
<view class="two">¥{{item.amount == undefined ? '--' : item.amount}} <text v-if="obj.status == 3" style="margin-left: 20rpx;color: red;">(已退¥{{item.refundAmount}})</text> </view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="sb" v-if="userflag" @click="btntz" style="width:680rpx;height: 100rpx;display: flex;justify-content: space-between;background: #FFFFFF;
|
<view class="sb" v-if="userflag" @click="btntz" style="width:680rpx;height: 100rpx;display: flex;justify-content: space-between;background: #FFFFFF;
|
||||||
|
@ -268,9 +287,7 @@
|
||||||
.shuzhi {
|
.shuzhi {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// justify-content: space-between;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
// padding: 0 60rpx;
|
|
||||||
margin-top: 50rpx;
|
margin-top: 50rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,12 @@
|
||||||
<view class="order_item" v-for="(item,index) in wateringList" :key="index" @click="btndetail(item.billId)">
|
<view class="order_item" v-for="(item,index) in wateringList" :key="index" @click="btndetail(item.billId)">
|
||||||
<view class="tops">
|
<view class="tops">
|
||||||
<view>订单编号:{{item.billNo}}</view>
|
<view>订单编号:{{item.billNo}}</view>
|
||||||
<view style="color: #17b402;" v-if="item.isUsing == true"> <text style="background-color: #17b402;"></text> 进行中 </view>
|
<view style="color: #17b402;" v-if="item.isUsing == true"> <text
|
||||||
<view style="color: #8883F0;" v-if="item.isFinished == true"> <text style="background-color: #8883F0;"></text> 已完成 </view>
|
style="background-color: #17b402;"></text> 进行中 </view>
|
||||||
<view class="" v-if="item.isUsing == false && item.isFinished == false">
|
<view style="color: #8883F0;" v-if="item.isFinished == true && item.status != 3"> <text
|
||||||
|
style="background-color: #8883F0;"></text> 已完成 </view>
|
||||||
|
<view v-if="item.status == 3" style="color: #e10328;"><text style="background-color: #e10328;"></text> 已退款</view>
|
||||||
|
<view class="" v-if="item.isUsing == false && item.isFinished == false && item.status != 3">
|
||||||
<view v-if="item.status == 1" style="color: rgb(99, 178, 168);"><text style="background-color: rgb(99, 178, 168);"></text> 未支付</view>
|
<view v-if="item.status == 1" style="color: rgb(99, 178, 168);"><text style="background-color: rgb(99, 178, 168);"></text> 未支付</view>
|
||||||
<view v-if="item.status == 2" style="color: #e6b000;"><text style="background-color: #e6b000;"></text> 支付成功</view>
|
<view v-if="item.status == 2" style="color: #e6b000;"><text style="background-color: #e6b000;"></text> 支付成功</view>
|
||||||
<view v-if="item.status == 3" style="color: #e10328;"><text style="background-color: #e10328;"></text> 已退款</view>
|
<view v-if="item.status == 3" style="color: #e10328;"><text style="background-color: #e10328;"></text> 已退款</view>
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
-提现额度:单笔提现金额最低20元
|
-提现额度:单笔提现金额最低20元
|
||||||
</view>
|
</view>
|
||||||
<view class="tx_wz">
|
<view class="tx_wz">
|
||||||
-到账时间:3个工作日内
|
-到账时间:1个工作日内
|
||||||
</view>
|
</view>
|
||||||
<view class="tx_wz" v-if="serviceType == 1">
|
<view class="tx_wz" v-if="serviceType == 1">
|
||||||
-提现手续费:{{serviceRate}}%
|
-提现手续费:{{serviceRate}}%
|
||||||
|
|
|
@ -947,7 +947,6 @@
|
||||||
color: #8883F0;
|
color: #8883F0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -971,7 +970,6 @@
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ordertongji {
|
.ordertongji {
|
||||||
|
@ -1177,18 +1175,14 @@
|
||||||
.ditu {
|
.ditu {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 980rpx;
|
height: 980rpx;
|
||||||
// background: #FFFFFF;
|
|
||||||
border-radius: 38rpx 38rpx 38rpx 38rpx;
|
border-radius: 38rpx 38rpx 38rpx 38rpx;
|
||||||
// padding-top: 16rpx;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.ongoing_order {
|
.ongoing_order {
|
||||||
width: 622rpx;
|
width: 622rpx;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
// background-color: rgba(0, 0, 0, 0.4);
|
|
||||||
background: linear-gradient(to right, #FFEFEF 20%, #D9F6FF 100%);
|
background: linear-gradient(to right, #FFEFEF 20%, #D9F6FF 100%);
|
||||||
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
||||||
// opacity: 0.6;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 48rpx;
|
top: 48rpx;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
|
@ -1197,7 +1191,6 @@
|
||||||
.order_list {
|
.order_list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 110rpx;
|
height: 110rpx;
|
||||||
// background-color: rgba(0, 0, 0, 0.6);
|
|
||||||
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -1221,7 +1214,6 @@
|
||||||
height: 94rpx;
|
height: 94rpx;
|
||||||
background: rgba(0, 0, 0, 0.4);
|
background: rgba(0, 0, 0, 0.4);
|
||||||
background: linear-gradient(to right, #FFEFEF 20%, #D9F6FF 100%);
|
background: linear-gradient(to right, #FFEFEF 20%, #D9F6FF 100%);
|
||||||
// box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.3);
|
|
||||||
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -1268,7 +1260,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 1000rpx;
|
height: 1000rpx;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
// border-radius: 30rpx;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
@ -1288,7 +1279,6 @@
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
// padding-bottom: ;
|
|
||||||
.gr {
|
.gr {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -1299,7 +1289,6 @@
|
||||||
image {
|
image {
|
||||||
display: block;
|
display: block;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
// margin-bottom: 14rpx;
|
|
||||||
width: 104rpx;
|
width: 104rpx;
|
||||||
height: 122rpx;
|
height: 122rpx;
|
||||||
}
|
}
|
||||||
|
|
|
@ -357,11 +357,11 @@
|
||||||
success(res) {
|
success(res) {
|
||||||
setTimeout(() => { //一秒后发送开启命令
|
setTimeout(() => { //一秒后发送开启命令
|
||||||
xBlufi.notifySendCustomData({
|
xBlufi.notifySendCustomData({
|
||||||
customData: 'open'
|
customData: '11open'
|
||||||
})
|
})
|
||||||
setTimeout(()=>{ //发送开启命令两秒后发送关闭命令
|
setTimeout(()=>{ //发送开启命令两秒后发送关闭命令
|
||||||
xBlufi.notifySendCustomData({
|
xBlufi.notifySendCustomData({
|
||||||
customData: 'close'
|
customData: '11close'
|
||||||
})
|
})
|
||||||
setTimeout(()=>{ //发送关闭命令后一秒后断开连接
|
setTimeout(()=>{ //发送关闭命令后一秒后断开连接
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user