kola-web 1 month ago
parent
commit
fdce821e91
  1. 148
      project.config.json
  2. 16
      src/app.ts
  3. 2
      src/components/popup/index.wxml
  4. 6
      src/pages/login/index.scss
  5. 1
      src/pages/login/index.wxml

148
project.config.json

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

16
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:wxa4a28b299df7d921 // 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/shizhong/', imageUrl: 'https://m.xd.hbsaas.com/api/xd/',
loginState: '', loginState: '',
isLogin: 0, isLogin: 0,
@ -103,7 +103,7 @@ App<IAppOption>({
wx.reLaunch({ wx.reLaunch({
url: '/pages/login/index', url: '/pages/login/index',
}); });
return false return false;
} }
return true; return true;

2
src/components/popup/index.wxml

@ -23,7 +23,7 @@
<view class="nickname">{{params.Name}}医生</view> <view class="nickname">{{params.Name}}医生</view>
<view class="hostipal"> <view class="hostipal">
{{params.HospitalName}} {{params.HospitalName}}
<view class="tag">{{params.HospitalClassificationName}}{{params.HospitalLevel}}</view> <view class="tag" wx:if="{{params.HospitalClassificationName || params.HospitalLevel}}">{{params.HospitalClassificationName}}{{params.HospitalLevel}}</view>
</view> </view>
</view> </view>
</view> </view>

6
src/pages/login/index.scss

@ -129,4 +129,10 @@ page {
color: rgba(140, 117, 208, 1); color: rgba(140, 117, 208, 1);
} }
} }
.tip {
margin-top: 60rpx;
font-size: 28rpx;
text-align: center;
color: rgba(173, 172, 178, 1);
}
} }

1
src/pages/login/index.wxml

@ -65,6 +65,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="tip">*仅限特定人群登录并进行登录账号鉴权</view>
</view> </view>
<popup <popup

Loading…
Cancel
Save