Commit fa204f50 by 张立顺

feat 功能开发

1 parent ad46a336
...@@ -163,8 +163,7 @@ Component({ ...@@ -163,8 +163,7 @@ Component({
.getUserScene({ .getUserScene({
sceneType: String(userInfo.sceneType ?? ''), sceneType: String(userInfo.sceneType ?? ''),
phone: userInfo.phone, phone: userInfo.phone,
shopMerchantId: userInfo.shopMerchantId || '', merchantId: userInfo.shopMerchantId || ''
shopMerchantName: userInfo.shopMerchantName || ''
}) })
.then(res => { .then(res => {
const list = res?.code == 0 && res?.data?.length ? res.data : [] const list = res?.code == 0 && res?.data?.length ? res.data : []
......
...@@ -548,15 +548,12 @@ Page({ ...@@ -548,15 +548,12 @@ Page({
: freshUserInfo) || {} : freshUserInfo) || {}
try { try {
const { orderObj } = this.data const { orderObj } = this.data
const shopMerchantId = const merchantId =
orderObj?.merchantId || userInfo?.shopMerchantId || '' orderObj?.merchantId || userInfo?.shopMerchantId || ''
const shopMerchantName =
orderObj?.merchantName || userInfo?.shopMerchantName || ''
const res = await api.getUserScene({ const res = await api.getUserScene({
sceneType: String(userInfo.sceneType || ''), sceneType: String(userInfo.sceneType || ''),
phone: userInfo.phone, phone: userInfo.phone,
shopMerchantId, merchantId
shopMerchantName
}) })
const list = const list =
res?.code == 0 && res?.data?.length ? res.data : [] res?.code == 0 && res?.data?.length ? res.data : []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!