property.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <view class="container" style="padding-top: 100rpx;">
  3. <topView :backg="'#1A1A17'"></topView>
  4. <view class="infoBox">
  5. <view class="navBack" @click="navTo('/pages/index/index')">
  6. <u-icon name="arrow-left" size="25" color="#fff" style="position: absolute;left: 0;top: 0;font-weight: bold;"></u-icon>
  7. <view class="title">{{$t("property.我的资产")}}</view>
  8. </view>
  9. <view class="moneyBox">
  10. <view class="moneyTpl">
  11. <view class="moneyName">{{$t("property.我的资产")}}</view>
  12. <view class="moneyText">≈<text class="money">{{userInfo.usdt * 1}}U</text></view>
  13. </view>
  14. <view class="noneyNav flex">
  15. <view class="moneyTip flex_item" @click="navTo('/pages/index/withdrawal')">
  16. <image src="/static/img/img18.png" style="width: 30rpx;height: 29rpx;"></image>
  17. <view class="moneyTitle">{{$t("property.提现")}}</view>
  18. </view>
  19. <view class="partition"></view>
  20. <view class="moneyTip flex_item" @click="navTo('/pages/index/transfer')">
  21. <image src="/static/img/img19.png" style="width: 31rpx;height: 30rpx;"></image>
  22. <view class="moneyTitle">{{$t("property.转账")}}</view>
  23. </view>
  24. <view class="partition"></view>
  25. <view class="moneyTip flex_item" @click="navTo('/pages/index/recharge')">
  26. <image src="/static/img/img19.png" style="width: 31rpx;height: 30rpx;"></image>
  27. <view class="moneyTitle">{{$t("property.充值")}}</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="titleProp">{{$t("property.我的资产")}}</view>
  32. <view class="propBox flex" @click="navTo('/pages/index/propDetails?type=1')">
  33. <view class="flex_item propTpl">
  34. <image src="../../static/img/img15.png" style="width: 81rpx;height: 81rpx;"></image>
  35. <view class="name">USDT</view>
  36. </view>
  37. <view class="flex_item rightTip">
  38. <view class="tipTpl">
  39. <view class="num">{{userInfo.USDT * 1}}</view>
  40. <!-- <view class="num1">≈0.00RMB</view> -->
  41. </view>
  42. <view><u-icon name="arrow-right" color="#fff" size="18"></u-icon></view>
  43. </view>
  44. </view>
  45. <view class="propBox flex" @click="navTo('/pages/index/propDetails?type=2')">
  46. <view class="flex_item propTpl">
  47. <image src="../../static/img/img16.png" style="width: 81rpx;height: 81rpx;"></image>
  48. <view class="name">NUSD</view>
  49. </view>
  50. <view class="flex_item rightTip">
  51. <view class="tipTpl">
  52. <view class="num">{{userInfo.NUSD*1 + userInfo.NUSD_OLY*1}}</view>
  53. <!-- <view class="num1">≈0.00RMB</view> -->
  54. </view>
  55. <view><u-icon name="arrow-right" color="#fff" size="18"></u-icon></view>
  56. </view>
  57. </view>
  58. <view class="propBox flex" @click="navTo('/pages/index/propDetails?type=3')">
  59. <view class="flex_item propTpl">
  60. <image src="../../static/img/img16.png" style="width: 81rpx;height: 81rpx;"></image>
  61. <view class="name">NICE</view>
  62. </view>
  63. <view class="flex_item rightTip">
  64. <view class="tipTpl">
  65. <view class="num">{{userInfo.NICE * 1}}</view>
  66. <!-- <view class="num1">≈0.00RMB</view> -->
  67. </view>
  68. <view><u-icon name="arrow-right" color="#fff" size="18"></u-icon></view>
  69. </view>
  70. </view>
  71. <view class="propBox flex" @click="navTo('/pages/index/propDetails?type=4')">
  72. <view class="flex_item propTpl">
  73. <image src="../../static/img/img16.png" style="width: 81rpx;height: 81rpx;"></image>
  74. <view class="name">XNUSD</view>
  75. </view>
  76. <view class="flex_item rightTip">
  77. <view class="tipTpl">
  78. <view class="num">{{userInfo.NUSD_OLY * 1}}</view>
  79. <!-- <view class="num1">≈0.00RMB</view> -->
  80. </view>
  81. <view><u-icon name="arrow-right" color="#fff" size="18"></u-icon></view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </template>
  87. <script>
  88. import topView from '../components/topView.vue';
  89. import {mapState,mapActions,mapMutations} from "vuex";
  90. export default {
  91. components: {
  92. topView
  93. },
  94. data () {
  95. return {}
  96. },
  97. onLoad () {},
  98. onShow () {},
  99. computed: {
  100. ...mapState('user', ['userInfo']),
  101. },
  102. methods: {
  103. navTo(url){
  104. uni.navigateTo({
  105. url:url
  106. })
  107. },
  108. },
  109. }
  110. </script>
  111. <style lang="scss">
  112. page {
  113. width: 100%;
  114. min-height: 100vh;
  115. .container {
  116. width: 100%;
  117. min-height: 100vh;
  118. }
  119. }
  120. .infoBox{
  121. padding: 0rpx 37rpx;
  122. }
  123. .moneyBox{
  124. background: #1A1A17;
  125. border-radius: 25rpx;
  126. .moneyTpl{
  127. background: url('../../static/img/img17.png') no-repeat;
  128. width: 100%;
  129. height: 199rpx;
  130. background-size: 100% 100%;
  131. padding: 50rpx 45rpx;
  132. .moneyName{
  133. font-weight: bold;
  134. font-size: 29rpx;
  135. color: #31190B;
  136. }
  137. .moneyText{
  138. color: #31190B;
  139. font-size: 30rpx;
  140. padding-top: 15rpx;
  141. .money{
  142. font-weight: bold;
  143. font-size: 33rpx;
  144. color: #31190B;
  145. padding-left: 10rpx;
  146. }
  147. }
  148. }
  149. .noneyNav{
  150. padding: 30rpx 0rpx;
  151. color: #fff;
  152. .moneyTip{
  153. width: 30%;
  154. justify-content: center;
  155. .moneyTitle{
  156. padding-left: 25rpx;
  157. }
  158. }
  159. .partition{
  160. width: 1rpx;
  161. height: 43rpx;
  162. background: #FFFFFF;
  163. opacity: 0.51;
  164. }
  165. }
  166. }
  167. .titleProp{
  168. padding: 55rpx 0rpx;
  169. font-weight: 500;
  170. font-size: 36rpx;
  171. color: #FFFFFF;
  172. }
  173. .propBox{
  174. color: #fff;
  175. margin-bottom: 70rpx;
  176. .propTpl{
  177. .name{
  178. padding-left: 31rpx;
  179. font-weight: 500;
  180. font-size: 32rpx;
  181. }
  182. }
  183. .rightTip{
  184. .tipTpl{
  185. padding-right: 20rpx;
  186. text-align: right;
  187. .num{
  188. }
  189. .num1{
  190. font-weight: 500;
  191. font-size: 26rpx;
  192. color: #999999;
  193. padding-top: 15rpx;
  194. }
  195. }
  196. }
  197. }
  198. .navBack{
  199. position: relative;
  200. color: #fff;
  201. text-align: center;
  202. margin: 30rpx 0rpx 40rpx 0rpx;
  203. .title{
  204. font-weight: bold;
  205. font-size: 34rpx;
  206. }
  207. }
  208. </style>