111
This commit is contained in:
parent
d732e9c7ad
commit
17c0b28017
|
@ -86,6 +86,9 @@
|
||||||
this.getlist()
|
this.getlist()
|
||||||
|
|
||||||
},
|
},
|
||||||
|
onUnload() {
|
||||||
|
uni.setStorageSync('key','key')
|
||||||
|
},
|
||||||
// 分享到好友(会话)
|
// 分享到好友(会话)
|
||||||
onShareAppMessage: function() {
|
onShareAppMessage: function() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -328,7 +328,7 @@
|
||||||
<view class="trues" @click="btnadd">
|
<view class="trues" @click="btnadd">
|
||||||
{{title}}
|
{{title}}
|
||||||
</view>
|
</view>
|
||||||
<view v-if="title == '修改'" class="truess" @click="btndel">
|
<view v-if="title == '保存'" class="truess" @click="btndel">
|
||||||
删除
|
删除
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="trueqx" @click="btnqx">
|
<view v-else class="trueqx" @click="btnqx">
|
||||||
|
@ -459,7 +459,7 @@
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if (option.suitId) {
|
if (option.suitId) {
|
||||||
this.deviceId = option.id
|
this.deviceId = option.id
|
||||||
this.title = '修改'
|
this.title = '保存'
|
||||||
this.suitId = option.suitId
|
this.suitId = option.suitId
|
||||||
} else {
|
} else {
|
||||||
this.deviceId = option.id
|
this.deviceId = option.id
|
||||||
|
@ -644,7 +644,7 @@
|
||||||
this.$u.put('/app/suit', data).then((res) => {
|
this.$u.put('/app/suit', data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '修改套餐成功',
|
title: '保存套餐成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 1000,
|
duration: 1000,
|
||||||
})
|
})
|
||||||
|
@ -858,12 +858,15 @@
|
||||||
if (res.data.timeUnit == 2) {
|
if (res.data.timeUnit == 2) {
|
||||||
this.valuethr = '时'
|
this.valuethr = '时'
|
||||||
this.timeUnit = 2
|
this.timeUnit = 2
|
||||||
|
this.timetxt = '时'
|
||||||
} else if (res.data.timeUnit == 3) {
|
} else if (res.data.timeUnit == 3) {
|
||||||
this.valuethr = '分'
|
this.valuethr = '分'
|
||||||
this.timeUnit = 3
|
this.timeUnit = 3
|
||||||
|
this.timetxt = '分'
|
||||||
} else if (res.data.timeUnit == 4) {
|
} else if (res.data.timeUnit == 4) {
|
||||||
this.valuethr = '秒'
|
this.valuethr = '秒'
|
||||||
this.timeUnit = 4
|
this.timeUnit = 4
|
||||||
|
this.timetxt = '秒'
|
||||||
}
|
}
|
||||||
if (res.data.feeMode == 1) {
|
if (res.data.feeMode == 1) {
|
||||||
this.valueone = '单次收费'
|
this.valueone = '单次收费'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user