Browse Source

域名

master
Enzo 4 years ago
parent
commit
9e308fe540
  1. 6
      common/api.js
  2. 2
      common/http.js
  3. 2
      common/uploadFile.js
  4. 4
      manifest.json
  5. 2
      pages/login/index.vue
  6. BIN
      static/logo1.png

6
common/api.js

@ -1,9 +1,9 @@
// appId: 正式 null | 测试 wxeb58570b5e04d147 // appId: 正式 null | 测试 wxeb58570b5e04d147
export const DEV = "dev"; // dev 测试 | prod 正式
export const DEV = "prod"; // dev 测试 | prod 正式
export const VERSION = '1.0.0'; // 版本号 export const VERSION = '1.0.0'; // 版本号
export const DEVURL = 'https://hainan.lanzulive.com'; // 测试服请求地址
export const DEVURL = 'https://yytx.eugyl.com'; // 测试服请求地址
// export const DEVURL = 'http://hainan.com'; // 测试服请求地址 // export const DEVURL = 'http://hainan.com'; // 测试服请求地址
export const PRODURL = ''; // 正式服请求地址
export const PRODURL = 'https://yytx.eugyl.com'; // 正式服请求地址
export const API_WXLOGIN = '/api/login'; //登录 export const API_WXLOGIN = '/api/login'; //登录

2
common/http.js

@ -95,7 +95,7 @@ function $http(url, data = {}, options = {}){
console.log('当前自动获取的aapid',autoappid) console.log('当前自动获取的aapid',autoappid)
options.appid = autoappid || 'wxeb58570b5e04d147';
options.appid = autoappid || 'wx27c51a989127de12';
let user_info = uni.getStorageSync('userinfo') let user_info = uni.getStorageSync('userinfo')
let user_token = user_info.token let user_token = user_info.token

2
common/uploadFile.js

@ -33,7 +33,7 @@ const uploadFile = function (filePath, successc, failc) {
var accountInfo = wx.getAccountInfoSync(); var accountInfo = wx.getAccountInfoSync();
var autoappid = accountInfo.miniProgram.appId; var autoappid = accountInfo.miniProgram.appId;
var uploadappid = autoappid || 'wxeb58570b5e04d147';
var uploadappid = autoappid || 'wx27c51a989127de12';
uni.uploadFile({ uni.uploadFile({
url: url + url_a,//开发者服务器 url url: url + url_a,//开发者服务器 url

4
manifest.json

@ -1,5 +1,5 @@
{ {
"name" : "hainan",
"name" : "EUPAYMENT",
"appid" : "__UNI__935D19A", "appid" : "__UNI__935D19A",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
@ -50,7 +50,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wxb35ef055a4dd8ad4",
"appid" : "wx27c51a989127de12",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"es6" : false, "es6" : false,

2
pages/login/index.vue

@ -3,7 +3,7 @@
<view class="lf-row-center lf-flex-column box"> <view class="lf-row-center lf-flex-column box">
<!-- <image class="img" :src="userInfo.avatar" v-if="userInfo.avatar"></image> --> <!-- <image class="img" :src="userInfo.avatar" v-if="userInfo.avatar"></image> -->
<!-- <image class="img" src="../../static/logo.png" v-else></image> --> <!-- <image class="img" src="../../static/logo.png" v-else></image> -->
<image class="img" src="../../static/logo.png" ></image>
<image class="img" src="../../static/logo1.png" ></image>
<view class="lf-m-t-30 lf-font-32" v-if="type == 'phone'">{{ userInfo.nickname || '游客用户' }}</view> <view class="lf-m-t-30 lf-font-32" v-if="type == 'phone'">{{ userInfo.nickname || '游客用户' }}</view>
<block v-if="type == 'userinfo'"> <block v-if="type == 'userinfo'">
<button class="btn" @click="getUserProfile"> <button class="btn" @click="getUserProfile">

BIN
static/logo1.png

After

Width: 488  |  Height: 488  |  Size: 32 KiB

Loading…
Cancel
Save