43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
var common_vendor = require("../../common/vendor.js");var _sfc_main = {
|
|
__name: "index",
|
|
setup: function setup(__props) {
|
|
var currentSwiperIndex = common_vendor.ref(0);
|
|
var onSwiperChange = function onSwiperChange(e) {
|
|
currentSwiperIndex.value = e.detail.current;
|
|
};
|
|
var navigateToDetail = function navigateToDetail(index) {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/index/detail?index=".concat(index)
|
|
});
|
|
};
|
|
var goToTerms = function goToTerms() {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/ming/index"
|
|
});
|
|
};
|
|
return function (_ctx, _cache) {
|
|
return {
|
|
a: common_vendor.o(onSwiperChange),
|
|
b: common_vendor.o(function ($event) {
|
|
return navigateToDetail(0);
|
|
}),
|
|
c: common_vendor.o(function ($event) {
|
|
return navigateToDetail(1);
|
|
}),
|
|
d: common_vendor.o(function ($event) {
|
|
return navigateToDetail(2);
|
|
}),
|
|
e: common_vendor.o(function ($event) {
|
|
return navigateToDetail(3);
|
|
}),
|
|
f: common_vendor.o(function ($event) {
|
|
return navigateToDetail(4);
|
|
}),
|
|
g: common_vendor.o(function ($event) {
|
|
return navigateToDetail(5);
|
|
}),
|
|
h: common_vendor.o(goToTerms)
|
|
};
|
|
};
|
|
}
|
|
};wx.createPage(_sfc_main); |