zhouwenxuan
2023-12-15 277d6652893fcc10fb6827b62ef16fe2910a525c
uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue
@@ -450,6 +450,10 @@
            right.setDate(this.$refs.right.nowDate.fullDate)
         },
         platform() {
        if(typeof navigator !== "undefined"){
          this.isPhone = navigator.userAgent.toLowerCase().indexOf('mobile') !== -1
          return
        }
            const { windowWidth } = uni.getSystemInfoSync()
            this.isPhone = windowWidth <= 500
            this.windowWidth = windowWidth
@@ -460,7 +464,9 @@
            }
            this.platform()
            if (this.isPhone) {
               this.$refs.mobile.open()
               setTimeout(() => {
            this.$refs.mobile.open()
          }, 0);
               return
            }
            this.pickerPositionStyle = {