diff --git a/src/app.ts b/src/app.ts index c426558..e2f9d35 100644 --- a/src/app.ts +++ b/src/app.ts @@ -29,12 +29,12 @@ App({ imageUrl: 'https://app.yd.hbraas.com/images/', // pro - // appid:wxfc95e2961d481f58 - // url: 'https://app.yd.hbsaas.com', - // upFileUrl: 'https://app.yd.hbsaas.com/', - // imageUrl: 'https://app.yd.hbsaas.com/images/', + // appid:wxaefa7c119758a692 + // url: 'https://app.hghealth.hbsaas.com', + // upFileUrl: 'https://app.hghealth.hbsaas.com/', + // imageUrl: 'https://app.hghealth.hbsaas.com/images/', - Timestamp: new Date().getTime(), + Timestamp: dayjs().valueOf(), waitBindDoctorId: '', scene: {}, diff --git a/src/utils/page.ts b/src/utils/page.ts index cbf0351..ab2ef79 100644 --- a/src/utils/page.ts +++ b/src/utils/page.ts @@ -4,6 +4,8 @@ * 2、app.js onLaunch 的时候 Page = page */ +import dayjs from 'dayjs' + const originalPage = Page const noSharePath = [ @@ -44,8 +46,7 @@ function page(config: WechatMiniprogram.Page.Instance, ) { - const date = new Date() - const Timestamp = date.getTime() + const Timestamp = dayjs().valueOf() currPage.setData({ imageUrl: getApp().globalData.imageUrl, Timestamp,