MrShi
2025-03-27 17ecbaae8d036bb1f59b1d74b153fa9dfe542f3f
解决h5访客申请bug
已修改9个文件
94 ■■■■ 文件已修改
h5/manifest.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/pages/driver/reserved.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/pages/driver/reservedGuide.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/pages/guidemap/guidemap.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/pages/staff/signin.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/pages/staffLogin/login.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/pages/visitorApplication/visitorApplication.vue 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/pages/visitorSubGuide/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/utils/config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/manifest.json
@@ -1,6 +1,6 @@
{
    "name" : "laborVisitors",
    "appid" : "__UNI__BCCF400",
    "appid" : "__UNI__91B8BB7",
    "description" : "",
    "versionName" : "1.0.0",
    "versionCode" : "100",
h5/pages/driver/reserved.vue
@@ -113,6 +113,7 @@
            closeOnClickOverlay
            :minDate="new Date().getTime()"
            mode="datetime"
             :formatter="formatter"
            @close="showDatetime = false"
            @cancel="showDatetime = false"
            @confirm="setinDate"
@@ -151,6 +152,24 @@
        this.initData()
    },
    methods: {
        formatter(type, value) {
            if (type === 'year') {
                return `${value}年`
            }
            if (type === 'month') {
                return `${value}月`
            }
            if (type === 'day') {
                return `${value}日`
            }
            if (type === 'hour') {
                return `${value}时`
            }
            if (type === 'minute') {
                return `${value}分`
            }
            return value
        },
        checkSurplus() {
              const { arriveDate, reasonId, totalNum } = this.param
              if(!arriveDate || !reasonId || !totalNum) return
h5/pages/driver/reservedGuide.vue
@@ -1,6 +1,7 @@
<template>
    <view class="box">
        <mp-html :content="content" />
        <!-- <mp-html :content="content" /> -->
        <u-parse :content="content"></u-parse>
    </view>
</template>
h5/pages/guidemap/guidemap.vue
@@ -1,7 +1,8 @@
<template>
  <view class="box">
    <!-- <view v-html="info"></view> -->
        <mp-html :content="info" />
        <!-- <mp-html :content="info" /> -->
        <u-parse :content="info"></u-parse>
  </view>
</template>
<script>
h5/pages/staff/signin.vue
@@ -1,7 +1,8 @@
<template>
  <view class="box">
    <!-- <view v-html="info"></view> -->
        <mp-html :content="info" />
        <!-- <mp-html :content="info" /> -->
        <u-parse :content="info"></u-parse>
  </view>
</template>
<script>
h5/pages/staffLogin/login.vue
@@ -68,7 +68,8 @@
            <view class="modal">
                <!-- <view v-html="htmlText"></view> -->
                <view class="content">
                    <mp-html :content="htmlText" />
                    <!-- <mp-html :content="htmlText" /> -->
                    <u-parse :content="htmlText"></u-parse>
                </view>
            </view>
        </u-popup>
h5/pages/visitorApplication/visitorApplication.vue
@@ -82,7 +82,7 @@
                    </view>
                </view>
            </view> -->
            <view v-if="form1.type == '1'" class="list_item">
            <view v-if="form1.type == 1" class="list_item">
                <view class="list_item_label">
                    <text></text>
                    <text>施工内容</text>
@@ -106,13 +106,13 @@
                </view>
            </view>
        </view>
        <view class="footer">
            <view class="footer_btn" @click="onSubmit">提交</view>
        <view class="footer-box">
            <view class="submit-button" @click="onSubmit">提交</view>
        </view>
        <!-- 入园时间 -->
        <u-datetime-picker :show="show4" :minDate="new Date().getTime()" mode="datetime" :formatter="formatter"
        <u-datetime-picker :show="show4" :minDate="new Date().getTime()" :formatter="formatter" mode="datetime"
            @cancel="show4 = false" @confirm="setstarttime"></u-datetime-picker>
        <!-- 离园时间 -->
        <!-- 离园时间  -->
        <u-datetime-picker v-if="form1.starttime" :show="show5" :formatter="formatter"
            :minDate="formatTimeStamp(form1.starttime)" :maxDate="formatTimeStamp(form1.starttime.slice(0,10) + ' 23:59')"
            mode="datetime" @cancel="show5 = false" @confirm="setendtime"></u-datetime-picker>
@@ -416,6 +416,15 @@
        },
        methods: {
            formatter(type, value) {
                // if (type === 'year') {
                //     return `${value}年`
                // }
                // if (type === 'month') {
                //     return `${value}月`
                // }
                // if (type === 'day') {
                //     return `${value}日`
                // }
                if (type === 'year') {
                    return `${value}年`
                }
@@ -425,9 +434,15 @@
                if (type === 'day') {
                    return `${value}日`
                }
// <<<<<<< HEAD
                this.$forceUpdate()
                this.closeInput()
                if (type === 'hour') {
                    return `${value}时`
                }
                if (type === 'minute') {
                    return `${value}分`
                }
                // this.$forceUpdate()
                // this.closeInput()
                return value
            },
            closeInput() {
                this.$refs.keyboard.close()
@@ -1361,6 +1376,29 @@
                }
            }
        }
        .footer-box {
            width: 100%;
            position: fixed;
            bottom: 30rpx;
            height: 80rpx;
            display: flex;
            justify-content: center;
            align-items: center;
            .submit-button {
                width: calc(100% - 60rpx);
                height: 88rpx;
                line-height: 88rpx;
                background: #4d99a8;
                border-radius: 4rpx;
                color: #fff;
                border-radius: 44rpx;
                font-size: 32rpx;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
        .head {
            width: 100%;
h5/pages/visitorSubGuide/index.vue
@@ -1,7 +1,8 @@
<template>
  <view class="box">
    <!-- <view v-html="info"></view> -->
        <mp-html :content="info" />
        <!-- <mp-html :content="info" /> -->
        <u-parse :content="info"></u-parse>
  </view>
</template>
<script>
h5/utils/config.js
@@ -1,8 +1,8 @@
export const baseUrl = 'zhyq_interface/'
// export const baseUrl = 'zhyq_interface/'
// export const baseUrl = 'http://192.168.0.173/gateway_interface/'
// export const baseUrl = 'http://10.50.250.253:8088/gateway_interface/'
// export const baseUrl = 'https://atwl.ahzyssl.com/zhyq_interface/'
export const baseUrl = 'https://atwl.ahzyssl.com/zhyq_interface/'
export const app_url = 'https://atwl.ahzyssl.com/zhyq_h5/#/'