1234567891011121314151617181920212223242526272829303132333435 |
- // app.js
- const login = require("./utils/login.js");
- const request = require("./utils/request.js");
- App({
- onLaunch() {
- // 自动登录
- login.autoLogin()
- this.getDistrictData()
- },
- getDistrictData() {
- let that = this;
- request.getData(
- 'app/district/list',{},
- res => {
- wx.setStorageSync('districtData', res.data.data)
- }
- )
- },
- globalData: {
- userInfo: null,
- content: '',
- imgList: [],
- selectedTagList: [],
- env: {
- uploadImageUrl: 'https://toktok-beer.oss-cn-shenzhen.aliyuncs.com/',
- AccessKeySecret: '',
- OSSAccessKeyId: '',
- securityToken: '',
- timeout: 87600
- },
- adress_select: {}
- }
- })
|