first commit
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/market/detail.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/market/detail.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/api.js");if(!Array){e.resolveComponent("mp-html")()}Math;const n={__name:"detail",setup(n){let r=e.ref({});return e.onLoad((async e=>{let n=await t.getContentInfo({id:e.id});r.value=n})),(t,n)=>e.e({a:e.t(e.unref(r).title),b:e.t(e.unref(r).createTime),c:e.unref(r).video},e.unref(r).video?{d:e.unref(r).video}:{},{e:e.p({content:e.unref(r).detail})})}};wx.createPage(n);
|
||||
6
unpackage/dist/build/mp-weixin/pages/market/detail.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/pages/market/detail.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/market/detail.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/market/detail.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30"><view style="font-size:34rpx">{{a}}</view><view style="height:20rpx"></view><view style="color:#999;font-size:30rpx">发布时间:{{b}}</view><view style="height:20rpx"></view><video wx:if="{{c}}" src="{{d}}" style="width:100%"></video><view style="height:20rpx"></view><mp-html wx:if="{{e}}" u-i="006554ff-0" bind:__l="__l" u-p="{{e}}"/><view style=""></view></view>
|
||||
0
unpackage/dist/build/mp-weixin/pages/market/detail.wxss
vendored
Normal file
0
unpackage/dist/build/mp-weixin/pages/market/detail.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/market/market.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/market/market.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/api.js");if(!Array){(e.resolveComponent("up-tabs")+e.resolveComponent("statusBar")+e.resolveComponent("z-paging")+e.resolveComponent("tabbar"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-tabs/u-tabs.js")+(()=>"../../components/statusBar/statusBar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js")+(()=>"../../components/tabbar/tabbar.js"))();const a={__name:"market",setup(a){const t=e.reactive({cid:4});let r=e.ref();e.onLoad((async()=>{e.index.hideTabBar();let a=await o.getContentCategoryList();r.value=a.records,t.cid=r.value[0].id,s.value.reload()})),e.onShow((async()=>{e.index.hideTabBar()}));let n=e=>{console.log(e),t.cid=e.id,s.value.reload()};const s=e.ref(null);let l=e.ref([]),c=()=>!s.value;e.onPullDownRefresh((()=>{c()||s.value.reload().catch((()=>{}))})),e.onPageScroll((e=>{c()||(s.value.updatePageScrollTop(e.scrollTop),e.scrollTop<10&&s.value.doChatRecordLoadMore())})),e.onReachBottom((()=>{c()||s.value.pageReachBottom()}));const u=(e,a)=>{const r={current:e,pageSize:a,...t};o.getContentList(r).then((e=>{s.value.complete(e.records)})).catch((e=>{s.value.complete(!1)}))};let i=o=>{e.index.navigateTo({url:o})};return(o,a)=>({a:e.o(e.unref(n)),b:e.p({list:e.unref(r)}),c:e.f(e.unref(l),((o,a,t)=>e.e({a:o.cover},o.cover?{b:o.cover}:{c:e.t(o.title)},{d:o,e:e.o((a=>e.unref(i)(`/pages/market/detail?id=${o.id}`)),o)}))),d:e.sr(s,"f3236f17-0",{k:"paging"}),e:e.o(u),f:e.o((o=>e.isRef(l)?l.value=o:l=o)),g:e.p({"use-page-scroll":!0,modelValue:e.unref(l)}),h:e.p({path:"/pages/market/market"})})}},t=e._export_sfc(a,[["__scopeId","data-v-f3236f17"]]);a.__runtimeHooks=1,wx.createPage(t);
|
||||
10
unpackage/dist/build/mp-weixin/pages/market/market.json
vendored
Normal file
10
unpackage/dist/build/mp-weixin/pages/market/market.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-tabs": "../../uni_modules/uview-plus/components/u-tabs/u-tabs",
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
|
||||
"tabbar": "../../components/tabbar/tabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/market/market.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/market/market.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30 data-v-f3236f17" style="padding-bottom:150rpx"><z-paging wx:if="{{g}}" class="r data-v-f3236f17" u-s="{{['d']}}" u-r="paging" bindquery="{{e}}" u-i="f3236f17-0" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><status-bar class="data-v-f3236f17" u-s="{{['d']}}" u-i="f3236f17-1,f3236f17-0" bind:__l="__l"><up-tabs wx:if="{{b}}" class="data-v-f3236f17" bindclick="{{a}}" u-i="f3236f17-2,f3236f17-1" bind:__l="__l" u-p="{{b}}"></up-tabs></status-bar><view wx:for="{{c}}" wx:for-item="i" wx:key="d" class="order_view data-v-f3236f17" bindtap="{{i.e}}"><image wx:if="{{i.a}}" class="data-v-f3236f17" src="{{i.b}}" mode="aspectFill" style="width:690rpx;height:248rpx;margin-top:30rpx;border-radius:10rpx"></image><view wx:else class="mt30 data-v-f3236f17" style="display:flex;align-items:center;height:80rpx;background-color:#fff;padding:0 30rpx;justify-content:space-between"><view class="data-v-f3236f17">{{i.c}}</view></view></view></z-paging><tabbar wx:if="{{h}}" class="data-v-f3236f17" u-i="f3236f17-3" bind:__l="__l" u-p="{{h}}"></tabbar></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/market/market.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/market/market.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.order_list_header.data-v-f3236f17{width:100%;height:100rpx;display:flex;align-items:center;flex-direction:row;justify-content:start;font-weight:700;font-size:36rpx;color:#232323}.order_list_header_view.data-v-f3236f17{position:relative;margin-right:50rpx}.order_list_header_view view.data-v-f3236f17{position:relative;z-index:99}.order_list_header_view_dian.data-v-f3236f17{position:absolute!important;bottom:0rpx;right:20rpx;width:66rpx;height:20rpx;background-color:#4874e5;border-radius:10rpx;z-index:1!important}
|
||||
Reference in New Issue
Block a user