feat:初始提交uni-app项目
This commit is contained in:
61
unpackage/dist/dev/mp-weixin/pages/classify/classify.js
vendored
Normal file
61
unpackage/dist/dev/mp-weixin/pages/classify/classify.js
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_apis = require("../../api/apis.js");
|
||||
if (!Array) {
|
||||
const _easycom_custom_nav_bar2 = common_vendor.resolveComponent("custom-nav-bar");
|
||||
const _easycom_theme_item2 = common_vendor.resolveComponent("theme-item");
|
||||
(_easycom_custom_nav_bar2 + _easycom_theme_item2)();
|
||||
}
|
||||
const _easycom_custom_nav_bar = () => "../../components/custom-nav-bar/custom-nav-bar.js";
|
||||
const _easycom_theme_item = () => "../../components/theme-item/theme-item.js";
|
||||
if (!Math) {
|
||||
(_easycom_custom_nav_bar + _easycom_theme_item)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "classify",
|
||||
setup(__props) {
|
||||
const classifyList = common_vendor.ref([]);
|
||||
const getClassify = async () => {
|
||||
let res = await api_apis.apiGetClassify({
|
||||
// select:true
|
||||
pageSize: 15
|
||||
});
|
||||
classifyList.value = res.data;
|
||||
};
|
||||
getClassify();
|
||||
common_vendor.onShareAppMessage((e) => {
|
||||
return {
|
||||
title: "hzb壁纸,精选分类",
|
||||
path: "/pages/classfy/classfy"
|
||||
};
|
||||
});
|
||||
common_vendor.onShareTimeline(() => {
|
||||
return {
|
||||
// 标题
|
||||
title: "hzb壁纸,精选分类",
|
||||
// 分享时候的图片地址。可以本地也可以网络图
|
||||
imageUrl: "/static/images/logo2.jpg"
|
||||
};
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
title: "分类"
|
||||
}),
|
||||
b: common_vendor.f(classifyList.value, (item, k0, i0) => {
|
||||
return {
|
||||
a: item._id,
|
||||
b: "6bcfa975-1-" + i0,
|
||||
c: common_vendor.p({
|
||||
item
|
||||
})
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6bcfa975"]]);
|
||||
_sfc_main.__runtimeHooks = 6;
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/classify/classify.js.map
|
||||
9
unpackage/dist/dev/mp-weixin/pages/classify/classify.json
vendored
Normal file
9
unpackage/dist/dev/mp-weixin/pages/classify/classify.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "分类",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"custom-nav-bar": "../../components/custom-nav-bar/custom-nav-bar",
|
||||
"theme-item": "../../components/theme-item/theme-item"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/classify/classify.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/classify/classify.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="classLayout pageBg data-v-6bcfa975"><custom-nav-bar wx:if="{{a}}" class="data-v-6bcfa975" u-i="6bcfa975-0" bind:__l="__l" u-p="{{a}}"></custom-nav-bar><view class="classify data-v-6bcfa975"><theme-item wx:for="{{b}}" wx:for-item="item" wx:key="a" class="data-v-6bcfa975" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"></theme-item></view></view>
|
||||
31
unpackage/dist/dev/mp-weixin/pages/classify/classify.wxss
vendored
Normal file
31
unpackage/dist/dev/mp-weixin/pages/classify/classify.wxss
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.classLayout .classify.data-v-6bcfa975 {
|
||||
padding: 30rpx;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 15rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user