Browse Source

测试配送

dev_delivery
jiazhipeng 2 months ago
parent
commit
d6e4579061
  1. 2
      App.vue
  2. 8
      static/js/request.js

2
App.vue

@ -5,7 +5,7 @@
console.log('App Launch') console.log('App Launch')
// 1 // 1
uni.setStorageSync('SHFlag', true) uni.setStorageSync('SHFlag', false)
this.Post({id:2388},'/api/multimedia/detail').then(res => { this.Post({id:2388},'/api/multimedia/detail').then(res => {
if (res && res.data) { if (res && res.data) {
let SHFlag = res.data.company_name == 1 ? true : false let SHFlag = res.data.company_name == 1 ? true : false

8
static/js/request.js

@ -3,10 +3,10 @@ import store from '@/store';
// 定义 API URL // 定义 API URL
// const DEV_API_URL = 'https://api.cloud.sz-trip.com'; // const DEV_API_URL = 'https://api.cloud.sz-trip.com';
const DEV_API_URL = 'https://api.sutenong.com' // const DEV_API_URL = 'https://api.sutenong.com'
const PROD_API_URL = 'https://api.sutenong.com'; // const PROD_API_URL = 'https://api.sutenong.com';
// const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; const DEV_API_URL = 'https://swsz.api.js-dyyj.com';
// const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; const PROD_API_URL = 'https://swsz.api.js-dyyj.com';
const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL; const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL;
// 获取token // 获取token

Loading…
Cancel
Save