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', // brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
// url: 'https://hsg.dctpay.com/crest', url: 'https://hsg.dctpay.com/crest',
// imgUrl: 'https://hsg.dctpay.com/filesystem/', imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl : 'https://hsg.dctpay.com/brest', brestUrl : 'https://hsg.dctpay.com/brest',
// imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
// //
url: 'https://hsgcs.dctpay.com/crest', // url: 'https://hsgcs.dctpay.com/crest',
brestUrl : 'https://hsgcs.dctpay.com/brest', // brestUrl : 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/', // imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', // imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "", userInfo: "",
brestUserInfo : '', brestUserInfo : '',
openId: '', openId: '',

@ -80,14 +80,14 @@
} }
} }
}, },
"title" : "嗨加油", "title" : "嗨森逛",
"router" : { "router" : {
"mode" : "hash", "mode" : "hash",
"base" : "/H5" "base" : "/hsgH5"
}, },
"devServer" : { "devServer" : {
"port" : "", "port" : "",
"https" : true "https" : false
}, },
"domain" : "https://hsgcs.dctpay.com", "domain" : "https://hsgcs.dctpay.com",
"template" : "" "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); // var arr1 = parseFloat(this.inputMoney / this.priceOfficial * this.priceVip).toFixed(4);
// this.totalPrice = this.numFilter(arr1); // this.totalPrice = this.numFilter(arr1);
this.oilPriceCompute(); this.oilPriceCompute();

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

Loading…
Cancel
Save