first commit
This commit is contained in:
35
unpackage/dist/dev/mp-alipay/pages/market/detail.js
vendored
Normal file
35
unpackage/dist/dev/mp-alipay/pages/market/detail.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
|
||||
_easycom_mp_html2();
|
||||
}
|
||||
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
|
||||
if (!Math) {
|
||||
_easycom_mp_html();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "detail",
|
||||
setup(__props) {
|
||||
let info = common_vendor.ref({});
|
||||
common_vendor.onLoad(async (options) => {
|
||||
let _res = await api_api.getContentInfo({ id: options.id });
|
||||
info.value = _res;
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(common_vendor.unref(info).title),
|
||||
b: common_vendor.t(common_vendor.unref(info).createTime),
|
||||
c: common_vendor.unref(info).video
|
||||
}, common_vendor.unref(info).video ? {
|
||||
d: common_vendor.unref(info).video
|
||||
} : {}, {
|
||||
e: common_vendor.p({
|
||||
content: common_vendor.unref(info).detail
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
my.createPage(_sfc_main);
|
||||
Reference in New Issue
Block a user