Commit 2aba6bba by 李伟康

commit 修改

1 parent 11c33c5f
const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 1;
const index = 2;
/**
*
0本地
......
......@@ -19,7 +19,7 @@
<view class="item-text">{{ item.name }}</view>
</view>
<view class="details-container">
<view class="details-section" :class="showIndex == index ? 'show' : 'hide'">
<view :class="['details-section', itemClass(index)]" >
<view class="section-title">{{ item.name }}</view>
<view class="section-description">{{item.description}}</view>
</view>
......@@ -65,8 +65,6 @@ export default {
components: {partsPop},
data() {
return {
list,
screenList,
showIndex: -1,
};
},
......@@ -88,6 +86,9 @@ export default {
touch() {
this.showIndex = -1;
},
itemClass(index){
return this.showIndex == index ? 'show' : 'hide'
}
},
};
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!