WXtrialInterface.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>双子星云手机</title>
  7. <link rel="stylesheet" href="./config/css/vant.css">
  8. <link rel="stylesheet" href="./css/WXtrialInterface.css">
  9. <!-- <script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/vConsole/3.12.1/vconsole.min.js"></script> -->
  10. <!-- <script>
  11. const vConsole = new VConsole();
  12. </script> -->
  13. </head>
  14. <body @touchmove.prevent>
  15. <div id="app" v-cloak>
  16. <!-- 计时卡计时 -->
  17. <div class="pfi flex timing" v-if="timingVisible" v-cloak>
  18. <div>{{countdownTime}}</div>
  19. <img class="wh22" src="../static/img/close.png" alt="" @click="handlecountdownTimeClose" />
  20. </div>
  21. <!-- 悬浮框 -->
  22. <div class="levitated-sphere" :style="levitatedSpherePositionData" v-cloak
  23. @click="levitatedSphereVisible = true">
  24. <img src="../static/img/xuanfu_icon.png" alt="" @touchmove.prevent="touchmoveLevitatedSphere"
  25. @touchend="touchendLevitatedSphere">
  26. </div>
  27. <div class="layout" :style="{height: height + 'px'}" v-cloak @touchmove.prevent>
  28. <!-- 云机位置 -->
  29. <div class="layout-view" v-cloak @touchmove.prevent>
  30. <video ref="rtcMediaPlayer" :style="rtcMediaPlayerStyle" width="100%" height="100%" autoplay
  31. webkit-playsinline="true" playsinline x-webkit-airplay="allow" x5-video-player-type="h5"
  32. x5-video-player-fullscreen="true" x5-video-orientation="portraint" id="playerVideo"
  33. class="videoRotate" :controls="false" @touchmove.prevent="(event) => {engine.touchClick(event, 2)}"
  34. @touchstart.prevent="(event) => {engine.touchClick(event, 0)}"
  35. @touchend.prevent="touchendRtcMediaPlayer" v-show="isShowVideo">
  36. 当前浏览器暂不支持、请使用谷歌浏览器或前往双子星客户端使用</video>
  37. </div>
  38. <!-- 底部按钮 -->
  39. <div class="layout-footer" v-cloak @touchmove.prevent>
  40. <template v-for="item in footerBtn">
  41. <img :src="item.img" alt="" @click="footerBtnFun(item.key)">
  42. </template>
  43. </div>
  44. <!-- 右侧弹框 -->
  45. <van-popup v-model="levitatedSphereVisible" position="right" class="levitated-sphere-drawer"
  46. overlay-class="levitated-sphere-overlay" v-cloak>
  47. <div class="flex-column">
  48. <div class="flex-column-container">
  49. <div>
  50. <div v-for="item in definitionList" :key="item.key"
  51. :class="['tc drawer-item mb-15', {active: definitionValue === item.value}]"
  52. @click.prevent="definitionFun(item.value)">
  53. {{item.name}}
  54. </div>
  55. <div class="tc drawer-item mb-15" @click.prevent="resolutionRatio">
  56. 分辨率
  57. </div>
  58. <div class="tc drawer-item mb-15" @click.prevent="volumeControl(24)">
  59. 音量 +
  60. </div>
  61. <div class="tc drawer-item" @click.prevent="volumeControl(25)">
  62. 音量 -
  63. </div>
  64. </div>
  65. </div>
  66. <div class="exit">
  67. <template v-for="(item, index) in exitList">
  68. <div :key="item.key" :class="['tc', {'mb-15': index !== exitList.length - 1}, item.key]"
  69. @click="exitFun(item.key)">
  70. <img :src="item.img" alt="">
  71. <div class="drawer-item">
  72. {{item.name}}
  73. </div>
  74. </div>
  75. </template>
  76. </div>
  77. </div>
  78. </van-popup>
  79. <!-- 分辨率 -->
  80. <van-dialog v-model="resolutionRatioVisible" :show-confirm-button="false" class="resolution-ratio-modal"
  81. v-cloak>
  82. <div>
  83. <div>
  84. <div class="flex-jub resolution-ratio-btn">
  85. <div @click="resolutionRatioVisible = false">取消</div>
  86. <div @click="confirmResolution">确定</div>
  87. </div>
  88. <div class="resolution-ratio-list">
  89. <div v-for="(item, index) in resolutionRatioList" :key="item"
  90. :class="{active: phoneSize.dpi === item.dpi}" @click="phoneSize = item">
  91. <div class="tc">
  92. {{item.width}} x {{item.height}}
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </van-dialog>
  99. <!-- 粘贴板 -->
  100. <van-dialog v-model="pasteVersionVisible" :show-confirm-button="false" class="paste-version-modal" v-cloak>
  101. <template v-if="pasteVersionList.length">
  102. <div class="tc paste-version-title pre">
  103. <span class="pab">粘贴版</span>
  104. <span class="pab paste-version-clear" @click="deletePasteVersion()">
  105. 清空
  106. </span>
  107. </div>
  108. <div class="paste-version-list">
  109. <div v-for="(item,index) in pasteVersionList" :key="item"
  110. :class="[{'mb-5': index!==pasteVersionList.length - 1}]">
  111. <van-swipe-cell>
  112. <div :class="`copy-value-${index}, ellipsis`" @click="copyPasteVersiontext">
  113. {{item.content}}
  114. </div>
  115. <template #right>
  116. <div class="paste-version-delete" @click="deletePasteVersion(item.id)">
  117. 删除
  118. </div>
  119. </template>
  120. </van-swipe-cell>
  121. </div>
  122. </div>
  123. </template>
  124. <template v-else>
  125. <div class="paste-version-empty flex-center-all h100">
  126. <div>
  127. <img src="./img/jianqieban_pic@2x.png" alt="">
  128. <div class="tc">
  129. 剪贴板为空
  130. </div>
  131. </div>
  132. </div>
  133. </template>
  134. <img class="pab paste-version-close" src="./img/guanbi_icon@2x.png" alt=""
  135. @click="pasteVersionVisible = false" />
  136. </van-dialog>
  137. <!-- 增加复制粘贴板 -->
  138. <van-dialog v-model="copyTextVisible" class="copy-text-modal" confirm-button-text="确定" show-cancel-button
  139. confirm-button-color="#3cc51f" v-cloak :before-close="beforeCloseCopy">
  140. <div class="tc">
  141. 读取剪贴板失败
  142. </div>
  143. <div>
  144. <van-field v-model="copyTextValue" placeholder="请输入复制到剪切板的内容" />
  145. </div>
  146. </van-dialog>
  147. <!-- 计费规则 -->
  148. <van-dialog v-model="billingRulesVisible" :show-confirm-button="false" class="billing-rules-modal" v-cloak>
  149. <div class="tc">
  150. <img class="billing-rules-img" src="./img/countdown.png" />
  151. </div>
  152. <div class="tc billing-rules-title">
  153. 计费规则
  154. </div>
  155. <div class="tc">进入云机开始计时,点击退出并下机停止计时。点击退出云机仍处于计时状态。</div>
  156. <div class="tc billing-rules-tips">云机时长剩余:<span class="billing-rules-time">{{countdownTime}}</span>
  157. </div>
  158. <div class="billing-rules-btn" @click="getRecommend">我知道了</div>
  159. </van-dialog>
  160. <!-- 应用推荐 -->
  161. <van-dialog v-model="applyRecommendVisible" :show-confirm-button="false" class="apply-recommend-modal"
  162. v-cloak>
  163. <div>
  164. <div class="tc apply-recommend-title">
  165. 应用推荐
  166. </div>
  167. <div class="apply-recommend-list">
  168. <div v-for="(item, index) in recommendList" :key="item.id"
  169. :class="['flex w100', {'mt-16': index !== 0}]">
  170. <div class="left flex-align-c">
  171. <img :src="item.imageUrl" alt="">
  172. <div>
  173. <div class="title ellipsis">{{item.filename}}</div>
  174. <div class="download-num">有{{item.installNum}}个人下载</div>
  175. </div>
  176. </div>
  177. <div class="right flex-align-c" @click="downAndInstallApk(item)">
  178. <div>
  179. 下载
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="apply-recommend-btn tc" @click="getRecommend">
  185. 换一批
  186. </div>
  187. </div>
  188. <img class="apply-recommend-close pab" src="./img/close.png" alt=""
  189. @click="applyRecommendVisible = false" />
  190. </van-dialog>
  191. <!-- 超过指定触碰时间的弹窗提示 -->
  192. <van-dialog v-model="noOperationSetTimeoutTimeVisible" title="提示" show-cancel-button
  193. message="由于您长时间未操作,将自动断开视频链接(不影响云手机内应用运行)" :confirm-button-text="confirmButtonText"
  194. confirm-button-color="#3cc51f" cancel-button-text="继续操作" @cancel="noOperationSetTimeout('cancel')"
  195. @confirm="noOperationSetTimeout('cancel'), exit(), noOperationSetTimeoutTimeVisible = false" v-cloak>
  196. </van-dialog>
  197. </div>
  198. </div>
  199. </body>
  200. <script src="./config/js/jweixin.js"></script>
  201. <script src="./config/js/clipboard.js"></script>
  202. <script type="text/javascript" src="../static/js/uni.webview.1.5.2.js"></script>
  203. <script src="./config/js/vue.js"></script>
  204. <script src="./config/js/vant.js"></script>
  205. <script src="./config/js/axios.js"></script>
  206. <script src="./config/js/rtcEngine.min.js"></script>
  207. <script src="../static/lib/qs.js"></script>
  208. <script type="module" src="./js/WXtrialInterface.js"></script>
  209. </html>