diff --git a/src/App.vue b/src/App.vue
index ec7e94e..af48ed2 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -112,7 +112,7 @@ export default {
if(options?.path?.includes('ticketsBuy/ticketsBuy') && options?.query.couponsId) {
setTimeout(() => {
uni.reLaunch({
- url: 'pages/common/groupbuy/index?id=' + options?.query.couponsId
+ url: 'pages/common/groupbuy/detail?id=' + options?.query.couponsId
});
}, 500);
}
diff --git a/src/pages.json b/src/pages.json
index 551c6a9..23cee42 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -38,6 +38,12 @@
"style": {
"navigationBarTitleText": "肃客会员"
}
+ },
+ {
+ "path": "pages/coupons/ticketsBuy/ticketsBuy",
+ "style": {
+ "navigationBarTitleText": "团购详情"
+ }
}
],
"subPackages": [
diff --git a/src/pages/coupons/ticketsBuy/ticketsBuy.vue b/src/pages/coupons/ticketsBuy/ticketsBuy.vue
new file mode 100644
index 0000000..2955096
--- /dev/null
+++ b/src/pages/coupons/ticketsBuy/ticketsBuy.vue
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue
index 1f96d23..5e4a32e 100644
--- a/src/pages/home/index.vue
+++ b/src/pages/home/index.vue
@@ -86,7 +86,7 @@ const submenuList = [
title: '注册有礼',
icon: assetsUrl('ic_register_gift2.png'),
path: '/pages/common/register/reward'
- // path: '/pages/common/register/index'
+ // path: '/pages/coupons/ticketsBuy/ticketsBuy?couponsId=1797773484774432769'
},
{
title: '团购秒杀',
diff --git a/src/pages/mine/subs/profile/index.vue b/src/pages/mine/subs/profile/index.vue
index b14cf8e..5c8704b 100644
--- a/src/pages/mine/subs/profile/index.vue
+++ b/src/pages/mine/subs/profile/index.vue
@@ -80,7 +80,7 @@ const params = ref<{
nickName: userInfo.value.nickName,
telephone: userInfo.value.telephone,
gender: userInfo.value.gender,
- birthday: userInfo.value.birthday
+ birthday: userInfo.value.birthday|| dayjs().format('YYYY-MM-DD')
});
onLoad(() => {
@@ -135,7 +135,7 @@ const save = async () => {
const result = await updateProfile({
...params.value,
- birthday: dayjs(params.value.birthday).format('YYYY-MM-DD HH:mm:ss'),
+ birthday: dayjs(birthday.value).isValid() ? dayjs(birthday.value).format('YYYY-MM-DD HH:mm:ss') : dayjs().format('YYYY-MM-DD HH:mm:ss'),
birthdayType: 0
});