Commit 451678fb by 前端

Merge branch 'v1.0.7' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.7

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