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="领取剪样"
+ >
{/* 客户信息 */}