inspectDtl.nvue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. <template>
  2. <view class="tabs">
  3. <scroll-view id="tab-bar" class="scroll-h" :scroll-x="true" :show-scrollbar="false" :scroll-into-view="scrollInto">
  4. <view class="uni-tab-item" v-for="(tab,index) in tabBars" :key="tab.id" :id="tab.id" :data-current="index" @click="ontabtap">
  5. <text class="uni-tab-item-title" :class="tabIndex==index ? 'uni-tab-item-title-active' : ''">{{tab.name}}</text>
  6. </view>
  7. </scroll-view>
  8. <view class="line-h"></view>
  9. <swiper :current="tabIndex" class="swiper-box" style="flex: 1;" :duration="300" @change="ontabchange">
  10. <swiper-item class="swiper-item" v-for="(tab,index1) in newsList" :key="index1">
  11. <!-- Tab0 页面渲染 交验单明细-->
  12. <list class="scroll-v list" v-if="index1 === 0" enableBackToTop="true" scroll-y loadmoreoffset="15"><!-- @loadmore="loadMore(index1)"> -->
  13. <!-- <refresh class="refresh" @refresh="onrefresh(index1)" @pullingdown="onpullingdown" :display="tab.refreshing ? 'show' : 'hide'">
  14. <div class="refresh-view">
  15. <image class="refresh-icon" :src="refreshIcon" :style="{width: (tab.refreshing || pulling) ? 0: '30px'}" :class="{'refresh-icon-active': tab.refreshFlag}"></image>
  16. <loading-indicator class="loading-icon" animating="true" v-if="tab.refreshing"></loading-indicator>
  17. <text class="loading-text">{{tab.refreshText}}</text>
  18. </div>
  19. </refresh> -->
  20. <cell>
  21. <view class="customDeliver">
  22. <text style="text-align: center;font-weight: bold;">{{"交验单号: " + deliverNo}}</text>
  23. </view>
  24. </cell>
  25. <cell v-for="(newsitem,index2) in tab.data" :key="newsitem.id">
  26. <view class="myDeliverDetail" style="border: 1px #cccccc ;border-radius: 5px; margin-top: 1px;" @click="myDeliverDetailClick(newsitem)">
  27. <view style="flex-direction: row;flex-direction: row;height: 25px;display: flex;padding: 2px;border-radius: 5px 5px;">
  28. <text style="align-self: center;">物料编号:</text>
  29. <text style="align-self: center;">{{newsitem.materialCode}}</text>
  30. <text :class="newsitem.keyFlag ? 'keyFlagRed' : 'keyFlagGray'" style="align-self: center;margin-left: 20px;">{{newsitem.keyFlag ? '★' : '■'}}</text>
  31. </view>
  32. <view class="line-h"></view>
  33. <view style="flex-direction: row;flex-direction: row;display: flex;-webkit-justify-content: space-between;justify-content: space-between;">
  34. <view>
  35. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 2px;">
  36. <text style="align-self: center;color: #555;font-size: 25rpx;">物料名称:</text>
  37. <text style="align-self: center;font-size: 25rpx;word-wrap: break-word;width: 200px;">{{newsitem.materialName}}</text>
  38. </view>
  39. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 2px;">
  40. <text style="align-self: center;color: #555;font-size: 25rpx;">规格型号/图号:</text>
  41. <text style="align-self: center;font-size: 25rpx;word-wrap: break-word;width: 200px;">{{newsitem.materialSpec}}</text>
  42. </view>
  43. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 2px;">
  44. <text style="align-self: center;color: #555;font-size: 25rpx;">生产令号:</text>
  45. <text style="align-self: center;font-size: 25rpx;word-wrap: break-word;width: 200px;">{{newsitem.bomNo}}</text>
  46. </view>
  47. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 1px;">
  48. <text style="align-self: center;color: #555;font-size: 25rpx;">交验单数量:</text>
  49. <text style="align-self: center;font-size: 30rpx;font-weight: bold;">{{newsitem.qty}}</text>
  50. </view>
  51. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 1px;">
  52. <text style="align-self: center;color: #555;font-size: 25rpx;">质检合格数量:</text>
  53. <text style="align-self: center;font-size: 30rpx;font-weight: bold;color: blue;">{{newsitem.checkQty}}</text>
  54. </view>
  55. </view>
  56. <view v-if="newsitem.checkQty < newsitem.qty" style="border-radius: 35px;width: 35px; background-color: lime;height: 35px;align-self: center;margin-right: 5px;"></view>
  57. <view v-else style="border-radius: 35px;width: 35px; background-color: lightgray;height: 35px;align-self: center;margin-right: 5px;"></view>
  58. </view>
  59. </view>
  60. </cell>
  61. <!-- <cell class="loading-more" v-if="tab.isLoading || tab.data.length > 4">
  62. <text class="loading-more-text">{{tab.loadingText}}</text>
  63. </cell> -->
  64. </list>
  65. <!-- Tab1 页面渲染 已录入的质检记录-->
  66. <list v-else class="scroll-v list">
  67. <cell v-for="(newsitem,index2) in tab.data1" :key="newsitem.Id">
  68. <view class="myDeliverDetail" style="border: 1px #cccccc ;border-radius: 5px; margin-top: 1px;">
  69. <view style="flex-direction: row;flex-direction: row;height: 25px;display: flex;padding: 2px;border-radius: 5px 5px;">
  70. <text style="align-self: center;">物料编号:</text>
  71. <text style="align-self: center;">{{newsitem.materialCode}}</text>
  72. <text :class="newsitem.keyFlag ? 'keyFlagRed' : 'keyFlagGray'" style="align-self: center;margin-left: 20px;">{{newsitem.keyFlag ? '★' : '■'}}</text>
  73. </view>
  74. <view class="line-h"></view>
  75. <view style="flex-direction: row;flex-direction: row;display: flex;-webkit-justify-content: space-between;justify-content: space-between;">
  76. <view>
  77. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 2px;">
  78. <text style="align-self: center;color: #555;font-size: 25rpx;">物料名称:</text>
  79. <text style="align-self: center;font-size: 25rpx;word-wrap: break-word;width: 200px;">{{newsitem.materialName}}</text>
  80. </view>
  81. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 2px;">
  82. <text style="align-self: center;color: #555;font-size: 25rpx;">规格型号/图号:</text>
  83. <text style="align-self: center;font-size: 25rpx;word-wrap: break-word;width: 200px;">{{newsitem.materialSpec}}</text>
  84. </view>
  85. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 2px;">
  86. <text style="align-self: center;color: #555;font-size: 25rpx;">生产令号:</text>
  87. <text style="align-self: center;font-size: 25rpx;word-wrap: break-word;width: 200px;">{{newsitem.bomNo}}</text>
  88. </view>
  89. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 2px;">
  90. <text style="align-self: center;color: #555;font-size: 25rpx;">BN/SN:</text>
  91. <text style="align-self: center;font-size: 30rpx;font-weight: bold;word-wrap: break-word;width: 200px;">{{newsitem.bnSnCode}}</text>
  92. </view>
  93. <!-- <view style="flex-direction: row;flex-direction: row;display: flex;padding: 1px;">
  94. <text style="align-self: center;color: #555;font-size: 25rpx;">交验单数量:</text>
  95. <text style="align-self: center;font-size: 30rpx;font-weight: bold;">{{newsitem.qty}}</text>
  96. </view> -->
  97. <view style="flex-direction: row;flex-direction: row;display: flex;padding: 1px;">
  98. <text style="align-self: center;color: #555;font-size: 25rpx;">质检合格数量:</text>
  99. <text style="align-self: center;font-size: 30rpx;font-weight: bold;color: blue;">{{newsitem.checkOkQty}}</text>
  100. </view>
  101. </view>
  102. <!-- <view v-if="newsitem.check_qty < newsitem.qty" style="border-radius: 35px;width: 35px; background-color: lime;height: 35px;align-self: center;margin-right: 5px;"></view>
  103. <view v-else style="border-radius: 35px;width: 35px; background-color: lightgray;height: 35px;align-self: center;margin-right: 5px;"></view> -->
  104. </view>
  105. </view>
  106. </cell>
  107. </list>
  108. </swiper-item>
  109. </swiper>
  110. </view>
  111. </template>
  112. <script>
  113. // 引入新闻详细组件
  114. import mediaItem from './news-item.nvue';
  115. // 缓存每页最多
  116. const MAX_CACHE_DATA = 100;
  117. // 缓存Tab页签数量
  118. const MAX_CACHE_PAGE = 3;
  119. // 定义新闻样例数据
  120. const newsData = {
  121. data0: {
  122. "datetime": "40分钟前",
  123. "article_type": 0,
  124. "title": "uni-app行业峰会频频亮相,开发者反响热烈!",
  125. "source": "DCloud",
  126. "comment_count": 639
  127. },
  128. data1: {
  129. "datetime": "一天前",
  130. "article_type": 1,
  131. "title": "DCloud完成B2轮融资,uni-app震撼发布!",
  132. "image_url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b7c7f970-517d-11eb-97b7-0dc4655d6e68.jpg",
  133. "source": "DCloud",
  134. "comment_count": 11395
  135. },
  136. data2: {
  137. "datetime": "一天前",
  138. "article_type": 2,
  139. "title": "中国技术界小奇迹:HBuilder开发者突破200万",
  140. "image_url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b4cd3000-517d-11eb-a16f-5b3e54966275.jpg",
  141. "source": "DCloud",
  142. "comment_count": 11395
  143. },
  144. data3: {
  145. "article_type": 3,
  146. "image_list": [{
  147. "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b2e201d0-517d-11eb-8a36-ebb87efcf8c0.jpg",
  148. "width": 563,
  149. "height": 316
  150. }, {
  151. "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b4cd3000-517d-11eb-a16f-5b3e54966275.jpg",
  152. "width": 641,
  153. "height": 360
  154. }, {
  155. "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b7c7f970-517d-11eb-97b7-0dc4655d6e68.jpg",
  156. "width": 640,
  157. "height": 360
  158. }],
  159. "datetime": "5分钟前",
  160. "title": "uni-app 支持使用 npm 安装第三方包,生态更趋丰富",
  161. "source": "DCloud",
  162. "comment_count": 11
  163. },
  164. data4: {
  165. "datetime": "2小时前",
  166. "article_type": 4,
  167. "title": "uni-app 支持原生小程序自定义组件,更开放、更自由",
  168. "image_url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b2e201d0-517d-11eb-8a36-ebb87efcf8c0.jpg",
  169. "source": "DCloud",
  170. "comment_count": 69
  171. }
  172. };
  173. const testSapDeliverData = [
  174. {
  175. Id: 1,
  176. deliverNo: this.deliverNo,
  177. purchaseOrder: '6200003425',
  178. checkName: 'MM125210',
  179. bomNo: 'T2-22001',
  180. materialCode: '10110-673030A',
  181. materialName: '合页垫板',
  182. materialSpec: 'BME75-01080-03',
  183. keyFlag: 1,
  184. qty: 1,
  185. check_qty: 0
  186. },
  187. {
  188. Id: 2,
  189. deliverNo: this.deliverNo,
  190. purchaseOrder: '6200003425',
  191. checkName: 'MM125210',
  192. bomNo: 'T2-22001',
  193. materialCode: '10110-673031A',
  194. materialName: '旋转开关垫板',
  195. materialSpec: 'BME75-01080-04',
  196. keyFlag: 0,
  197. qty: 1,
  198. check_qty: 0
  199. },
  200. {
  201. Id: 3,
  202. deliverNo: this.deliverNo,
  203. purchaseOrder: '6200003425',
  204. checkName: 'MM125210',
  205. bomNo: 'T1-21344',
  206. materialCode: '10110-673773A',
  207. materialName: '侧板主体2',
  208. materialSpec: 'BMF15-01100-02',
  209. keyFlag: 1,
  210. qty: 4,
  211. check_qty: 0
  212. },
  213. {
  214. Id: 4,
  215. deliverNo: this.deliverNo,
  216. purchaseOrder: '6200003425',
  217. checkName: 'MM125210',
  218. bomNo: 'T2-22001',
  219. materialCode: '10125-067445A',
  220. materialName: '脚轮组件连接件1',
  221. materialSpec: 'BME75-01020-01',
  222. keyFlag: 1,
  223. qty: 4,
  224. check_qty: 0
  225. },
  226. {
  227. Id: 5,
  228. deliverNo: this.deliverNo,
  229. purchaseOrder: '6200003425',
  230. checkName: 'MM125210',
  231. bomNo: 'T2-22001',
  232. materialCode: '10125-067449A',
  233. materialName: '旋转开关垫板',
  234. materialSpec: 'BME75-06000-04',
  235. keyFlag: 1,
  236. qty: 1,
  237. check_qty: 0
  238. }
  239. ];
  240. export default {
  241. components: {
  242. mediaItem
  243. },
  244. data() {
  245. return {
  246. data: [],
  247. deliverNo: '',
  248. newsList: [],
  249. cacheTab: [],
  250. tabIndex: 0, // 当前Tab页的index索引
  251. tabBars: [{
  252. name: '交验单明细',
  253. id: 'jiaoyandan'
  254. },
  255. {
  256. name: '已录入的质检记录',
  257. id: 'zhijianjilu'
  258. }
  259. ], // Tab页初始化数据
  260. scrollInto: "", // Tab滚动到某元素的id
  261. showTips: false,
  262. navigateFlag: false,
  263. pulling: false,
  264. refreshIcon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAB5QTFRFcHBw3Nzct7e39vb2ycnJioqK7e3tpqam29vb////D8oK7wAAAAp0Uk5T////////////ALLMLM8AAABxSURBVHja7JVBDoAgDASrjqj//7CJBi90iyYeOHTPMwmFZrHjYyyFYYUy1bwUZqtJIYVxhf1a6u0R7iUvWsCcrEtwJHp8MwMdvh2amHduiZD3rpWId9+BgPd7Cc2LIkPyqvlQvKxKBJ//Qwq/CacAAwDUv0a0YuKhzgAAAABJRU5ErkJggg=="
  265. }
  266. },
  267. onLoad(option) {
  268. this.deliverNo = option.deliverNo;
  269. this.tabBars.forEach((tabBar) => {
  270. this.newsList.push({
  271. data: [],
  272. data1: [],
  273. isLoading: false,
  274. refreshText: "",
  275. loadingText: '加载更多...'
  276. });
  277. });
  278. this.getList(0);
  279. uni.$on('addInspectedData', this.addInspectedData)
  280. },
  281. onUnload() {
  282. uni.$off('addInspectedData', this.addInspectedData)
  283. },
  284. methods: {
  285. async getList(index) { // 模拟获取 交验单明细数据
  286. let activeTab = this.newsList[index];
  287. // let list = [];
  288. //activeTab.data = [];
  289. // for (let i = 0; i < 5; i++) {
  290. // let item = Object.assign({}, testSapDeliverData[i]);
  291. // // list.push(item);
  292. // activeTab.data.push(item);
  293. // }
  294. // activeTab.data = activeTab.data.concat(list);
  295. let parm = {
  296. url : '/business/SapDeliverRecord/QuerySapDeliverDtlData?deliverNo=' + this.deliverNo,
  297. data: { },
  298. method: 'POST',
  299. isHaveToken : true
  300. }
  301. let retData = await getApp().RequestData(parm)
  302. if(retData.isSuccess) {
  303. if(retData.data.code == 200) {
  304. // let len = retData.data.data.length
  305. // for (let i = 0; i < len; i++) {
  306. // let item = Object.assign({}, retData.data.data[i]);
  307. // activeTab.data.push(item);
  308. // }
  309. activeTab.data = retData.data.data;
  310. }
  311. else {
  312. }
  313. }
  314. else {
  315. }
  316. },
  317. goDetail(e) { // 打开质检操作页面
  318. if (this.navigateFlag) {
  319. return;
  320. }
  321. this.navigateFlag = true;
  322. uni.navigateTo({
  323. url: '/pages/Inspect/detail/detail?title=' + e.title
  324. });
  325. setTimeout(() => {
  326. this.navigateFlag = false;
  327. }, 200)
  328. },
  329. loadMore(e) {
  330. setTimeout(() => {
  331. this.getList(this.tabIndex);
  332. }, 500)
  333. },
  334. ontabtap(e) { // Tab页面点击事件
  335. let index = e.target.dataset.current || e.currentTarget.dataset.current;
  336. this.switchTab(index);
  337. },
  338. ontabchange(e) {
  339. let index = e.target.current || e.detail.current;
  340. this.switchTab(index);
  341. },
  342. switchTab(index) { // 切换Tab页面
  343. if (this.newsList[index].data.length === 0) {
  344. this.getList(index);
  345. }
  346. if (this.tabIndex === index) {
  347. return;
  348. }
  349. // 缓存 tabId
  350. if (this.newsList[this.tabIndex].data.length > MAX_CACHE_DATA) {
  351. // console.log(this.tabIndex)
  352. // console.log('123121!!')
  353. let isExist = this.cacheTab.indexOf(this.tabIndex);
  354. if (isExist < 0) {
  355. this.cacheTab.push(this.tabIndex);
  356. //console.log("cache index:: " + this.tabIndex);
  357. }
  358. }
  359. this.tabIndex = index;
  360. this.scrollInto = this.tabBars[index].id;
  361. // 释放 tabId
  362. if (this.cacheTab.length > MAX_CACHE_PAGE) {
  363. let cacheIndex = this.cacheTab[0];
  364. this.clearTabData(cacheIndex);
  365. this.cacheTab.splice(0, 1);
  366. }
  367. },
  368. clearTabData(e) {
  369. this.newsList[e].data.length = 0;
  370. this.newsList[e].loadingText = "加载更多...";
  371. },
  372. onrefresh(e) {
  373. // console.log('触发下拉完成事件!!!!!!!!!!!')
  374. var tab = this.newsList[this.tabIndex];
  375. if (!tab.refreshFlag) {
  376. return;
  377. }
  378. tab.refreshing = true;
  379. tab.refreshText = "正在刷新...";
  380. setTimeout(() => {
  381. this.pulling = true;
  382. tab.refreshing = false;
  383. tab.refreshFlag = false;
  384. tab.refreshText = "已刷新";
  385. setTimeout(() => { // TODO fix ios和Android 动画时间相反问题
  386. this.pulling = false;
  387. }, 500);
  388. }, 2000);
  389. },
  390. onpullingdown(e) {
  391. // console.log('触发下拉动作事件。')
  392. var tab = this.newsList[this.tabIndex];
  393. if (tab.refreshing || this.pulling) {
  394. return;
  395. }
  396. if (Math.abs(e.pullingDistance) > Math.abs(e.viewHeight)) {
  397. tab.refreshFlag = true;
  398. tab.refreshText = "释放立即刷新";
  399. } else {
  400. tab.refreshFlag = false;
  401. tab.refreshText = "下拉可以刷新";
  402. }
  403. },
  404. newGuid() {
  405. let s4 = function() {
  406. return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
  407. }
  408. return (s4() + s4() + "-" + s4() + "-4" + s4().substr(0, 3) + "-" + s4() + "-" + s4() + s4() + s4()).toUpperCase();
  409. },
  410. myDeliverDetailClick(model) {
  411. model.deliverNo = this.deliverNo;
  412. if(model.checkQty >= model.qty) {
  413. uni.showToast({
  414. title: '已全部质检完成',
  415. icon: 'error',
  416. duration: 1000
  417. })
  418. } else {
  419. uni.navigateTo({
  420. url: '/pages/Inspect/inspectOperate',
  421. success() {
  422. // console.log("打开质检操作页面动作完成!!")
  423. uni.$emit('sendDeliverDtlData',model)
  424. }
  425. });
  426. }
  427. },
  428. addInspectedData(data) {
  429. let tabMd = this.newsList[1];
  430. tabMd.data1.push(data);
  431. this.updateDeliverDtl(data);
  432. },
  433. updateDeliverDtl(data) {
  434. let tabMd0 = this.newsList[0];
  435. tabMd0.data.forEach((item) => {
  436. if(item.materialCode === data.materialCode && item.bomNo === data.bomNo && item.qty === data.qty) {
  437. item.checkQty += Number(data.checkOkQty);
  438. }
  439. })
  440. }
  441. }
  442. }
  443. </script>
  444. <style lang="scss">
  445. @import '@/common/uni-nvue.css';
  446. /* #ifndef APP-PLUS */
  447. page {
  448. width: 100%;
  449. min-height: 100%;
  450. display: flex;
  451. }
  452. /* #endif */
  453. .myDeliverDetail:active {
  454. background-color: aliceblue;
  455. }
  456. .customDeliver {
  457. padding: 5px;
  458. font-weight: bold;
  459. }
  460. .keyFlagRed {
  461. color: red;
  462. }
  463. .keyFlagGray {
  464. color: lightgray;
  465. }
  466. .tabs {
  467. flex: 1;
  468. flex-direction: column;
  469. overflow: hidden;
  470. background-color: white;
  471. /* #ifndef APP-PLUS */
  472. height: 100vh;
  473. /* #endif */
  474. padding: 5px;
  475. }
  476. .scroll-h {
  477. width: 750rpx;
  478. /* #ifdef H5 */
  479. width:100%;
  480. /* #endif */
  481. height: 80rpx;
  482. flex-direction: row;
  483. /* #ifndef APP-PLUS */
  484. white-space: nowrap;
  485. /* #endif */
  486. /* flex-wrap: nowrap; */
  487. /* border-color: #cccccc;
  488. border-bottom-style: solid;
  489. border-bottom-width: 1px; */
  490. }
  491. .line-h {
  492. height: 1rpx;
  493. background-color: #cccccc;
  494. }
  495. .uni-tab-item {
  496. /* #ifndef APP-PLUS */
  497. display: inline-block;
  498. /* #endif */
  499. flex-wrap: nowrap;
  500. padding-left: 60rpx;
  501. padding-right: 60rpx;
  502. }
  503. .uni-tab-item-title {
  504. color: #555;
  505. font-size: 40rpx;
  506. height: 80rpx;
  507. line-height: 80rpx;
  508. flex-wrap: nowrap;
  509. /* #ifndef APP-PLUS */
  510. white-space: nowrap;
  511. /* #endif */
  512. }
  513. .uni-tab-item-title-active {
  514. color: #007AFF;
  515. font-weight: bold;
  516. }
  517. .swiper-box {
  518. flex: 1;
  519. }
  520. .swiper-item {
  521. flex: 1;
  522. flex-direction: row;
  523. }
  524. .scroll-v {
  525. flex: 1;
  526. /* #ifndef MP-ALIPAY */
  527. flex-direction: column;
  528. /* #endif */
  529. width: 750rpx;
  530. width:100%;
  531. }
  532. .update-tips {
  533. position: absolute;
  534. left: 0;
  535. top: 41px;
  536. right: 0;
  537. padding-top: 5px;
  538. padding-bottom: 5px;
  539. background-color: #FDDD9B;
  540. align-items: center;
  541. justify-content: center;
  542. text-align: center;
  543. }
  544. .update-tips-text {
  545. font-size: 14px;
  546. color: #ffffff;
  547. }
  548. .refresh {
  549. width: 850rpx;
  550. /* width:100%; */
  551. height: 64px;
  552. justify-content: center;
  553. }
  554. .refresh-view {
  555. flex-direction: row;
  556. flex-wrap: nowrap;
  557. align-items: center;
  558. /* justify-content: center; */
  559. }
  560. .refresh-icon {
  561. width: 30px;
  562. height: 30px;
  563. transition-duration: .5s;
  564. transition-property: transform;
  565. transform: rotate(0deg);
  566. transform-origin: 15px 15px;
  567. margin-left: 5px;
  568. }
  569. .refresh-icon-active {
  570. transform: rotate(180deg);
  571. }
  572. .loading-icon {
  573. width: 20px;
  574. height: 20px;
  575. margin-right: 5px;
  576. color: #999999;
  577. }
  578. .loading-text {
  579. margin-left: 1px;
  580. font-size: 16px;
  581. color: #999999;
  582. }
  583. .loading-more {
  584. align-items: center;
  585. justify-content: center;
  586. padding-top: 10px;
  587. padding-bottom: 10px;
  588. text-align: center;
  589. }
  590. .loading-more-text {
  591. font-size: 28rpx;
  592. color: #999;
  593. }
  594. </style>