zaijin 2 vuotta sitten
vanhempi
sitoutus
b4608dbb84
2 muutettua tiedostoa jossa 0 lisäystä ja 47 poistoa
  1. 0 38
      pages/center/index.vue
  2. 0 9
      utils/filter.js

+ 0 - 38
pages/center/index.vue

@@ -23,9 +23,6 @@
 
     <view class="u-m-t-20">
       <u-cell-group>
-        <!-- <u-cell-item title="贵州银行支付" @click="guizhouPay()">
-					<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="wodecheliang"></u-icon>
-        </u-cell-item>-->
         <u-cell-item title="我的车辆" @click="openPage('pages/myCars/myCars', true)">
           <u-icon slot="icon" custom-prefix="custom-icon" size="35" name="wodecheliang"></u-icon>
         </u-cell-item>
@@ -37,39 +34,11 @@
 
     <view class="u-m-t-20">
       <u-cell-group>
-        <!-- <u-cell-item title="充值" @click="openPage('pages/myCars/myCars')">
-					<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="chongzhi"></u-icon>
-        </u-cell-item>-->
         <u-cell-item title="包月" @click="openPage('pages/center/monthly/monthly')">
           <u-icon slot="icon" custom-prefix="custom-icon" size="35" name="baoyue"></u-icon>
         </u-cell-item>
-        <!-- <u-cell-item title="提现" @click="openPage('pages/center/order/order')">
-					<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="tixian"></u-icon>
-        </u-cell-item>-->
-        <!-- <u-cell-item title="退款" @click="openPage('pages/center/order/order')">
-					<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="tuikuan"></u-icon>
-        </u-cell-item>-->
-        <!-- <u-cell-item title="账单记录" @click="openPage('pages/center/order/order')">
-					<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="zhangdanjilu"></u-icon>
-        </u-cell-item>-->
       </u-cell-group>
     </view>
-
-    <!-- <view class="u-m-t-20">
-			<u-cell-group>
-				<u-cell-item title="我的优惠" @click="openPage('pages/myCars/myCars')">
-					<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="wodeyouhui"></u-icon>
-				</u-cell-item>
-			</u-cell-group>
-    </view>-->
-    <!-- <view class="u-m-t-20">
-			<u-cell-group>
-				<u-cell-item title="发票管理" @click="openPage('pages/center/invoice/invoice')">
-					<u-icon slot="icon" custom-prefix="custom-icon" size="35" name="fapiaoguanli"></u-icon>
-				</u-cell-item>
-			</u-cell-group>
-    </view>-->
-
     <view class="u-m-t-20">
       <u-cell-group>
         <u-cell-item title="消息中心" @click="openPage('pages/message/message', true)">
@@ -86,13 +55,6 @@
       </u-cell-group>
     </view>
     <u-select v-model="callPhoneShow" :list="callPhoneList" @confirm="phoneCall"></u-select>
-
-    <view class="u-m-t-20">
-			<u-cell-group>
-				<u-cell-item icon="coupon" title="我的优惠券" @click="openPage('/pages/center/coupon/myCoupon/myCoupon')"></u-cell-item>
-			</u-cell-group>
-    </view>
-
     <!-- ===================================== 登出提示 ===================================== -->
     <u-modal
       v-model="logoutPop"

+ 0 - 9
utils/filter.js

@@ -30,15 +30,7 @@ Vue.filter('firstImg', function (arr, sizeType, imgType) {
     } else {
       img = arr.split(',')[0];
     }
-  } else if (!arr) {
-    //如果没有图片则随机输出一张
-    // if(imgType === 'farmer'){
-    // 	const farmerList = ['carbon2/farmer/1.png','carbon2/farmer/2.png']
-    // 	img = farmerList[Math.floor(Math.random() * farmerList.length)];
-    // }
-    // img = '/static/img/inbuild.png'
   }
-  // return config.imgUrl + img;
   return img;
 });
 
@@ -124,7 +116,6 @@ Vue.filter('energyTpye', function (value) {
 
 // 免费时长
 Vue.filter('freeDuration', function (value) {
-  console.log(value);
   let createTime = new Date(value).valueOf(),
     freeTime = new Date('2022-06-20 00:00:00').valueOf(),
     freeTxt = '0天0时15分0秒';