|
@@ -2,6 +2,8 @@
|
|
|
import {
|
|
|
getMpOpenId
|
|
|
} from "api/home"
|
|
|
+
|
|
|
+import { appId, stationId } from "./setting"
|
|
|
App({
|
|
|
onLaunch: function () {
|
|
|
// 展示本地存储能力
|
|
@@ -20,7 +22,7 @@ App({
|
|
|
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
|
|
getMpOpenId({
|
|
|
code: code,
|
|
|
- stationId:1
|
|
|
+ stationId
|
|
|
}).then(res => { // handle success
|
|
|
// console.log("app.js openid:"+res.openid);
|
|
|
|
|
@@ -62,7 +64,7 @@ App({
|
|
|
phoneNumber:null,//用户手机号
|
|
|
mpOpenId: null,
|
|
|
unionId:null,
|
|
|
- appId:'wxe1135cd390b38a54',//小程序的appid
|
|
|
+ appId,
|
|
|
stationId: null, //加油站ID
|
|
|
stationName: null, //油站名称
|
|
|
picUrl: null, //油站图片URL
|