Browse Source

切换到开发环境

master
kola-web 1 month ago
parent
commit
def37e5080
  1. 150
      project.config.json
  2. 15
      src/app.ts

150
project.config.json

@ -1,75 +1,75 @@
{ {
"description": "项目配置文件", "description": "项目配置文件",
"miniprogramRoot": "src/", "miniprogramRoot": "src/",
"compileType": "miniprogram", "compileType": "miniprogram",
"setting": { "setting": {
"useCompilerPlugins": [ "useCompilerPlugins": [
"typescript", "typescript",
"sass" "sass"
], ],
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"coverView": false, "coverView": false,
"postcss": false, "postcss": false,
"minified": false, "minified": false,
"enhance": true, "enhance": true,
"showShadowRootInWxmlPanel": false, "showShadowRootInWxmlPanel": false,
"packNpmManually": true, "packNpmManually": true,
"packNpmRelationList": [ "packNpmRelationList": [
{ {
"packageJsonPath": "package.json", "packageJsonPath": "package.json",
"miniprogramNpmDistDir": "./src" "miniprogramNpmDistDir": "./src"
} }
], ],
"ignoreUploadUnusedFiles": true, "ignoreUploadUnusedFiles": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"skylineRenderEnable": true, "skylineRenderEnable": true,
"es6": true, "es6": true,
"compileWorklet": false, "compileWorklet": false,
"uglifyFileName": false, "uglifyFileName": false,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"minifyWXSS": true, "minifyWXSS": true,
"minifyWXML": true, "minifyWXML": true,
"localPlugins": false, "localPlugins": false,
"disableUseStrict": false, "disableUseStrict": false,
"condition": false, "condition": false,
"swc": false, "swc": false,
"disableSWC": true "disableSWC": true
}, },
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"condition": {}, "condition": {},
"srcMiniprogramRoot": "src/", "srcMiniprogramRoot": "src/",
"editorSetting": { "editorSetting": {
"tabIndent": "insertSpaces", "tabIndent": "insertSpaces",
"tabSize": 2 "tabSize": 2
}, },
"libVersion": "3.7.7", "libVersion": "3.7.7",
"ignore": [], "ignore": [],
"packOptions": { "packOptions": {
"ignore": [ "ignore": [
{ {
"value": "/images/*.*", "value": "/images/*.*",
"type": "glob" "type": "glob"
}, },
{ {
"value": "/images/**/*.*", "value": "/images/**/*.*",
"type": "glob" "type": "glob"
}, },
{ {
"value": "/images/**/**/*.*", "value": "/images/**/**/*.*",
"type": "glob" "type": "glob"
} }
], ],
"include": [ "include": [
{ {
"value": "/images/tabbar/*.*", "value": "/images/tabbar/*.*",
"type": "glob" "type": "glob"
} }
] ]
}, },
"appid": "wx71ac9c27c3c3e3f4" "appid": "wxf9ce8010f1ad24aa"
} }

15
src/app.ts

@ -16,15 +16,15 @@ App<IAppOption>({
// 测试号 wx2b0bb13edf717c1d // 测试号 wx2b0bb13edf717c1d
// dev // dev
// appid:wxf9ce8010f1ad24aa // appid:wxf9ce8010f1ad24aa
// url: 'https://m.xd.hbraas.com', url: 'https://m.xd.hbraas.com',
// upFileUrl: 'https://m.xd.hbraas.com/', upFileUrl: 'https://m.xd.hbraas.com/',
// imageUrl: 'https://m.xd.hbraas.com/xd/', imageUrl: 'https://m.xd.hbraas.com/xd/',
// pro // pro
// appid:wx71ac9c27c3c3e3f4 // appid:wx71ac9c27c3c3e3f4
url: 'https://m.xd.hbsaas.com', // url: 'https://m.xd.hbsaas.com',
upFileUrl: 'https://m.xd.hbsaas.com/', // upFileUrl: 'https://m.xd.hbsaas.com/',
imageUrl: 'https://m.xd.hbsaas.com/api/xd/', // imageUrl: 'https://m.xd.hbsaas.com/api/xd/',
loginState: '', loginState: '',
isLogin: 0, isLogin: 0,
@ -42,7 +42,6 @@ App<IAppOption>({
wx.login({ wx.login({
success: (res) => { success: (res) => {
console.log(res);
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/user/init-login', url: '?r=xd/user/init-login',
@ -122,7 +121,7 @@ App<IAppOption>({
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/doctor/index/operate-action-submit', url: '?r=xd/doctor/index/operate-action-submit',
data: data, data,
loading: false, loading: false,
showMsg: false, showMsg: false,
}); });

Loading…
Cancel
Save