Jelajahi Sumber

modify mobile page

stanley-king 4 tahun lalu
induk
melakukan
2ab817f9ea
2 mengubah file dengan 3 tambahan dan 8 penghapusan
  1. 1 6
      app.json
  2. 2 2
      pages/postage/postage.js

+ 1 - 6
app.json

@@ -46,15 +46,10 @@
       {
         "iconPath": "./image/tabbar/phone.png",
         "selectedIconPath": "./image/tabbar/phoned.png",
-        "pagePath": "pages/phoneCharges/phoneCharges",
-        "text": "话费"
-      },
-      {
-        "iconPath": "./image/tabbar/phone.png",
-        "selectedIconPath": "./image/tabbar/phoned.png",
         "pagePath": "pages/postage/postage",
         "text": "加油"
       },
+      
       {
         "iconPath": "./image/tabbar/me.png",
         "selectedIconPath": "./image/tabbar/med.png",

+ 2 - 2
pages/postage/postage.js

@@ -15,7 +15,7 @@ Page({
     tips:'',  //顶部tips
     goods:[], //挡位数据
     goods_id:'', //当前选中挡位的goods_id
-    card_type: '', //油卡类型 (中石化/中石油)
+    card_type: 'sinopec', //油卡类型 (中石化/中石油)
     card_no: '', //油卡号
     firstLoad: true,
     tabsData: [
@@ -102,7 +102,7 @@ Page({
       app.showToast('卡号不能为空')
       return
     }
-    buyVGoods(goods_id,1,{ card_no,card_type }, (res) => {
+    buyVGoods(goods_id,1,{ card_no: card_no,card_type: 'sinopec'}, (res) => {
       // console.log('res',res)  成功回调
     }, (err) => {
       // 失败回调