Mr.Shi
2023-09-13 39db74652a6470caf84ac8fb27ad903912354261
小程序
已修改2个文件
16 ■■■■■ 文件已修改
minipro_standard/pages/changePassword/changePassword.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/pages_inspect/pages/equipmentInspection/equipmentInspection.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/pages/changePassword/changePassword.vue
@@ -58,7 +58,7 @@
                    uni.showToast({ title: '原密码不能为空', icon: 'none', duration: 2000 });
                } else if (!this.form.newPassword) {
                    uni.showToast({ title: '新密码不能为空', icon: 'none', duration: 2000 });
                } else if (!/^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{6,}$/.test(this.form.newPassword)) {
                } else if (!/^([a-z0-9\.\@\!\#\(/)/$\%\^\&\*\(\)]){6,20}$/i.test(this.form.newPassword)) {
                    uni.showToast({ title: '密码格式不正确', icon: 'none', duration: 2000 });
                } else if (!this.form.confirmPassword) {
                    uni.showToast({ title: '确认密码不能为空', icon: 'none', duration: 2000 });
minipro_standard/pages_inspect/pages/equipmentInspection/equipmentInspection.vue
@@ -50,9 +50,9 @@
                    <view class="box_list1_club_list_item" v-for="(item, index) in form.files" :key="index"
                        @click="seeBigFile(index)">
                        <image class="close" src="@/static/ic_delete@2x.png" @click.stop="dele(index)" />
                        <image class="play" src="@/static/ic_play@2x.png" v-if="item.type === 1" />
                        <image class="play" src="@/static/ic_play@2x.png" v-if="item.typec === 1" />
                        <view class="type">
                            <video :src="item.url" v-if="item.type === 1"></video>
                            <video :src="item.url" v-if="item.typec === 1"></video>
                            <image v-else class="type_img" :src="item.url" mode="widthFix" />
                        </view>
                    </view>
@@ -63,8 +63,7 @@
        </view>
        <view class="box_list2">
            <view class="box_list2_label">备注</view>
            <textarea name="" id="" v-model="form.remarks" cols="20" rows="5" maxlength="300"
                placeholder="请详细描述巡检情况"></textarea>
            <textarea v-model="form.remarks" cols="20" rows="5" maxlength="300" placeholder="请详细描述巡检情况"></textarea>
        </view>
        <view class="box_footer">
            <button class="box_footer_submit" v-preventReClick @click="submit">提交</button>
@@ -261,7 +260,6 @@
                    sourceType: ['album', 'camera'],
                    success: (chooseImageRes) => {
                        const tempFilePaths = chooseImageRes.tempFiles;
                        console.log(tempFilePaths)
                        for (let i = 0; i < tempFilePaths.length; i++) {
                            uni.uploadFile({
                                url: baseUrl + '/ext/routeCardExt/upload',
@@ -275,16 +273,16 @@
                                },
                                success: (uploadFileRes) => {
                                    let res = JSON.parse(uploadFileRes.data)
                                    let type = ''
                                    let typec = ''
                                    for (let s = 0; s < fileType.length; s++) {
                                        if (tempFilePaths[i].tempFilePath.indexOf(fileType[s].name) !== -1) {
                                            type = fileType[s].type
                                            typec = fileType[s].type
                                        }
                                    }
                                    that.form.files.push({
                                        fileUrl: res.data.imgaddr,
                                        filename: res.data.imgname,
                                        type,
                                        typec,
                                        url: res.data.url
                                    })
                                }