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