phone.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <template>
  2. <view class="container">
  3. <view class="tui-flex">
  4. <view class="tui-cube-box">
  5. <image style="width: 100%;height: 100%;" src="../../../../static/img/phone.png"></image>
  6. </view>
  7. </view>
  8. <view style="text-align: center;margin-top: 30rpx;font-size: 14px;">绑定的手机号:188888888888</view>
  9. <view class="tui-content-box" @tap="replace">
  10. <tui-button>更换手机号</tui-button>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import tuiButton from "@/components/thorui/tui-button/tui-button"
  16. import tuiListView from '@/components/thorui/tui-list-view/tui-list-view';
  17. import tuiListCell from '@/components/thorui/tui-list-cell/tui-list-cell';
  18. import tuiIcon from '@/components/thorui/tui-icon/tui-icon';
  19. import tuiTag from '@/components/thorui/tui-tag/tui-tag';
  20. import tuiBadge from '@/components/thorui/tui-badge/tui-badge';
  21. const thorui = require("@/components/common/tui-clipboard/tui-clipboard.js")
  22. import {
  23. mapState
  24. } from 'vuex'
  25. export default {
  26. components: {
  27. tuiListView,
  28. tuiListCell,
  29. tuiIcon,
  30. tuiTag,
  31. tuiButton,
  32. tuiBadge
  33. },
  34. computed: mapState(['version']),
  35. data() {
  36. return {
  37. }
  38. },
  39. methods: {
  40. copy: function(text,msg) {
  41. const that = this
  42. thorui.getClipboardData(text, (res) => {
  43. // #ifdef H5 || MP-ALIPAY
  44. if (res) {
  45. this.tui.toast(msg)
  46. } else {
  47. this.tui.toast("内容复制失败")
  48. }
  49. // #endif
  50. })
  51. },
  52. log: function() {
  53. uni.navigateTo({
  54. url: '../log/log'
  55. })
  56. },
  57. replace: function() {
  58. uni.navigateTo({
  59. url: './replace'
  60. });
  61. },
  62. }
  63. }
  64. </script>
  65. <style>
  66. .container {
  67. box-sizing: border-box;
  68. width: 100%;
  69. background-color: #fff;
  70. }
  71. .tui-goods-title {
  72. width: 100%;
  73. font-size: 28rpx;
  74. display: flex;
  75. align-items: center;
  76. justify-content: space-between;
  77. }
  78. .tui-flex {
  79. display: flex;
  80. align-items: center;
  81. justify-content: center;
  82. padding-top: 40px;
  83. }
  84. .tui-cube-box {
  85. width: 128px;
  86. height: 128px;
  87. position: relative;
  88. -webkit-transform-style: preserve-3d;
  89. transform-style: preserve-3d;
  90. z-index: 99;
  91. }
  92. @keyframes tui-go {
  93. 0% {
  94. -webkit-transform: rotateX(0) rotateY(0);
  95. transform: rotateX(0) rotateY(0);
  96. }
  97. 100% {
  98. -webkit-transform: rotateX(360deg) rotateY(360deg);
  99. transform: rotateX(360deg) rotateY(360deg);
  100. }
  101. }
  102. .tui-cube {
  103. width: 60px;
  104. height: 60px;
  105. position: absolute;
  106. display: flex;
  107. align-items: center;
  108. justify-content: center;
  109. padding: 5px;
  110. box-sizing: border-box;
  111. font-size: 24rpx;
  112. color: #fff;
  113. text-align: center;
  114. /* word-break: break-all;
  115. word-wrap: break-word; */
  116. }
  117. .tui-cube-1 {
  118. background-color: #fff;
  119. -webkit-transform: rotateY(90deg) translateZ(-30px);
  120. transform: rotateY(90deg) translateZ(-30px);
  121. color: #333 !important;
  122. }
  123. .tui-cube-2 {
  124. background-color: #8a5966;
  125. -webkit-transform: rotateY(90deg) translateZ(30px);
  126. transform: rotateY(90deg) translateZ(30px);
  127. }
  128. .tui-cube-3 {
  129. background-color: #5c8dff;
  130. -webkit-transform: rotateX(90deg) translateZ(30px);
  131. transform: rotateX(90deg) translateZ(30px);
  132. }
  133. .tui-cube-4 {
  134. background-color: #ed3f14;
  135. -webkit-transform: rotateX(90deg) translateZ(-30px);
  136. transform: rotateX(90deg) translateZ(-30px);
  137. }
  138. .tui-cube-5 {
  139. background-color: #ff7900;
  140. -webkit-transform: translateZ(30px);
  141. transform: translateZ(30px);
  142. }
  143. .tui-cube-6 {
  144. background-color: #19be6b;
  145. -webkit-transform: translateZ(-30px);
  146. transform: translateZ(-30px);
  147. }
  148. .tui-content-box {
  149. padding: 0 40rpx;
  150. width: 100%;
  151. margin-top: 10px;
  152. box-sizing: border-box;
  153. background-color: #fff;
  154. border-radius: 10rpx;
  155. }
  156. .tui-content {
  157. color: #333;
  158. font-size: 30rpx;
  159. line-height: 44rpx;
  160. padding: 10rpx 0;
  161. text-align: justify;
  162. }
  163. .tui-content-email {
  164. color: #5677fc !important;
  165. }
  166. .tui-footer {
  167. display: flex;
  168. align-items: center;
  169. padding-top: 30rpx;
  170. }
  171. .tui-applets {
  172. width: 80px;
  173. height: 80px;
  174. display: block;
  175. }
  176. .tui-footer-text {
  177. font-size: 24rpx;
  178. color: #999;
  179. padding-left: 20rpx;
  180. width: 300rpx;
  181. }
  182. </style>