From ec9fb7842c7084d5970d253c52be2ad5ee3d4cfa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com>
Date: Thu, 26 Aug 2021 10:51:31 +0800
Subject: [PATCH] =?UTF-8?q?[=E6=B7=BB=E5=8A=A0]=20=E5=85=AC=E4=BC=97?=
=?UTF-8?q?=E5=8F=B7H5=E7=99=BB=E5=BD=95=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/index.vue | 24 +++++++++
pages/login/index.vue | 119 +++---------------------------------------
2 files changed, 32 insertions(+), 111 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 763f78d..33b6507 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -59,6 +59,29 @@
return {
}
+ },
+ onLoad(){
+ this.href_str = JSON.stringify(location.href);
+ let options = this.strToObj();
+ console.log("options", options)
+ },
+ methods: {
+ strToObj(){
+ let val = this.href_str;
+ let obj = {};
+ if(!val) return obj;
+ if(val.indexOf('?') < 0) return obj;
+ let indexA = val.indexOf('?') + 1;
+ let str = val.substr(indexA, val.length);
+ let indexB = str.indexOf('#');
+ str = str.substr(0, indexB);
+ let arr = str.split('&');
+ arr.map(item => {
+ let a = item.split('=');
+ obj[a[0]] = a[1];
+ });
+ return obj;
+ }
}
}
@@ -70,6 +93,7 @@
padding: 21rpx 32rpx;
display: flex;
justify-content: space-between;
+ box-sizing: border-box;
.search{
// width: 530rpx;
width: 100%;
diff --git a/pages/login/index.vue b/pages/login/index.vue
index e6ddb9b..a87a0a0 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -1,126 +1,23 @@
-
-
-
-
-
- {{ userInfo.nickname || '游客用户' }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 请认真阅读并同意
- 《{{ agreement.title }}》
- ,在小程序下单购买即表示您已默认同意
- 《{{ agreement.title }}》
- 的所有条款。
-
-
-
+