122 lines
3.9 KiB
JavaScript
122 lines
3.9 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
const specialBanner = () => "../../components/specialBanner.js";
|
|
const _sfc_main = {
|
|
components: {
|
|
specialBanner
|
|
},
|
|
onLoad(options) {
|
|
common_vendor.index.__f__("log", "at pages/home/product-details.vue:154", options.id);
|
|
},
|
|
data() {
|
|
return {
|
|
goodsNum: 1,
|
|
bannerList: [{
|
|
picture: "https://contentcms-bj.cdn.bcebos.com/cmspic/ab7e4834ebc54a128e243bdfd51444da.jpeg?x-bce-process=image/crop,x_0,y_0,w_619,h_337",
|
|
path: ""
|
|
}, {
|
|
picture: "https://contentcms-bj.cdn.bcebos.com/cmspic/ab7e4834ebc54a128e243bdfd51444da.jpeg?x-bce-process=image/crop,x_0,y_0,w_619,h_337",
|
|
path: ""
|
|
}, {
|
|
picture: "https://contentcms-bj.cdn.bcebos.com/cmspic/ab7e4834ebc54a128e243bdfd51444da.jpeg?x-bce-process=image/crop,x_0,y_0,w_619,h_337",
|
|
path: ""
|
|
}, {
|
|
picture: "https://contentcms-bj.cdn.bcebos.com/cmspic/ab7e4834ebc54a128e243bdfd51444da.jpeg?x-bce-process=image/crop,x_0,y_0,w_619,h_337",
|
|
path: ""
|
|
}],
|
|
swiperConfig: {
|
|
indicatorDots: false,
|
|
indicatorColor: "rgba(255, 255, 255, .4)",
|
|
indicatorActiveColor: "rgba(255, 255, 255, 1)",
|
|
autoplay: false,
|
|
interval: 3e3,
|
|
duration: 300,
|
|
circular: true,
|
|
previousMargin: "58rpx",
|
|
nextMargin: "58rpx"
|
|
}
|
|
};
|
|
},
|
|
methods: {
|
|
toBack() {
|
|
common_vendor.index.navigateBack();
|
|
},
|
|
openDetailsPop() {
|
|
this.$refs.detailsPop.open();
|
|
},
|
|
closeDetailsPop() {
|
|
this.$refs.detailsPop.close();
|
|
},
|
|
openPayPop() {
|
|
this.$refs.payPop.open();
|
|
},
|
|
closePayPop() {
|
|
this.$refs.payPop.close();
|
|
},
|
|
// 增加数量
|
|
increase(index) {
|
|
this.goodsNum++;
|
|
},
|
|
// 减少数量
|
|
decrease(index) {
|
|
if (this.goodsNum > 1) {
|
|
this.goodsNum--;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _component_special_banner = common_vendor.resolveComponent("special-banner");
|
|
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
|
(_component_special_banner + _easycom_uni_popup2)();
|
|
}
|
|
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
|
if (!Math) {
|
|
_easycom_uni_popup();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_assets._imports_0$2,
|
|
b: common_vendor.o(($event) => $options.toBack()),
|
|
c: common_assets._imports_1$2,
|
|
d: common_assets._imports_2$3,
|
|
e: common_vendor.o(($event) => $options.openDetailsPop()),
|
|
f: common_assets._imports_3$1,
|
|
g: common_vendor.p({
|
|
["banner-list"]: $data.bannerList,
|
|
["swiper-config"]: $data.swiperConfig
|
|
}),
|
|
h: common_assets._imports_4,
|
|
i: common_assets._imports_5,
|
|
j: common_vendor.o(($event) => $options.openPayPop()),
|
|
k: common_assets._imports_6,
|
|
l: common_assets._imports_7,
|
|
m: common_vendor.o(($event) => $options.closeDetailsPop()),
|
|
n: common_vendor.sr("detailsPop", "65d16733-1"),
|
|
o: common_vendor.p({
|
|
type: "bottom",
|
|
["safe-area"]: false
|
|
}),
|
|
p: common_assets._imports_7,
|
|
q: common_vendor.o(($event) => $options.closePayPop()()),
|
|
r: common_assets._imports_1$3,
|
|
s: common_assets._imports_9,
|
|
t: common_assets._imports_10,
|
|
v: common_vendor.o(($event) => $options.decrease(_ctx.index)),
|
|
w: common_vendor.t($data.goodsNum),
|
|
x: common_assets._imports_11,
|
|
y: common_vendor.o(($event) => $options.increase(_ctx.index)),
|
|
z: common_assets._imports_12,
|
|
A: common_assets._imports_13,
|
|
B: common_vendor.sr("payPop", "65d16733-2"),
|
|
C: common_vendor.p({
|
|
type: "bottom",
|
|
["safe-area"]: false
|
|
})
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/product-details.js.map
|