moneyList.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <template>
  2. <view class="container">
  3. <uv-sticky>
  4. <view class="tabB">
  5. <view class="order-type u-flex-center-sb" v-if="selTabIndex == 0">
  6. <view class="type-name u-font26 u-181818" :class="{ active: isChange == item.value }"
  7. v-for="(item, index) in orderType" :key="index" @click="clickBtn(item.value)">
  8. {{ item.label }}
  9. </view>
  10. </view>
  11. </view>
  12. </uv-sticky>
  13. <view class="bigbox" :class="selTabIndex == 0 ? 'bigbox0' : 'bigbox3'">
  14. <view v-if="RowsList.length > 0">
  15. <view class="u-bg-fff ppsPd umb20" v-for="(item, index) in RowsList" :key="item.id">
  16. <view class="pt15-pb24 u-border-one-one" style="padding-bottom: 30rpx">
  17. <view class="u-flex-center-sb" style="align-items: center">
  18. <view class="u-flex" style="align-items: center">
  19. <text class="iconfont2 u-font40" style="padding-top: 2rpx; color: #fa6138">&#xe611;</text>
  20. <text class="u-1A1A1A u-font30 u-ml15">{{
  21. item.businessName
  22. }}</text>
  23. </view>
  24. <text class="u-00BF5A u-font28">{{ item.settlement ? '已结算' : '未结算' }}</text>
  25. </view>
  26. </view>
  27. <view>
  28. <view class="goodsItem u-border-one-one u-flex">
  29. <image :src="item.productCover" class="u-goods200 u-ml15" mode=""></image>
  30. <view class="u-flex1 u-flex-column-start rightText u-ml30">
  31. <view class="u-text2 u-1A1A1A u-font28">{{
  32. item.productTitle
  33. }}</view>
  34. <view class="bottext u-flex-column-start u-flex1">
  35. <text class="u-font22 u-999" style="width: 100%" v-if="item.skuSetName">规格:{{ item.skuSetName
  36. }}</text>
  37. <view class="u-flex-center botPrice u-mt25">
  38. <view class="u-00BF5A u-font32 good-text">
  39. <rich-text :nodes="$mUtil.priceBigSmall(item.realPrice)"></rich-text>
  40. </view>
  41. <text class="u-font26 u-999 u-ml15" v-if="item.number">x {{ item.number }}</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="botList">
  48. <view class="u-flex-center-sb u-mt20">
  49. <view class="u-font26 u-181818 opacity">购买人</view>
  50. <text style="text-align: right" class="u-font26 u-999 u-text-width-two">{{ item.userNickname }}</text>
  51. </view>
  52. <view class="u-flex-center-sb u-mt20">
  53. <view class="u-font26 u-181818 opacity">下单时间</view>
  54. <text class="u-font26 u-999">{{ item.createTime }}</text>
  55. </view>
  56. <view class="u-flex-center-sb u-mt20">
  57. <view class="u-font26 u-181818 opacity">所得佣金</view>
  58. <view class="u-font26 u-00BF5A u-bold">
  59. <rich-text :nodes="$mUtil.priceBigSmall(item.ableGains, false)"></rich-text>
  60. </view>
  61. </view>
  62. <view class="u-flex-center-sb u-mt20" v-if="item.gains > 0">
  63. <view class="u-font26 u-181818 opacity">所得金额</view>
  64. <view class="u-font26 u-00BF5A u-bold">
  65. <rich-text :nodes="$mUtil.priceBigSmall(item.gains, false)"></rich-text>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <loadMore v-if="RowsList.length > 0" :status="LoadStatus"></loadMore>
  71. </view>
  72. <noData v-else :config="{ top: 20, content: '暂无数据~' }"></noData>
  73. </view>
  74. </view>
  75. </template>
  76. <script setup>
  77. import { ref } from "vue";
  78. import { onReachBottom, onPullDownRefresh, onLoad } from "@dcloudio/uni-app";
  79. import { distributionUserOrderGainsPage_Api } from "@/api/agencyCenter";
  80. import { usePageData } from "@/hooks/usePageData";
  81. const { RowsList, LoadStatus, initData } = usePageData(distributionUserOrderGainsPage_Api);
  82. const isChange = ref(0);
  83. const orderType = ref([
  84. {
  85. label: "全部订单",
  86. value: "",
  87. },
  88. {
  89. label: "未结算",
  90. value: 1,
  91. },
  92. {
  93. label: "已结算",
  94. value: 2,
  95. },
  96. ]);
  97. const selTabIndex = ref(0);
  98. // 生命周期
  99. onLoad(() => {
  100. initData();
  101. });
  102. // 点击按钮
  103. const clickBtn = (index) => {
  104. isChange.value = index;
  105. let settlement = undefined;
  106. if (index == 1) {
  107. settlement = false;
  108. } else if (index == 2) {
  109. settlement = true;
  110. }
  111. initData({ settlement });
  112. };
  113. </script>
  114. <style lang="scss">
  115. .tabBox {
  116. display: flex;
  117. justify-content: space-around;
  118. padding: 0 30rpx;
  119. border-bottom: 1rpx solid #e6e6e6;
  120. background: #ffffff;
  121. >view {
  122. font-size: 30rpx;
  123. padding: 22rpx 0;
  124. color: #1a1a1a;
  125. position: relative;
  126. font-weight: 700;
  127. }
  128. >.active {
  129. color: #fa6138;
  130. &::after {
  131. display: block;
  132. width: 100%;
  133. height: 4rpx;
  134. content: "";
  135. background: #fa6138;
  136. position: absolute;
  137. bottom: 0;
  138. left: 0;
  139. border-radius: 2rpx;
  140. }
  141. }
  142. }
  143. .good-text {
  144. font-weight: 700;
  145. }
  146. .opacity {
  147. opacity: 0.9;
  148. }
  149. .rightText {
  150. margin-top: 4rpx;
  151. }
  152. .contribution-txt {
  153. margin-top: 6rpx;
  154. color: #ff6600;
  155. font-size: 26rpx;
  156. }
  157. // .bigbox {
  158. // margin-top: 200rpx;
  159. // }
  160. .bigbox0 {
  161. margin-top: 110rpx;
  162. // margin-top: 200rpx;
  163. }
  164. .bigbox3 {
  165. margin-top: 88rpx;
  166. }
  167. .ppsPd {
  168. padding: 30rpx;
  169. border-bottom: 0.5px solid #e6e6e6;
  170. }
  171. .goodsItem {
  172. padding: 30rpx 0;
  173. position: relative;
  174. }
  175. .umb20 {
  176. margin-bottom: 20rpx;
  177. }
  178. .wt112 {
  179. width: 140rpx;
  180. }
  181. .img30 {
  182. width: 30rpx;
  183. height: 30rpx;
  184. }
  185. .order-type {
  186. height: 110rpx;
  187. width: 100%;
  188. box-sizing: border-box;
  189. padding: 0 30rpx;
  190. .type-name {
  191. border-radius: 30px;
  192. padding: 12rpx 18rpx;
  193. display: inline-block;
  194. background: #f2f2f2;
  195. border-radius: 30rpx;
  196. }
  197. .active {
  198. background: #fa6138;
  199. color: #ffffff;
  200. }
  201. }
  202. .wd-bgImg {
  203. position: relative;
  204. padding: 25rpx 0rpx;
  205. image {
  206. width: 100%;
  207. height: 200rpx;
  208. vertical-align: bottom;
  209. }
  210. .moneyInfo {
  211. position: absolute;
  212. top: 25rpx;
  213. width: 92%;
  214. .mt40 {
  215. margin-top: 40rpx;
  216. }
  217. .detail-btn button {
  218. height: 56rpx;
  219. line-height: 30rpx;
  220. border-radius: 28px;
  221. opacity: 0.82;
  222. padding: 10rpx 30rpx;
  223. background-color: #eed9a9;
  224. color: #0b844a;
  225. }
  226. }
  227. }
  228. .wdInput {
  229. background-color: #ffffff;
  230. border-radius: 18rpx 18rpx 0px 0rpx;
  231. padding: 40rpx 22rpx 32rpx;
  232. .input {
  233. height: 80rpx;
  234. line-height: 80rpx;
  235. font-size: 60rpx;
  236. border-bottom: 1rpx solid #d9d9d9;
  237. padding-bottom: 25rpx;
  238. input {
  239. height: 80rpx;
  240. line-height: 80rpx;
  241. font-size: 36rpx;
  242. }
  243. }
  244. }
  245. .bg-fff {
  246. background-color: #ffffff;
  247. padding: 26rpx 22rpx 36rpx;
  248. border-radius: 0rpx 0rpx 18px 18rpx;
  249. }
  250. .ml46 {
  251. margin-left: 46rpx;
  252. }
  253. .apply-btn {
  254. margin-top: 114rpx;
  255. button {
  256. background: #0b844a;
  257. color: #ffffff;
  258. }
  259. }
  260. .zfb-wx {
  261. padding-bottom: 24rpx;
  262. .payIcon {
  263. color: #00aaef;
  264. font-size: 32rpx;
  265. margin-right: 18rpx;
  266. }
  267. .wxIcon {
  268. color: rgb(37, 171, 56);
  269. font-size: 32rpx;
  270. margin-right: 18rpx;
  271. }
  272. }
  273. .zhInput input {
  274. width: 62%;
  275. height: 70rpx;
  276. line-height: 70rpx;
  277. padding: 0rpx 20rpx;
  278. border: 1rpx solid #d9d9d9;
  279. border-radius: 6rpx;
  280. }
  281. .popup {
  282. width: 100%;
  283. .bg-top {
  284. background-color: #f5f5f5;
  285. padding: 20rpx 30rpx;
  286. border-radius: 18rpx 18rpx 0px 0px;
  287. }
  288. .bankCardList {
  289. background-color: #ffffff;
  290. padding: 0rpx 30rpx;
  291. padding-bottom: 185rpx;
  292. .item {
  293. height: 84rpx;
  294. line-height: 84rpx;
  295. image {
  296. width: 48rpx;
  297. height: 42rpx;
  298. margin-top: 20rpx;
  299. vertical-align: bottom;
  300. }
  301. .rh-br {
  302. width: 100%;
  303. border-bottom: 1rpx solid #e6e6e6;
  304. }
  305. .pull-right {
  306. float: right !important;
  307. }
  308. }
  309. }
  310. }
  311. .ml56 {
  312. margin-left: 56rpx;
  313. }
  314. .ml200 {
  315. margin-left: 200rpx;
  316. }
  317. .offline {
  318. padding: 0 30rpx;
  319. .order-item {
  320. padding: 30rpx 0;
  321. border-bottom: 1rpx solid #f2f2f2;
  322. .order-item-head {
  323. display: flex;
  324. justify-content: space-between;
  325. align-items: center;
  326. width: 100%;
  327. }
  328. .item-info {
  329. font-size: 28rpx;
  330. font-family: PingFang SC, PingFang SC-Regular;
  331. font-weight: 400;
  332. color: #808080;
  333. .order-num {
  334. margin-bottom: 10rpx;
  335. .num {
  336. color: #1a1a1a;
  337. }
  338. }
  339. .order-time-price {
  340. font-size: 24rpx;
  341. .time {
  342. margin-right: 89rpx;
  343. }
  344. }
  345. }
  346. .tip {
  347. display: flex;
  348. justify-content: flex-end;
  349. color: #808080;
  350. font-size: 28rpx;
  351. margin-bottom: 10rpx;
  352. .label {
  353. color: #1a1a1a;
  354. }
  355. }
  356. .tip:last-child {
  357. margin-bottom: 0;
  358. }
  359. .item-icon {
  360. width: 32rpx;
  361. height: 32rpx;
  362. transform: rotate(-90deg);
  363. flex-shrink: 0;
  364. }
  365. }
  366. }
  367. </style>