bind-game.html 1.8 KB

123456789101112131415161718192021222324252627282930
  1. <popup-container :mw="300" @popup-close="handleClose">
  2. <div class="section" style="margin-top: 10px;">
  3. <div style="font-size: 24px; color: var(--color-normal-contrast-normal);">
  4. <ui-label value="i18n:cocos-service.bind_appid"></ui-label>
  5. </div>
  6. <div style="margin-top: 10px;">
  7. <ui-label value="i18n:cocos-service.bind_tips"></ui-label>
  8. </div>
  9. </div>
  10. <!-- <div v-if="!isLogin" style='color:red;'>{{utils_t("nologin_tips")}}</div> -->
  11. <div class="div-no-wrap">
  12. <ui-select ref="select" class="large" style="width: calc(100% - 30px);" @confirm="handleSelectChange" :value="defaultSelected">
  13. <option selected="selected" :value="defaultSelected">{{ tr('select_game_please') }}</option>
  14. <template v-for="item in games">
  15. <optgroup :label="item.type" v-if="item.list.length > 0">
  16. <option v-for="game of item.list" :value="game.app_id">{{ game.game_name }}</option>
  17. </optgroup>
  18. </template>
  19. </ui-select>
  20. <ui-button @click="handleRefreshGame" class="black" style="margin-top: 0px; height:26px; width:28px;">
  21. <ui-icon value="refresh" style="margin: 1px 0px 0px -4px;"></ui-icon>
  22. </ui-button>
  23. </div>
  24. <div style="text-align: right;">
  25. <ui-button @click="handleBindGame" style="width:100px; margin-top:15px;" class="blue"><ui-label value="i18n:cocos-service.associate"></ui-label></ui-button>
  26. </div>
  27. <div @click="handleCreateGame" style="text-align:right; height:28px; line-height:28px; overflow:hidden; margin-top:10px; cursor: pointer;">
  28. <ui-label value="i18n:cocos-service.create_game"></ui-label><ui-icon value="link"></ui-icon>
  29. </div>
  30. </popup-container>