tixian1.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. <template>
  2. <view class="page">
  3. <view class="content">
  4. <view class="">
  5. <u-subsection :list="list2" mode="button" activeColor="#fff" bgColor="#fff" :current="current"
  6. @change="change" keyName="label"></u-subsection>
  7. <view class="" v-if="current == 0">
  8. <hx-order></hx-order>
  9. </view>
  10. <view class="" v-if="current == 1">
  11. <hx-invite></hx-invite>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. current: 0,
  22. date: "",
  23. all: "",
  24. list: [],
  25. allist: [],
  26. list2: [{
  27. label: '订单佣金',
  28. // 其他属性值
  29. source_type: "order"
  30. }, {
  31. label: '邀请佣金',
  32. source_type: "invite"
  33. }],
  34. source_type: "order",
  35. label: "订单佣金",
  36. }
  37. },
  38. onLoad(options) {
  39. this.current = options.current
  40. this.source_type = options.source_type
  41. if (this.source_type == "order") {
  42. this.label = "订单佣金"
  43. } else {
  44. this.label = "邀请佣金"
  45. }
  46. },
  47. computed: {},
  48. methods: {
  49. change(e) {
  50. this.current = e
  51. if (e == 0) {
  52. this.source_type = "order"
  53. } else {
  54. this.source_type = "invite"
  55. }
  56. },
  57. }
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. ::v-deep .u-subsection--button {
  62. height: 76rpx;
  63. border-radius: 76rpx !important;
  64. background-color: #fff !important;
  65. }
  66. ::v-deep .u-subsection--button__bar {
  67. border-radius: 76rpx !important;
  68. background-color: #0C66C2 !important;
  69. }
  70. .btn {
  71. width: 184rpx;
  72. height: 72rpx;
  73. background: #0C66C2;
  74. border-radius: 12rpx;
  75. font-size: 30rpx;
  76. font-family: PingFangSC, PingFang SC;
  77. font-weight: 400;
  78. color: #FFFFFF;
  79. line-height: 72rpx;
  80. text-align: center;
  81. }
  82. .jine {
  83. font-size: 24rpx;
  84. font-family: PingFangSC, PingFang SC;
  85. font-weight: 400;
  86. color: #444444;
  87. }
  88. .red {
  89. font-family: JDZhengHT, JDZhengHT;
  90. font-weight: 400;
  91. color: #F2413A;
  92. }
  93. .bottom-end {
  94. width: 750rpx;
  95. height: 166rpx;
  96. background: #FFFFFF;
  97. padding: 16rpx 32rpx 0;
  98. position: fixed;
  99. bottom: 0;
  100. left: 0;
  101. box-sizing: border-box;
  102. }
  103. .date {
  104. font-size: 24rpx;
  105. font-family: PingFangSC-Regular, PingFang SC;
  106. font-weight: 400;
  107. color: #888888;
  108. }
  109. .date1 {
  110. font-size: 24rpx;
  111. font-family: SFPro-Regular, SFPro;
  112. font-weight: 400;
  113. color: #222222;
  114. }
  115. .red {
  116. font-family: JDZhengHT-Regular, JDZhengHT;
  117. font-weight: 400;
  118. color: #F2413A;
  119. }
  120. .lietou {
  121. font-size: 32rpx;
  122. font-family: PingFangSC-Medium, PingFang SC;
  123. font-weight: 500;
  124. color: #222222;
  125. }
  126. .dan {
  127. margin-top: 20rpx;
  128. border-top: 2rpx solid #F6F6F6;
  129. padding-top: 18rpx;
  130. }
  131. .deposit {
  132. border-radius: 6rpx;
  133. background-color: rgba(12, 102, 194, 0.1);
  134. font-size: 24rpx;
  135. font-family: PingFangSC-Regular, PingFang SC;
  136. font-weight: 400;
  137. color: #0C66C2;
  138. padding: 4rpx;
  139. }
  140. .order {
  141. font-size: 24rpx;
  142. font-family: SFPro-Regular, SFPro;
  143. font-weight: 400;
  144. color: #666666;
  145. }
  146. .yong {
  147. background: #FFFFFF;
  148. border-radius: 16rpx;
  149. padding: 20rpx 20rpx 26rpx;
  150. box-sizing: border-box;
  151. .top {
  152. .left {
  153. font-size: 24rpx;
  154. font-family: PingFangSC-Regular, PingFang SC;
  155. font-weight: 400;
  156. color: #555555;
  157. }
  158. .right {
  159. font-family: SFPro-Regular, SFPro;
  160. font-weight: 400;
  161. color: #F2413A;
  162. }
  163. }
  164. .leftf {
  165. font-size: 26rpx;
  166. font-family: PingFangSC-Regular, PingFang SC;
  167. font-weight: 400;
  168. color: #555555;
  169. margin-top: 20rpx;
  170. }
  171. .leftff {
  172. font-size: 26rpx;
  173. font-family: PingFangSC-Regular, PingFang SC;
  174. font-weight: 400;
  175. color: #555555;
  176. }
  177. }
  178. .list1 {
  179. background: #FFFFFF;
  180. border-radius: 16rpx;
  181. .data {
  182. font-size: 24rpx;
  183. font-family: PingFangSC-Regular, PingFang SC;
  184. font-weight: 400;
  185. color: #888888;
  186. }
  187. .data1 {
  188. font-size: 24rpx;
  189. font-family: PingFangSC-Regular, PingFang SC;
  190. font-weight: 400;
  191. color: #222222;
  192. }
  193. .title {
  194. font-size: 32rpx;
  195. font-family: PingFangSC-Medium, PingFang SC;
  196. font-weight: 500;
  197. color: #222222;
  198. }
  199. .font {
  200. font-size: 24rpx;
  201. font-family: PingFangSC-Regular, PingFang SC;
  202. font-weight: 400;
  203. color: #fff;
  204. opacity: 1;
  205. }
  206. .back {
  207. background: #0C66C2;
  208. border-radius: 6rpx;
  209. padding: 4rpx 8rpx;
  210. opacity: 0.5;
  211. }
  212. .money {
  213. font-size: 24rpx;
  214. font-family: SFPro-Regular, SFPro;
  215. font-weight: 400;
  216. color: #F2413A;
  217. margin-left: 12rpx;
  218. }
  219. }
  220. .page {
  221. height: 100vh;
  222. .content {
  223. padding: 0 24rpx;
  224. background: #F3F3F3;
  225. min-height: 78vh;
  226. padding-top: 20rpx;
  227. min-height: 100vh;
  228. box-sizing: border-box;
  229. .list {
  230. background: #FFFFFF;
  231. border-radius: 16rpx;
  232. padding: 20rpx;
  233. box-sizing: border-box;
  234. }
  235. }
  236. }
  237. .bottom {
  238. border-top: 2rpx solid #F6F6F6;
  239. margin-top: 18rpx;
  240. padding-top: 18rpx;
  241. box-sizing: border-box;
  242. .left {
  243. font-size: 24rpx;
  244. font-family: PingFangSC-Regular, PingFang SC;
  245. font-weight: 400;
  246. color: #555555;
  247. }
  248. .right {
  249. font-size: 24rpx;
  250. font-family: PingFangSC-Regular, PingFang SC;
  251. font-weight: 400;
  252. color: #999999;
  253. }
  254. }
  255. .right {
  256. .concent {
  257. .left {
  258. font-size: 24rpx;
  259. font-family: PingFangSC-Regular, PingFang SC;
  260. font-weight: 400;
  261. color: #222222;
  262. }
  263. .money {
  264. font-size: 24rpx;
  265. font-family: SFPro-Regular, SFPro;
  266. font-weight: 400;
  267. color: #F2413A;
  268. margin-left: 12rpx;
  269. }
  270. .right {
  271. margin-left: 12rpx;
  272. font-size: 24rpx;
  273. font-family: PingFangSC-Regular, PingFang SC;
  274. font-weight: 400;
  275. color: #555555;
  276. }
  277. }
  278. .top {
  279. .left {
  280. font-size: 24rpx;
  281. font-family: PingFangSC-Regular, PingFang SC;
  282. font-weight: 400;
  283. color: #555555;
  284. }
  285. .right {
  286. font-size: 24rpx;
  287. font-family: PingFangSC-Regular, PingFang SC;
  288. font-weight: 400;
  289. color: #555555;
  290. display: inline-block;
  291. width: 170rpx;
  292. overflow: hidden;
  293. text-overflow: ellipsis;
  294. white-space: nowrap;
  295. }
  296. }
  297. }
  298. .left {
  299. // width: 300rpx;
  300. // overflow: hidden;
  301. // text-overflow: ellipsis;
  302. // white-space: nowrap;
  303. .concent {
  304. .left {
  305. font-size: 24rpx;
  306. font-family: PingFangSC-Regular, PingFang SC;
  307. font-weight: 400;
  308. color: #222222;
  309. }
  310. .money {
  311. font-size: 24rpx;
  312. font-family: SFPro-Regular, SFPro;
  313. font-weight: 400;
  314. color: #F2413A;
  315. margin-left: 12rpx;
  316. }
  317. .right {
  318. margin-left: 12rpx;
  319. font-size: 24rpx;
  320. font-family: PingFangSC-Regular, PingFang SC;
  321. font-weight: 400;
  322. color: #555555;
  323. }
  324. }
  325. .top {
  326. .left {
  327. height: 44rpx;
  328. font-size: 32rpx;
  329. font-family: PingFangSC-Medium, PingFang SC;
  330. font-weight: 500;
  331. color: #222222;
  332. }
  333. .right {
  334. margin-left: 12rpx;
  335. font-size: 24rpx;
  336. font-family: PingFangSC-Regular, PingFang SC;
  337. font-weight: 400;
  338. color: #141414;
  339. overflow: hidden;
  340. text-overflow: ellipsis;
  341. white-space: nowrap;
  342. width: 220rpx;
  343. display: inline-block;
  344. }
  345. }
  346. }
  347. .search {
  348. height: 68rpx;
  349. background: #F3F3F3;
  350. border-radius: 38rpx;
  351. padding: 14rpx 28rpx;
  352. box-sizing: border-box;
  353. }
  354. .index-header {
  355. padding: 0 32rpx;
  356. height: 50rpx;
  357. .index-search {
  358. width: 200rpx;
  359. height: 64rpx;
  360. background: #FFFFFF;
  361. border-radius: 20rpx;
  362. padding: 0 28rpx;
  363. .text1 {
  364. font-size: 24rpx;
  365. font-family: PingFangSC-Regular, PingFang SC;
  366. font-weight: 400;
  367. color: #999999;
  368. margin-left: 16rpx;
  369. }
  370. }
  371. }
  372. ::v-deep .u-navbar__content__left {
  373. padding: 0 !important;
  374. }
  375. // ::v-deep .u-subsection__item{
  376. // border-radius: 38rpx;
  377. // }
  378. // ::v-deep .u-subsection--subsection{
  379. // border-radius: 76rpx;
  380. // }
  381. </style>