1.新增H5获取代理商参数

yj-dev
杨杰 3 years ago
parent c55b3cce40
commit 4c43b91787
  1. 16
      App.vue
  2. 6
      manifest.json
  3. 2
      pages/goods/refuel-details/refuel-details.vue
  4. 17
      pages/tabBar/home/home.vue

@ -5,15 +5,15 @@
// brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/',
//
// url: 'https://hsg.dctpay.com/crest',
// imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl : 'https://hsg.dctpay.com/brest',
// imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
url: 'https://hsg.dctpay.com/crest',
imgUrl: 'https://hsg.dctpay.com/filesystem/',
brestUrl : 'https://hsg.dctpay.com/brest',
imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
//
url: 'https://hsgcs.dctpay.com/crest',
brestUrl : 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
// url: 'https://hsgcs.dctpay.com/crest',
// brestUrl : 'https://hsgcs.dctpay.com/brest',
// imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
// imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "",
brestUserInfo : '',
openId: '',

@ -80,14 +80,14 @@
}
}
},
"title" : "嗨加油",
"title" : "嗨森逛",
"router" : {
"mode" : "hash",
"base" : "/H5"
"base" : "/hsgH5"
},
"devServer" : {
"port" : "",
"https" : true
"https" : false
},
"domain" : "https://hsgcs.dctpay.com",
"template" : ""

@ -356,7 +356,7 @@
}
//
this.litre = parseFloat(this.inputMoney / this.priceOfficial).toFixed(2);
this.litre = parseFloat(this.inputMoney / this.priceGun).toFixed(2);
// var arr1 = parseFloat(this.inputMoney / this.priceOfficial * this.priceVip).toFixed(4);
// this.totalPrice = this.numFilter(arr1);
this.oilPriceCompute();

@ -178,6 +178,16 @@
this.getMembershipLevel();
}
}
// #ifdef H5
uni.getStorage({
key: 'accountId',
success(e) {
if (e.data) {
app.globalData.accountId = e.data;
}
}
})
// #endif
},
onLoad(options) {
let that = this;
@ -189,12 +199,19 @@
} else {
// openid
this.jumpcdx();
uni.setStorage({
key: "accountId",
data: arr2[1]
})
}
if (app.globalData.h5code) {
this.getH5AccessToken();
}
// #endif
// #ifdef MP
app.globalData.accountId = options.accountId;
// #endif
// 1.wxcode
// #ifdef MP
uni.login({

Loading…
Cancel
Save