| | |
| | | <div id="moved"> |
| | | <div class="containerBtn"> |
| | | <div> |
| | | <span |
| | | v-show="boxindex == 1" |
| | | <span v-show="boxindex == 1" |
| | | v-for="(item, index) in oneindex" |
| | | :key="index" |
| | | class="ischoose" |
| | | @click="choosebtn(index)" |
| | | > |
| | | <span class="icon" :style="{ background: `url(${item.src})` }"></span> |
| | | @click="choosebtn(index)"> |
| | | <span class="icon" |
| | | :style="{ background: `url(${item.src})` }"></span> |
| | | {{ item.name }} |
| | | </span> |
| | | </div> |
| | | <div> |
| | | <span |
| | | v-show="boxindex == 2" |
| | | <span v-show="boxindex == 2" |
| | | v-for="(item, index) in twoindex" |
| | | :key="index" |
| | | class="ischoose" |
| | | @click="choosebtn1(index)" |
| | | > |
| | | <span class="icon" :style="{ background: `url(${item.src})` }"></span> |
| | | @click="choosebtn1(index)"> |
| | | <span class="icon" |
| | | :style="{ background: `url(${item.src})` }"></span> |
| | | {{ item.name }} |
| | | </span> |
| | | </div> |
| | | <div> |
| | | <span |
| | | v-show="boxindex == 3" |
| | | <span v-show="boxindex == 3" |
| | | v-for="(item, index) in threeindex" |
| | | :key="index" |
| | | class="ischoose" |
| | | @click="choosebtn2(index)" |
| | | > |
| | | <span class="icon" :style="{ background: `url(${item.src})` }"></span> |
| | | @click="choosebtn2(index)"> |
| | | <span class="icon" |
| | | :style="{ background: `url(${item.src})` }"></span> |
| | | {{ item.name }} |
| | | </span> |
| | | </div> |
| | | <div> |
| | | <span |
| | | v-show="boxindex == 4" |
| | | <span v-show="boxindex == 4" |
| | | v-for="(item, index) in fourindex" |
| | | :key="index" |
| | | class="ischoose" |
| | | @click="choosebtn3(index)" |
| | | > |
| | | <span class="icon" :style="{ background: `url(${item.src})` }"></span> |
| | | @click="choosebtn3(index)"> |
| | | <span class="icon" |
| | | :style="{ background: `url(${item.src})` }"></span> |
| | | {{ item.name }} |
| | | </span> |
| | | </div> |
| | | <div> |
| | | <span |
| | | v-show="boxindex == 5" |
| | | <span v-show="boxindex == 5" |
| | | v-for="(item, index) in fiveindex" |
| | | :key="index" |
| | | class="ischoose" |
| | | @click="choosebtn4(index)" |
| | | > |
| | | <span class="icon" :style="{ background: `url(${item.src})` }"></span> |
| | | @click="choosebtn4(index)"> |
| | | <span class="icon" |
| | | :style="{ background: `url(${item.src})` }"></span> |
| | | {{ item.name }} |
| | | </span> |
| | | </div> |
| | |
| | | }, |
| | | methods: { |
| | | choosebtn(index) { |
| | | alert(index) |
| | | if (index === 2) { |
| | | this.nowchoose = 1; |
| | | bus.$emit("showdio", this.nowchoose); |