stanley-king %!s(int64=4) %!d(string=hai) anos
pai
achega
522815efaf
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 1 1
      config.js
  2. 3 2
      pages/postage/postage.js

+ 1 - 1
config.js

@@ -11,7 +11,7 @@ function getReq(app, data, callback, method) {
   let options = {
     client_type: 'mini'
   }
-
+  
   data = Object.assign({}, options, data);
   let session_id = wx.getStorageSync('session_id');
   if (!app.globalData.fMinistart && data['op'] != 'ministart') {

+ 3 - 2
pages/postage/postage.js

@@ -25,6 +25,7 @@ Page({
     phone: { card_no: '', card_type: 'phone' },
 
     member_mobile: '',
+    inputMobile:'',
 
     tabsData: [
       { id: 0, icon: '/image/postage/sinopec.png', title: '中国石化', tips: '选择油卡', card_type: 'sinopec', card_no: '' },
@@ -212,7 +213,6 @@ Page({
       })
     }
 
-
     const { goods_id } = this.data
     let card_type = ''
     let card_no = ''
@@ -227,7 +227,8 @@ Page({
       app.showToast('卡号不能为空')
       return
     }
-    buyVGoods(app, goods_id, 1, { card_no, card_type }, (res) => {
+    let phone_no = this.data.inputMobile;
+    buyVGoods(app, goods_id, 1, { card_no, card_type, phone_no}, (res) => {
       let special_id = this.data.special_id
       let title = '支付成功'
       app.navigateto(`/pages/special/special?special_id=${special_id}&title=${title}`)