From 81268618fd56314de9a30c9b28717578671a9552 Mon Sep 17 00:00:00 2001 From: Haiyi <1021441632@qq.com> Date: Sat, 8 Oct 2022 15:20:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20style:=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=A8=A1=E5=9D=97=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 18 ++- src/common/constant.js | 4 +- src/components/BottomBtns/index.module.scss | 2 +- src/components/goodsItem/index.tsx | 2 +- .../components/PayPopup/index.module.scss | 6 +- src/pages/order/components/PayPopup/index.tsx | 138 +++++++++--------- .../components/itemList/index.module.scss | 4 +- src/pages/order/index.tsx | 6 + 8 files changed, 108 insertions(+), 72 deletions(-) diff --git a/config/index.js b/config/index.js index e60c781..51869ff 100644 --- a/config/index.js +++ b/config/index.js @@ -67,6 +67,19 @@ const config = { router: { mode: 'hash', }, + // 设置代理服务器转发 + // devServer: { + // proxy: { + // '/mp/': { + // target: Domain, + // pathRewrite: { + // '^/mp/': '' // 所以带有/api/请求的链接一律替换为空并追加域名请求 + // }, + // changeOrigin: true + // } + // } + // } + // }, output: { filename: 'js/[name].[hash].js', chunkFilename: 'js/[name].[chunkhash].js', @@ -79,6 +92,9 @@ const config = { filename: 'css/[name].[hash].css', chunkFilename: 'css/[name].[chunkhash].css', }, + devServer: { + https: true + }, publicPath: '/', staticDirectory: 'static', postcss: { @@ -87,7 +103,7 @@ const config = { config: {}, }, cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true + enable: true, // 默认为 false,如需使用 css modules 功能,则设为 true config: { namingPattern: 'module', // 转换模式,取值为 global/module generateScopedName: '[name]__[local]___[hash:base64:5]', diff --git a/src/common/constant.js b/src/common/constant.js index a0ac6bd..c7f5b9b 100644 --- a/src/common/constant.js +++ b/src/common/constant.js @@ -1,4 +1,4 @@ -// export const BASE_URL = CURRENT_BASE_URL +export const BASE_URL = CURRENT_BASE_URL // export const BASE_URL = `http://192.168.0.75:50001/lymarket` // export const BASE_URL = `http://192.168.0.89:50001/lymarket` // export const BASE_URL = `http://10.0.0.5:50001/lymarket` @@ -12,7 +12,7 @@ // export const BASE_URL = `https://dev.zzfzyc.com/lymarket` // 开发环境 // export const BASE_URL = `https://www.zzfzyc.com/lymarket` // 正式环境 // export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞 -export const BASE_URL = `http://192.168.1.7:50002/lymarket` // 添 +// export const BASE_URL = `http://192.168.1.7:50002/lymarket` // 添 // export const BASE_URL = `http://192.168.1.42:50001/lymarket` // 杰 // export const BASE_URL = `http://192.168.1.95:40001/lymarket` // 华 diff --git a/src/components/BottomBtns/index.module.scss b/src/components/BottomBtns/index.module.scss index 6902cd1..e077e2d 100644 --- a/src/components/BottomBtns/index.module.scss +++ b/src/components/BottomBtns/index.module.scss @@ -19,7 +19,7 @@ } .nextBuy { - margin-right: 24px; + // margin-right: 24px; width: 160px; height: 72px; border-radius: 40px; diff --git a/src/components/goodsItem/index.tsx b/src/components/goodsItem/index.tsx index 2204545..e87884e 100644 --- a/src/components/goodsItem/index.tsx +++ b/src/components/goodsItem/index.tsx @@ -80,7 +80,7 @@ export default memo((props: props) => { - props.onBlur?.(e, props.value.id)}> + props.onBlur?.(e, props.value.id)}> {/* onInputEven($event, props.value)}> */} diff --git a/src/pages/order/components/PayPopup/index.module.scss b/src/pages/order/components/PayPopup/index.module.scss index 853a6df..740395e 100644 --- a/src/pages/order/components/PayPopup/index.module.scss +++ b/src/pages/order/components/PayPopup/index.module.scss @@ -150,7 +150,7 @@ } .sure { - margin-top: 35px; + // margin-top: 35px; margin-left: 40px; width: 670px; height: 80px; @@ -169,4 +169,8 @@ height: 1500px; border-radius: 16px; border: 1px solid #f7f7f7; +} + +.safeBox { + height: 200px; } \ No newline at end of file diff --git a/src/pages/order/components/PayPopup/index.tsx b/src/pages/order/components/PayPopup/index.tsx index 8574e91..a4ab22b 100644 --- a/src/pages/order/components/PayPopup/index.tsx +++ b/src/pages/order/components/PayPopup/index.tsx @@ -9,7 +9,7 @@ import Taro from '@tarojs/taro' import Popup from '@/components/popup' import useCheckAuthorize from '@/use/useCheckAuthorize' import { alert } from '@/common/common' - +import IconFont from '@/components/iconfont/iconfont' interface Props { showPopup: true | false, popupClose?: () => void, @@ -106,79 +106,87 @@ export default memo((props: Props) => { return ( popupClose?.()}> - { - showSide && - - - ¥{formatPriceDiv(obj.wait_pay_amount)} - - - - 订单金额 - - + + { + showSide && + + ¥{formatPriceDiv(obj.wait_pay_amount)} - - - - 已付金额 + + + 订单金额 + + + ¥{formatPriceDiv(obj.wait_pay_amount)} + - - ¥{formatPriceDiv(obj.actual_amount)} + + + 已付金额 + + + ¥{formatPriceDiv(obj.actual_amount)} + - - - { - list.map((item, index) => { - return ( - clickItem?.(item)}> - - - - - - {item.name} - { - item.fonts && {item.fonts}{ - item.money !== "" ? "¥" : "" - }{item.money} - } + + { + list.map((item, index) => { + return ( + clickItem?.(item)}> + + + + {/* */} + + + {item.name} + { + item.fonts && {item.fonts}{ + item.money !== "" ? "¥" : "" + }{item.money} + } + + { + item.name !== '扫码支付' && item.name !== '线下汇款' && + + {/* */} + + + } + { + (item.name === '扫码支付' || item.name === '线下汇款') && + + // + } - { - item.name !== '扫码支付' && item.name !== '线下汇款' && - - - - } - { - (item.name === '扫码支付' || item.name === '线下汇款') && - - } - - ) - }) - } + ) + }) + } - - - } - { - showSide && handsurePay?.(props?.obj)}>确认交易 - } - { - !showSide && - - - showImage()}> - - } - { - !showSide && saveImageCheck()}>保存图片 - } + } + { + showSide && handsurePay?.(props?.obj)}>确认交易 + } + { + !showSide && + + + showImage()}> + + + + } + { + !showSide && saveImageCheck()}>保存图片 + } + + ) diff --git a/src/pages/order/components/itemList/index.module.scss b/src/pages/order/components/itemList/index.module.scss index 8695091..c64a221 100644 --- a/src/pages/order/components/itemList/index.module.scss +++ b/src/pages/order/components/itemList/index.module.scss @@ -1,7 +1,9 @@ .itemBox { margin-top: 38px; overflow: hidden; - width: 702px; + // width: 702px; + // margin-left: 24px; + margin-right: 24px; height: 560px; background: #FFFFFF; border-radius: 16px; diff --git a/src/pages/order/index.tsx b/src/pages/order/index.tsx index d1be8a2..e7e5a72 100644 --- a/src/pages/order/index.tsx +++ b/src/pages/order/index.tsx @@ -339,6 +339,7 @@ export default () => { fonts: "发货后3天内付款", isCheck: false, money: "", + color: '#ffffff' }, { id: 3, @@ -347,6 +348,7 @@ export default () => { fonts: "可用额度 ", money: "", isCheck: false, + color: '#ffffff' }, { iconfont: "icon-yue", @@ -355,6 +357,7 @@ export default () => { { iconfont: "icon-saomiao", name: "扫码支付", + color: '#ffffff' }, ]) const toPay = async (e, item) => { @@ -387,6 +390,7 @@ export default () => { payList.unshift({ id: 6, iconfont: "icon-xianxiahuizong", + color: '#ffffff', name: "货主自提", fonts: "", money: "", @@ -416,6 +420,7 @@ export default () => { { iconfont: "icon-saomiao", name: "扫码支付", + color: '#ffffff' }, ); @@ -428,6 +433,7 @@ export default () => { id: 6, iconfont: "icon-xianxiahuizong", name: "货主自提", + color: '#ffffff', fonts: "", money: "", isCheck: false,