therapist.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <template>
  2. <view class="">
  3. <view v-if="orderList.length">
  4. <view class="flex align-center margin-bottom-sm bg padding-sm radius margin-sm"
  5. v-for="(item,index) in orderList" :key='index'
  6. style="box-shadow: 6rpx 10rpx 4px #F5F5F5;position: relative;">
  7. <view style="width:100upx;height:100upx;border-radius: 10rpx;">
  8. <image :src="item.userEntity.avatar?item.userEntity.avatar: '../../static/logo.png'"
  9. style="width: 100upx;height: 100upx;border-radius: 50%;" mode="aspectFill"></image>
  10. </view>
  11. <view class="margin-left flex flex-direction" style="width: 85%;">
  12. <view class="flex align-center justify-between">
  13. <view class="flex align-center">
  14. <view class="text-bold text-30 margin-right-xs">{{item.userEntity.userName}}</view>
  15. </view>
  16. </view>
  17. <view style="width: 100%;display: flex;justify-content: space-between;align-items: center;">
  18. <view class="text-center text-sm"
  19. style="color: #2FB57A;font-size: 28rpx;margin-top: 10rpx;">
  20. 为我储值,剩余额度:¥{{item.money}}
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <empty v-if="orderList.length == 0"></empty>
  27. </view>
  28. </template>
  29. <script>
  30. import empty from '@/components/empty.vue'
  31. export default {
  32. components: {
  33. empty
  34. },
  35. data() {
  36. return {
  37. consortiaId: '',
  38. loading: true, // 是否显示骨架屏组件
  39. orderList: [],
  40. page: 1,
  41. limit: 10,
  42. token: '',
  43. isVip: false,
  44. myId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : '',
  45. }
  46. },
  47. onLoad(e) {
  48. this.consortiaId = e.consortiaId;
  49. let that = this
  50. that.page = 1
  51. that.getlist()
  52. },
  53. onShow() {
  54. let that = this
  55. that.token = uni.getStorageSync('token')
  56. that.myId = uni.getStorageSync('userId')
  57. },
  58. methods: {
  59. saveImgss(imgs, index) {
  60. console.log(imgs, index)
  61. let imgArr = imgs
  62. // //预览图片
  63. uni.previewImage({
  64. urls: imgArr,
  65. current: imgArr[index]
  66. });
  67. },
  68. saveImgs(imgs) {
  69. let imgArr = [];
  70. imgArr.push(imgs);
  71. // //预览图片
  72. uni.previewImage({
  73. urls: imgArr,
  74. current: 0
  75. });
  76. },
  77. getlist() {
  78. let userId = this.$queue.getData('userId');
  79. this.$Request.getT('/app/userMoney/selectUserMoneyArtificers?page=' + this.page + '&limit=' + this.limit + '&artificerId=' + uni.getStorageSync('artificerId')).then(res =>{
  80. if(res.code == 0){
  81. if (this.page == 1) {
  82. this.orderList = res.data.list
  83. } else {
  84. this.orderList = [...this.orderList, ...res.data.list]
  85. }
  86. }
  87. uni.stopPullDownRefresh();
  88. });
  89. }
  90. },
  91. onReachBottom: function() {
  92. this.page = this.page + 1;
  93. this.getlist()
  94. },
  95. onPullDownRefresh: function() {
  96. this.page = 1;
  97. this.getlist()
  98. },
  99. }
  100. </script>
  101. <style lang="scss">
  102. page {
  103. background-color: #F7F7F7;
  104. }
  105. .zz_view {
  106. // width: 220upx;
  107. background: #e8fdf6;
  108. color: #73c2a2;
  109. font-size: 24rpx;
  110. padding: 6rpx 10rpx;
  111. border-radius: 10rpx;
  112. }
  113. .zpmore_view {
  114. background: #2FB57A;
  115. width: 120upx;
  116. text-align: center;
  117. border-radius: 10rpx;
  118. height: 42rpx;
  119. line-height: 42rpx;
  120. font-size: 24rpx;
  121. color: #FFFFFF;
  122. margin-left: 10rpx;
  123. }
  124. .byy_view {
  125. // background: #2FB57A;
  126. width: 120upx;
  127. text-align: center;
  128. border-radius: 50rpx;
  129. height: 46rpx;
  130. line-height: 46rpx;
  131. font-size: 24rpx;
  132. color: #999999;
  133. border: 1upx solid #999999;
  134. margin-top: 6rpx;
  135. }
  136. .kyy_view {
  137. background: #2FB57A;
  138. width: 120upx;
  139. text-align: center;
  140. border-radius: 50rpx;
  141. height: 46rpx;
  142. line-height: 46rpx;
  143. font-size: 24rpx;
  144. color: #FFFFFF;
  145. margin-top: 6rpx;
  146. }
  147. .bg {
  148. background: #FFFFFF;
  149. }
  150. .ytp_view {
  151. background: #e3e3e3;
  152. width: 400rpx;
  153. border-radius: 10rpx;
  154. font-size: 28rpx;
  155. text-align: center;
  156. height: 80rpx;
  157. line-height: 80rpx;
  158. color: #848484;
  159. margin-top: 40rpx;
  160. }
  161. .tp_view {
  162. background: #ee6c54;
  163. width: 400rpx;
  164. border-radius: 10rpx;
  165. font-size: 28rpx;
  166. text-align: center;
  167. height: 80rpx;
  168. line-height: 80rpx;
  169. color: #FFFFFF;
  170. margin-top: 40rpx;
  171. }
  172. .sticky-tabs {
  173. z-index: 990;
  174. position: sticky;
  175. top: var(--window-top);
  176. // background-color: #fff;
  177. }
  178. /* // 使用mescroll-uni,则top为0 */
  179. .mescroll-uni,
  180. /deep/.mescroll-uni {
  181. .sticky-tabs {
  182. top: 0;
  183. }
  184. }
  185. .demo-tip {
  186. padding: 18upx;
  187. font-size: 24upx;
  188. text-align: center;
  189. }
  190. .line_s {
  191. display: inline-flex;
  192. width: 10rpx;
  193. height: 10rpx;
  194. background: #1AD566;
  195. border-radius: 50%;
  196. margin-right: 10rpx;
  197. }
  198. .line_x {
  199. display: inline-flex;
  200. width: 10rpx;
  201. height: 10rpx;
  202. background: #000000;
  203. border-radius: 50%;
  204. margin-right: 10rpx;
  205. }
  206. .box {
  207. // border: 3rpx solid #005dff;
  208. background: #E8FAE1;
  209. color: #2FB57A;
  210. padding: 5rpx 15rpx;
  211. font-size: 26rpx;
  212. letter-spacing: 2rpx;
  213. border-radius: 8rpx;
  214. // margin-top: 10rpx;
  215. margin-right: 8upx;
  216. }
  217. .actve {
  218. font-size: 30rpx;
  219. font-family: PingFang SC;
  220. font-weight: 800;
  221. color: #20C675;
  222. }
  223. .tabview1 {
  224. padding: 20rpx 20rpx;
  225. // width: 686upx;
  226. // height: 100upx;
  227. background: #FFFFFF;
  228. margin-top: 60upx;
  229. // z-index: 99;
  230. // display: flex;
  231. // line-height: 100upx;
  232. .tabview {
  233. // width: 686upx;
  234. // // height: 100upx;
  235. background: #F2FFF9;
  236. border-radius: 24rpx 24rpx 0 0;
  237. // margin-top: -50upx;
  238. // z-index: 99;
  239. display: flex;
  240. line-height: 100upx;
  241. .tabItem_sel {
  242. font-size: 30upx;
  243. font-family: PingFang SC;
  244. font-weight: 800;
  245. color: #20C675;
  246. flex: 1;
  247. text-align: center;
  248. }
  249. .tabItem {
  250. font-size: 26upx;
  251. font-family: PingFang SC;
  252. font-weight: 500;
  253. color: #333333;
  254. flex: 1;
  255. text-align: center;
  256. }
  257. }
  258. .tabsx {
  259. width: 686upx;
  260. border-radius: 24rpx;
  261. padding-bottom: 10rpx;
  262. display: flex;
  263. align-items: center;
  264. justify-content: space-between;
  265. padding: 20rpx 30rpx;
  266. font-size: 26rpx;
  267. .active {
  268. color: #20C675;
  269. font-size: 30rpx;
  270. font-weight: bold;
  271. }
  272. }
  273. }
  274. </style>