tansferDuration.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <template>
  2. <div class="transfer">
  3. <div>
  4. <div>减少时长的云机</div>
  5. <div>
  6. <comoros />
  7. </div>
  8. </div>
  9. <div class="transfer-item">
  10. <div>增加时长的云机</div>
  11. <div>
  12. <comoros />
  13. </div>
  14. </div>
  15. <div class="transfer-item">
  16. <div>转移的时间</div>
  17. <div class="transfer-item-input">
  18. <van-field v-model="value" placeholder="请输入转移的时间" type="number" />
  19. </div>
  20. </div>
  21. <div style="font-size: 12px;font-weight: 400;color: #3B7FFF;line-height: 16px;margin-top: 5px">服务费计算</div>
  22. <div class="transfer-tip">
  23. <div>
  24. 温馨提示:
  25. </div>
  26. <div class="transfer-tip-content">
  27. 此功能支持转移云手机时长到其它设备<br />
  28. 1、合成设备必须是同一个套餐类型<br />
  29. 2、减少时长的云机:选择转移时间的设备<br />
  30. 3、增加时长的云机:选择增加时长的设备<br />
  31. 4、授权云手机,获取云手机,自动续费云手机,计时套餐云手机,特权年卡,激活码,不支持设备合成<br />
  32. 5、转移天数的设备最少为7天云手机,小于7天的云手机不支持转移时长<br />
  33. 6、转移扣除天数<br />
  34. 50 -100天 扣除5%<br />
  35. 100-200天 扣除4%<br />
  36. 200-500天 扣除3%<br />
  37. 其它转移时间 扣除时间按照5%计算<br />
  38. </div>
  39. </div>
  40. <div class="transfer-btn">
  41. <van-button type="info" block>分配时间</van-button>
  42. </div>
  43. <van-dialog v-model="visible" :title="false ? '服务费计算' : ''" confirmButtonColor="#3B7FFF" className="dialog" showCancelButton cancelButtonColor="#999999">
  44. <div style="padding: 16px;font-weight: 100;">
  45. <template v-if="false">
  46. <div style="display: flex; justify-content: space-between;">
  47. <div>转移天数:</div>
  48. <div style="color: #F9F9F9;">100天</div>
  49. </div>
  50. <div style="display: flex; justify-content: space-between;">
  51. <div>服务费:</div>
  52. <div style="color: #F9F9F9;">1.5天</div>
  53. </div>
  54. </template>
  55. <template v-else>
  56. <div style="line-height: 30px;">
  57. <div style="text-align: center;font-weight:bold;">
  58. 确定要将【A设备云机名称】
  59. </div>
  60. <div style="text-align: center;">
  61. 时间分配给【A设备云机名称】
  62. </div>
  63. <div style="text-align: center;margin-top: 10px">
  64. 服务费:1.6天
  65. </div>
  66. </div>
  67. </template>
  68. </div>
  69. </van-dialog>
  70. </div>
  71. </template>
  72. <script>
  73. const comoros = () => import('./comoros.vue')
  74. export default {
  75. name: 'tansferDuration',
  76. components: {
  77. comoros
  78. },
  79. data() {
  80. return {
  81. value: '',
  82. visible: true
  83. };
  84. },
  85. mounted() {
  86. },
  87. methods: {
  88. },
  89. };
  90. </script>
  91. <style lang="scss" scoped>
  92. .transfer {
  93. padding: 0 16px 90px;
  94. .transfer-item {
  95. margin-top: 16px;
  96. }
  97. .transfer-tip {
  98. margin-top: 24px;
  99. }
  100. .transfer-item-input {
  101. margin-top: 8px;
  102. display: flex;
  103. align-items: center;
  104. }
  105. .transfer-tip-content {
  106. margin-top: 8px;
  107. }
  108. .transfer-tip-content {
  109. font-size: 12px;
  110. font-family: PingFangSC, PingFang SC;
  111. font-weight: 400;
  112. color: #959799;
  113. line-height: 17px;
  114. }
  115. .transfer-btn {
  116. width: calc(100% - 32px);
  117. position: fixed;
  118. left: 16px;
  119. bottom: 36px;
  120. height: 48px;
  121. .van-button {
  122. height: 100%;
  123. border-radius: 5px;
  124. }
  125. }
  126. .van-field {
  127. background: #2C2C2D;
  128. margin-right: 12px;
  129. border-radius: 5px;
  130. height: 52px !important;
  131. font-weight: 500 !important;
  132. align-items: center;
  133. ::v-deep .van-field__control {
  134. color: #fff;
  135. }
  136. ::v-deep .van-field__control::-webkit-input-placeholder {
  137. color: #999999 !important;
  138. }
  139. }
  140. }
  141. .dialog {
  142. color: #CFD1D4;
  143. ::v-deep [class*=van-hairline]::after {
  144. border-color: rgba(72, 72, 72, 0.5);
  145. }
  146. &,
  147. ::v-deep .van-button__content {
  148. background: #2C2C2D;
  149. }
  150. }
  151. </style>