|
@@ -2,7 +2,7 @@
|
|
|
<view class="home-warpTwo">
|
|
|
<view class="airbody">
|
|
|
<view class="module">
|
|
|
- <view class="device-bottom">
|
|
|
+ <view class="device-bottom" v-if="selectedPlan.length > 0">
|
|
|
<view
|
|
|
class="info-box"
|
|
|
v-for="(item, index) in selectedPlan"
|
|
@@ -19,13 +19,16 @@
|
|
|
></image>
|
|
|
<image
|
|
|
@click="editItem(item)"
|
|
|
- style="margin-left: 10rpx"
|
|
|
+ style="margin-left: 30rpx"
|
|
|
src="../../static/edit.png"
|
|
|
alt=""
|
|
|
></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view v-else>
|
|
|
+ <view class="noPlan">暂无守护计划</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bottomTwo">
|
|
@@ -90,7 +93,6 @@ export default {
|
|
|
this.planListName = res.data.data.map(
|
|
|
(ele) => ele.name
|
|
|
);
|
|
|
- console.log(this.planList, 99999);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -221,7 +223,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
editItem(item) {
|
|
|
- console.log(item, 88888);
|
|
|
+ uni.navigateTo({
|
|
|
+ url:
|
|
|
+ "/pagesA/playSetting/playSetting?planInfo=" +
|
|
|
+ JSON.stringify(item),
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -322,6 +328,12 @@ export default {
|
|
|
margin-top: 20rpx;
|
|
|
}
|
|
|
}
|
|
|
+ .noPlan {
|
|
|
+ background-color: #f9efe5;
|
|
|
+ color: #999;
|
|
|
+ font-size: 28rpx;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.bottomTwo {
|