测试-床垫

This commit is contained in:
吴鹏 2024-09-14 18:01:18 +08:00
parent 3bd17e7245
commit 3dfd82456e
15 changed files with 681 additions and 523 deletions

View File

@ -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

View File

@ -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;
} }
} }

View File

@ -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;
} }

View File

@ -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;

View File

@ -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;">

View File

@ -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>

View File

@ -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">

View File

@ -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,11 +140,12 @@
export default { export default {
data() { data() {
return { return {
jine:'', picimg: false,
zfflag:false, jine: '',
jzflag:false, zfflag: false,
jzflag: false,
progress: 0, progress: 0,
mac:'', mac: '',
deviceId: '', deviceId: '',
name: '', name: '',
czflag: false, czflag: false,
@ -152,25 +160,26 @@
activeindex: -1, activeindex: -1,
id: '', id: '',
list: [], list: [],
obj:{}, obj: {},
orderno:'', orderno: '',
payNo:'', payNo: '',
prices:'', prices: '',
sytime:'', sytime: '',
zfobj:{}, zfobj: {},
suitTimeUnit:'', suitTimeUnit: '',
suitPrice:'', suitPrice: '',
suitGearAmount:'', suitGearAmount: '',
suitGearTime:'', suitGearTime: '',
suitFeeMode:'', suitFeeMode: '',
suitFeeType:'', suitFeeType: '',
title:'', title: '',
sbobj:{}, sbobj: {},
onlineStatus:'', onlineStatus: '',
kfflag:false, kfflag: false,
timer:null, timer: null,
titflag:false, titflag: false,
kefulist:[] kefulist: [],
scrollTop:0
} }
}, },
onLoad(option) { onLoad(option) {
@ -184,22 +193,22 @@
let decodedValue = decodeURIComponent(this.sceneValue) let decodedValue = decodeURIComponent(this.sceneValue)
this.id = getQueryParam(decodedValue, 's') this.id = getQueryParam(decodedValue, 's')
this.$u.get(`/app/user/userInfo`).then(res => { this.$u.get(`/app/user/userInfo`).then(res => {
if(res.code == 200){ if (res.code == 200) {
this.getlist() this.getlist()
}else if(res.code == 401){ } else if (res.code == 401) {
uni.navigateTo({ uni.navigateTo({
url:'/pages/login/login?id=' + this.id url: '/pages/login/login?id=' + this.id
}) })
} }
}) })
} else { } else {
this.id = option.id this.id = option.id
this.$u.get(`/app/user/userInfo`).then(res => { this.$u.get(`/app/user/userInfo`).then(res => {
if(res.code == 200){ if (res.code == 200) {
this.getlist() this.getlist()
}else if(res.code == 401){ } else if (res.code == 401) {
uni.navigateTo({ uni.navigateTo({
url:'/pages/login/login?id=' + this.id url: '/pages/login/login?id=' + this.id
}) })
} }
}) })
@ -233,15 +242,15 @@
}, },
methods: { methods: {
// //
btnxieyi(){ btnxieyi() {
uni.navigateTo({ uni.navigateTo({
url: '/page_fenbao/shiyong?tit=' + '用户服务协议' + '&type=' + 'user' url: '/page_fenbao/shiyong?tit=' + '用户服务协议' + '&type=' + 'user'
}) })
}, },
// //
getkefu(){ getkefu() {
this.$u.get(`/app/device/${this.obj.deviceId}/service`).then(res => { this.$u.get(`/app/device/${this.obj.deviceId}/service`).then(res => {
if(res.code == 200){ if (res.code == 200) {
this.kefulist = res.data this.kefulist = res.data
} }
}) })
@ -252,20 +261,43 @@
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({
url:'/pages/login/login' url: '/pages/login/login'
}) })
} }
}) })
}, },
//
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) {
if (this.ver_data == '') { if (this.ver_data == '') {
this.czflag = true this.czflag = true
uni.showLoading({ uni.showLoading({
@ -294,20 +326,20 @@
content: `检测到该设备未联网,为您切换为蓝牙模式,支付的时候靠近该设备,并打开蓝牙`, content: `检测到该设备未联网,为您切换为蓝牙模式,支付的时候靠近该设备,并打开蓝牙`,
showCancel: false, showCancel: false,
}) })
setTimeout(()=>{ setTimeout(() => {
if(that.ver_data == ''){ if (that.ver_data == '') {
uni.showToast({ uni.showToast({
title: '未连接成功,如多次失败请点击右上角联系客服咨询', title: '未连接成功,如多次失败请点击右上角联系客服咨询',
icon: 'none', icon: 'none',
duration: 5000 duration: 5000
}) })
that.czflag = false that.czflag = false
setTimeout(()=>{ setTimeout(() => {
uni.hideLoading() uni.hideLoading()
},5000) }, 5000)
} }
},18000) }, 18000)
}else{ } else {
this.zhifuflag = false this.zhifuflag = false
let that = this let that = this
let data = { let data = {
@ -315,15 +347,15 @@
suitId: that.zfobj.suitId, suitId: that.zfobj.suitId,
money: that.zfobj.price, money: that.zfobj.price,
suitTime: that.zfobj.value, suitTime: that.zfobj.value,
suitTimeUnit:that.suitTimeUnit, suitTimeUnit: that.suitTimeUnit,
suitFeeMode:that.suitFeeMode, suitFeeMode: that.suitFeeMode,
suitFeeType:that.suitFeeType, suitFeeType: that.suitFeeType,
suitGearAmount:that.suitGearAmount, suitGearAmount: that.suitGearAmount,
suitGearTime:that.suitGearTime, suitGearTime: that.suitGearTime,
suitPrice:that.suitPrice suitPrice: that.suitPrice
} }
that.$u.post('/app/bill/recharge', data).then(res => { that.$u.post('/app/bill/recharge', data).then(res => {
if(res.code == 200){ if (res.code == 200) {
that.orderno = res.data that.orderno = res.data
that.$u.get(`/app/pay/wx/${that.orderno}`).then((res) => { that.$u.get(`/app/pay/wx/${that.orderno}`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -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
} }
} }
@ -433,27 +542,27 @@
}); });
} }
}) })
}else{ } else {
this.zhifuflag = true this.zhifuflag = true
} }
}) })
} }
}) })
} }
}else{ } else {
if(this.checked == false){ if (this.checked == false) {
uni.showToast({ uni.showToast({
title: '请勾选用户服务协议 !', title: '请勾选用户服务协议 !',
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })
}else if(this.activeindex == -1){ } else if (this.activeindex == -1) {
uni.showToast({ uni.showToast({
title: '请选择套餐 !', title: '请选择套餐 !',
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })
}else{ } else {
// //
this.zhifuflag = false this.zhifuflag = false
let that = this let that = this
@ -462,22 +571,22 @@
suitId: that.zfobj.suitId, suitId: that.zfobj.suitId,
money: that.zfobj.price, money: that.zfobj.price,
suitTime: that.zfobj.value, suitTime: that.zfobj.value,
suitTimeUnit:that.suitTimeUnit, suitTimeUnit: that.suitTimeUnit,
suitFeeMode:that.suitFeeMode, suitFeeMode: that.suitFeeMode,
suitFeeType:that.suitFeeType, suitFeeType: that.suitFeeType,
suitGearAmount:that.suitGearAmount, suitGearAmount: that.suitGearAmount,
suitGearTime:that.suitGearTime, suitGearTime: that.suitGearTime,
suitPrice:that.suitPrice suitPrice: that.suitPrice
} }
that.$u.post('/app/bill/recharge', data).then(res => { that.$u.post('/app/bill/recharge', data).then(res => {
if(res.code == 200){ if (res.code == 200) {
that.orderno = res.data that.orderno = res.data
let data = { let data = {
billNo:that.orderno, billNo: that.orderno,
channelId:1 channelId: 1
} }
that.$u.get(`app/pay/wx/${that.orderno}`).then(res => { that.$u.get(`app/pay/wx/${that.orderno}`).then(res => {
if(res.code == 200){ if (res.code == 200) {
that.payNo = res.data.payBill.payNo that.payNo = res.data.payBill.payNo
uni.requestPayment({ uni.requestPayment({
provider: 'wxpay', provider: 'wxpay',
@ -488,10 +597,13 @@
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) {
@ -504,26 +616,26 @@
}) })
} }
}) })
}else{ } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{ setTimeout(() => {
this.zhifuflag = true this.zhifuflag = true
},2000) }, 2000)
} }
}) })
}else{ } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
setTimeout(()=>{ setTimeout(() => {
this.zhifuflag = true this.zhifuflag = true
},2000) }, 2000)
} }
}) })
} }
@ -548,7 +660,7 @@
case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS: case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS:
if (options.result) { if (options.result) {
let devicesarr = options.data let devicesarr = options.data
console.log(devicesarr,this.mac,'111'); console.log(devicesarr, this.mac, '111');
devicesarr.forEach(device => { devicesarr.forEach(device => {
const mac = device.name.substring(4); const mac = device.name.substring(4);
if (device.name.slice(5, 17) == this.mac.slice(5, 17)) { if (device.name.slice(5, 17) == this.mac.slice(5, 17)) {
@ -574,7 +686,7 @@
this.deviceIds = options.data.deviceId this.deviceIds = options.data.deviceId
this.name = this.name this.name = this.name
} }
}else{ } else {
} }
@ -582,15 +694,16 @@
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA: case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA:
this.ver_data = this.parseCustomData(options.data) this.ver_data = this.parseCustomData(options.data)
console.log("1收到设备发来的自定义数据结果", this.ver_data); console.log("1收到设备发来的自定义数据结果", this.ver_data);
setTimeout(()=>{ setTimeout(() => {
this.czflag = false this.czflag = false
uni.hideLoading() uni.hideLoading()
},1000) }, 1000)
break; break;
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;
} }
@ -642,13 +755,13 @@
this.suitGearTime = item.gearTime this.suitGearTime = item.gearTime
this.suitFeeMode = item.feeMode this.suitFeeMode = item.feeMode
this.suitFeeType = item.feeType this.suitFeeType = item.feeType
if(item.timeUnit == 1){ if (item.timeUnit == 1) {
this.jine = item.value * 24 * 60 * 60 this.jine = item.value * 24 * 60 * 60
}else if(item.timeUnit == 2){ } else if (item.timeUnit == 2) {
this.jine = item.value * 60 * 60 this.jine = item.value * 60 * 60
}else if(item.timeUnit == 3){ } else if (item.timeUnit == 3) {
this.jine = item.value * 60 this.jine = item.value * 60
}else if(item.timeUnit == 4){ } else if (item.timeUnit == 4) {
this.jine = item.value this.jine = item.value
} }
}, },
@ -666,7 +779,7 @@
this.kfflag = true this.kfflag = true
}, },
// //
btncall(mobile){ btncall(mobile) {
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: mobile, phoneNumber: mobile,
success: function(res) { success: function(res) {
@ -700,7 +813,8 @@
/deep/ .u-title { /deep/ .u-title {
padding-bottom: 15rpx; padding-bottom: 15rpx;
} }
.czdh{
.czdh {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
position: fixed; position: fixed;
@ -708,19 +822,22 @@
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;
padding-top: 50rpx; padding-top: 50rpx;
@ -729,7 +846,8 @@
} }
} }
} }
.qx{
.qx {
width: 68rpx; width: 68rpx;
height: 68rpx; height: 68rpx;
background: #fff; background: #fff;
@ -745,7 +863,8 @@
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
} }
.kflist{
.kflist {
width: 590rpx; width: 590rpx;
height: 778rpx; height: 778rpx;
background: #FFFFFF; background: #FFFFFF;
@ -757,24 +876,28 @@
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;
font-weight: 600; font-weight: 600;
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
.kfwz{
.kfwz {
font-size: 28rpx; font-size: 28rpx;
color: #3D3D3D; color: #3D3D3D;
margin-top: 16rpx; margin-top: 16rpx;
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;
padding-left: 30rpx; padding-left: 30rpx;
@ -782,27 +905,55 @@
width: 528rpx; width: 528rpx;
height: 144rpx; height: 144rpx;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0,0,0,0.1); box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0, 0, 0, 0.1);
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;
} }
} }
} }
} }
.mask{
.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 {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 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;

View File

@ -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;

View File

@ -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">

View File

@ -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;

View File

@ -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>

View File

@ -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}}%

View File

@ -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;
} }

View File

@ -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()