chenlei пре 1 година
родитељ
комит
b5c046e25c

+ 3 - 1
src/components/business/station/index.vue

@@ -1,6 +1,6 @@
 <!-- eslint-disable no-irregular-whitespace -->
 <template>
-  <div class="chunk p-spacd2">
+  <div class="chunk p-spacd2" :class="{ 'm-b-0': props.isLast }">
     <div class="center justify-between items-stretch mb-spacd2" @click="methods.goDetail('1')">
       <div class="mr-spac">
         <image
@@ -71,9 +71,11 @@ type PropTypes = {
   /** 类型 1:列表页面,2:待支付页面 */
   type: '1' | '2'
   stationInfo: GasstationVO对象
+  isLast: boolean
 }
 const props = withDefaults(defineProps<PropTypes>(), {
   type: '1',
+  isLast: false,
 })
 const methods = {
   goDetail(type) {

+ 5 - 5
src/components/pull/index.vue

@@ -13,19 +13,19 @@
     :paging-style="{ top: topHeightPX }"
   >
     <!-- 左侧间距 -->
-    <template #left>
+    <!-- <template #left>
       <div class="pr-spac"></div>
-    </template>
+    </template> -->
     <!-- 右侧间距 -->
-    <template #right>
+    <!-- <template #right>
       <div class="pr-spac"></div>
-    </template>
+    </template> -->
     <!-- 顶部间距,不放到slot="top"插槽内是因为,向上滑动时,页面只会被头部遮挡,体验更舒服 -->
     <div class="pt-spac" v-if="props.showSpac" />
     <!-- 内容插槽-定义 -->
     <slot />
     <!-- 加载状态 失败重试 -->
-    <div class="center s-fz nmt-spac mb-spac">
+    <div class="center s-fz mb-spac">
       <uni-load-more :status="status" :content-text="contentText" />
       <ay-refresh
         v-if="store.curPage.pagerInfo.error"

+ 1 - 0
src/pages/index/index.vue

@@ -116,6 +116,7 @@
         <ayb-station
           v-for="(la, i) in data.station.listApp"
           :key="i"
+          :isLast="i === data.station.listApp.length - 1"
           :stationInfo="la"
         ></ayb-station>
         <!-- <div v-if="store.webapi.strategy.list_mini.fail" class="center">

+ 1 - 0
src/pages/order/index.vue

@@ -48,6 +48,7 @@
         class="chunk childs-fcjb-mbd2"
         v-for="(o, i) in data.orderList"
         :key="i"
+        :isLast="i === data.orderList.length - 1"
         @click="methods.goDetail(o)"
       >
         <div>

+ 5 - 0
src/style/index.scss

@@ -502,4 +502,9 @@ page {
 
 .uni-popup {
   z-index: 999 !important;
+}
+
+// 修改zpaging最内层容器样式
+.zp-paging-container-content {
+  padding: 0 $p-spac;
 }

+ 1 - 1
uno.config.ts

@@ -60,7 +60,7 @@ function classNamePreContainer(): SourceCodeTransformer {
     enforce: 'pre', // enforce before other transformers
     idFilter(id) {
       // __uno.css
-      return id.includes('__uno.css')
+      return id.includes('__uno.css') || id.includes('app.wxss')
     },
     async transform(code, id, { uno }) {
       code.replace(/(\.(?:(?!container).+))\{/g, '.container $1{')