Browse Source

新增弹窗蒙层阻止滑动和签收图片缓存问题

test
qb 1 year ago
parent
commit
ae650ecc7e
  1. 7
      compoment/BasicContainer/BasicContainer.vue
  2. 2
      compoment/PopUp/PopUp.vue
  3. 2
      compoment/tiplist/tiplist.vue
  4. 1
      pagesHome/pages/CustomerSign/CustomerSign.vue
  5. 3
      pagesHome/pages/signinScan/signinScan.vue
  6. 16
      unpackage/dist/dev/app-plus/app-service.js
  7. 3
      utils/request.js

7
compoment/BasicContainer/BasicContainer.vue

@ -108,13 +108,20 @@
// //
onPullDownRefresh(async () => { onPullDownRefresh(async () => {
try {
await pullDownRefreshInitPage() await pullDownRefreshInitPage()
} catch (e) {
//TODO handle the exception
} finally {
console.log('111 :>> ', 111);
const timer = setTimeout(() => { const timer = setTimeout(() => {
// //
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
// //
clearTimeout(timer) clearTimeout(timer)
}, 300) }, 300)
}
}) })
// //

2
compoment/PopUp/PopUp.vue

@ -1,6 +1,6 @@
<template> <template>
<!-- 弹窗组件 --> <!-- 弹窗组件 -->
<view class="popUpMask" @click="details.close" v-if="showPopUp"> <view class="popUpMask" @touchmove.stop.prevent @click="details.close" v-if="showPopUp">
<view class="container" @click.stop :style="{height:details.height}"> <view class="container" @click.stop :style="{height:details.height}">
<scroll-view class="scoolv" scroll-y="true"> <scroll-view class="scoolv" scroll-y="true">
<view class="title"> <view class="title">

2
compoment/tiplist/tiplist.vue

@ -1,5 +1,5 @@
<template> <template>
<view class="maboxbg" v-if="isshow" @click="checkbox(0)"> <view class="maboxbg" @touchmove.stop.prevent v-if="isshow" @click="checkbox(0)">
<scroll-view class="modtips" @click.stop.prevent> <scroll-view class="modtips" @click.stop.prevent>
<view class="title"> <view class="title">
{{title||'提示'}} {{title||'提示'}}

1
pagesHome/pages/CustomerSign/CustomerSign.vue

@ -255,6 +255,7 @@
details.isChange = true details.isChange = true
imglis = res.data.deliverySignPictures imglis = res.data.deliverySignPictures
details.imgList.forEach((item, index) => { details.imgList.forEach((item, index) => {
item.imgList = []
if (!imglis[item.dictKey]) return if (!imglis[item.dictKey]) return
details.imgList[index].imgList = imglis[item.dictKey] details.imgList[index].imgList = imglis[item.dictKey]
}) })

3
pagesHome/pages/signinScan/signinScan.vue

@ -130,7 +130,7 @@
title: '签收扫描', title: '签收扫描',
haveData: true, haveData: true,
async pullDownRefreshInitPage() { async pullDownRefreshInitPage() {
await init() return await init()
} }
} }
let details = reactive({ let details = reactive({
@ -192,6 +192,7 @@
}, 200) }, 200)
}) })
async function init() { async function init() {
details.datalist = []
details.current = 1 details.current = 1
return await initpage() return await initpage()
} }

16
unpackage/dist/dev/app-plus/app-service.js vendored

@ -56218,11 +56218,16 @@ This will fail in production if not fixed.`);
null, null,
[ [
vue.createCommentVNode(" 弹窗组件 "), vue.createCommentVNode(" 弹窗组件 "),
vue.unref(showPopUp) ? (vue.openBlock(), vue.createElementBlock("view", { vue.unref(showPopUp) ? (vue.openBlock(), vue.createElementBlock(
"view",
{
key: 0, key: 0,
class: "popUpMask", class: "popUpMask",
onClick: _cache[3] || (_cache[3] = (...args) => details.close && details.close(...args)) onTouchmove: _cache[3] || (_cache[3] = vue.withModifiers(() => {
}, [ }, ["prevent"])),
onClick: _cache[4] || (_cache[4] = (...args) => details.close && details.close(...args))
},
[
vue.createElementVNode( vue.createElementVNode(
"view", "view",
{ {
@ -56266,7 +56271,10 @@ This will fail in production if not fixed.`);
4 4
/* STYLE */ /* STYLE */
) )
])) : vue.createCommentVNode("v-if", true) ],
32
/* HYDRATE_EVENTS */
)) : vue.createCommentVNode("v-if", true)
], ],
2112 2112
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */

3
utils/request.js

@ -212,6 +212,7 @@ const HandleRequest = (params, key, loadingObj) => {
// #ifdef APP // #ifdef APP
utils.ttsspke('接口出错,请联系后端开发人员') utils.ttsspke('接口出错,请联系后端开发人员')
// #endif // #endif
relove({})
return return
} else if (res.statusCode == 401) { } else if (res.statusCode == 401) {
// 登录失败时 // 登录失败时
@ -247,11 +248,13 @@ const HandleRequest = (params, key, loadingObj) => {
}) })
} }
} else { } else {
console.log('111 :>> ', 111);
delete requestObj[key] delete requestObj[key]
functions.error('连接服务器失败') functions.error('连接服务器失败')
// #ifdef APP // #ifdef APP
utils.ttsspke('连接服务器失败') utils.ttsspke('连接服务器失败')
// #endif // #endif
reject(res)
} }
} }
}).catch(async err => { }).catch(async err => {

Loading…
Cancel
Save