From 1bfd170696d71c94f5ab747ca8d8d60f76bb8afe Mon Sep 17 00:00:00 2001 From: xuan Date: Mon, 27 Feb 2023 16:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1001354):=20=E3=80=90?= =?UTF-8?q?=E9=9D=A2=E6=96=99=E4=BC=98=E9=80=89&=E5=86=85=E9=83=A8?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E3=80=90=E8=89=B2=E5=8D=A1?= =?UTF-8?q?=E5=89=AA=E6=A0=B7/=E9=A2=86=E5=8F=96=E8=89=B2=E5=8D=A1?= =?UTF-8?q?=E3=80=91--=E6=B7=BB=E5=8A=A0=E8=89=B2=E5=8D=A1=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BB=E8=BF=94=E5=9B=9E=E9=94=AE=EF=BC=8C?= =?UTF-8?q?=E6=B2=A1=E5=BC=B9=E6=A1=86=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【【面料优选&内部小程序】【色卡剪样/领取色卡】--添加色卡后,点击返回键,没弹框提示】 https://www.tapd.cn/53459131/bugtrace/bugs/view/1153459131001001354 --- project.private.config.json | 14 ++ src/common/constant.ts | 2 +- .../getColorCard/addColorCard/index.config.ts | 2 + .../addColorCard/index.module.scss | 3 + src/pages/getColorCard/addColorCard/index.tsx | 237 ++++++++++-------- .../addSampleCutting/index.config.ts | 2 + .../addSampleCutting/index.module.scss | 3 + .../sampleCutting/addSampleCutting/index.tsx | 21 ++ 8 files changed, 174 insertions(+), 110 deletions(-) diff --git a/project.private.config.json b/project.private.config.json index 807fae9..1c2ff94 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -37,6 +37,20 @@ "query": "", "launchMode": "default", "scene": null + }, + { + "name": "", + "pathName": "pages/login/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "", + "pathName": "pages/getColorCard/addColorCard/index", + "query": "", + "launchMode": "default", + "scene": null } ] } diff --git a/src/common/constant.ts b/src/common/constant.ts index 850aed6..14bc3f1 100644 --- a/src/common/constant.ts +++ b/src/common/constant.ts @@ -15,7 +15,7 @@ export const BASE_URL = CURRENT_BASE_URL // export const BASE_URL = 'http://192.168.1.7:50002/lymarket' // 添 // export const BASE_URL = 'http://192.168.1.42:50002/lymarket' // 杰 // export const BASE_URL = `http://192.168.1.95:40001/lymarket` // 华 -// export const BASE_URL = 'http://192.168.1.28:50001/lymarket' // 婷 +// export const BASE_URL = 'http://192.168.1.28:50002/lymarket' // 婷 // CDN // 生成密钥 diff --git a/src/pages/getColorCard/addColorCard/index.config.ts b/src/pages/getColorCard/addColorCard/index.config.ts index e8660e0..c6c6fc4 100644 --- a/src/pages/getColorCard/addColorCard/index.config.ts +++ b/src/pages/getColorCard/addColorCard/index.config.ts @@ -1,3 +1,5 @@ export default { navigationBarTitleText: '领取色卡', + disableSwipeBack: true, + navigationStyle: 'custom', } diff --git a/src/pages/getColorCard/addColorCard/index.module.scss b/src/pages/getColorCard/addColorCard/index.module.scss index 9c00d31..2771112 100644 --- a/src/pages/getColorCard/addColorCard/index.module.scss +++ b/src/pages/getColorCard/addColorCard/index.module.scss @@ -4,6 +4,9 @@ page { display: flex; flex-flow: column nowrap; } +.backIcon { + transform: rotate(180deg); +} .layoutBlock { padding: 24px 34px; } diff --git a/src/pages/getColorCard/addColorCard/index.tsx b/src/pages/getColorCard/addColorCard/index.tsx index bd4b96a..6301d32 100644 --- a/src/pages/getColorCard/addColorCard/index.tsx +++ b/src/pages/getColorCard/addColorCard/index.tsx @@ -17,6 +17,7 @@ import Remark from '@/pages/orderDetails/components/remark' import { formatRemoveHashTag } from '@/common/format' import { SubmitColorCardOrder } from '@/api/colorCard' import MoveBtn from '@/components/moveBtn' +import NavBar from '@/pages/order/components/NavBar' const AddColorCard = () => { // 获取选择的客户 @@ -263,123 +264,141 @@ const AddColorCard = () => { setRemark(value) }, []) - return - - - {/* 客户信息 */} - - - 客户信息 - - - - { - clientInfo.clientId !== -1 - ? (<> - - {clientInfo.clientName} - - - {clientInfo.clientPhone} - - - ) - : 选择领取客户 - } - - - - { - clientInfo.clientId !== -1 && } - > + const onClickBack = () => { + Taro.showModal({ + content: '返回后页面数据将不回保留,确认返回?', + confirmColor: '#4a8dff', + success: ({ confirm }) => { + if (confirm) { + Taro.navigateBack({ + delta: 1, + }) } + }, + }) + } - 添加色卡 - {/* 色卡信息 */} - - 色卡信息 - + return + + + + } title="领取色卡" + > + + {/* 客户信息 */} + + + 客户信息 + + + { - order.map((item) => { - return ( - - - - - - - - - {item.color_card_name} - - - - { - item.affiliation_product.map((product_color, index) => { - return {formatRemoveHashTag(product_color.code)} - }) - } - - - handleCountChange(e, item.id)} - onClickBtn={getInputValue} - unit="本" - minNum={0} - maxNum={999} - /> - - - + clientInfo.clientId !== -1 + ? (<> + + {clientInfo.clientName} + + + {clientInfo.clientPhone} + + + ) + : 选择领取客户 + } + + + + { + clientInfo.clientId !== -1 && } + > + } + + 添加色卡 + {/* 色卡信息 */} + + 色卡信息 + + { + order.map((item) => { + return ( + + + + - ) - }) - } - 快递到付 - - {/* 备注信息 */} - - - 备注信息 - - 填写/修改备注 - - + + + {item.color_card_name} + + + + { + item.affiliation_product.map((product_color, index) => { + return {formatRemoveHashTag(product_color.code)} + }) + } + + + handleCountChange(e, item.id)} + onClickBtn={getInputValue} + unit="本" + minNum={0} + maxNum={999} + /> + + + + + + ) + }) + } + 快递到付 + + {/* 备注信息 */} + + + 备注信息 + + 填写/修改备注 + - - - { remark || '尚未备注信息' } - - - - - - - 当前共 {order.length} 种色卡,共 {order.reduce((total, curr) => total + (curr.count || 1), 0)} 本 - - 提交订单 - + + + { remark || '尚未备注信息' } + + - - setShowDesc(false)}> - - - + + + 当前共 {order.length} 种色卡,共 {order.reduce((total, curr) => total + (curr.count || 1), 0)} 本 + + + 提交订单 + + + + setShowDesc(false)}> + + + } export default AddColorCard diff --git a/src/pages/sampleCutting/addSampleCutting/index.config.ts b/src/pages/sampleCutting/addSampleCutting/index.config.ts index 70948c5..835f5c2 100644 --- a/src/pages/sampleCutting/addSampleCutting/index.config.ts +++ b/src/pages/sampleCutting/addSampleCutting/index.config.ts @@ -1,3 +1,5 @@ export default { navigationBarTitleText: '领取剪样', + disableSwipeBack: true, + navigationStyle: 'custom', } diff --git a/src/pages/sampleCutting/addSampleCutting/index.module.scss b/src/pages/sampleCutting/addSampleCutting/index.module.scss index 3736ab5..9802cdd 100644 --- a/src/pages/sampleCutting/addSampleCutting/index.module.scss +++ b/src/pages/sampleCutting/addSampleCutting/index.module.scss @@ -4,6 +4,9 @@ page { display: flex; flex-flow: column nowrap; } +.backIcon { + transform: rotate(180deg); +} .layoutBlock { padding: 24px 34px; } diff --git a/src/pages/sampleCutting/addSampleCutting/index.tsx b/src/pages/sampleCutting/addSampleCutting/index.tsx index 73f1f48..6a48131 100644 --- a/src/pages/sampleCutting/addSampleCutting/index.tsx +++ b/src/pages/sampleCutting/addSampleCutting/index.tsx @@ -16,6 +16,7 @@ import Popup from '@/components/popup' import Remark from '@/pages/orderDetails/components/remark' import { formatRemoveHashTag } from '@/common/format' import { SubmitCutSampleOrder } from '@/api/sampleCutting' +import NavBar from '@/pages/order/components/NavBar' const AddColorCard = () => { // 获取选择的客户 @@ -310,7 +311,27 @@ const AddColorCard = () => { }, 0) }, [order]) + const onClickBack = () => { + Taro.showModal({ + content: '返回后页面数据将不回保留,确认返回?', + confirmColor: '#4a8dff', + success: ({ confirm }) => { + if (confirm) { + Taro.navigateBack({ + delta: 1, + }) + } + }, + }) + } + return + + + + } title="领取剪样" + > {/* 客户信息 */}