WXtrialInterface.html 12 KB

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