暂存code
This commit is contained in:
+207
-6
@@ -1,28 +1,229 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const CustomTabBar = () => "../../components/custom-tab-bar.js";
|
||||
const _sfc_main = {
|
||||
components: { CustomTabBar },
|
||||
data() {
|
||||
return {};
|
||||
return {
|
||||
swiperList: [
|
||||
"/static/home/banner04.png"
|
||||
],
|
||||
currentNum: 0,
|
||||
sortList: [
|
||||
{
|
||||
id: 1,
|
||||
icon: "/static/union/bh.png",
|
||||
name: "百货"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
icon: "/static/union/fs.png",
|
||||
name: "服饰"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
icon: "/static/union/wj.png",
|
||||
name: "五金"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
icon: "/static/union/sm.png",
|
||||
name: "数码"
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
icon: "/static/union/jd.png",
|
||||
name: "酒店"
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
icon: "/static/union/xc.png",
|
||||
name: "洗车"
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
icon: "/static/union/yy.png",
|
||||
name: "影院"
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
icon: "/static/union/sh.png",
|
||||
name: "商行"
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
icon: "/static/union/bld.png",
|
||||
name: "便利店"
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
icon: "/static/union/yb.png",
|
||||
name: "饮吧"
|
||||
}
|
||||
],
|
||||
rateValue: 4,
|
||||
contentList: [
|
||||
{
|
||||
id: 1,
|
||||
name: "好又多便利店",
|
||||
rate: 4,
|
||||
//
|
||||
price: 12,
|
||||
num: 1854,
|
||||
tabs: ["便利店", "建业路/英协花园"],
|
||||
address: "200m"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "好又多便利店",
|
||||
rate: 4,
|
||||
//
|
||||
price: 12,
|
||||
num: 1854,
|
||||
tabs: ["便利店", "建业路/英协花园"],
|
||||
address: "200m"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "好又多便利店",
|
||||
rate: 4,
|
||||
//
|
||||
price: 12,
|
||||
num: 1854,
|
||||
tabs: ["便利店", "建业路/英协花园"],
|
||||
address: "200m"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: "好又多便利店",
|
||||
rate: 4,
|
||||
//
|
||||
price: 12,
|
||||
num: 1854,
|
||||
tabs: ["便利店", "建业路/英协花园"],
|
||||
address: "200m"
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
_easycom_up_image2();
|
||||
const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
|
||||
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
|
||||
const _easycom_up_rate2 = common_vendor.resolveComponent("up-rate");
|
||||
const _component_CustomTabBar = common_vendor.resolveComponent("CustomTabBar");
|
||||
(_easycom_up_image2 + _easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_rate2 + _component_CustomTabBar)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
|
||||
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
|
||||
const _easycom_up_rate = () => "../../uni_modules/uview-plus/components/u-rate/u-rate.js";
|
||||
if (!Math) {
|
||||
_easycom_up_image();
|
||||
(_easycom_up_image + _easycom_up_search + _easycom_up_swiper + _easycom_up_rate)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
src: "/static/common/not_order.png",
|
||||
src: "/static/common/address3.png",
|
||||
width: "16",
|
||||
height: "18",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "18",
|
||||
height: "18",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.p({
|
||||
shape: "square",
|
||||
bgColor: "#EEEEEEFF",
|
||||
color: "#666666FF",
|
||||
showAction: false,
|
||||
placeholder: "搜索"
|
||||
}),
|
||||
d: common_vendor.t($data.currentNum + 1),
|
||||
e: common_vendor.t($data.swiperList.length),
|
||||
f: common_vendor.o((e) => $data.currentNum = e.current),
|
||||
g: common_vendor.p({
|
||||
list: $data.swiperList,
|
||||
height: "120",
|
||||
radius: "10",
|
||||
bgColor: "#ffffff00"
|
||||
}),
|
||||
h: common_vendor.f($data.sortList, (item, k0, i0) => {
|
||||
return {
|
||||
a: "04033f11-4-" + i0,
|
||||
b: common_vendor.p({
|
||||
src: item.icon,
|
||||
width: "40",
|
||||
height: "32",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t(item.name),
|
||||
d: item.id
|
||||
};
|
||||
}),
|
||||
i: common_vendor.p({
|
||||
src: "/static/common/address3.png",
|
||||
width: "10",
|
||||
height: "12",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
j: common_vendor.p({
|
||||
src: "/static/common/buttom.png",
|
||||
width: "10",
|
||||
height: "12",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
src: "/static/common/buttom.png",
|
||||
width: "10",
|
||||
height: "12",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
l: $data.contentList && $data.contentList.length !== 0
|
||||
}, $data.contentList && $data.contentList.length !== 0 ? {
|
||||
m: common_vendor.f($data.contentList, (item, k0, i0) => {
|
||||
return {
|
||||
a: "04033f11-8-" + i0,
|
||||
b: common_vendor.t(item.name),
|
||||
c: "04033f11-9-" + i0,
|
||||
d: common_vendor.o(($event) => item.rate = $event, item.id),
|
||||
e: common_vendor.p({
|
||||
size: "14",
|
||||
modelValue: item.rate
|
||||
}),
|
||||
f: common_vendor.t(item.price),
|
||||
g: common_vendor.t(item.num),
|
||||
h: common_vendor.t(item.tabs.join(" ")),
|
||||
i: "04033f11-10-" + i0,
|
||||
j: common_vendor.t(item.address),
|
||||
k: item.id
|
||||
};
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
src: "/static/common/bianlidian.jpg",
|
||||
width: "80",
|
||||
height: "80",
|
||||
bgColor: "#f1f6ff00",
|
||||
radius: "10"
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
src: "/static/common/address3.png",
|
||||
width: "10",
|
||||
height: "12",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
};
|
||||
} : {}, {
|
||||
p: common_vendor.p({
|
||||
tabIndex: 2
|
||||
})
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-04033f11"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
|
||||
"custom-tab-bar": "../../components/custom-tab-bar",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-search": "../../uni_modules/uview-plus/components/u-search/u-search",
|
||||
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
|
||||
"up-rate": "../../uni_modules/uview-plus/components/u-rate/u-rate"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="hash_union_warp data-v-04033f11"><view class="not_order_warp data-v-04033f11"><up-image wx:if="{{a}}" class="data-v-04033f11" u-i="04033f11-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="not_order_msg_warp data-v-04033f11">暂无相关数据</view></view></view>
|
||||
<view class="hash_union_warp data-v-04033f11"><view class="hash_union_content data-v-04033f11"><view class="content_header data-v-04033f11"><view class="header_union_comm data-v-04033f11"><up-image wx:if="{{a}}" class="data-v-04033f11" u-i="04033f11-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="msg_ data-v-04033f11">二七广场丹尼斯</view><view class="data-v-04033f11" style="margin-top:10rpx"><up-image wx:if="{{b}}" class="data-v-04033f11" u-i="04033f11-1" bind:__l="__l" u-p="{{b}}"></up-image></view></view><view class="header_union_comm data-v-04033f11"><view class="data-v-04033f11" style="width:200rpx"><up-search wx:if="{{c}}" class="data-v-04033f11" u-i="04033f11-2" bind:__l="__l" u-p="{{c}}"></up-search></view></view></view><up-swiper wx:if="{{g}}" class="data-v-04033f11" u-s="{{['indicator']}}" bindchange="{{f}}" u-i="04033f11-3" bind:__l="__l" u-p="{{g}}"><view class="indicator-num data-v-04033f11" slot="indicator"><text class="indicator-num__text data-v-04033f11">{{d}}/{{e}}</text></view></up-swiper><view class="sort_comm_warp data-v-04033f11"><view wx:for="{{h}}" wx:for-item="item" wx:key="d" class="sort_item_comm data-v-04033f11"><up-image wx:if="{{item.b}}" class="data-v-04033f11" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="sort_item_title_comm data-v-04033f11">{{item.c}}</view></view></view></view><view class="hash_union_nearby data-v-04033f11"><view class="header_ data-v-04033f11"><view class="left_ data-v-04033f11"><view class="item_comm data-v-04033f11"><view class="data-v-04033f11" style="margin-top:4rpx"><up-image wx:if="{{i}}" class="data-v-04033f11" u-i="04033f11-5" bind:__l="__l" u-p="{{i}}"></up-image></view><text class="data-v-04033f11" style="margin:0 10rpx">附近</text><view class="data-v-04033f11" style="margin-top:6rpx"><up-image wx:if="{{j}}" class="data-v-04033f11" u-i="04033f11-6" bind:__l="__l" u-p="{{j}}"></up-image></view></view><view class="item_comm data-v-04033f11" style="margin-left:10rpx"><text class="data-v-04033f11" style="margin-right:10rpx">综合排序</text><view class="data-v-04033f11" style="margin-top:6rpx"><up-image wx:if="{{k}}" class="data-v-04033f11" u-i="04033f11-7" bind:__l="__l" u-p="{{k}}"></up-image></view></view></view><view class="item_comm data-v-04033f11">查看更多</view></view><view class="content_ data-v-04033f11"><block wx:if="{{l}}"><view wx:for="{{m}}" wx:for-item="item" wx:key="k" class="content_item data-v-04033f11"><up-image wx:if="{{n}}" class="data-v-04033f11" u-i="{{item.a}}" bind:__l="__l" u-p="{{n}}"></up-image><view class="content_item_right data-v-04033f11"><view class="title_ data-v-04033f11">{{item.b}}</view><view class="rate_ data-v-04033f11"><up-rate wx:if="{{item.e}}" class="data-v-04033f11" u-i="{{item.c}}" bind:__l="__l" bindupdateModelValue="{{item.d}}" u-p="{{item.e}}"></up-rate><text class="data-v-04033f11">¥{{item.f}}/人</text><text class="data-v-04033f11">{{item.g}}去过</text></view><view class="data-v-04033f11">{{item.h}}</view><view class="address_ data-v-04033f11"><up-image wx:if="{{o}}" class="data-v-04033f11" u-i="{{item.i}}" bind:__l="__l" u-p="{{o}}"></up-image><text class="data-v-04033f11" style="margin-left:10rpx">{{item.j}}</text></view></view></view></block></view></view><custom-tab-bar wx:if="{{p}}" class="data-v-04033f11" u-i="04033f11-11" bind:__l="__l" u-p="{{p}}"/></view>
|
||||
@@ -23,8 +23,86 @@
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.hash_union_warp.data-v-04033f11 {
|
||||
height: 100vh;
|
||||
background-color: #FFFFFF;
|
||||
height: calc(100vh - 140rpx);
|
||||
overflow: hidden;
|
||||
}
|
||||
.hash_union_warp .hash_union_content.data-v-04033f11 {
|
||||
padding: 40rpx 20rpx;
|
||||
}
|
||||
.hash_union_warp .hash_union_content .content_header.data-v-04033f11 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 60rpx 0 20rpx;
|
||||
}
|
||||
.hash_union_warp .hash_union_content .header_union_comm.data-v-04033f11 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.hash_union_warp .hash_union_content .msg_.data-v-04033f11 {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #1A1A1A;
|
||||
margin: 0 10rpx;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby.data-v-04033f11 {
|
||||
background-color: #F5F5F5;
|
||||
border-radius: 30rpx 30rpx 0rpx 0rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .header_.data-v-04033f11 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .left_.data-v-04033f11 {
|
||||
display: flex;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .item_comm.data-v-04033f11 {
|
||||
background: #FFFFFF;
|
||||
border-radius: 28rpx;
|
||||
padding: 10rpx 30rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .content_.data-v-04033f11 {
|
||||
margin: 20rpx 0;
|
||||
height: calc(100vh - 1020rpx);
|
||||
overflow: auto;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .content_item.data-v-04033f11 {
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .content_item .content_item_right.data-v-04033f11 {
|
||||
margin-left: 20rpx;
|
||||
font-weight: 500;
|
||||
font-size: 18rpx;
|
||||
color: #999999;
|
||||
width: calc(100% - 40rpx);
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .content_item .title_.data-v-04033f11 {
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .content_item .rate_.data-v-04033f11 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 10rpx 0 6rpx;
|
||||
}
|
||||
.hash_union_warp .hash_union_nearby .content_item .address_.data-v-04033f11 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.hash_union_warp .not_order_warp.data-v-04033f11 {
|
||||
display: grid;
|
||||
|
||||
Reference in New Issue
Block a user