contract.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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">{{$t('index.contract.num')}}</view>
  10. <view class="item-detail">{{$t('index.contract.money')}}</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>{{$t('index.contract.word')}}>></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. <contract-list></contract-list>
  39. </view>
  40. <view class="contract-bottom"></view>
  41. </view>
  42. </template>
  43. <script>
  44. import TopHead from "@/pages/index/components/top-head";
  45. import Division from "@/pages/index/components/division";
  46. import ContractList from "@/pages/index/components/contract-list";
  47. export default {
  48. name: "contract",
  49. components: { ContractList, Division, TopHead},
  50. props: {},
  51. data() {
  52. return {}
  53. },
  54. watch: {},
  55. mounted() {
  56. },
  57. methods: {
  58. goToUrl(type) {
  59. switch (type) {
  60. case 1:
  61. uni.navigateTo({
  62. 'url': 'pages/index/contract'
  63. })
  64. break
  65. case 2:
  66. uni.navigateTo({
  67. 'url': 'pages/index/contract'
  68. })
  69. break
  70. case 3:
  71. uni.navigateTo({
  72. 'url': 'pages/index/contract'
  73. })
  74. break
  75. }
  76. },
  77. }
  78. }
  79. </script>
  80. <style scoped lang="scss">
  81. .contract-box {
  82. box-shadow: 0 0 24rpx 0 rgba(0, 0, 0, 0.16);
  83. .contract-top {
  84. padding: 20rpx 0;
  85. background: #fff;
  86. }
  87. .contract-data {
  88. background: #fff;
  89. width: 90%;
  90. margin: 60rpx auto 0;
  91. border-radius: 20rpx;
  92. padding: 40rpx 20rpx;
  93. font-size: 36rpx;
  94. box-shadow: 0 8rpx 16rpx 0 rgba(0, 0, 0, 0.08);
  95. .data-input {
  96. border: 1rpx solid #000;
  97. overflow: hidden;
  98. border-radius: 10rpx;
  99. padding: 20rpx;
  100. .input-item {
  101. display: flex;
  102. justify-content: space-between;
  103. .item-detail {
  104. font-size: 26rpx;
  105. }
  106. }
  107. .item-img {
  108. display: flex;
  109. justify-content: right;
  110. .text-img {
  111. display: inline-block;
  112. border-radius: 50%;
  113. height: 60rpx;
  114. width: 60rpx;
  115. box-sizing: border-box;
  116. margin-right: 10rpx;
  117. image {
  118. width: 60rpx;
  119. height: 60rpx;
  120. z-index: 100;
  121. }
  122. }
  123. .text {
  124. line-height: 60rpx;
  125. }
  126. }
  127. .input-item:first-child {
  128. margin-bottom: 40rpx;
  129. }
  130. .input-item:last-child {
  131. height: 60rpx;
  132. .item-detail {
  133. font-size: 32rpx;
  134. line-height: 60rpx;
  135. }
  136. }
  137. }
  138. .data-but {
  139. border-radius: 20rpx;
  140. margin-top: 60rpx;
  141. button {
  142. height: 90rpx;
  143. line-height: 90rpx;
  144. text-align: center;
  145. background: rgb(0, 87, 255);
  146. color: #fff;
  147. font-size: 26rpx;
  148. }
  149. }
  150. .data-button {
  151. margin-top: 40rpx;
  152. display: flex;
  153. justify-content: right;
  154. image {
  155. width: 40rpx;
  156. height: 40rpx;
  157. }
  158. view {
  159. font-size: 26rpx;
  160. margin-left: 10rpx;
  161. color: rgb(0, 87, 255);
  162. line-height: 40rpx;
  163. }
  164. }
  165. }
  166. .contract-list {
  167. background: #fff;
  168. width: 90%;
  169. margin: 40rpx auto;
  170. border-radius: 10px;
  171. padding: 20px 10px;
  172. overflow: hidden;
  173. font-size: 13px;
  174. box-shadow: 0 8rpx 16rpx 0 rgba(0, 0, 0, 0.08);
  175. .list-title {
  176. display: flex;
  177. justify-content: left;
  178. .title-img {
  179. background: rgb(0, 87, 255);
  180. padding: 10rpx;
  181. border-radius: 20rpx;
  182. image {
  183. width: 80rpx;
  184. height: 80rpx;
  185. }
  186. }
  187. .title-text {
  188. margin-left: 20rpx;
  189. line-height: 100rpx;
  190. font-size: 34rpx;
  191. font-weight: bold;
  192. }
  193. }
  194. }
  195. .contract-bottom {
  196. height: 50rpx;
  197. }
  198. }
  199. </style>