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 }