feat:初始提交uni-app项目
This commit is contained in:
97
unpackage/dist/dev/mp-weixin/pages/user/user.js
vendored
Normal file
97
unpackage/dist/dev/mp-weixin/pages/user/user.js
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const utils_system = require("../../utils/system.js");
|
||||
const api_apis = require("../../api/apis.js");
|
||||
if (!Array) {
|
||||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
||||
const _easycom_uni_load_more2 = common_vendor.resolveComponent("uni-load-more");
|
||||
(_easycom_uni_icons2 + _easycom_uni_load_more2)();
|
||||
}
|
||||
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||||
const _easycom_uni_load_more = () => "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js";
|
||||
if (!Math) {
|
||||
(_easycom_uni_icons + _easycom_uni_load_more)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "user",
|
||||
setup(__props) {
|
||||
const userinfo = common_vendor.ref(null);
|
||||
const getUserInfo = async () => {
|
||||
let res = await api_apis.apiUserInfo();
|
||||
userinfo.value = res.data;
|
||||
};
|
||||
getUserInfo();
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b, _c, _d, _e, _f;
|
||||
return common_vendor.e({
|
||||
a: userinfo.value
|
||||
}, userinfo.value ? {
|
||||
b: common_vendor.unref(utils_system.getNavBarHeight)() + "px",
|
||||
c: common_assets._imports_0,
|
||||
d: common_vendor.t(userinfo.value.IP),
|
||||
e: common_vendor.t(((_b = (_a = userinfo.value) == null ? void 0 : _a.address) == null ? void 0 : _b.city) || ((_d = (_c = userinfo.value) == null ? void 0 : _c.address) == null ? void 0 : _d.province) || ((_f = (_e = userinfo.value) == null ? void 0 : _e.address) == null ? void 0 : _f.country) || "中国"),
|
||||
f: common_vendor.p({
|
||||
type: "download-filled",
|
||||
size: "20",
|
||||
color: "#28b389"
|
||||
}),
|
||||
g: common_vendor.t(userinfo.value.downloadSize),
|
||||
h: common_vendor.p({
|
||||
type: "forward",
|
||||
size: "15",
|
||||
color: "#aaa"
|
||||
}),
|
||||
i: common_vendor.p({
|
||||
type: "star-filled",
|
||||
size: "20",
|
||||
color: "#28b389"
|
||||
}),
|
||||
j: common_vendor.t(userinfo.value.scoreSize),
|
||||
k: common_vendor.p({
|
||||
type: "forward",
|
||||
size: "15",
|
||||
color: "#aaa"
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
type: "chatboxes-filled",
|
||||
size: "20",
|
||||
color: "#28b389"
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
type: "forward",
|
||||
size: "15",
|
||||
color: "#aaa"
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
type: "notification-filled",
|
||||
size: "20",
|
||||
color: "#28b389"
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
type: "forward",
|
||||
size: "15",
|
||||
color: "#aaa"
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
type: "flag-filled",
|
||||
size: "20",
|
||||
color: "#28b389"
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
type: "forward",
|
||||
size: "15",
|
||||
color: "#aaa"
|
||||
})
|
||||
} : {
|
||||
r: common_vendor.unref(utils_system.getNavBarHeight)() + "px",
|
||||
s: common_vendor.p({
|
||||
status: "loading"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0f7520f0"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/user/user.js.map
|
||||
8
unpackage/dist/dev/mp-weixin/pages/user/user.json
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/pages/user/user.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
|
||||
"uni-load-more": "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/user/user.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/user/user.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" class="userLayout pageBg data-v-0f7520f0"><view class="data-v-0f7520f0" style="{{'height:' + b}}"></view><view class="userinfo data-v-0f7520f0"><view class="avatar data-v-0f7520f0"><image class="data-v-0f7520f0" src="{{c}}" mode="aspectFill"></image></view><view class="ip data-v-0f7520f0">{{d}}</view><view class="address data-v-0f7520f0">来自于: {{e}}</view></view><view class="section data-v-0f7520f0"><view class="list data-v-0f7520f0"><navigator class="data-v-0f7520f0" url="/pages/classlist/classlist?name=我的下载&type=download"><view class="row data-v-0f7520f0"><view class="left data-v-0f7520f0"><uni-icons wx:if="{{f}}" class="data-v-0f7520f0" u-i="0f7520f0-0" bind:__l="__l" u-p="{{f}}"></uni-icons><view class="text data-v-0f7520f0">我的下载</view></view><view class="right data-v-0f7520f0"><view class="text data-v-0f7520f0">{{g}}</view><uni-icons wx:if="{{h}}" class="data-v-0f7520f0" u-i="0f7520f0-1" bind:__l="__l" u-p="{{h}}"></uni-icons></view></view></navigator><navigator class="data-v-0f7520f0" url="/pages/classlist/classlist?name=我的评分&type=score"><view class="row data-v-0f7520f0"><view class="left data-v-0f7520f0"><uni-icons wx:if="{{i}}" class="data-v-0f7520f0" u-i="0f7520f0-2" bind:__l="__l" u-p="{{i}}"></uni-icons><view class="text data-v-0f7520f0">我的评分</view></view><view class="right data-v-0f7520f0"><view class="text data-v-0f7520f0">{{j}}</view><uni-icons wx:if="{{k}}" class="data-v-0f7520f0" u-i="0f7520f0-3" bind:__l="__l" u-p="{{k}}"></uni-icons></view></view></navigator><view class="row data-v-0f7520f0"><view class="left data-v-0f7520f0"><uni-icons wx:if="{{l}}" class="data-v-0f7520f0" u-i="0f7520f0-4" bind:__l="__l" u-p="{{l}}"></uni-icons><view class="text data-v-0f7520f0">联系客服</view></view><view class="right data-v-0f7520f0"><view class="text data-v-0f7520f0"></view><uni-icons wx:if="{{m}}" class="data-v-0f7520f0" u-i="0f7520f0-5" bind:__l="__l" u-p="{{m}}"></uni-icons></view><button open-type="contact" class="contact data-v-0f7520f0">联系客服</button></view></view></view><view class="section data-v-0f7520f0"><view class="list data-v-0f7520f0"><navigator class="data-v-0f7520f0" url="/pages/notice/detail?id=653507c6466d417a3718e94b&name=订阅更新"><view class="row data-v-0f7520f0"><view class="left data-v-0f7520f0"><uni-icons wx:if="{{n}}" class="data-v-0f7520f0" u-i="0f7520f0-6" bind:__l="__l" u-p="{{n}}"></uni-icons><view class="text data-v-0f7520f0">订阅更新</view></view><view class="right data-v-0f7520f0"><uni-icons wx:if="{{o}}" class="data-v-0f7520f0" u-i="0f7520f0-7" bind:__l="__l" u-p="{{o}}"></uni-icons></view></view></navigator><navigator class="data-v-0f7520f0" url="/pages/notice/detail?id=6536358ce0ec19c8d67fbe82&name=常见问题"><view class="row data-v-0f7520f0"><view class="left data-v-0f7520f0"><uni-icons wx:if="{{p}}" class="data-v-0f7520f0" u-i="0f7520f0-8" bind:__l="__l" u-p="{{p}}"></uni-icons><view class="text data-v-0f7520f0">常见问题</view></view><view class="right data-v-0f7520f0"><uni-icons wx:if="{{q}}" class="data-v-0f7520f0" u-i="0f7520f0-9" bind:__l="__l" u-p="{{q}}"></uni-icons></view></view></navigator></view></view></view><view wx:else class="loadingLayout data-v-0f7520f0"><view class="data-v-0f7520f0" style="{{'height:' + r}}"></view><uni-load-more wx:if="{{s}}" class="data-v-0f7520f0" u-i="0f7520f0-10" bind:__l="__l" u-p="{{s}}"></uni-load-more></view>
|
||||
97
unpackage/dist/dev/mp-weixin/pages/user/user.wxss
vendored
Normal file
97
unpackage/dist/dev/mp-weixin/pages/user/user.wxss
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.userLayout .userinfo.data-v-0f7520f0 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 50rpx 0;
|
||||
}
|
||||
.userLayout .userinfo .avatar.data-v-0f7520f0 {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.userLayout .userinfo .avatar image.data-v-0f7520f0 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.userLayout .userinfo .ip.data-v-0f7520f0 {
|
||||
font-size: 44rpx;
|
||||
color: #333;
|
||||
padding: 20rpx 0 5rpx;
|
||||
}
|
||||
.userLayout .userinfo .address.data-v-0f7520f0 {
|
||||
font-size: 28rpx;
|
||||
color: #aaa;
|
||||
}
|
||||
.userLayout .section.data-v-0f7520f0 {
|
||||
width: 690rpx;
|
||||
margin: 50rpx auto;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 10rpx;
|
||||
box-shadow: 0 0 30rpx rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
.userLayout .section .list .row.data-v-0f7520f0 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 30rpx;
|
||||
height: 100rpx;
|
||||
border-bottom: 1px solid #eee;
|
||||
position: relative;
|
||||
background: #fff;
|
||||
}
|
||||
.userLayout .section .list .row.data-v-0f7520f0:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.userLayout .section .list .row .left.data-v-0f7520f0 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.userLayout .section .list .row .left .text.data-v-0f7520f0 {
|
||||
padding-left: 20rpx;
|
||||
color: #666;
|
||||
}
|
||||
.userLayout .section .list .row .right.data-v-0f7520f0 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.userLayout .section .list .row .right .text.data-v-0f7520f0 {
|
||||
font-size: 28rpx;
|
||||
color: #aaa;
|
||||
}
|
||||
.userLayout .section .list .row button.data-v-0f7520f0 {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user