pull/2/head
xiaozhiyong 2 years ago
parent 8a777abcff
commit cc01c480bc
  1. 2
      pages/index/newindex.vue
  2. 6
      utils/request.js

@ -43,7 +43,7 @@
<image src="../../static/tx.png"></image>
<view>{{user.userPhone || '暂未设置'}}</view>
<view>{{user.name ||'暂未设置'}}</view>
<view>{{user.roles[0].roleName}}</view>
<!-- <view>{{user.roles[0].roleName}}</view> -->
<uni-icons @tap.stop='close()' class="iconclass" color="#bbb" custom-prefix="iconfont"
type="iconkaiguan" size="35">
</uni-icons>

@ -3,10 +3,10 @@ import utils from '@/utils/encode'
// const env = process.env.NODE_ENV
// const env = 'test'
const env = 'production'
const testUrl = 'http://192.168.0.23:38080'
const testUrl = 'http://192.168.110.10:38080'
// const productUrl = 'https://www.xingoil.com/adminapi'
const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
// const productUrl = 'http://uat.xingoil.com/adminapi'
// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
const productUrl = 'http://uat.xingoil.com/adminapi'
const service = axios.create({
baseURL: env == 'production' ? productUrl : testUrl,

Loading…
Cancel
Save