first commit
This commit is contained in:
66
unpackage/dist/dev/mp-alipay/pages/setMealList/setMealList.acss
vendored
Normal file
66
unpackage/dist/dev/mp-alipay/pages/setMealList/setMealList.acss
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
.shopList.data-v-05db1d3a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: content;
|
||||
}
|
||||
.shopList_img.data-v-05db1d3a {
|
||||
width: 308rpx;
|
||||
height: 44rpx;
|
||||
margin-bottom: 50rpx;
|
||||
}
|
||||
.shopList_list.data-v-05db1d3a {
|
||||
width: 690rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.shopList_list_view.data-v-05db1d3a {
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
width: 334rpx;
|
||||
background-color: #fff;
|
||||
margin-bottom: 30rpx;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
.shopList_list_view_img.data-v-05db1d3a {
|
||||
width: 334rpx;
|
||||
height: 334rpx;
|
||||
border-radius: 8rpx 8rpx 0rpx 0rpx;
|
||||
}
|
||||
.shopList_list_view_tit.data-v-05db1d3a {
|
||||
padding: 10rpx 20rpx 0;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
/* 限制显示的行数 */
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.shopList_list_view_mon.data-v-05db1d3a {
|
||||
padding: 0rpx 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.shopList_list_view_mon_left.data-v-05db1d3a {
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #4874e5;
|
||||
}
|
||||
.shopList_list_view_mon_right.data-v-05db1d3a {
|
||||
width: 80rpx;
|
||||
height: 40rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
font-size: 26rpx;
|
||||
background-color: #4874e5;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/setMealList/setMealList.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/setMealList/setMealList.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30 data-v-05db1d3a" style="padding-bottom:150rpx"><z-paging class="data-v-05db1d3a" u-s="{{['d']}}" ref="__r" u-r="{{b}}" onQuery="{{c}}" u-i="05db1d3a-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"><view class="shopList data-v-05db1d3a"><view class="shopList_list data-v-05db1d3a"><view a:for="{{a}}" a:for-item="i" a:key="d" class="shopList_list_view data-v-05db1d3a" onTap="{{i.e}}"><image class="shopList_list_view_img data-v-05db1d3a" src="{{i.a}}" mode="aspectFit"></image><view class="shopList_list_view_tit data-v-05db1d3a">{{i.b}}</view><view class="shopList_list_view_mon data-v-05db1d3a"><view class="shopList_list_view_mon_left data-v-05db1d3a">¥{{i.c}} 元</view></view></view></view></view></z-paging></view>
|
||||
105
unpackage/dist/dev/mp-alipay/pages/setMealList/setMealList.js
vendored
Normal file
105
unpackage/dist/dev/mp-alipay/pages/setMealList/setMealList.js
vendored
Normal file
@@ -0,0 +1,105 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
require("../../store/index.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
_easycom_z_paging2();
|
||||
}
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
_easycom_z_paging();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "setMealList",
|
||||
setup(__props) {
|
||||
common_vendor.reactive([
|
||||
"https://cdn.uviewui.com/uview/swiper/swiper1.png",
|
||||
"https://cdn.uviewui.com/uview/swiper/swiper2.png",
|
||||
"https://cdn.uviewui.com/uview/swiper/swiper3.png"
|
||||
]);
|
||||
const paging = common_vendor.ref(null);
|
||||
let dataList = common_vendor.ref([]);
|
||||
let isPagingRefNotFound = () => {
|
||||
return !paging.value;
|
||||
};
|
||||
common_vendor.onPullDownRefresh(() => {
|
||||
if (isPagingRefNotFound())
|
||||
return;
|
||||
paging.value.reload().catch(() => {
|
||||
});
|
||||
});
|
||||
common_vendor.onPageScroll((e) => {
|
||||
if (isPagingRefNotFound())
|
||||
return;
|
||||
paging.value.updatePageScrollTop(e.scrollTop);
|
||||
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
|
||||
});
|
||||
common_vendor.onReachBottom(() => {
|
||||
if (isPagingRefNotFound())
|
||||
return;
|
||||
paging.value.pageReachBottom();
|
||||
});
|
||||
common_vendor.reactive([
|
||||
{
|
||||
img: "/static/icon/dz.png",
|
||||
name: "我的电桩",
|
||||
path: "/pages/piles/piles"
|
||||
},
|
||||
{
|
||||
img: "/static/icon/zz.png",
|
||||
name: "成为桩柱"
|
||||
},
|
||||
{
|
||||
img: "/static/icon/kf.png",
|
||||
name: "联系客服"
|
||||
},
|
||||
{
|
||||
img: "/static/icon/share.png",
|
||||
name: "分享海报"
|
||||
}
|
||||
]);
|
||||
let toShop = (e) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/setMeal/setMeal?id=" + e.id
|
||||
});
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
const params = {
|
||||
current: pageNo,
|
||||
pageSize
|
||||
};
|
||||
api_api.selectListByPage(params).then((res) => {
|
||||
paging.value.complete(res.records);
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.f(common_vendor.unref(dataList), (i, k0, i0) => {
|
||||
return {
|
||||
a: JSON.parse(i.picture)[0],
|
||||
b: common_vendor.t(i.packagesName),
|
||||
c: common_vendor.t(i.salePrice),
|
||||
d: i,
|
||||
e: common_vendor.o(($event) => common_vendor.unref(toShop)(i))
|
||||
};
|
||||
}),
|
||||
b: () => ({
|
||||
r: paging,
|
||||
k: "paging"
|
||||
}),
|
||||
c: common_vendor.o(queryList),
|
||||
d: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
|
||||
e: common_vendor.p({
|
||||
["use-page-scroll"]: true,
|
||||
modelValue: common_vendor.unref(dataList)
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-05db1d3a"]]);
|
||||
_sfc_main.__runtimeHooks = 1;
|
||||
my.createPage(MiniProgramPage);
|
||||
6
unpackage/dist/dev/mp-alipay/pages/setMealList/setMealList.json
vendored
Normal file
6
unpackage/dist/dev/mp-alipay/pages/setMealList/setMealList.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"defaultTitle": "组合套餐",
|
||||
"usingComponents": {
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user