dsf.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <view>
  3. <view v-for="(item, index) in qglist" class="list">
  4. <view class="a"><text class="tit">产品</text>:{{ item.name }}({{ item.cname }})</view>
  5. <view class="a"><text class="tit">实收款</text>:<text class="b">{{ item.price }}元</text></view>
  6. <view style="display: table;width: 100%;">
  7. <view style="float: left;">
  8. <view class="a"><text class="tit">转入时间</text>:{{ item.time }}</view>
  9. <view class="a"><text class="tit">释放时间</text>:<text class="b">{{ item.sftime }}</text></view>
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. constants: {},
  20. noimg: '/static/lanhu_record/ps3lynngrkw77ya7zb5jydv23q6xcffyj53c6fe453-54c4-4078-b021-8c1b292a08c2.png',
  21. data: {
  22. uid: '0',
  23. realname: '',
  24. idcard: '',
  25. idcardimg1: '',
  26. idcardimg2: ''
  27. },
  28. userinfo: null,
  29. qglist: []
  30. };
  31. },
  32. onShow() {
  33. var user = this.$api.getUserinfo();
  34. if (user) {
  35. this.userinfo = user;
  36. this.data.uid = this.userinfo.id;
  37. this.data.realname = this.userinfo.xm;
  38. this.data.idcard = this.userinfo.sfz;
  39. this.data.idcardimg1 = this.userinfo.idcardimg1;
  40. this.data.idcardimg2 = this.userinfo.idcardimg2;
  41. } else {
  42. this.userinfo = null;
  43. }
  44. this.getList();
  45. },
  46. methods: {
  47. ppb(item){
  48. uni.navigateTo({
  49. url: '/pages/ppb/zhuanru?id=' + item.id
  50. });
  51. },
  52. viewimg(path) {
  53. uni.previewImage({
  54. urls: [path],
  55. longPressActions: {
  56. itemList: ['发送给朋友', '保存图片', '收藏'],
  57. success: function(data) {
  58. // console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  59. },
  60. fail: function(err) {
  61. // console.log(err.errMsg);
  62. }
  63. }
  64. });
  65. },
  66. getList() {
  67. var data = new Object();
  68. data.uid = this.data.uid;
  69. if (data.uid == '0') {
  70. uni.showToast({
  71. title: '请重新登录',
  72. icon: 'none'
  73. });
  74. uni.switchTab({
  75. url: '/pages/my/index'
  76. });
  77. return;
  78. }
  79. this.$api
  80. .MhPostModel(data, 'ppb/dsf')
  81. .then(res => {
  82. console.log('user/qglist信息', JSON.stringify(res.data.data.data));
  83. // console.log('抢购');
  84. this.qglist = res.data.data.data;
  85. })
  86. .catch(err => {
  87. // console.log('request fail', JSON.stringify(err));
  88. });
  89. }
  90. }
  91. };
  92. </script>
  93. <style lang="css">
  94. @import '../common/common.css';
  95. @import '../zichan/assets/style/index.css';
  96. page {
  97. padding: 15rpx;
  98. background: #f2f2f6;
  99. padding: 0;
  100. margin: 0;
  101. }
  102. .a {
  103. color: #585858;
  104. font-size: 30rpx;
  105. line-height: 180%;
  106. }
  107. .tit{color: #a4a4a4;width: 130rpx;display: inline-block;text-align-last:justify}
  108. .a::before {
  109. content: '';
  110. width: 10rpx;display: inline-block;
  111. height: 10rpx;margin-right: 10rpx;position: relative;
  112. background: #aaaaaa;top: -5rpx;
  113. border-radius: 50%;
  114. }
  115. .b {
  116. color: #ED4545;
  117. font-weight: bold;
  118. }
  119. .mfxx {
  120. background: #faba25;
  121. color: #fff;
  122. font-size: 28rpx;
  123. padding: 5rpx 10rpx;
  124. border-radius: 5rpx;
  125. margin-left: 10rpx;
  126. }
  127. .srk {
  128. color: #000;
  129. height: 60rpx;
  130. line-height: 60rpx;
  131. background: #fff;
  132. border-radius: 10rpx;background: #f2f2f6;
  133. padding-left: 20rpx;
  134. font-size: 28rpx;
  135. }
  136. .list1 .a .tit{width: 180rpx;}
  137. .top {
  138. display: flex;
  139. justify-content: space-between;
  140. padding-bottom: 10rpx;
  141. background-image: linear-gradient(#829c52, #59723b);
  142. line-height: 60rpx;
  143. height: 90rpx;
  144. padding-top: 10rpx;
  145. }
  146. .xuanzhong {
  147. display: inline-block;
  148. text-align: center;
  149. width: 33%;
  150. color: #fff;
  151. }
  152. .xuanzhong::after {
  153. content: "";
  154. display: block;
  155. width: 30px;
  156. height: 5rpx;
  157. margin: auto;
  158. background: #fff;
  159. border-radius: 30rpx;
  160. }
  161. .wxz {
  162. color: #fff;
  163. display: inline-block;
  164. text-align: center;
  165. width: 33%;
  166. }
  167. .list {
  168. background: #fff;
  169. width: calc(100% - 40rpx);
  170. margin: auto;
  171. margin-top: 20rpx;
  172. padding: 20rpx;
  173. border-radius: 15rpx;
  174. }
  175. </style>