first commit
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/index/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),n=require("../../hooks/useNav.js"),t=require("../../api/api.js");if(!Array){(e.resolveComponent("statusBar")+e.resolveComponent("up-swiper")+e.resolveComponent("up-icon")+e.resolveComponent("up-grid-item")+e.resolveComponent("up-grid")+e.resolveComponent("tabbar"))()}Math||((()=>"../../components/statusBar/statusBar.js")+(()=>"../../uni_modules/uview-plus/components/u-swiper/u-swiper.js")+(()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js")+(()=>"../../uni_modules/uview-plus/components/u-grid/u-grid.js")+(()=>"../../components/tabbar/tabbar.js"))();const a={__name:"index",setup(a){const{nav:i,navTo:s}=n.useNav();e.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 r=e.ref(null);let p=e.ref([]);e.ref([]);let u=e.ref([]),c=e.ref([]);e.onShow((async()=>{e.index.hideTabBar()})),e.onLoad((async o=>{if(e.index.hideTabBar(),o.q){const n=function(e,o){let n,t=/([^?&=]+)=([^&]+)/g,a={};for(;null!==(n=t.exec(e));){let e=decodeURIComponent(n[1]),o=decodeURIComponent(n[2]);a[e]?Array.isArray(a[e])?a[e].push(o):a[e]=[a[e],o]:a[e]=o}return o?a[o]?a[o]:"":a}(decodeURIComponent(o.q));n.num&&e.index.setStorageSync("invite_code",n.num)}l();let n=await t.getContentList({cid:1});c.value=n.records,t.shopPage().then((e=>{p.value=e.records}))}));let l=async()=>{let e=await t.bannerInfo();u.value=e},d=()=>!r.value;e.onPullDownRefresh((()=>{d()||r.value.reload().catch((()=>{}))})),e.onPageScroll((e=>{d()||(r.value.updatePageScrollTop(e.scrollTop),e.scrollTop<10&&r.value.doChatRecordLoadMore())})),e.onReachBottom((()=>{d()||r.value.pageReachBottom()}));const m=e.reactive([{img:"/static/icon/dz.png",name:"我的电桩",path:"/pages/piles/piles",login:!0},{img:"/static/icon/zd.png",name:"我的账单",path:"/pages/mine/balanceIncome",login:!0},{img:"/static/icon/hd.png",name:"活动",path:"/pages/activity/index",login:!1},{img:"/static/icon/kf.png",name:"联系客服",login:!1,openType:"contact"}]);let g=o=>{e.index.navigateTo({url:"/pages/shop/shop?id="+o.id})},v=o=>{let n=u.value[o];n.jumpUrl&&e.index.navigateTo({url:n.jumpUrl})},f=()=>{e.index.switchTab({url:"/pages/market/market"})};return(n,t)=>({a:e.o(e.unref(v)),b:e.p({list:e.unref(u),keyName:"imageUrl",height:"388rpx",indicator:!0}),c:e.f(m,((o,n,t)=>({a:"fc75a286-4-"+t+",fc75a286-3-"+t,b:e.p({imgMode:"widthFix",name:o.img,size:27}),c:e.t(o.name),d:o.openType,e:n,f:e.o((n=>e.unref(s)(o.path,o.login,o.call)),n),g:"fc75a286-3-"+t+",fc75a286-2"}))),d:e.p({bgColor:"#fff"}),e:e.p({border:!1,col:"4"}),f:e.p({name:"arrow-right",color:"#4874e5",size:"14"}),g:e.o(((...o)=>e.unref(f)&&e.unref(f)(...o))),h:e.f(e.unref(c),((o,n,t)=>e.e({a:n<=2},n<=2?{b:e.t(o.title),c:`/pages/market/detail?id=${o.id}`}:{},{d:n}))),i:e.o((o=>e.unref(i)({path:"/pages/setMealList/setMealList"}))),j:o._imports_0,k:o._imports_1,l:e.f(e.unref(p),((o,n,t)=>({a:JSON.parse(o.picture)[0],b:e.t(o.goodsName),c:e.t(o.salePrice),d:o,e:e.o((n=>e.unref(g)(o)),o)}))),m:e.p({path:"/pages/index/index"})})}},i=e._export_sfc(a,[["__scopeId","data-v-fc75a286"]]);a.__runtimeHooks=1,wx.createPage(i);
|
||||
12
unpackage/dist/build/mp-weixin/pages/index/index.json
vendored
Normal file
12
unpackage/dist/build/mp-weixin/pages/index/index.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
|
||||
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid",
|
||||
"tabbar": "../../components/tabbar/tabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30 homeIndex data-v-fc75a286" style="padding-bottom:150rpx"><status-bar class="data-v-fc75a286" u-i="fc75a286-0" bind:__l="__l"/><up-swiper wx:if="{{b}}" class="data-v-fc75a286" bindclick="{{a}}" u-i="fc75a286-1" bind:__l="__l" u-p="{{b}}"></up-swiper><view class="mt30 data-v-fc75a286"><up-grid wx:if="{{e}}" class="data-v-fc75a286" u-s="{{['d']}}" u-i="fc75a286-2" bind:__l="__l" u-p="{{e}}"><up-grid-item wx:for="{{c}}" wx:for-item="item" wx:key="e" class="data-v-fc75a286" u-s="{{['d']}}" bindclick="{{item.f}}" u-i="{{item.g}}" bind:__l="__l" u-p="{{d}}"><button class="data-v-fc75a286" open-type="{{item.d}}" style="all:unset;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column"><view class="data-v-fc75a286" style="height:35rpx"></view><up-icon wx:if="{{item.b}}" class="data-v-fc75a286" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-icon><text class="data-v-fc75a286" style="font-size:24rpx;color:#333;margin-top:10rpx">{{item.c}}</text><view class="data-v-fc75a286" style="height:15rpx"></view></button></up-grid-item></up-grid></view><view class="mt30 data-v-fc75a286"><view class="home_notice data-v-fc75a286"><view class="home_notice_title data-v-fc75a286"><view class="data-v-fc75a286">系统公告</view><view style="font-size:28rpx" bindtap="{{g}}" class="u-flex-y-center data-v-fc75a286"> 更多 <up-icon wx:if="{{f}}" class="data-v-fc75a286" u-i="fc75a286-5" bind:__l="__l" u-p="{{f}}"></up-icon></view></view><view wx:for="{{h}}" wx:for-item="item" wx:key="d" class="data-v-fc75a286"><navigator wx:if="{{item.a}}" url="{{item.c}}" class="home_notice_view data-v-fc75a286"><view class="data-v-fc75a286">{{item.b}}</view></navigator></view></view></view><image class="data-v-fc75a286" bindtap="{{i}}" src="{{j}}" style="width:690rpx;margin:30rpx 0" mode="widthFix"></image><view class="shopList data-v-fc75a286"><image class="shopList_img data-v-fc75a286" src="{{k}}" mode="widthFix"></image><view class="shopList_list data-v-fc75a286"><view wx:for="{{l}}" wx:for-item="i" wx:key="d" class="shopList_list_view data-v-fc75a286" bindtap="{{i.e}}"><image class="shopList_list_view_img data-v-fc75a286" src="{{i.a}}" mode="aspectFit"></image><view class="shopList_list_view_tit data-v-fc75a286">{{i.b}}</view><view class="shopList_list_view_mon data-v-fc75a286"><view class="shopList_list_view_mon_left data-v-fc75a286">¥{{i.c}} 元</view></view></view></view></view><tabbar wx:if="{{m}}" class="data-v-fc75a286" u-i="fc75a286-6" bind:__l="__l" u-p="{{m}}"></tabbar></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.shopList.data-v-fc75a286{display:flex;align-items:center;flex-direction:column;justify-content:content}.shopList_img.data-v-fc75a286{width:308rpx;height:44rpx;margin-bottom:50rpx}.shopList_list.data-v-fc75a286{width:690rpx;display:flex;flex-wrap:wrap;justify-content:space-between}.shopList_list_view.data-v-fc75a286{border-radius:8rpx;width:334rpx;background-color:#fff;margin-bottom:30rpx;padding-bottom:20rpx}.shopList_list_view_img.data-v-fc75a286{width:334rpx;height:334rpx;border-radius:8rpx 8rpx 0rpx 0rpx}.shopList_list_view_tit.data-v-fc75a286{padding:10rpx 20rpx 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:30rpx;color:#232323}.shopList_list_view_mon.data-v-fc75a286{padding:0rpx 20rpx;display:flex;align-items:center;flex-direction:row;justify-content:space-between}.shopList_list_view_mon_left.data-v-fc75a286{font-weight:700;font-size:30rpx;color:#4874e5}.shopList_list_view_mon_right.data-v-fc75a286{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:700;border-radius:20rpx}.home_notice.data-v-fc75a286{background-color:#fff;border-radius:25rpx;padding:30rpx 40rpx}.home_notice_title.data-v-fc75a286{font-size:30rpx;font-weight:700;color:#4874e5;text-align:center;margin-bottom:30rpx;display:flex;align-items:center;justify-content:space-between}.home_notice_view.data-v-fc75a286{display:flex;align-items:center;justify-content:space-between;font-size:28rpx;padding-bottom:20rpx}.home_notice_view view.data-v-fc75a286{max-width:600rpx;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.homeIndex ::deep .u-grid-item.data-v-fc75a286{margin-top:0}.homeIndex button.data-v-fc75a286:after{all:unset}
|
||||
Reference in New Issue
Block a user