pointsMall.js
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
_easycom_u_navbar2();
}
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
if (!Math) {
(_easycom_u_navbar + search + shops)();
}
const search = () => "../../componets/searchBox.js";
const shops = () => "../../componets/shops.js";
const _sfc_main = {
setup(__props) {
common_vendor.onShow(() => {
getCodegoods();
});
let shopList = common_vendor.ref([]);
const getCodegoods = async () => {
try {
const res = await api_index.getCodegood();
shopList.value = res;
console.log("getCodegood", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getCodegood", err);
}
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
bgColor: "#F6F8FA",
title: "\u79EF\u5206\u5546\u57CE",
placeholder: true,
autoBack: true
}),
b: common_vendor.p({
list: common_vendor.unref(shopList),
shopWidth: 344,
shopHeight: 344,
pointShop: true
}),
c: !common_vendor.unref(shopList).length
}, !common_vendor.unref(shopList).length ? {} : {});
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/pointsMall/pointsMall.vue"]]);
wx.createPage(MiniProgramPage);