zyXingqing.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <template>
  2. <view class="all">
  3. <view class="shang padding-v-30 padding-c-30 position-relative">
  4. <image class="img" src="../../static/img/xq6.png" mode="scaleToFill"></image>
  5. <view class="tz padding-b-30">{{base.name}}</view>
  6. <view class="sy flex-start padding-b-10">
  7. <view class="syl">{{$t('zy.m0')}}:{{base.day_get}}%</view>
  8. </view>
  9. <view class="sj flex margin-t-30 position-relative">
  10. <view class="sj1">
  11. <view class="sz">{{base.single_time_max*1}}</view>
  12. <view class="wz">{{$t('zy.m1')}}</view>
  13. </view>
  14. <view class="sj1">
  15. <view class="sz">{{base.single_time_max*1}}</view>
  16. <view class="wz">{{$t('zy.m3')}}</view>
  17. </view>
  18. <view class="sj1">
  19. <view class="sz">{{base.day}}</view>
  20. <view class="wz">{{$t('zy.m2')}}</view>
  21. </view>
  22. <view class="sj1">
  23. <view class="sz">{{base.single_time_min*1}}</view>
  24. <view class="wz">{{$t('zy.m4')}}</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="sygc margin-t-20 padding-v-30 padding-c-30">
  29. <view class="gc padding-b-30">{{$t('zy.m5')}}</view>
  30. <view class="an flex padding-c-30">
  31. <view class="an1"></view>
  32. <view class="xian"></view>
  33. <view class="an1"></view>
  34. <view class="xian"></view>
  35. <view class="an1"></view>
  36. </view>
  37. <view class="wenben padding-t-30 flex padding-c-30">
  38. <view class="wb">
  39. <view class="wen">{{$t('zy.m6')}}</view>
  40. <view class="wen padding-t-10">{{$t('zy.m7')}}</view>
  41. </view>
  42. <view class="wb">
  43. <view class="wen text-center">{{$t('zy.m8')}}</view>
  44. <view class="wen padding-t-10 text-center">{{$t('zy.m9')}}</view>
  45. </view>
  46. <view class="wb">
  47. <view class="wen text-right">{{$t('zy.m10')}}</view>
  48. <view class="wen padding-t-10 text-right">{{$t('zy.m11')}}</view>
  49. </view>
  50. </view>
  51. <view class="icon-box padding-t-30">
  52. <view class="icon flex-start">
  53. <image class="ic" src="../../static/img/xq1.png" mode=""></image>
  54. <view class="jiaru">{{$t('zy.m12')}}</view>
  55. </view>
  56. <view class="icon flex-start">
  57. <image class="ic" src="../../static/img/xq4.png" mode=""></image>
  58. <view class="jiaru">{{$t('zy.m13')}}</view>
  59. </view>
  60. <view class="icon flex-start">
  61. <image class="ic" src="../../static/img/xq3.png" mode=""></image>
  62. <view class="jiaru">{{$t('zy.m14')}}:{{base.single_time_max*1}}*({{base.day_get}}%+100%)*{{base.day}}</view>
  63. </view>
  64. <view class="icon flex-start">
  65. <image class="ic" src="../../static/img/xq2.png" mode=""></image>
  66. <view class="jiaru">{{$t('zy.m15')}}:{{allMoney}}</view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="jine margin-t-20">
  71. <view class="je">{{$t('zy.m16')}}</view>
  72. <view class="jes margin-t-30">{{base.join*1}}U</view>
  73. </view>
  74. <view class="yue flex margin-t-20">
  75. <view class="flex">
  76. <image class="qianbao" src="../../static/img/xq5.png" mode=""></image>
  77. <view class="ye padding-l-20">{{$t('zy.m17')}}</view>
  78. </view>
  79. <view class="flex">
  80. <view class="dangqian">{{$t('zy.m18')}}:</view>
  81. <view class="dqs">{{userWallet}}</view>
  82. </view>
  83. </view>
  84. <view class="aaa"></view>
  85. <view class="liji">
  86. <view class="jr" @click="joinLock">
  87. <view class="jia">{{$t('zy.m19')}}</view>
  88. </view>
  89. </view>
  90. </view>
  91. </template>
  92. <script>
  93. import {
  94. lockDetail,
  95. lockJoin
  96. } from "@/api/mypledge.js"
  97. import {
  98. gameWallet
  99. } from "@/api/game.js";
  100. export default {
  101. data() {
  102. return {
  103. id: '',
  104. base: {},
  105. userWallet: '',
  106. allMoney:'',
  107. };
  108. },
  109. onLoad(option) {
  110. this.id = option.id;
  111. uni.setNavigationBarTitle({
  112. title: this.$t("tab.b5"),
  113. });
  114. // 加载数据
  115. this.lockDetail();
  116. this.gameWallet();
  117. },
  118. methods: {
  119. joinLock(){
  120. lockJoin({
  121. id:this.id,
  122. number:this.num,
  123. trade_password:this.password
  124. }).then(
  125. (res) => {
  126. console.log(res);
  127. }
  128. ).then(
  129. () => {
  130. }
  131. )
  132. },
  133. gameWallet() {
  134. gameWallet().then((res) => {
  135. this.userWallet = +res.data.back.USDT.money.money
  136. })
  137. },
  138. lockDetail() {
  139. const that = this;
  140. lockDetail({
  141. id: that.id
  142. }).then(
  143. (res) => {
  144. that.base = res.data.data;
  145. that.allMoney = that.base.single_time_max*(that.base.day_get*1+100)*that.base.day/100;
  146. }
  147. ).catch(
  148. (res) => {
  149. console.log(res);
  150. }
  151. )
  152. }
  153. }
  154. }
  155. </script>
  156. <style lang="scss">
  157. page{
  158. background-color: #191a1f;
  159. }
  160. .all {
  161. line-height: 1;
  162. padding-bottom: 190rpx;
  163. }
  164. .shang {
  165. font-weight: 800;
  166. background-color: $page-color-base;
  167. .tz {
  168. font-size: 33rpx;
  169. color: #FFFFFF;
  170. }
  171. .sy {
  172. .syl {
  173. background: #FEB041;
  174. border-radius: 10rpx;
  175. font-size: 21rpx;
  176. color: #000000;
  177. padding: 10rpx;
  178. }
  179. }
  180. .sj {
  181. font-weight: 800;
  182. text-align: center;
  183. .sj1 {
  184. width: 25%;
  185. .sz {
  186. font-size: 40rpx;
  187. color: #FFFFFF;
  188. }
  189. .wz {
  190. margin-top: 20rpx;
  191. font-size: 22rpx;
  192. color: #999999;
  193. padding-bottom: 20rpx;
  194. }
  195. }
  196. }
  197. .img {
  198. position: absolute;
  199. width: 325rpx;
  200. height: 285rpx;
  201. top: 0rpx;
  202. right: 40rpx;
  203. }
  204. }
  205. .sygc {
  206. background-color: $page-color-base;
  207. .gc {
  208. font-size: 28rpx;
  209. font-weight: 800;
  210. color: #FFFFFF;
  211. }
  212. .an {
  213. .an1 {
  214. width: 24rpx;
  215. height: 24rpx;
  216. border: 4px solid #FEB041;
  217. border-radius: 12rpx;
  218. }
  219. .xian {
  220. flex-grow: 1;
  221. height: 1rpx;
  222. background: #fff;
  223. }
  224. }
  225. }
  226. .wenben {
  227. background-color: $page-color-base;
  228. .wb {
  229. width: 33.3%;
  230. .wen {
  231. font-size: 22rpx;
  232. font-weight: 500;
  233. color: #999999;
  234. }
  235. }
  236. }
  237. .icon-box {
  238. background-color: $page-color-base;
  239. .icon:nth-child(2n-1) {
  240. background: #161616;
  241. }
  242. .icon {
  243. margin: 0 30rpx;
  244. border-radius: 10rpx;
  245. padding: 20rpx;
  246. .ic {
  247. width: 38rpx;
  248. height: 36rpx;
  249. }
  250. .jiaru {
  251. padding-left: 20rpx;
  252. height: 23rpx;
  253. font-size: 24rpx;
  254. color: #FFFFFF;
  255. }
  256. }
  257. }
  258. .jine {
  259. background-color: $page-color-base;
  260. font-weight: 800;
  261. padding: 30rpx;
  262. .je {
  263. font-size: 28rpx;
  264. color: #999999;
  265. }
  266. .jes {
  267. font-size: 74rpx;
  268. color: #FEB041;
  269. }
  270. }
  271. .yue {
  272. background-color: $page-color-base;
  273. width: 750rpx;
  274. color: #FFFFFF;
  275. font-size: 29rpx;
  276. padding: 30rpx;
  277. .qianbao {
  278. width: 80rpx;
  279. height: 64rpx;
  280. }
  281. .ye {}
  282. .dangqian {}
  283. .dqs {
  284. color: #FEB041;
  285. }
  286. }
  287. .liji {
  288. padding: 40rpx 30rpx;
  289. position: fixed;
  290. bottom: 0;
  291. left: 0;
  292. right: 0;
  293. background-color: $page-color-base;
  294. box-shadow:0rpx 0rpx 20rpx #FFF;
  295. .jr {
  296. background: linear-gradient(90deg, #feb041 0%, #feb041 100%);
  297. border-radius: 10rpx;
  298. padding: 30rpx;
  299. text-align: center;
  300. }
  301. .jia {
  302. font-size: 32rpx;
  303. font-weight: bold;
  304. color: #040404;
  305. }
  306. }
  307. </style>