新增彩铃功能
This commit is contained in:
parent
048aad3d0a
commit
ac5d937366
|
@ -19,8 +19,8 @@ const install = (Vue, vm) => {
|
||||||
// },
|
// },
|
||||||
// });
|
// });
|
||||||
Vue.prototype.$u.http.setConfig({
|
Vue.prototype.$u.http.setConfig({
|
||||||
// baseUrl: 'http://192.168.2.81:10002',
|
baseUrl: 'http://192.168.2.81:10002',
|
||||||
baseUrl: 'https://kg.chuangtewl.com/prod-api',
|
// baseUrl: 'https://kg.chuangtewl.com/prod-api',
|
||||||
// loadingText: '努力加载中~',
|
// loadingText: '努力加载中~',
|
||||||
// loadingTime: 1000,
|
// loadingTime: 1000,
|
||||||
// 设置自定义头部content-type
|
// 设置自定义头部content-type
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
v-model="description" placeholder="输入说明解释" auto-height="true" />
|
v-model="description" placeholder="输入说明解释" auto-height="true" />
|
||||||
</view> -->
|
</view> -->
|
||||||
<!-- 自动断点 #8883F0-->
|
<!-- 自动断点 #8883F0-->
|
||||||
<view class="shebei">
|
<view class="shebei" v-if="feeType == 2 || feeType == 3">
|
||||||
<view class="sbarr" style="align-items: center;">
|
<view class="sbarr" style="align-items: center;">
|
||||||
<view class="" style="font-size:30rpx">低功率输出时自动断电</view> <u-switch active-color="#8883F0" v-model="checked"></u-switch>
|
<view class="" style="font-size:30rpx">低功率输出时自动断电</view> <u-switch active-color="#8883F0" v-model="checked"></u-switch>
|
||||||
</view>
|
</view>
|
||||||
|
@ -286,6 +286,18 @@
|
||||||
该功能仅在在线状态下才能正常使用!
|
该功能仅在在线状态下才能正常使用!
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 彩铃 -->
|
||||||
|
<view class="shebei" v-if="feeType == 1">
|
||||||
|
<view class="sbarr" style="align-items: center;">
|
||||||
|
<view class="" style="font-size:30rpx">剩余时间不足语音提示</view> <u-switch active-color="#8883F0" v-model="checkes"></u-switch>
|
||||||
|
</view>
|
||||||
|
<view class="sbarr" style="display: flex; align-items: center;margin-top: 30rpx;" v-if="checkes == true">
|
||||||
|
<view class="">剩余时长</view> <input type="text" v-model="powes" style="text-align: right;width: 380rpx;" placeholder="低于该值将结束订单并断电"/>分钟
|
||||||
|
</view>
|
||||||
|
<view class="" style="color: #FF4444;margin-top: 20rpx;">
|
||||||
|
该功能仅在在线状态下才能正常使用!
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 应用设备 -->
|
<!-- 应用设备 -->
|
||||||
<view class="shebei">
|
<view class="shebei">
|
||||||
|
@ -335,7 +347,9 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
power:'',
|
power:'',
|
||||||
|
powes:'',
|
||||||
checked:false,
|
checked:false,
|
||||||
|
checkes:false,
|
||||||
btnmsk: false,
|
btnmsk: false,
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
name: '',
|
name: '',
|
||||||
|
@ -572,7 +586,9 @@
|
||||||
gearAmount: this.gearAmount,
|
gearAmount: this.gearAmount,
|
||||||
gearTime: this.feeType === 3 || this.feeType === 4 ? this.gearTime : (this.gearTime = []),
|
gearTime: this.feeType === 3 || this.feeType === 4 ? this.gearTime : (this.gearTime = []),
|
||||||
enabledLowPowerClose:this.checked,
|
enabledLowPowerClose:this.checked,
|
||||||
lowPower:this.power
|
enabledVoice:this.checkes,
|
||||||
|
lowPower:this.power,
|
||||||
|
voiceMinutes:this.powes
|
||||||
}
|
}
|
||||||
this.$u.post('/app/suit', data).then((res) => {
|
this.$u.post('/app/suit', data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
@ -627,7 +643,9 @@
|
||||||
gearAmount: this.gearAmount,
|
gearAmount: this.gearAmount,
|
||||||
gearTime: this.feeType === 3 || this.feeType === 4 ? this.gearTime : (this.gearTime = []),
|
gearTime: this.feeType === 3 || this.feeType === 4 ? this.gearTime : (this.gearTime = []),
|
||||||
enabledLowPowerClose:this.checked,
|
enabledLowPowerClose:this.checked,
|
||||||
lowPower:this.power
|
enabledVoice:this.checkes,
|
||||||
|
lowPower:this.power,
|
||||||
|
voiceMinutes:this.powes
|
||||||
}
|
}
|
||||||
this.$u.put('/app/suit', data).then((res) => {
|
this.$u.put('/app/suit', data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
@ -806,7 +824,9 @@
|
||||||
this.description = res.data.description
|
this.description = res.data.description
|
||||||
this.deviceList = res.data.deviceList
|
this.deviceList = res.data.deviceList
|
||||||
this.checked = res.data.enabledLowPowerClose
|
this.checked = res.data.enabledLowPowerClose
|
||||||
|
this.checkes = res.data.enabledVoice
|
||||||
this.power = res.data.lowPower
|
this.power = res.data.lowPower
|
||||||
|
this.powes = res.data.voiceMinutes
|
||||||
this.deviceList.forEach(item => {
|
this.deviceList.forEach(item => {
|
||||||
this.tcidlist.push(item.deviceId)
|
this.tcidlist.push(item.deviceId)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user