Browse Source

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

test
qb 1 year ago
parent
commit
ae650ecc7e
  1. 21
      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. 106
      unpackage/dist/dev/app-plus/app-service.js
  7. 3
      utils/request.js

21
compoment/BasicContainer/BasicContainer.vue

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

2
compoment/PopUp/PopUp.vue

@ -1,6 +1,6 @@
<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}">
<scroll-view class="scoolv" scroll-y="true">
<view class="title">

2
compoment/tiplist/tiplist.vue

@ -1,5 +1,5 @@
<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>
<view class="title">
{{title||'提示'}}

1
pagesHome/pages/CustomerSign/CustomerSign.vue

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

3
pagesHome/pages/signinScan/signinScan.vue

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

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

@ -56218,55 +56218,63 @@ This will fail in production if not fixed.`);
null,
[
vue.createCommentVNode(" 弹窗组件 "),
vue.unref(showPopUp) ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "popUpMask",
onClick: _cache[3] || (_cache[3] = (...args) => details.close && details.close(...args))
}, [
vue.createElementVNode(
"view",
{
class: "container",
onClick: _cache[2] || (_cache[2] = vue.withModifiers(() => {
}, ["stop"])),
style: vue.normalizeStyle({ height: details.height })
},
[
vue.createElementVNode("scroll-view", {
class: "scoolv",
"scroll-y": "true"
}, [
vue.createElementVNode(
"view",
{ class: "title" },
vue.toDisplayString(details.title),
1
/* TEXT */
),
vue.createCommentVNode(" 插槽 "),
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
]),
vue.createElementVNode("view", { class: "buttonContainer" }, [
vue.createElementVNode("view", {
class: "closeButton",
onClick: _cache[0] || (_cache[0] = (...args) => details.close && details.close(...args))
}, " 取消 "),
vue.createElementVNode(
"view",
{
class: "confirmButton",
onClick: _cache[1] || (_cache[1] = (...args) => details.success && details.success(...args))
},
vue.toDisplayString(vue.unref(confirmText) || "确认"),
1
/* TEXT */
)
])
],
4
/* STYLE */
)
])) : vue.createCommentVNode("v-if", true)
vue.unref(showPopUp) ? (vue.openBlock(), vue.createElementBlock(
"view",
{
key: 0,
class: "popUpMask",
onTouchmove: _cache[3] || (_cache[3] = vue.withModifiers(() => {
}, ["prevent"])),
onClick: _cache[4] || (_cache[4] = (...args) => details.close && details.close(...args))
},
[
vue.createElementVNode(
"view",
{
class: "container",
onClick: _cache[2] || (_cache[2] = vue.withModifiers(() => {
}, ["stop"])),
style: vue.normalizeStyle({ height: details.height })
},
[
vue.createElementVNode("scroll-view", {
class: "scoolv",
"scroll-y": "true"
}, [
vue.createElementVNode(
"view",
{ class: "title" },
vue.toDisplayString(details.title),
1
/* TEXT */
),
vue.createCommentVNode(" 插槽 "),
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
]),
vue.createElementVNode("view", { class: "buttonContainer" }, [
vue.createElementVNode("view", {
class: "closeButton",
onClick: _cache[0] || (_cache[0] = (...args) => details.close && details.close(...args))
}, " 取消 "),
vue.createElementVNode(
"view",
{
class: "confirmButton",
onClick: _cache[1] || (_cache[1] = (...args) => details.success && details.success(...args))
},
vue.toDisplayString(vue.unref(confirmText) || "确认"),
1
/* TEXT */
)
])
],
4
/* STYLE */
)
],
32
/* HYDRATE_EVENTS */
)) : vue.createCommentVNode("v-if", true)
],
2112
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */

3
utils/request.js

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

Loading…
Cancel
Save