index.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. <template>
  2. <view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  3. <tm-menubars title="我的钱包" :shadow="0" :showback="true"></tm-menubars>
  4. <div class="zhuti" style="padding-bottom:60px !important;">
  5. <tm-sheet class="kuang">
  6. <view style="padding: 12px 12px 0;position: relative;">
  7. <view class="my_top">
  8. <text>我的钱包</text>
  9. <text>规则</text>
  10. </view>
  11. <view class="my_rest">
  12. <view style="display: flex;flex-direction: column;align-items: center;margin-bottom: 20px;">
  13. <text class="rest_money">{{rest}}</text>
  14. <text style="color: #fff;font-size: 15px;">钱包余额</text>
  15. </view>
  16. <view class="my_fun">
  17. <view class="fun_btn" @click="goPay">充值</view>
  18. <view class="fun_btn" @click="goCash">提现</view>
  19. </view>
  20. </view>
  21. <image src="../../static/img/104.png" mode="widthFix" style="width: 104px;height: 70px;"></image>
  22. </view>
  23. </tm-sheet>
  24. <tm-sheet class="kuang">
  25. <view class="" style="padding: 20px 10px;">
  26. <view class="line_bottom btm_flex" v-for="item in optList" :key="item.id">
  27. <view style="display: flex;flex-direction: column;">
  28. <text class="btm_info" style="font-size: 16px;color: #ffffff;">{{item.way}}</text>
  29. <text class="btm_info" style="font-size: 14px;">{{item.from}}</text>
  30. <text class="btm_info" style="font-size: 13px;">{{item.time}}</text>
  31. </view>
  32. <view style="color: #ffcc00;font-size: 14px;">+¥{{item.money}}</view>
  33. </view>
  34. </view>
  35. </tm-sheet>
  36. </div>
  37. <tm-poup v-model="show" position="center" width="95%" height="400px">
  38. <view class="" style="background-color: #303030;height: 100%;">
  39. <view class="price_title">
  40. <!-- 占位 -->
  41. <text></text>
  42. <text>充值</text>
  43. <image src="../../static/img/105.png" mode="widthFix"
  44. style="width: 24px;height: 24px;vertical-align: middle;" @click="goCancal"></image>
  45. </view>
  46. <view class="">
  47. <view class="price_box">
  48. <view :class="selectType==index?'price_info_active':'price_info_Inactive'"
  49. v-for="(item,index) in payList" :key="item.id" @click="selectIndex(index)">
  50. <text class="info_pri">{{item.price}}</text>
  51. <text class="info_mark" style="font-size: 13px;">({{item.mark}}元)</text>
  52. </view>
  53. </view>
  54. <view class="inps">
  55. <tm-input :border-bottom="false" :vertical="true" title="" v-model="prices"
  56. placeholder="自定义充值金额" align="left" bg-color="rgba(30, 30, 30, 1)" round="5">
  57. </tm-input>
  58. <view class="btns">
  59. <view class="quxiao" @click="goConfirm">取消</view>
  60. <view class="queding" @click="goConfirm">确认 </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </tm-poup>
  66. <!-- 弹出层消息 -->
  67. <tm-message ref="toast"></tm-message>
  68. </view>
  69. </template>
  70. <script>
  71. import {
  72. myRequest
  73. } from '@/api/request.js'
  74. export default {
  75. data() {
  76. return {
  77. selectType: 0,
  78. prices: '',
  79. show: false,
  80. rest: '2136',
  81. optList: [{
  82. way: '充值',
  83. from: '通过苹果应用内支付(IAP)支出',
  84. time: '2022-05-07 00:01 已到账',
  85. money: '100.00'
  86. }],
  87. // 充值列表
  88. payList: [{
  89. price: '233',
  90. mark: '233'
  91. },
  92. {
  93. price: '666',
  94. mark: '666'
  95. },
  96. {
  97. price: '1000',
  98. mark: '1000'
  99. },
  100. {
  101. price: '6666',
  102. mark: '6666'
  103. }
  104. ],
  105. listdata: []
  106. };
  107. },
  108. onLoad() {},
  109. created() {
  110. this.sys = uni.getSystemInfoSync();
  111. this.randouh()
  112. },
  113. methods: {
  114. selectIndex(index) {
  115. console.log(index, '2');
  116. this.selectType = index;
  117. },
  118. randouh() {
  119. let list2 = [],
  120. that = this;
  121. for (let i = 0; i < 8; i++) {
  122. list2.push({
  123. image: '../../static/img/90.png',
  124. text: '帽子',
  125. jiage: '¥ 359.00',
  126. xiaol: '128'
  127. })
  128. }
  129. this.listdata = this.listdata.concat(list2)
  130. console.log(this.listdata)
  131. },
  132. gengmore() {
  133. this.randouh()
  134. },
  135. goPay() {
  136. this.show = true;
  137. },
  138. goCancal() {
  139. this.show = false
  140. },
  141. goConfirm() {
  142. this.show = false;
  143. },
  144. goCash() {
  145. console.log('提现');
  146. }
  147. },
  148. }
  149. </script>
  150. <style lang="scss">
  151. /deep/ .tm-menubars .body {
  152. background-color: #1b1b1b !important;
  153. }
  154. /deep/ .zhuti {
  155. padding: 10px;
  156. }
  157. /deep/ .kuang {
  158. margin: 0 !important;
  159. padding: 0px !important;
  160. }
  161. .my_top {
  162. font-size: 16px;
  163. color: #fff;
  164. display: flex;
  165. justify-content: space-between;
  166. margin-bottom: 40px;
  167. }
  168. .my_rest {
  169. position: absolute;
  170. left: 0;
  171. top: 40px;
  172. width: 100%;
  173. z-index: 22;
  174. .rest_money {
  175. font-size: 24px;
  176. color: #ffcc00;
  177. font-weight: bold;
  178. line-height: 36px;
  179. }
  180. .my_fun {
  181. display: flex;
  182. color: #ffffff;
  183. align-items: center;
  184. justify-content: space-between;
  185. box-sizing: border-box;
  186. padding: 0px 80px;
  187. }
  188. .fun_btn {
  189. padding: 5px 23px;
  190. background: #0178FD;
  191. border-radius: 20px;
  192. }
  193. }
  194. .kuang .line_bottom {
  195. padding: 10px;
  196. border-bottom: 1px solid rgba(129, 129, 129, 0.2);
  197. }
  198. .btm_info {
  199. margin: 5px 0;
  200. }
  201. .btm_flex {
  202. display: flex;
  203. justify-content: space-between;
  204. }
  205. .kuang .line_bottom:last-child {
  206. border-bottom: none;
  207. }
  208. .line_my {
  209. margin: 10px 0;
  210. display: flex;
  211. font-size: 14px;
  212. }
  213. .price_title {
  214. height: 54px;
  215. display: flex;
  216. color: #ffffff;
  217. padding: 0px 16px;
  218. align-items: center;
  219. background: #0178fd;
  220. justify-content: space-between;
  221. }
  222. .price_box {
  223. width: 100%;
  224. padding: 13px;
  225. display: flex;
  226. flex-wrap: wrap;
  227. justify-content: space-between;
  228. box-sizing: border-box;
  229. }
  230. .price_info_active,
  231. .price_info_Inactive {
  232. width: 30%;
  233. height: 80px;
  234. display: flex;
  235. border-radius: 10px;
  236. background: rgba(37, 37, 37, 0.5);
  237. flex-direction: column;
  238. justify-content: center;
  239. align-items: center;
  240. margin: 0px 0 8px;
  241. .info_pri {
  242. margin-bottom: 3px;
  243. font-size: 19px;
  244. }
  245. }
  246. .price_info_active {
  247. border: 1px solid #0178fd;
  248. .info_pri {
  249. color: #0178fd;
  250. }
  251. .info_mark {
  252. color: #0178fd;
  253. }
  254. }
  255. .price_info_Inactive {
  256. border: 1px solid #AAAAAA;
  257. .info_pri {
  258. color: #ffffff;
  259. }
  260. .info_mark {}
  261. }
  262. /deep/ .qiehuan1 .text-primary {
  263. color: white !important;
  264. }
  265. .touxiang {
  266. width: 100%;
  267. display: block;
  268. margin-top: 10px;
  269. }
  270. .xiugai image {
  271. width: 18px;
  272. vertical-align: middle;
  273. margin-right: 5px;
  274. }
  275. .xiugai text {
  276. vertical-align: middle;
  277. }
  278. .xiugai {
  279. position: absolute;
  280. right: 5px;
  281. top: 10px;
  282. }
  283. .you {
  284. border-radius: 10px;
  285. padding: 10px;
  286. width: 88%;
  287. margin: 0 auto;
  288. margin-top: 20px;
  289. }
  290. /deep/ .you .grey-darken-5 {
  291. background-color: #0d0d0d !important;
  292. padding: 0px !important;
  293. }
  294. /deep/ .you .text-red {
  295. color: white;
  296. }
  297. /deep/ .tan .active {
  298. background-color: #AAAAAA !important;
  299. }
  300. /deep/ .tan .tm-poups .grey-darken-5 {
  301. background-color: gray !important;
  302. }
  303. /deep/ .tan uni-input {
  304. text-align: right;
  305. }
  306. /deep/ .you .border-grey-darken-4-b-1 {
  307. border-bottom: solid 1px #313131 !important;
  308. }
  309. /deep/ .inps .grey-darken-5 {
  310. background-color: transparent !important;
  311. }
  312. .yiguicla image {
  313. width: 95%;
  314. display: block;
  315. margin: 0 auto;
  316. margin-top: 5px;
  317. }
  318. .yiguicla {
  319. width: 30%;
  320. border-radius: 10px;
  321. }
  322. .sao {
  323. width: 88%;
  324. margin: 0 auto;
  325. margin-top: 40px;
  326. }
  327. /deep/ .mx-32 {
  328. margin: 0px !important;
  329. margin-top: 15px !important;
  330. }
  331. .logo {
  332. width: 100%;
  333. }
  334. .dingwei {
  335. width: 21%;
  336. margin-top: 3%;
  337. }
  338. .contone {
  339. width: 48%;
  340. }
  341. .remenzan {
  342. width: 18px !important;
  343. margin-top: 10px;
  344. }
  345. .more {
  346. text-align: center;
  347. }
  348. .more image {
  349. margin-right: 10px;
  350. vertical-align: middle;
  351. width: 30px;
  352. }
  353. .btns {
  354. margin: 33px 0px;
  355. display: flex;
  356. justify-content: space-between;
  357. padding: 0px 30px;
  358. color: #ffffff;
  359. }
  360. .quxiao {
  361. border-radius: 10px;
  362. font-size: 14px;
  363. background: #303440;
  364. width: 120px;
  365. height: 35px;
  366. text-align: center;
  367. line-height: 35px;
  368. }
  369. .queding {
  370. border-radius: 10px;
  371. font-size: 14px;
  372. background: #0178fd;
  373. width: 120px;
  374. height: 35px;
  375. text-align: center;
  376. line-height: 35px;
  377. }
  378. /deep/ .uni-scroll-view-content{
  379. background: #303030;
  380. }
  381. </style>