Ver código fonte

充电权益和优惠券空白展示

zuy 1 ano atrás
pai
commit
fb5a98f15b

+ 8 - 0
src/components/station-charge-coupon/station-charge-coupon.vue

@@ -60,6 +60,10 @@
             </view>
           </view>
         </view>
+        <view style="width: 100%;text-align: center;">
+          <image v-if="!rightsList||rightsList.length==0" style="width: 240rpx;" mode="widthFix" src="/static/images/search-empty.png"></image>
+        </view>
+
       </view>
 
 
@@ -128,6 +132,10 @@
             </view>
           </view>
         </view>
+
+        <view style="width: 100%;text-align: center;">
+          <image v-if="!couponList||couponList.length==0" style="width: 240rpx;" mode="widthFix" src="/static/images/search-empty.png"></image>
+        </view>
       </view>
 
     </view>

+ 8 - 0
src/pages-charge/card/card.vue

@@ -72,6 +72,10 @@
                     </view>-->
         </view>
       </view>
+
+      <view style="width: 100%;text-align: center;">
+        <image v-if="!list||list.length==0" style="width: 240rpx;" mode="widthFix" src="/static/images/search-empty.png"></image>
+      </view>
     </view>
 
 
@@ -144,6 +148,10 @@
           </view>
         </view>
       </view>
+
+      <view style="width: 100%;text-align: center;">
+        <image v-if="!couponList||couponList.length==0" style="width: 240rpx;" mode="widthFix" src="/static/images/search-empty.png"></image>
+      </view>
     </view>
 
   </view>

+ 1 - 0
src/utils/http.ts

@@ -40,6 +40,7 @@ class Http {
       const header = {
         // 'content-type': 'application/json',
         satoken: getApp<any>().globalData.token || "",
+        accessToken: getApp<any>().globalData.token || "",
         ...(this.header || {}),
         ...(options.header || {}),
       };