diff --git a/api/model/login.js b/api/model/login.js
index c818a04..ffaa447 100644
--- a/api/model/login.js
+++ b/api/model/login.js
@@ -5,14 +5,14 @@
const api = {
// 微信登录接口
wxLogin: {
- url: '/login_common/appletLogin',
+ url: '/login/login',
method: 'GET',
limit : 500,
showLoading : true,
},
// 获取绑定手机号码
bindPhone: {
- url: '/login_common/bindPhone',
+ url: '/login/bindPhone',
method: 'GET',
auth: true,
},
diff --git a/config.js b/config.js
index 8ece511..139623a 100644
--- a/config.js
+++ b/config.js
@@ -15,7 +15,7 @@ const config = {
baseUrl: 'http://h5.xzaiyp.top/jewelry-admin',
},
prod: {
- baseUrl: 'https://jewelry-admin.hhlm1688.com/jewelry-admin',
+ baseUrl: 'http://augcl.natapp1.cc/massage-admin/massage',
}
}
diff --git a/manifest.json b/manifest.json
index dc7e3c5..5fddb89 100644
--- a/manifest.json
+++ b/manifest.json
@@ -52,9 +52,10 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
- "appid" : "wx28679cb649907e7e",
+ "appid" : "wx77ba4c7131677a74",
"setting" : {
- "urlCheck" : false
+ "urlCheck" : false,
+ "minified" : true
},
"usingComponents" : true,
"permission" : {},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 2708143..f98e0b8 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -144,6 +144,13 @@
}
},
onShow() {
+ // 临时改一下
+ if (!uni.getStorageSync('token')) {
+ uni.navigateTo({
+ url: '/pages_order/auth/wxLogin'
+ })
+ }
+
this.getBanner()
this.getRiceNoticeList()
this.getRiceIconList()
diff --git a/pages_order/auth/agreementModal.vue b/pages_order/auth/agreementModal.vue
new file mode 100644
index 0000000..81d273c
--- /dev/null
+++ b/pages_order/auth/agreementModal.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+ 请您务必审慎阅读、充分理解用户协议和隐私政策各条款,包括但不限于用户注意事项、用户行为规范以及为了向你提供服务而收集、使用、存储你个人信息的情况等。你可阅读《愈然工坊平台用户服务协议》和《愈然工坊平台隐私权政策》了解详细信息。如你同意,请点击下方按钮开始接受我们的服务。
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue
index b6e80c7..832f246 100644
--- a/pages_order/auth/wxLogin.vue
+++ b/pages_order/auth/wxLogin.vue
@@ -1,139 +1,144 @@
-
-
-
-
- 欢迎使用{{ configList.logo_name }}
+
+
+
+ {{ configList.logo_name }}
+
-
+
+
+
- 手机号授权登录
+ 微信登录
-
- 取消登录
-
-
-
-
-
+
+
+
- 阅读并同意我们的“用户协议”
-
-
- 以及隐私政策
-
+ 已同意
+ 《注册协议》、隐私协议
-
+
+
+
+
+
-
-
+
+
+
+
diff --git a/pages_order/auth/wxUserInfo.vue b/pages_order/auth/wxUserInfo.vue
index fa13612..9f866b3 100644
--- a/pages_order/auth/wxUserInfo.vue
+++ b/pages_order/auth/wxUserInfo.vue
@@ -1,62 +1,73 @@
-
-
- {{ configList.logo_name }}
+
+
+
+
+
+ {{ configList.logo_name }}
+
+
申请获取你的头像、昵称
-
-
-
- 昵称
-
-
-
-
-
-
-
- 手机号
-
-
-
-
+
+
+ 昵称
+
+
+
+
-
-
-
- 获取电话号码
-
+
+
+ 手机号
+
+
+
+
+
+ 获取电话号码
+
+
+
-
-
确认
@@ -120,7 +131,7 @@
if (self.$utils.verificationAll(self.userInfoForm, {
headImage: '请选择头像',
nickName: '请填写昵称',
- phone: '请填写昵称',
+ phone: '请填写手机号',
})) {
return
}
@@ -146,66 +157,130 @@
\ No newline at end of file
+
diff --git a/pages_order/static/auth/caution.png b/pages_order/static/auth/caution.png
new file mode 100644
index 0000000..062adf7
Binary files /dev/null and b/pages_order/static/auth/caution.png differ
diff --git a/pages_order/static/auth/logo.png b/pages_order/static/auth/logo.png
new file mode 100644
index 0000000..507cc80
Binary files /dev/null and b/pages_order/static/auth/logo.png differ
diff --git a/store/store.js b/store/store.js
index a167558..c663f3a 100644
--- a/store/store.js
+++ b/store/store.js
@@ -29,6 +29,10 @@ const store = new Vuex.Store({
configList[n.keyName + '_keyValue'] = n.keyValue;
});
}
+
+ // 临时改一下,后续改回接口获取
+ configList['logo_name'] = '愈然工坊'
+
state.configList = configList
uni.$emit('initConfig', state.configList)
})
diff --git a/uni.scss b/uni.scss
index 323ba6f..84de141 100644
--- a/uni.scss
+++ b/uni.scss
@@ -93,4 +93,11 @@ $uni-font-size-paragraph:15px;
color: $uni-color;
text-align: center;
font-size: 28rpx;
+}
+
+
+
+.uni-placeholder {
+ color: #C7C7C7;
+ font-size: 30rpx;
}
\ No newline at end of file