@@ -3,7 +3,7 @@
{
"path": "pages/public/login",
"style":{
- "navigationBarTitleText": "登陆",
+ "navigationBarTitleText": "登录",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor":"#ffffff",
"enablePullDownRefresh":true
@@ -25,7 +25,7 @@
<input
name="password"
type="password"
- v-model="loginParams.password"
+ v-model="loginParams.password || 'Ectrip2020'"
placeholder="请输入密码"
/>
</view>
@@ -7,12 +7,13 @@
* @Email webwork.s@qq.com
* http://ext.dcloud.net.cn/plugin?id=392
*/
+console.log(uni.getStorageSync('user'))
export default class Request {
config = {
baseUrl: '',
header: {
'content-type': 'application/json',
- 'X-TOKEN': uni.getStorageSync('user') || {}
+ 'X-TOKEN': uni.getStorageSync('user')
},
method: 'GET',
dataType: 'json',