From cf70e64d14d1e84d87a315045a41fe3d3ae4044e Mon Sep 17 00:00:00 2001 From: chenkainan Date: Thu, 28 Nov 2024 14:03:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 28 +++++++-------- pages.json | 6 ++++ pages/index/index.vue | 2 +- pages/login/login.vue | 24 +++++++++---- pages/user/user.vue | 4 +-- pages/verification/index.vue | 2 +- static/js/request.js | 4 +-- subPackages/user/myNews.vue | 67 ++++++++++++++++++++++++++++++++++++ 8 files changed, 111 insertions(+), 26 deletions(-) create mode 100644 subPackages/user/myNews.vue diff --git a/manifest.json b/manifest.json index 7354e1a..bd19b67 100644 --- a/manifest.json +++ b/manifest.json @@ -76,20 +76,20 @@ }, "vueVersion" : "2", "h5" : { - "devServer" : { - "port" : 5173, //端口号 - "disableHostCheck" : true, - "proxy" : { - "/api" : { - "target" : "https://tlgz.sz-trip.com/", //目标接口域名 - "changeOrigin" : true, //是否跨域 - "secure" : true, // 设置支持https协议的代理 - "pathRewrite" : { - "^/api" : "" //意思就是把devApi这个替换成空 '' - } - } - } - }, + // "devServer" : { + // "port" : 5173, //端口号 + // "disableHostCheck" : true, + // "proxy" : { + // "/api" : { + // "target" : "http://47.103.142.123:1010/", //目标接口域名 + // "changeOrigin" : true, //是否跨域 + // "secure" : true, // 设置支持https协议的代理 + // "pathRewrite" : { + // "^/api" : "" //意思就是把devApi这个替换成空 '' + // } + // } + // } + // }, "router" : { "mode" : "history" }, diff --git a/pages.json b/pages.json index cefd1fd..94f464c 100644 --- a/pages.json +++ b/pages.json @@ -41,6 +41,12 @@ "navigationBarTitleText": "uni-app" } }, + { + "path": "user/myNews", + "style": { + "navigationBarTitleText": "我的消息" + } + }, { "path": "user/register", "style": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 79aa48a..1ff6a6c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -26,7 +26,7 @@ - + - + - + @@ -20,7 +20,7 @@ - + 立即登录 @@ -31,12 +31,24 @@ data() { return { form: { - phone: '', - code: '', - password: '' + username: '17717512304', + captchaCodeId: '558092', + password: '512304' }, showPassword: true } + }, + onShow() { + this.Post({},'/api/Merchants/get_graphic').then(res => { + console.log(res) + }) + }, + methods: { + login() { + this.Post(this.form,'/api/Merchants/login_member').then(res => { + console.log(res) + }) + } } } diff --git a/pages/user/user.vue b/pages/user/user.vue index ffe237c..dcd8a70 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -15,7 +15,7 @@ - + {{item.title}} @@ -30,7 +30,7 @@ list: [ { title: '我的消息', - path: '' + path: '/subPackages/user/myNews' }, { title: '我的订单', diff --git a/pages/verification/index.vue b/pages/verification/index.vue index 3af5787..10f3ce3 100644 --- a/pages/verification/index.vue +++ b/pages/verification/index.vue @@ -132,7 +132,7 @@ + + \ No newline at end of file