From 15e9e606600198ad50c2268f6ddeb7ac83290c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=80=E5=8D=97wupeng?= <3321822538@qq.com> Date: Wed, 7 Feb 2024 15:58:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/users/order_confirm/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue index 53a0b47..1638a42 100644 --- a/pages/users/order_confirm/index.vue +++ b/pages/users/order_confirm/index.vue @@ -1108,7 +1108,7 @@ uid: this.$store.getters.uid } getidentity(data).then(res=>{ - if (res.message == '操作成功') { + if (res.message == '操作成功' && res.data != '') { this.sfxx = '已完成' this.identification = res.data } From cbb3dc5b0cc54913f2457d18481471f6ba53a340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=80=E5=8D=97wupeng?= <3321822538@qq.com> Date: Wed, 7 Feb 2024 16:58:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 7 ++++++- components/productWindow/index.vue | 10 ++++++++-- pages/index/index.vue | 12 ++++++++++++ pages/user/index.vue | 2 +- 4 files changed, 27 insertions(+), 4 deletions(-) diff --git a/api/api.js b/api/api.js index 6996785..ba6f22c 100644 --- a/api/api.js +++ b/api/api.js @@ -359,8 +359,13 @@ export function getinstallment(data) { }); } +// 到首页查询ip地址 - +export function getip() { + return request.get('login/log', { + noAuth: true + }); +} // 查询签约是否成功 diff --git a/components/productWindow/index.vue b/components/productWindow/index.vue index b5e2fb7..4166730 100644 --- a/components/productWindow/index.vue +++ b/components/productWindow/index.vue @@ -450,12 +450,18 @@ .periodization .returnthedate a { text-decoration: none; - display: block; + // display: block; margin-top: 20rpx; border: 1px solid rgb(255, 87, 51); color: #000; + // width: 100% !important; + padding: 0 20rpx; + padding-right: 40rpx; + box-sizing: border-box; + } + .returnthedate{ + width: 100% !important; } - .periodization .returnthedate a:nth-of-type(1) { width: 198rpx; height: 60rpx; diff --git a/pages/index/index.vue b/pages/index/index.vue index a3f51e9..5a7e2f7 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -170,6 +170,7 @@ setCouponReceive, getTheme, getAppVersion, + getip } from '@/api/api.js'; import { spread @@ -369,6 +370,9 @@ this.setTabList() }, onLoad(options) { + this.getipdz() + + if (app.globalData.isIframe) { setTimeout(() => { let active; @@ -455,6 +459,14 @@ uni.showTabBar(); }, methods: { + // 获取IP地址 + getipdz(){ + getip().then(res => { + console.log(res,111) + }) + }, + + menusTap(url) { goPage().then(res => { if (url == '/pages/goods_cate/goods_cate') { diff --git a/pages/user/index.vue b/pages/user/index.vue index fa70eef..e613860 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -323,7 +323,7 @@ uid: this.$store.getters.uid } getidentity(data).then(res=>{ - if (res.message == '操作成功') { + if (res.message == '操作成功' && res.data != '') { this.realname = '已实名' this.identification = res.data }