|
|
@@ -101,6 +101,10 @@ import { onLoad, onShow, onReachBottom } from "@dcloudio/uni-app";
|
|
|
import { getSbmerchantInfo } from "@/api/merchant.js";
|
|
|
import merchantCate from "./components/merchant_cate.vue"
|
|
|
import { getGroomList as getGroomListApi, } from "@/api/store.js";
|
|
|
+import { footprintScan } from "@/api/merchant.js";
|
|
|
+import { useAppStore } from "@/stores/app";
|
|
|
+const appStore = useAppStore();
|
|
|
+
|
|
|
// 获取实时金价
|
|
|
import useRealGoldPrice from "@/hooks/useRealGoldPrice";
|
|
|
// 实时价格处理
|
|
|
@@ -158,10 +162,15 @@ onLoad((options) => {
|
|
|
onReachBottom(() => {
|
|
|
getGroomList();
|
|
|
});
|
|
|
-const getSbmerchantInfoFn = () => {
|
|
|
+const getSbmerchantInfoFn = async () => {
|
|
|
let data = {
|
|
|
merchantId:query.value.merchantId
|
|
|
}
|
|
|
+ let obj ={
|
|
|
+ merchantId:query.value.merchantId,
|
|
|
+ userId:appStore.userInfo.userId
|
|
|
+ }
|
|
|
+ await footprintScan(obj)
|
|
|
getSbmerchantInfo(data).then((res) => {
|
|
|
console.log(res);
|
|
|
merchantInfo.value = res.data;
|