Przeglądaj źródła

[停车修改]

tags/C.7.1.0
meo 6 lat temu
rodzic
commit
c1f9901601
2 zmienionych plików z 6 dodań i 7 usunięć
  1. +5
    -6
      pages/passCar/passCar.js
  2. +1
    -1
      pages/passCar/passCar.wxml

+ 5
- 6
pages/passCar/passCar.js Wyświetl plik

@@ -48,7 +48,7 @@ Page({
/** /**
* 获得停车费用 * 获得停车费用
*/ */
if (that.data.scroll) {
if (that.data.scroll && app.globalData.etcpToken) {
that.getStopFee(listCardNum); that.getStopFee(listCardNum);
} }
}, },
@@ -109,7 +109,9 @@ Page({
* 才会进行券和车牌的绑定 * 才会进行券和车牌的绑定
*/ */
if (wx.getStorageSync("chosed") && that.data.quanid) { if (wx.getStorageSync("chosed") && that.data.quanid) {
that.getStopFee(that.data.listCardNum);
if (app.globalData.etcpToken){
that.getStopFee(that.data.listCardNum);
}
that.bindCoupon(that.data.quanid); that.bindCoupon(that.data.quanid);
wx.setStorage({ wx.setStorage({
key: 'chosed', key: 'chosed',
@@ -499,10 +501,6 @@ Page({
that.setData({ that.setData({
carList: res.data carList: res.data
}); });
/**
* flag ==flags
* 表示从首页onShow进来的
*/
if (res.data&&res.data.length > 0) { if (res.data&&res.data.length > 0) {
var listCardNum = res.data[0].carNumber; var listCardNum = res.data[0].carNumber;
that.setData({ that.setData({
@@ -512,6 +510,7 @@ Page({
/** /**
* 获得停车费用 * 获得停车费用
*/ */
console.log("333")
that.getStopFee(listCardNum); that.getStopFee(listCardNum);
} }


+ 1
- 1
pages/passCar/passCar.wxml Wyświetl plik

@@ -14,7 +14,7 @@
<!-- 有车牌的时候显示 --> <!-- 有车牌的时候显示 -->
<view class='passUp'> <view class='passUp'>
<view class='addicense_active' wx:if='{{carList.length>0}}'> <view class='addicense_active' wx:if='{{carList.length>0}}'>
<swiper current="{{current}}" bindchange='onSlideChangeEnd' class='swiper' circular='true' indicator-dots='{{indicatorDots}}' autoplay='{{autoplay}}' interval='500' duration='500'>
<swiper current="{{current}}" bindchange='onSlideChangeEnd' class='swiper' circular='true' indicator-dots='{{indicatorDots}}' autoplay='{{autoplay}}' interval='1000' duration='1500'>
<block wx:for='{{carList}}' wx:key="unique"> <block wx:for='{{carList}}' wx:key="unique">
<swiper-item class="swiper-item" data-memberKeyword='{{item.carNumber}}'> <swiper-item class="swiper-item" data-memberKeyword='{{item.carNumber}}'>
<view class='clearfix clearfix1'> <view class='clearfix clearfix1'>


Ładowanie…
Anuluj
Zapisz