diff --git a/main.js b/main.js
index 8458b43..904b195 100644
--- a/main.js
+++ b/main.js
@@ -21,11 +21,14 @@ Vue.prototype.goHome = () => {
* @param {string} path 页面完成路径
* @param {string} query 参数字符串a=x&b=y
*/
+
+// 白名单页面
+const whiteListPath = ['/pages/basic-info/basic-info','/pages/statistics/statistics','/pages/user-code/user-code']
+
Vue.prototype.openPage = function(path, query = '') {
let url = query ? `${path}?${query}` : path;
store.commit('user/setPagePath',url)
- // 白名单页面
- const whiteListPath = ['/pages/basic-info/basic-info','/pages/statistics/statistics','/pages/user-code/user-code']
+
const choosePath = whiteListPath.indexOf(path)
if(!store.state.user.userInfo.id && choosePath === -1) {
url = '/pages/basic-info/basic-info';
diff --git a/pages.json b/pages.json
index 3cbbcfa..163196b 100644
--- a/pages.json
+++ b/pages.json
@@ -32,6 +32,12 @@
"navigationBarTitleText": "领取健康码"
}
},
+ {
+ "path": "pages/punch-the-clock/punch-the-clock",
+ "style": {
+ "navigationBarTitleText": "每日健康打卡"
+ }
+ },
{
"path": "pages/basic-info/basic-info",
"style": {
diff --git a/pages/basic-info/basic-info.vue b/pages/basic-info/basic-info.vue
index 3357b77..d7ecf4e 100644
--- a/pages/basic-info/basic-info.vue
+++ b/pages/basic-info/basic-info.vue
@@ -171,7 +171,6 @@ export default {
});
this.success = true;
this.setUserInfo(data);
- console.log(pagePath)
if(pagePath === '/pages/basic-info/basic-info'){
uni.reLaunch({
url: `/pages/index/index`,
diff --git a/pages/index/components/home.vue b/pages/index/components/home.vue
index 446c81b..fac8112 100644
--- a/pages/index/components/home.vue
+++ b/pages/index/components/home.vue
@@ -22,7 +22,7 @@
-
+
diff --git a/pages/my-code/my-code.vue b/pages/my-code/my-code.vue
index e600ccd..02329e0 100644
--- a/pages/my-code/my-code.vue
+++ b/pages/my-code/my-code.vue
@@ -31,6 +31,9 @@
+
+ 您还没有申请健康码,请点击右下角加号申请健康码。
+
diff --git a/pages/my-trips/my-trips.vue b/pages/my-trips/my-trips.vue
index a36bb81..2b8db40 100644
--- a/pages/my-trips/my-trips.vue
+++ b/pages/my-trips/my-trips.vue
@@ -29,6 +29,10 @@
+
+
+ 您还没有添加行程,请点击右下角加号添加行程。
+
diff --git a/pages/punch-the-clock/punch-the-clock.vue b/pages/punch-the-clock/punch-the-clock.vue
new file mode 100644
index 0000000..ff837d8
--- /dev/null
+++ b/pages/punch-the-clock/punch-the-clock.vue
@@ -0,0 +1,293 @@
+
+
+
+
+
+
+
+
+
+
+
+
+