jifenGei_body.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <title>AUI快速完成布局</title>
  8. <link rel="stylesheet" type="text/css" href="../../css/api.css" />
  9. <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
  10. <link rel="stylesheet" type="text/css" href="../../css/html.css" />
  11. <style type="text/css">
  12. .text-white {
  13. color: #ffffff !important;
  14. }
  15. .aui-grid [class*=aui-col-] {
  16. padding: 0.75rem 0;
  17. }
  18. .aui-order-number {
  19. padding: 0.75rem;
  20. }
  21. .aui-card-list-user-avatar {
  22. width: 4rem;
  23. height: 3rem;
  24. }
  25. .aui-card-list-user-name {
  26. overflow: hidden;
  27. text-overflow: ellipsis;
  28. -webkit-box-orient: vertical;
  29. -webkit-line-clamp: 3;
  30. }
  31. .aui-card-list-user-info {
  32. text-align: right;
  33. color: #f00;
  34. margin-top: 10px;
  35. }
  36. .aui-top {
  37. padding: 7px 2px;
  38. border-bottom: 1px solid #ddd;
  39. width: 96%;
  40. margin-left: 2%;
  41. }
  42. .aui-state {
  43. float: right;
  44. }
  45. .aui-top .aui-state {
  46. color: #f00;
  47. }
  48. .aui-top .aui-state, .aui-top .aui-time {
  49. font-size: 0.6rem;
  50. }
  51. #user-info {
  52. position: fixed;
  53. top: 0;
  54. left: 0;
  55. width: 100%;
  56. height: 100%;
  57. z-index: 2;
  58. }
  59. .top {
  60. padding-bottom: 1rem;
  61. }
  62. .aui-bottom {
  63. border-top: 1px solid #ddd;
  64. border-bottom: 0px solid #fff;
  65. text-align: right;
  66. }
  67. .aui-float-right {
  68. float: right;
  69. margin-top: 10px;
  70. }
  71. .aui-card-list-user-name {
  72. width: 96%;
  73. }
  74. #tab {
  75. position: fixed;
  76. top: 0;
  77. left: 0;
  78. width: 100%;
  79. z-index: 2;
  80. }
  81. .aui-state-success {
  82. color: #8ec31f !important;
  83. }
  84. .aui-card-list {
  85. margin-bottom: 0px;
  86. }
  87. [v-cloak] {
  88. display: none
  89. }
  90. .zmq-orderCode-img {
  91. position: absolute;
  92. margin-left: -1rem;
  93. }
  94. </style>
  95. </head>
  96. <body>
  97. <div id="app" v-cloak>
  98. <section class="aui-content top" >
  99. <div class="aui-card-list aui-border-t aui-border-b zmq-width-90 zmq-margin-top-10 zmq-radius-10" v-for="(i,index) in list" v-on:click="lookInfo">
  100. <div class="aui-top">
  101. <span class="aui-time zmq-text-msg" style="padding-left : 1rem"><img class="zmq-orderCode-img" src="../../image/drawable-xhdpi/jjs.png" />{{i.billType == 1 ? '供应商' : '客户'}} : {{i.operatingPer}}</span>
  102. <span class="aui-state zmq-btn-border zmq-text-msg zmq-padding-status" class="">{{i.billType == 1 ? '入库单' : '出库单'}}</span>
  103. </div>
  104. <div class="aui-card-list-header aui-card-list-user">
  105. <!--<i class="aui-iconfont aui-icon-right aui-font-size-12 aui-float-right zmq-position-absolute"></i>-->
  106. <div class="aui-card-list-user-name zmq-flex">
  107. <div class="aui-font-size-14">
  108. 金额:<em class="zmq-text-msg">¥{{i.payAmount}}</em>
  109. </div>
  110. <div class="aui-font-size-14 zmq-text-msg">
  111. {{i.payType}}
  112. </div>
  113. </div>
  114. <div class="aui-card-list-user-name zmq-flex">
  115. <div class="aui-font-size-14 zmq-text-explain">
  116. 登记时间:{{i.createTime}}
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </section>
  122. <img class="zmq-img-nodata" v-show="hasData == false" src="../../image/nodata.png" />
  123. <div v-show="upLock == false" class="zmq-text-explain zmq-textAlign-center zmq-margin-bottom-10 zmq-block-text">
  124. 已无更多数据
  125. </div>
  126. </div>
  127. </body>
  128. <script src="../../script/api.js" type="text/javascript"></script>
  129. <script type="text/javascript" src="../../script/aui-scroll.js"></script>
  130. <script type="text/javascript" src="../../script/vue.js"></script>
  131. <script type="text/javascript" src="../../script/httpRequest.js"></script>
  132. <script type="text/javascript" src="../../script/vue_plugins.js"></script>
  133. <script type="text/javascript">
  134. apiready = function() {
  135. var type = api.pageParam.type;
  136. var page = api.pageParam.page;
  137. new Vue({
  138. el : '#app',
  139. data : {
  140. retariler_id : '',
  141. type : type,
  142. list : [],
  143. getUrl : 'buyListUrl',
  144. page : page,
  145. // 分页组件
  146. current : 1,
  147. total : 1,
  148. // 是否可以上啦
  149. upLock : true,
  150. // 判断动作 -- 上啦还是下拉
  151. downData : 'down',
  152. // 是否有数据
  153. hasData : false,
  154. },
  155. methods : {
  156. init : function() {
  157. var _this = this;
  158. this.retariler_id = $api.getStorage("retailerid");
  159. this.getList();
  160. this.configHeaderRefush(function() {
  161. _this.downData = 'down';
  162. _this.upLock = true;
  163. _this.current = 1;
  164. _this.getList();
  165. })
  166. this.configBottomRefush(function(status) {
  167. if (_this.hasData == true) {
  168. // 开启上拉加载
  169. if (_this.total > _this.current) {
  170. _this.downData = 'up';
  171. _this.current = _this.current + 1;
  172. _this.getList();
  173. } else {
  174. // 上啦没有数据了
  175. _this.upLock = false;
  176. }
  177. }
  178. })
  179. },
  180. getList : function() {
  181. var data = {
  182. retailerId : this.retariler_id,
  183. current : this.current
  184. }, _this = this;
  185. this.$post(this.getUrl, data, function(ret) {
  186. if (ret.code == 0 || ret.code == '0') {
  187. _this.total = ret.page.pages;
  188. if (_this.downData == 'up') {
  189. _this.list = _this.list.concat(ret.page.records);
  190. } else {
  191. _this.list = ret.page.records;
  192. if (_this.list.length > 0) {
  193. _this.hasData = true;
  194. }
  195. }
  196. }
  197. })
  198. },
  199. lookInfo : function() {
  200. return;
  201. this.goWin("orderInfoList_win", "orderInfoList_win.html", "");
  202. }
  203. },
  204. mounted : function() {
  205. this.init();
  206. }
  207. })
  208. }
  209. </script>
  210. </html>