Commit 263970f1 by yuanfeng

Merge branch 'yuanfeng' into '20210819'

Yuanfeng

See merge request vue-project/liangXing/frontEnd!37
parents 98614967 2dc415cf
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</div> </div>
<!-- 弹框 --> <!-- 弹框 -->
<popup-frame :visible="visible" :layout="{width: '960px', height: '540px'}" @beforeClose="closePopup"> <popup-frame :visible="visible" :layout="{width: '960px', height: '540px'}" @beforeClose="closePopup">
<img :src="require('../../../static/images/index/studentDemeanor' + picIndex + '.png')" alt="弹框"> <img :src="pics[picIndex]" alt="弹框">
</popup-frame> </popup-frame>
</div> </div>
</template> </template>
...@@ -193,7 +193,12 @@ export default { ...@@ -193,7 +193,12 @@ export default {
greatKey: 0, greatKey: 0,
// 弹框是否显示 // 弹框是否显示
visible: false, visible: false,
picIndex: 1 picIndex: 1,
pics: [
require('../../../static/images/index/studentDemeanor1.png'),
require('../../../static/images/index/studentDemeanor2.png'),
require('../../../static/images/index/studentDemeanor3.png')
]
} }
}, },
...@@ -392,7 +397,7 @@ export default { ...@@ -392,7 +397,7 @@ export default {
}, },
// 打开学员风采弹框 // 打开学员风采弹框
openStudent (index) { openStudent (index) {
this.picIndex = index + 1 this.picIndex = index
this.visible = true this.visible = true
}, },
// 关闭弹框 // 关闭弹框
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment