配置全局变量
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export const appId = 'wx322b63d1e6ff4765'
|
||||
export const secret = 'a3e81ffa80aa5f04d0b104b2ccda7f32'
|
||||
|
||||
export const appName = '来款测试demo'
|
||||
export let baseUrl = 'http://bxxt.hzwlsoft.com:1015' // 外网环境
|
||||
// export let baseUrl = 'http://10.10.10.46:8055/' // 测试环境
|
||||
// export const baseUrl = 'http://10.0.1.9:8080' // 本地环境
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import UserApi from '../../assets/js/http/userApi'
|
||||
import { appName } from '../../assets/js/project.config'
|
||||
Page({
|
||||
|
||||
/**
|
||||
@@ -18,7 +19,7 @@ Page({
|
||||
// 查看物流
|
||||
let num = this.data.form.payMailContract.postNo
|
||||
wx.navigateTo({
|
||||
url: `plugin://kdPlugin/index?num=${num}&appName=来款测试demo`,
|
||||
url: `plugin://kdPlugin/index?num=${num}&appName=${appName}`,
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import UserApi from '../../assets/js/http/userApi'
|
||||
import {
|
||||
previewFile,
|
||||
initFileList
|
||||
} from '../../assets/js/preview'
|
||||
import { appName } from '../../assets/js/project.config'
|
||||
import {previewFile,initFileList} from '../../assets/js/preview'
|
||||
import MeetingApi from '../../assets/js/http/meetingApi'
|
||||
Page({
|
||||
|
||||
@@ -45,7 +43,7 @@ Page({
|
||||
lookProgress(e){
|
||||
let num = e.currentTarget.dataset.progress.postNo
|
||||
wx.navigateTo({
|
||||
url: `plugin://kdPlugin/index?num=${num}&appName=来款测试demo`,
|
||||
url: `plugin://kdPlugin/index?num=${num}&appName=${appName}`,
|
||||
})
|
||||
},
|
||||
// 跳转合同详情
|
||||
@@ -109,7 +107,6 @@ Page({
|
||||
column: 'pm.createTime',
|
||||
order: 'desc'
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res.success) {
|
||||
if (res.result.records && res.result.records.length <= 2) {
|
||||
this.setData({
|
||||
|
||||
Reference in New Issue
Block a user