contract.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <template>
  2. <view class="contract-box">
  3. <view class="contract-top">
  4. <top-head :top-type="2"></top-head>
  5. </view>
  6. <view class="contract-data">
  7. <view class="data-input">
  8. <view class="input-item">
  9. <view class="item-detail">数量</view>
  10. <view class="item-detail">可用余额</view>
  11. </view>
  12. <view class="input-item">
  13. <view class="item-detail">100</view>
  14. <view class="item-detail item-img">
  15. <view class="text-img">
  16. <image src="@/static/img/index/bnb.png"></image>
  17. </view>
  18. <view class="text">BNB</view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="data-but">
  23. <button>定金</button>
  24. </view>
  25. <view class="data-button">
  26. <image src="@/static/img/index/msg.svg"></image>
  27. <view>阅读文档>></view>
  28. </view>
  29. </view>
  30. <view class="contract-list">
  31. <view class="list-title">
  32. <view class="title-img">
  33. <image src="@/static/img/index/bnb2.png" mode="aspectFill"></image>
  34. </view>
  35. <view class="title-text">我的收支明细(100)</view>
  36. </view>
  37. <division></division>
  38. <view v-for="i in 5" class="item">
  39. <view class="list-item">
  40. <view class="item-line">
  41. <view class="item-text">BNB</view>
  42. </view>
  43. <view class="item-line line-text">
  44. <view class="item-text">平台分润</view>
  45. </view>
  46. <view class="item-line">
  47. <view class="item-text">BNB Number</view>
  48. <view class="item-text text-two">
  49. <view class="text-img">
  50. <image src="@/static/img/index/bnb2.png"></image>
  51. </view>
  52. <view class="text">56</view>
  53. </view>
  54. </view>
  55. <view class="item-line">
  56. <view class="item-text">积分</view>
  57. <view class="item-text text-two">
  58. <view class="text-img">
  59. <image src="@/static/img/index/jf.svg"></image>
  60. </view>
  61. <view class="text">56</view>
  62. </view>
  63. </view>
  64. <view class="item-line">
  65. <view class="item-text">手续费</view>
  66. <view class="item-text">56</view>
  67. </view>
  68. <view class="item-line">
  69. <view class="item-text">时间</view>
  70. <view class="item-text">56</view>
  71. </view>
  72. </view>
  73. <division class="division-item"></division>
  74. </view>
  75. </view>
  76. <view class="contract-bottom"></view>
  77. </view>
  78. </template>
  79. <script>
  80. import TopHead from "@/pages/index/components/top-head";
  81. import Division from "@/pages/index/components/division";
  82. export default {
  83. name: "contract",
  84. components: {Division, TopHead},
  85. props: {},
  86. data() {
  87. return {}
  88. },
  89. watch: {},
  90. mounted() {
  91. },
  92. methods: {
  93. goToUrl(type) {
  94. switch (type) {
  95. case 1:
  96. uni.navigateTo({
  97. 'url': 'pages/index/contract'
  98. })
  99. break
  100. case 2:
  101. uni.navigateTo({
  102. 'url': 'pages/index/contract'
  103. })
  104. break
  105. case 3:
  106. uni.navigateTo({
  107. 'url': 'pages/index/contract'
  108. })
  109. break
  110. }
  111. },
  112. }
  113. }
  114. </script>
  115. <style scoped lang="scss">
  116. .contract-box {
  117. box-shadow: 0 0 24rpx 0 rgba(0, 0, 0, 0.16);
  118. .contract-top {
  119. padding: 20rpx 0;
  120. background: #fff;
  121. }
  122. .contract-data {
  123. background: #fff;
  124. width: 90%;
  125. margin: 60rpx auto 0;
  126. border-radius: 20rpx;
  127. padding: 40rpx 20rpx;
  128. font-size: 36rpx;
  129. box-shadow: 0 8rpx 16rpx 0 rgba(0, 0, 0, 0.08);
  130. .data-input {
  131. border: 1rpx solid #000;
  132. overflow: hidden;
  133. border-radius: 10rpx;
  134. padding: 20rpx;
  135. .input-item {
  136. display: flex;
  137. justify-content: space-between;
  138. .item-detail {
  139. font-size: 26rpx;
  140. }
  141. }
  142. .item-img {
  143. display: flex;
  144. justify-content: right;
  145. .text-img {
  146. display: inline-block;
  147. border-radius: 50%;
  148. height: 60rpx;
  149. width: 60rpx;
  150. box-sizing: border-box;
  151. margin-right: 10rpx;
  152. image {
  153. width: 60rpx;
  154. height: 60rpx;
  155. z-index: 100;
  156. }
  157. }
  158. .text {
  159. line-height: 60rpx;
  160. }
  161. }
  162. .input-item:first-child {
  163. margin-bottom: 40rpx;
  164. }
  165. .input-item:last-child {
  166. height: 60rpx;
  167. .item-detail {
  168. font-size: 32rpx;
  169. line-height: 60rpx;
  170. }
  171. }
  172. }
  173. .data-but {
  174. border-radius: 20rpx;
  175. margin-top: 60rpx;
  176. button {
  177. height: 90rpx;
  178. line-height: 90rpx;
  179. text-align: center;
  180. background: rgb(0, 87, 255);
  181. color: #fff;
  182. font-size: 26rpx;
  183. }
  184. }
  185. .data-button {
  186. margin-top: 40rpx;
  187. display: flex;
  188. justify-content: right;
  189. image {
  190. width: 40rpx;
  191. height: 40rpx;
  192. }
  193. view {
  194. font-size: 26rpx;
  195. margin-left: 10rpx;
  196. color: rgb(0, 87, 255);
  197. line-height: 40rpx;
  198. }
  199. }
  200. }
  201. .contract-list {
  202. background: #fff;
  203. width: 90%;
  204. margin: 40rpx auto;
  205. border-radius: 10px;
  206. padding: 20px 10px;
  207. overflow: hidden;
  208. font-size: 13px;
  209. box-shadow: 0 8rpx 16rpx 0 rgba(0, 0, 0, 0.08);
  210. .list-title {
  211. display: flex;
  212. justify-content: left;
  213. .title-img {
  214. background: rgb(0, 87, 255);
  215. padding: 10rpx;
  216. border-radius: 20rpx;
  217. image {
  218. width: 80rpx;
  219. height: 80rpx;
  220. }
  221. }
  222. .title-text {
  223. margin-left: 20rpx;
  224. line-height: 100rpx;
  225. font-size: 34rpx;
  226. font-weight: bold;
  227. }
  228. }
  229. .list-item {
  230. margin-top: 20rpx;
  231. .item-line {
  232. margin-bottom: 20rpx;
  233. display: flex;
  234. justify-content: space-between;
  235. .item-text {
  236. font-size: 26rpx;
  237. color: rgb(177, 177, 177);
  238. line-height: 42rpx;
  239. height: 42rpx;
  240. }
  241. .text-two {
  242. display: flex;
  243. justify-content: right;
  244. .text-img {
  245. display: inline-block;
  246. padding: 6rpx;
  247. background: rgb(0, 87, 255);
  248. border-radius: 50%;
  249. height: 42rpx;
  250. width: 42rpx;
  251. box-sizing: border-box;
  252. image {
  253. width: 30rpx;
  254. height: 30rpx;
  255. z-index: 100;
  256. }
  257. }
  258. .text {
  259. margin-left: 10rpx;
  260. font-size: 30rpx;
  261. }
  262. }
  263. }
  264. .line-text {
  265. margin-bottom: 40rpx;
  266. .item-text {
  267. font-weight: bold;
  268. font-size: 26rpx;
  269. color: #222;
  270. }
  271. }
  272. }
  273. .item:last-child {
  274. .division-item {
  275. display: none;
  276. }
  277. }
  278. }
  279. .contract-bottom {
  280. height: 50rpx;
  281. }
  282. }
  283. </style>