diff --git a/.env.development b/.env.development
index 0cc5e9d..e1cf62a 100644
--- a/.env.development
+++ b/.env.development
@@ -2,3 +2,5 @@
VITE_COMMON_API_PREFIX = /api-base
VITE_COMMON_API_URL = http://store-manage.hmily.club/api
+
+VITE_COMMON_URL = http://store-manage.hmily.club
diff --git a/.env.production b/.env.production
index 696cd0d..9ecd004 100644
--- a/.env.production
+++ b/.env.production
@@ -1,3 +1,5 @@
VITE_COMMON_API_PREFIX = /api-base
-VITE_COMMON_API_URL = http://store.manage.zlgj168.com/api
\ No newline at end of file
+VITE_COMMON_API_URL = http://store.manage.zlgj168.com/api
+
+VITE_COMMON_URL = http://store.manage.zlgj168.com
\ No newline at end of file
diff --git a/src/pages.json b/src/pages.json
index 9ce25e4..e4f5753 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -15,6 +15,13 @@
"login": false
}
},
+ {
+ "path": "pages/webview/index",
+ "style": {
+ "navigationBarTitleText": "隐私协议",
+ "navigationStyle": "default"
+ }
+ },
{
"path": "pages/home/index",
"style": {
diff --git a/src/pages/login/Layout.vue b/src/pages/login/Layout.vue
index c159ebd..fbec6e7 100644
--- a/src/pages/login/Layout.vue
+++ b/src/pages/login/Layout.vue
@@ -1,20 +1,20 @@
-
-
- 托管门店助手
+ 托管门店助手
欢迎登录
+
-
\ No newline at end of file
+
+
diff --git a/src/pages/login/LoginForm.vue b/src/pages/login/LoginForm.vue
index 3e930d4..d60d6d0 100644
--- a/src/pages/login/LoginForm.vue
+++ b/src/pages/login/LoginForm.vue
@@ -29,6 +29,19 @@
+
+
+
+ 登录并同意《隐私政策》
+
+
+
import { ref, reactive, computed } from 'vue'
import { useUserStore } from '@/store/modules/user'
-
+const checkboxValue = ref([false])
const userStore = useUserStore()
const form = ref({
@@ -67,6 +80,10 @@ const rules = computed(() => {
const formRef = ref(null)
+const handleW = () => {
+ uni.navigateTo({ url: '/pages/webview/index' })
+}
+
const onValidate = () => {
formRef.value.validate().then(() => {
handleClick()
@@ -74,6 +91,7 @@ const onValidate = () => {
}
const handleClick = async () => {
+ checkboxValue.value = [true]
try {
const { username, password } = form.value
await userStore.login({
diff --git a/src/pages/webview/index.vue b/src/pages/webview/index.vue
new file mode 100644
index 0000000..0edcdb6
--- /dev/null
+++ b/src/pages/webview/index.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+