Commit a5924f93 by 李伟康

```

feat(boutique): 更新商户信息获取逻辑

将 CreateOrder 和 DefeatOrder 组件中获取商户信息的方式进行调整,
从 userInfo.subLoginUser 中提取 shopMerchantId 和 shopMerchantName,
并将其用于调用 getMerchantRecordingSettings 接口,以确保数据准确性。
```
1 parent fc1f87bf
...@@ -728,11 +728,11 @@ export default { ...@@ -728,11 +728,11 @@ export default {
if (YQorderSetting) return resolve(YQorderSetting) if (YQorderSetting) return resolve(YQorderSetting)
else { else {
const { userInfo } = this const { userInfo } = this
let { merchantId, merchantName } = userInfo.subLoginUser let { shopMerchantId, merchantId, shopMerchantName } = userInfo
const data = await uni.$api.boutiqueApi.getMerchantRecordingSettings({ const data = await uni.$api.boutiqueApi.getMerchantRecordingSettings({
scene: 1, scene: 1,
merchantId, merchantId: shopMerchantId,
merchantName merchantName: shopMerchantName
}) })
if (data) { if (data) {
let YQorderSetting = {} let YQorderSetting = {}
......
...@@ -706,8 +706,13 @@ export default { ...@@ -706,8 +706,13 @@ export default {
if (YQorderSetting) return resolve(YQorderSetting) if (YQorderSetting) return resolve(YQorderSetting)
else { else {
const { userInfo } = this const { userInfo } = this
let { merchantId, merchantName } = userInfo.subLoginUser let { shopMerchantId, merchantId, shopMerchantName } = userInfo
const data = await uni.$api.boutiqueApi.getMerchantRecordingSettings({ scene: 1, merchantId, merchantName })
const data = await uni.$api.boutiqueApi.getMerchantRecordingSettings({
scene: 1,
merchantId: shopMerchantId,
merchantName: shopMerchantName
})
if (data) { if (data) {
let YQorderSetting = {} let YQorderSetting = {}
const keyMap = { const keyMap = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!