From 88bd41128b570f7bfd9e4500551897996b0837e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=99=BE=E5=A3=B3?= <121141103+disk5@users.noreply.github.com> Date: Wed, 19 Jun 2024 19:29:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E6=87=92=E5=8A=A0=E8=BD=BD=EF=BC=8C=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CaseBox/CaseBox.vue | 219 +++++++++++ pages/index/index.vue | 100 ++++- pages/news/news.vue | 80 +++- pages/user/login.vue | 196 +++++++--- static/image/imgerr.png | Bin 0 -> 3380 bytes unpackage/dist/dev/mp-weixin/app.js | 2 +- unpackage/dist/dev/mp-weixin/comm/api.js | 8 - unpackage/dist/dev/mp-weixin/common/vendor.js | 348 ++++++++++++++++-- .../mp-weixin/components/CaseBox/CaseBox.js | 223 +++++++++++ .../mp-weixin/components/CaseBox/CaseBox.json | 8 + .../mp-weixin/components/CaseBox/CaseBox.wxml | 1 + .../mp-weixin/components/CaseBox/CaseBox.wxss | 76 ++++ .../dev/mp-weixin/components/cardVideo.js | 2 +- .../dev/mp-weixin/components/cardVideo.wxml | 2 +- .../dist/dev/mp-weixin/components/newsCard.js | 2 +- .../dev/mp-weixin/components/photosInfo.js | 2 +- .../dev/mp-weixin/components/photosInfo.wxml | 2 +- .../components/u-avatar/u-avatar.js | 4 +- .../components/u-button/u-button.js | 4 +- .../uview-plus/components/u-cell/u-cell.js | 4 +- .../components/u-grid-item/u-grid-item.js | 2 +- .../uview-plus/components/u-grid/u-grid.js | 2 +- .../uview-plus/components/u-icon/u-icon.js | 4 +- .../uview-plus/components/u-input/u-input.js | 2 +- .../uview-plus/components/u-line/u-line.js | 4 +- .../uview-plus/components/u-link/u-link.js | 4 +- .../components/u-list-item/u-list-item.js | 4 +- .../uview-plus/components/u-list/u-list.js | 4 +- .../u-loading-icon/u-loading-icon.js | 4 +- .../components/u-loadmore/u-loadmore.js | 99 +++++ .../components/u-loadmore/u-loadmore.json | 7 + .../components/u-loadmore/u-loadmore.wxml | 1 + .../components/u-loadmore/u-loadmore.wxss | 66 ++++ .../components/u-search/u-search.js | 2 +- .../u-swiper-indicator/u-swiper-indicator.js | 4 +- .../components/u-swiper/u-swiper.js | 2 +- .../uview-plus/components/u-tag/u-tag.js | 4 +- .../uview-plus/components/u-text/u-text.js | 2 +- .../components/u-transition/u-transition.js | 4 +- .../mp-weixin/pages/discuss/CommentItem.js | 2 +- .../dev/mp-weixin/pages/discuss/discuss.js | 2 +- .../dist/dev/mp-weixin/pages/index/index.js | 79 +++- .../dist/dev/mp-weixin/pages/index/index.json | 3 +- .../dist/dev/mp-weixin/pages/index/index.wxml | 2 +- .../dist/dev/mp-weixin/pages/index/index.wxss | 24 ++ .../mp-weixin/pages/intergral/intergral.js | 2 +- .../dist/dev/mp-weixin/pages/news/news.js | 73 +++- .../dist/dev/mp-weixin/pages/news/news.json | 3 +- .../dist/dev/mp-weixin/pages/news/news.wxml | 2 +- .../dist/dev/mp-weixin/pages/news/news.wxss | 13 +- .../dist/dev/mp-weixin/pages/user/login.js | 106 ++++-- .../dist/dev/mp-weixin/pages/user/login.json | 2 + .../dist/dev/mp-weixin/pages/user/login.wxml | 2 +- .../dist/dev/mp-weixin/pages/user/login.wxss | 33 +- .../dist/dev/mp-weixin/pages/user/user.js | 2 +- .../dist/dev/mp-weixin/pages/video/video.js | 4 +- .../dist/dev/mp-weixin/project.config.json | 4 +- .../dev/mp-weixin/static/image/imgerr.png | Bin 0 -> 3380 bytes unpackage/dist/dev/mp-weixin/utils/Auth.js | 4 - 59 files changed, 1619 insertions(+), 247 deletions(-) create mode 100644 components/CaseBox/CaseBox.vue create mode 100644 static/image/imgerr.png create mode 100644 unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.js create mode 100644 unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.json create mode 100644 unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.wxml create mode 100644 unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.wxss create mode 100644 unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.js create mode 100644 unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.json create mode 100644 unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxml create mode 100644 unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxss create mode 100644 unpackage/dist/dev/mp-weixin/static/image/imgerr.png diff --git a/components/CaseBox/CaseBox.vue b/components/CaseBox/CaseBox.vue new file mode 100644 index 0000000..59432cc --- /dev/null +++ b/components/CaseBox/CaseBox.vue @@ -0,0 +1,219 @@ + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 3d16496..2232481 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -22,10 +22,23 @@ - - - + + + + + + + + + + + + @@ -38,14 +51,51 @@ "/static/stu.png" ]); import newsCard from '@/components/newsCard.vue'; - const newsList = reactive([{ - title:"测试", - image:'/static/stu.png', - detile:"这是一个测试", - time:"2024-6-1" - }]) - + const caseList=ref([ + {},{},{}, + ]) + const isLoading=ref(false); + const status=ref("more"); + // const caseList = reactive([{ + // title:"测试", + // image:'/static/stu.png', + // detile:"这是一个测试", + // time:"2024-6-1" + // }]) + // 加载更多数据 + const loadMore=async()=>{ + console.log("加载更多..."); + status.value="loading"; + if (isLoading.value) return; + isLoading.value = true; + const newCases = await fetchCases(); + caseList.value.push({}); + caseList.value.push({}); + caseList.value.push({}); + caseList.value.push({}); + console.log("加载更多2..."); + isLoading.value = false; + status.value = "nomore"; + console.log("加载更多2..."); + } + const fetchCases=()=>{ + return new Promise((resolve) => { + setTimeout(() => { + const newCases = [ + { id: 1, title: "Case 1" }, + { id: 2, title: "Case 2" } + ]; + resolve(newCases); + }, 1000); + }); + } + const toTop=()=>{ + uni.pageScrollTo({ + scrollTop: 0, + duration: 300 + }); + } const baseList = ref([ { src:'/static/icon/video.png', @@ -113,7 +163,20 @@ } } - + .newlist{ + // flex: 1; + display: flex; + flex-flow: column; + // overflow: hidden; + } + .newList-t{ + position: sticky; + top: 60rpx; + height: 60rpx; + background-color: #fff; + z-index: 2; + // background-color: #000; + } .content { height: 100vh; background-color: #F7F8FA; @@ -137,4 +200,19 @@ } } + .case-list{ + scrollbar-width: none; + // height: 40vh; + // overflow: auto; + height: 100vh; + display: flexbox; + flex-flow: column; + background-color: #e2e2e2; + } + .list-itme{ + width: 98%; + height: 350rpx; + margin: 10rpx auto; + // background-color: #000; + } \ No newline at end of file diff --git a/pages/news/news.vue b/pages/news/news.vue index 2b51071..6fd954c 100644 --- a/pages/news/news.vue +++ b/pages/news/news.vue @@ -1,24 +1,80 @@ diff --git a/pages/user/login.vue b/pages/user/login.vue index 42c5f39..c6d303d 100644 --- a/pages/user/login.vue +++ b/pages/user/login.vue @@ -1,60 +1,146 @@ - +import { reactive, ref } from 'vue'; +// import { loginByCredentials } from "@/comm/api.js"; +import { setToken } from "@/utils/Auth.js"; + +// 输入框数据绑定 +const username = ref(''); +const password = ref(''); +const style=reactive({ + height:"70rpx", + margin: "10rpx", + textAlign: "center", + backgroundColor: "#fff", + boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)" +}) + +// 校验错误状态 +const usernameError = ref(false); +const passwordError = ref(false); + +// 按钮禁用状态 +const isButtonDisabled = ref(true); + +// 校验账号 +function validateUsername() { + usernameError.value = username.value.trim() === ''; + checkFormValidity(); +} + +// 校验密码 +function validatePassword() { + passwordError.value = password.value.trim() === ''; + checkFormValidity(); +} + +// 检查表单是否有效 +function checkFormValidity() { + isButtonDisabled.value = usernameError.value || passwordError.value || username.value.trim() === '' || password.value.trim() === ''; +} + +// 登录函数 +async function login() { + if (isButtonDisabled.value) return; + // try { + // const resp = await loginByCredentials({ + // username: username.value, + // password: password.value, + // }); + // uni.showToast({ + // icon: "none", + // title: "登录成功" + // }); + // setToken(resp.token); + // setTimeout(() => { + // uni.switchTab({ + // url: "/pages/user/user" + // }); + // }, 800); + // } catch (err) { + // console.log(err, "errorCatch"); + // uni.showToast({ + // icon: "none", + // title: "登录失败" + // }); + // } +} + + + - \ No newline at end of file diff --git a/static/image/imgerr.png b/static/image/imgerr.png new file mode 100644 index 0000000000000000000000000000000000000000..5b568b6696a77082882fb8ff96e9c69700bef8c3 GIT binary patch literal 3380 zcmcInX;f3!77l`fAVR?kIKU-75sMHKWiTX?NRUBhP$^a*Ar}ac+?WJIKxA-2!Gb6< zSy)IA83GE*P^Pwwf)two5d4rHj2`FpOyso#^EcvH%k3L!n{euPbWc z0ELW&pD?i1x22nbz7)$~2Iw4Y=i(LY?{$z2H$4Pkg3w|DD##)NLDT>m6CH$wf8a%n z`zvMy9QXiX`D5W9MY-BK0A>&a1Pt`{>w4)Uk$|D09`b;Jp&@b~fYL{z5c=ZVP#1Xs zZD5E-83CUzxHuYv?2UFJ9QhPWJi@|#Su8plfnc-QdhGpr5W@$7Jb3Wn3I__MD@N!t zIW!hANSDUkwaP#MnO+PEokf9YzzQRg1O>9NaIw;lDNyNav^3_YX%bHuB8W&wAocWD zQd$Mt+WtM1N?k)USx(@edjBmk(}hC^5l$cz3S@YR7tVXvN+>$oi~$l^5W@w60#;|y z!53mdOkao&m^m8)+9xP9GQ?)?{eZW%MO)FBEF#Sdv?5^PVg@}5g^V^fGD8^?4j7{F z1Vbd!9DmTv%p7lQj694qH^!s%%~pL0kXIlTq_I|g$$$D9eb#rS6sUA@WCF;boB_#4 z7!VcskTRO`c`XM%%lFBb{CO<~pY=tE#UNG|_Ad*)Y7$q^N_VYn#e=oN2WjGJXNb#M z>CL6R;!k3~gN=)MLPCO2DCF^YwY9aWsi|dUWj#GT!^6X^t*sdu8U6kJO-)VN+1Y$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yLLaQC=IBYcViY?N1{ zxpk0UNL-ren8w^!Sx}0bNQwA0HqzyIM1AB%*OOJQ-%GOZ^ zGE?)5S|Uw~t$BSOZC``5@Gxb|C+>+e#{oO#uyeN9o*cx^uzsq~xy{^~FD=2a{?f=O zf`>uC3kA~VleaRmD$iEWA68@!yygK64PjSHnY-eA!^0Vy>@@e_yph;&OCOJslen>9 zjf9asxOMDC^GF*FAw_V|NGhi{=MEIP<&>e#`8T8dyZH~x?~UW{#%>?ZyIE4HW9j|s z-aB>6l&l1#g^BGoQx%&6sA#b0yOX;UV>crtlN*$}URD4Xn}V;A-fAZv47a9E>o@`< z=-C&pekV?X@sB%dYX^Ul9hjIjk#LIEI?6MT!Auqp9f_kDoW|67FP&2aEAe@%Q)9<< z%I`-uH41Sl8G*0u0_xm1O%I+mO|%Q#1Q+@|xh*vs^W7EezBc3N_Ib(2N^LLC4B%oa z+69`eU9($ zD`@Jp&kt>!T$G%eZBc1ioXZLI(@oVW)GU`GZ##lTFz4PIrKz~{s(SUKrLX_|lE@fw z|BXrwg~l=y>6f!DdiN!6t@dGbj1#O8uO#^X#jeg2tKI5Dl{rAKT%g7&7Y>6ypD*EL zoo5bJzUSl;3f0Husup8*_XY5}-L!MA1!Ek`AAB=cftRhafUvQ|yy@DIb(?WFnZN99 zeb4QLo@!A&P9D>z<)t>?5>92wN+IYi`{qNZp!HpCY)1}_ar%|S<5Y_+QFQw*tyooz zv|+Qn#UqS{J4?yW^2M@t>(P|_0%RIKYp}ic`1z$@oA{+!*qO`zv)OM%e(lO0jfno9 z%XH(EsINv-XEa~iWvYj1VY;^cpEmmcdUyWo2L9o!vUdFV$5j9Dm=XqGmQsbi`CX0` Ts=T3VTIi*fa7Ey2(pU literal 0 HcmV?d00001 diff --git a/unpackage/dist/dev/mp-weixin/app.js b/unpackage/dist/dev/mp-weixin/app.js index 1b7bb3b..9975be8 100644 --- a/unpackage/dist/dev/mp-weixin/app.js +++ b/unpackage/dist/dev/mp-weixin/app.js @@ -21,7 +21,7 @@ const _sfc_main = { console.log("App Hide"); } }; -const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/App.vue"]]); +const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/App.vue"]]); function createApp() { const app = common_vendor.createSSRApp(App); return { diff --git a/unpackage/dist/dev/mp-weixin/comm/api.js b/unpackage/dist/dev/mp-weixin/comm/api.js index 64ddf19..027d21e 100644 --- a/unpackage/dist/dev/mp-weixin/comm/api.js +++ b/unpackage/dist/dev/mp-weixin/comm/api.js @@ -1,17 +1,9 @@ "use strict"; const utils_http = require("../utils/http.js"); -function loginByCode(data) { - return utils_http.http({ - url: "/api/wxLogin", - data, - method: "post" - }); -} function userInfo() { return utils_http.http({ url: "/api/getUserInfo", method: "get" }); } -exports.loginByCode = loginByCode; exports.userInfo = userInfo; diff --git a/unpackage/dist/dev/mp-weixin/common/vendor.js b/unpackage/dist/dev/mp-weixin/common/vendor.js index 8658b21..8bc0f8e 100644 --- a/unpackage/dist/dev/mp-weixin/common/vendor.js +++ b/unpackage/dist/dev/mp-weixin/common/vendor.js @@ -1292,8 +1292,8 @@ function populateParameters(fromRes, toRes) { appVersion: "1.0.0", appVersionCode: "100", appLanguage: getAppLanguage(hostLanguage), - uniCompileVersion: "4.07", - uniRuntimeVersion: "4.07", + uniCompileVersion: "4.08", + uniRuntimeVersion: "4.08", uniPlatform: "mp-weixin", deviceBrand, deviceModel: model, @@ -8417,7 +8417,7 @@ const defProps = { ...Transition, ...Upload }; -const props$g = { +const props$i = { props: { // 搜索框形状,round-圆形,square-方形 shape: { @@ -9045,6 +9045,14 @@ function priceFormat(number2, decimals = 0, decimalPoint = ".", thousandsSeparat } return s2.join(dec); } +function formValidate(instance, event) { + const formItem = $parent.call(instance, "u-form-item"); + const form = $parent.call(instance, "u-form"); + if (formItem && form) { + form.validateField(formItem.prop, () => { + }, event); + } +} function page() { const pages = getCurrentPages(); return `/${pages[pages.length - 1].route || ""}`; @@ -9276,7 +9284,7 @@ const mixin = { } } }; -const props$f = { +const props$h = { props: { // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名 list: { @@ -9401,7 +9409,7 @@ const props$f = { } } }; -const props$e = { +const props$g = { props: { // 宫格的name name: { @@ -9415,7 +9423,7 @@ const props$e = { } } }; -const props$d = { +const props$f = { props: { // 分成几列 col: { @@ -9434,7 +9442,7 @@ const props$d = { } } }; -const props$c = { +const props$e = { props: { // 主题颜色 type: { @@ -9656,7 +9664,101 @@ const openType = { } } }; -const props$b = { +const props$d = { + props: { + // 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态 + status: { + type: String, + default: () => defProps.loadmore.status + }, + // 组件背景色 + bgColor: { + type: String, + default: () => defProps.loadmore.bgColor + }, + // 是否显示加载中的图标 + icon: { + type: Boolean, + default: () => defProps.loadmore.icon + }, + // 字体大小 + fontSize: { + type: [String, Number], + default: () => defProps.loadmore.fontSize + }, + // 图标大小 + iconSize: { + type: [String, Number], + default: () => defProps.loadmore.iconSize + }, + // 字体颜色 + color: { + type: String, + default: () => defProps.loadmore.color + }, + // 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆 + loadingIcon: { + type: String, + default: () => defProps.loadmore.loadingIcon + }, + // 加载前的提示语 + loadmoreText: { + type: String, + default: () => defProps.loadmore.loadmoreText + }, + // 加载中提示语 + loadingText: { + type: String, + default: () => defProps.loadmore.loadingText + }, + // 没有更多的提示语 + nomoreText: { + type: String, + default: () => defProps.loadmore.nomoreText + }, + // 在“没有更多”状态下,是否显示粗点 + isDot: { + type: Boolean, + default: () => defProps.loadmore.isDot + }, + // 加载中图标的颜色 + iconColor: { + type: String, + default: () => defProps.loadmore.iconColor + }, + // 上边距 + marginTop: { + type: [String, Number], + default: () => defProps.loadmore.marginTop + }, + // 下边距 + marginBottom: { + type: [String, Number], + default: () => defProps.loadmore.marginBottom + }, + // 高度,单位px + height: { + type: [String, Number], + default: () => defProps.loadmore.height + }, + // 是否显示左边分割线 + line: { + type: Boolean, + default: () => defProps.loadmore.line + }, + // 线条颜色 + lineColor: { + type: String, + default: () => defProps.loadmore.lineColor + }, + // 是否虚线,true-虚线,false-实线 + dashed: { + type: Boolean, + default: () => defProps.loadmore.dashed + } + } +}; +const props$c = { props: { // 头像图片路径(不能为相对路径) src: { @@ -9734,7 +9836,7 @@ const props$b = { } } }; -const props$a = { +const props$b = { props: { // 标题 title: { @@ -9844,7 +9946,7 @@ const props$a = { } } }; -const props$9 = { +const props$a = { props: { // 用于滚动到指定item anchor: { @@ -9853,7 +9955,7 @@ const props$9 = { } } }; -const props$8 = { +const props$9 = { props: { // 控制是否出现滚动条,仅nvue有效 showScrollbar: { @@ -9952,6 +10054,192 @@ const props$8 = { } } }; +const props$8 = { + props: { + // 绑定的值 + modelValue: { + type: [String, Number], + default: () => defProps.input.value + }, + // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数 + // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序 + // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序 + // text-文本输入键盘 + type: { + type: String, + default: () => defProps.input.type + }, + // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true, + // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序 + fixed: { + type: Boolean, + default: () => defProps.input.fixed + }, + // 是否禁用输入框 + disabled: { + type: Boolean, + default: () => defProps.input.disabled + }, + // 禁用状态时的背景色 + disabledColor: { + type: String, + default: () => defProps.input.disabledColor + }, + // 是否显示清除控件 + clearable: { + type: Boolean, + default: () => defProps.input.clearable + }, + // 是否密码类型 + password: { + type: Boolean, + default: () => defProps.input.password + }, + // 最大输入长度,设置为 -1 的时候不限制最大长度 + maxlength: { + type: [String, Number], + default: () => defProps.input.maxlength + }, + // 输入框为空时的占位符 + placeholder: { + type: String, + default: () => defProps.input.placeholder + }, + // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/ + placeholderClass: { + type: String, + default: () => defProps.input.placeholderClass + }, + // 指定placeholder的样式 + placeholderStyle: { + type: [String, Object], + default: () => defProps.input.placeholderStyle + }, + // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效 + showWordLimit: { + type: Boolean, + default: () => defProps.input.showWordLimit + }, + // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档 + // https://uniapp.dcloud.io/component/input + // https://uniapp.dcloud.io/component/textarea + confirmType: { + type: String, + default: () => defProps.input.confirmType + }, + // 点击键盘右下角按钮时是否保持键盘不收起,H5无效 + confirmHold: { + type: Boolean, + default: () => defProps.input.confirmHold + }, + // focus时,点击页面的时候不收起键盘,微信小程序有效 + holdKeyboard: { + type: Boolean, + default: () => defProps.input.holdKeyboard + }, + // 自动获取焦点 + // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点 + focus: { + type: Boolean, + default: () => defProps.input.focus + }, + // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效 + autoBlur: { + type: Boolean, + default: () => defProps.input.autoBlur + }, + // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效 + disableDefaultPadding: { + type: Boolean, + default: () => defProps.input.disableDefaultPadding + }, + // 指定focus时光标的位置 + cursor: { + type: [String, Number], + default: () => defProps.input.cursor + }, + // 输入框聚焦时底部与键盘的距离 + cursorSpacing: { + type: [String, Number], + default: () => defProps.input.cursorSpacing + }, + // 光标起始位置,自动聚集时有效,需与selection-end搭配使用 + selectionStart: { + type: [String, Number], + default: () => defProps.input.selectionStart + }, + // 光标结束位置,自动聚集时有效,需与selection-start搭配使用 + selectionEnd: { + type: [String, Number], + default: () => defProps.input.selectionEnd + }, + // 键盘弹起时,是否自动上推页面 + adjustPosition: { + type: Boolean, + default: () => defProps.input.adjustPosition + }, + // 输入框内容对齐方式,可选值为:left|center|right + inputAlign: { + type: String, + default: () => defProps.input.inputAlign + }, + // 输入框字体的大小 + fontSize: { + type: [String, Number], + default: () => defProps.input.fontSize + }, + // 输入框字体颜色 + color: { + type: String, + default: () => defProps.input.color + }, + // 输入框前置图标 + prefixIcon: { + type: String, + default: () => defProps.input.prefixIcon + }, + // 前置图标样式,对象或字符串 + prefixIconStyle: { + type: [String, Object], + default: () => defProps.input.prefixIconStyle + }, + // 输入框后置图标 + suffixIcon: { + type: String, + default: () => defProps.input.suffixIcon + }, + // 后置图标样式,对象或字符串 + suffixIconStyle: { + type: [String, Object], + default: () => defProps.input.suffixIconStyle + }, + // 边框类型,surround-四周边框,bottom-底部边框,none-无边框 + border: { + type: String, + default: () => defProps.input.border + }, + // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会 + readonly: { + type: Boolean, + default: () => defProps.input.readonly + }, + // 输入框形状,circle-圆形,square-方形 + shape: { + type: String, + default: () => defProps.input.shape + }, + // 用于处理或者过滤输入框内容的方法 + formatter: { + type: [Function, null], + default: () => defProps.input.formatter + }, + // 是否忽略组件内对文本合成系统事件的处理 + ignoreCompositionEvent: { + type: Boolean, + default: true + } + } +}; const props$7 = { props: { // 是否细边框 @@ -10851,6 +11139,7 @@ exports.deepMerge = deepMerge; exports.e = e; exports.error = error; exports.f = f; +exports.formValidate = formValidate; exports.getPx = getPx; exports.icons = icons; exports.index = index; @@ -10859,26 +11148,29 @@ exports.mpMixin = mpMixin; exports.n = n; exports.o = o; exports.onLoad = onLoad; +exports.onMounted = onMounted; exports.onShow = onShow; exports.openType = openType; exports.p = p; -exports.props = props$g; -exports.props$1 = props$f; -exports.props$10 = props$6; -exports.props$11 = props$5; -exports.props$12 = props$4; -exports.props$13 = props$3; -exports.props$14 = props$2; -exports.props$15 = props$1; -exports.props$16 = props; -exports.props$2 = props$e; -exports.props$3 = props$d; -exports.props$4 = props$c; -exports.props$5 = props$b; -exports.props$6 = props$a; -exports.props$7 = props$9; -exports.props$8 = props$8; -exports.props$9 = props$7; +exports.props = props$i; +exports.props$1 = props$h; +exports.props$10 = props$8; +exports.props$11 = props$7; +exports.props$12 = props$6; +exports.props$13 = props$5; +exports.props$14 = props$4; +exports.props$15 = props$3; +exports.props$16 = props$2; +exports.props$17 = props$1; +exports.props$18 = props; +exports.props$2 = props$g; +exports.props$3 = props$f; +exports.props$4 = props$e; +exports.props$5 = props$d; +exports.props$6 = props$c; +exports.props$7 = props$b; +exports.props$8 = props$a; +exports.props$9 = props$9; exports.random = random; exports.reactive = reactive; exports.ref = ref; diff --git a/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.js b/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.js new file mode 100644 index 0000000..6ceb68b --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.js @@ -0,0 +1,223 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +if (!Array) { + const _easycom_up_text2 = common_vendor.resolveComponent("up-text"); + const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar"); + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + (_easycom_up_text2 + _easycom_up_avatar2 + _easycom_up_icon2)(); +} +const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js"; +const _easycom_up_avatar = () => "../../node-modules/uview-plus/components/u-avatar/u-avatar.js"; +const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; +if (!Math) { + (_easycom_up_text + _easycom_up_avatar + _easycom_up_icon)(); +} +const _sfc_main = { + __name: "CaseBox", + props: { + id: { + type: String, + default: "" + }, + title: { + type: String, + default: "标题" + }, + text: { + type: String, + default: "正文嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻徐" + }, + data: { + type: String, + default: "日期" + }, + cover: { + type: String, + default: "/static/image/imgerr.png" + }, + userImage: { + type: String, + default: "地址" + }, + userName: { + type: String, + default: "作者" + }, + userId: { + type: String, + default: "" + }, + isLike: { + type: Boolean, + default: false + }, + likeNumber: { + type: Number, + default: 0 + }, + isComments: { + type: Boolean, + default: false + }, + commentsNumber: { + type: Number, + default: 0 + }, + isCollection: { + type: Boolean, + default: false + }, + collectionNumber: { + type: Number, + default: 0 + } + }, + setup(__props) { + const errorImg = () => { + info.cover = "/static/image/imgerr.png"; + }; + common_vendor.ref("name"); + const props = __props; + const info = common_vendor.reactive({ + id: "文章id", + title: "标题", + cover: "封面地址", + text: "正文嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻徐", + data: "2024-11-11", + userImage: "", + userName: "作者", + userId: "作者id", + isLike: false, + likeNumber: 0, + isComments: false, + commentsNumber: 0, + isCollection: false, + collectionNumber: 0 + }); + const toLike = () => { + info.isLike = !info.isLike; + if (info.isLike) { + info.likeNumber++; + } else { + info.likeNumber--; + } + }; + const toComments = () => { + info.isComments = !info.isComments; + if (info.isComments) { + info.commentsNumber++; + } else { + info.commentsNumber--; + } + }; + const toCollection = () => { + info.isCollection = !info.isCollection; + if (info.isCollection) { + info.collectionNumber++; + } else { + info.collectionNumber--; + } + }; + const ggg = () => { + info.id = props.id; + info.title = props.title; + info.cover = props.cover; + info.text = props.text; + info.userImage = props.userImage; + info.userName = props.userName; + info.userId = props.userId; + info.isLike = props.isLike; + info.likeNumber = props.likeNumber; + info.isComments = props.isComments; + info.commentsNumber = props.commentsNumber; + info.isCollection = props.isCollection; + info.collectionNumber = props.collectionNumber; + }; + common_vendor.onMounted(() => { + ggg(); + console.log("属性", props); + console.log("属性2", info); + }); + return (_ctx, _cache) => { + return common_vendor.e({ + a: info.cover, + b: common_vendor.o(errorImg), + c: common_vendor.p({ + lines: 1, + text: info.title, + bold: "true", + size: "30rpx" + }), + d: common_vendor.p({ + lines: 3, + text: info.text + }), + e: common_vendor.p({ + lines: 1, + text: info.data, + bold: "true" + }), + f: common_vendor.p({ + src: info.userImage + }), + g: common_vendor.p({ + lines: 1, + text: info.userName + }), + h: info.isLike + }, info.isLike ? { + i: common_vendor.o(toLike), + j: common_vendor.p({ + name: "heart-fill", + color: "#ff0004", + size: "28" + }) + } : { + k: common_vendor.o(toLike), + l: common_vendor.p({ + name: "heart", + color: "#ff0004", + size: "28" + }) + }, { + m: common_vendor.t(info.likeNumber == 0 ? "" : info.likeNumber), + n: info.isComments + }, info.isComments ? { + o: common_vendor.o(toComments), + p: common_vendor.p({ + name: "chat-fill", + color: "#ff0004", + size: "28" + }) + } : { + q: common_vendor.o(toComments), + r: common_vendor.p({ + name: "chat", + color: "#ff0004", + size: "28" + }) + }, { + s: common_vendor.t(info.commentsNumber == 0 ? "" : info.commentsNumber), + t: info.isCollection + }, info.isCollection ? { + v: common_vendor.o(toCollection), + w: common_vendor.p({ + name: "star-fill", + color: "#ff0004", + size: "28" + }) + } : { + x: common_vendor.o(toCollection), + y: common_vendor.p({ + name: "star", + color: "#ff0004", + size: "28" + }) + }, { + z: common_vendor.t(info.collectionNumber == 0 ? "" : info.collectionNumber) + }); + }; + } +}; +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/components/CaseBox/CaseBox.vue"]]); +wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.json b/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.json new file mode 100644 index 0000000..6576fbd --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "up-text": "../../node-modules/uview-plus/components/u-text/u-text", + "up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar", + "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon" + } +} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.wxml b/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.wxml new file mode 100644 index 0000000..43303e3 --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.wxml @@ -0,0 +1 @@ +加载 {{m}} {{s}} {{z}} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.wxss b/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.wxss new file mode 100644 index 0000000..f488b1f --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/components/CaseBox/CaseBox.wxss @@ -0,0 +1,76 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.cardbox-top { + height: 60%; + width: 100%; + margin: 0 auto; + display: flex; + justify-content: space-around; + align-items: center; +} +.cardbox { + height: 100%; + color: #000; + background-color: #fff; + display: flex; + flex-flow: column; + justify-content: space-around; + align-items: center; + border-radius: 20rpx; +} +.cardbox-img { + height: 90%; + width: 47%; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; +} +.cardbox-text { + width: 47%; + height: 90%; + display: flex; + flex-flow: column; + justify-content: space-around; + align-items: center; +} +.cardbox-bttom { + width: 90%; + height: 30%; + overflow: hidden; + display: flex; + justify-content: space-between; +} +.cardbox-bttom .cardbox-bttom-img { + display: flex; + flex: 1; + justify-content: space-around; +} +.cardbox-icon { + display: flex; + justify-content: space-around; + align-items: center; +} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/components/cardVideo.js b/unpackage/dist/dev/mp-weixin/components/cardVideo.js index cd3515b..012420d 100644 --- a/unpackage/dist/dev/mp-weixin/components/cardVideo.js +++ b/unpackage/dist/dev/mp-weixin/components/cardVideo.js @@ -69,5 +69,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { f: common_vendor.t($props.Videos.titleName) }; } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/components/cardVideo.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/components/cardVideo.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/components/cardVideo.wxml b/unpackage/dist/dev/mp-weixin/components/cardVideo.wxml index c92db63..a856a26 100644 --- a/unpackage/dist/dev/mp-weixin/components/cardVideo.wxml +++ b/unpackage/dist/dev/mp-weixin/components/cardVideo.wxml @@ -1 +1 @@ -{{f}} \ No newline at end of file +{{f}} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/components/newsCard.js b/unpackage/dist/dev/mp-weixin/components/newsCard.js index 9fd33f0..2f381cc 100644 --- a/unpackage/dist/dev/mp-weixin/components/newsCard.js +++ b/unpackage/dist/dev/mp-weixin/components/newsCard.js @@ -16,5 +16,5 @@ const _sfc_main = { }; } }; -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/components/newsCard.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/components/newsCard.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/components/photosInfo.js b/unpackage/dist/dev/mp-weixin/components/photosInfo.js index 7e3a89f..9895853 100644 --- a/unpackage/dist/dev/mp-weixin/components/photosInfo.js +++ b/unpackage/dist/dev/mp-weixin/components/photosInfo.js @@ -46,5 +46,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { e: common_vendor.t($props.cardData.footName) }; } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/components/photosInfo.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/components/photosInfo.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/components/photosInfo.wxml b/unpackage/dist/dev/mp-weixin/components/photosInfo.wxml index 486ebce..46e1074 100644 --- a/unpackage/dist/dev/mp-weixin/components/photosInfo.wxml +++ b/unpackage/dist/dev/mp-weixin/components/photosInfo.wxml @@ -1 +1 @@ -{{e}} \ No newline at end of file +{{e}} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.js index 360a592..9034649 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.js @@ -3,7 +3,7 @@ const common_vendor = require("../../../../common/vendor.js"); const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y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z"; const _sfc_main = { name: "u-avatar", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$5], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$6], data() { return { // 如果配置randomBgColor参数为true,在图标或者文字的模式下,会随机从中取出一个颜色值当做背景色 @@ -132,5 +132,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { p: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)) }); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-14a988f2"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-avatar/u-avatar.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-14a988f2"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-avatar/u-avatar.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js index 87aae7a..1621205 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-button", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.button, common_vendor.openType, common_vendor.props$9], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.button, common_vendor.openType, common_vendor.props$11], data() { return {}; }, @@ -195,5 +195,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { G: common_vendor.n($options.bemClass) }); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-461e713c"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-button/u-button.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-461e713c"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-button/u-button.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.js index 9abef3d..d2189b5 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.js @@ -5,7 +5,7 @@ const _sfc_main = { data() { return {}; }, - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$6], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$7], computed: { titleTextStyle() { return common_vendor.addStyle(this.titleStyle); @@ -95,5 +95,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { D: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)) }); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4243719"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-cell/u-cell.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4243719"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-cell/u-cell.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-grid-item/u-grid-item.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-grid-item/u-grid-item.js index 29d3527..c993867 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-grid-item/u-grid-item.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-grid-item/u-grid-item.js @@ -107,5 +107,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { d: common_vendor.s($options.itemStyle) } : {}); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d5274fb5"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-grid-item/u-grid-item.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d5274fb5"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-grid-item/u-grid-item.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-grid/u-grid.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-grid/u-grid.js index 6ad36ea..27ef522 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-grid/u-grid.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-grid/u-grid.js @@ -64,5 +64,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { a: common_vendor.s($options.gridStyle) }; } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-85602471"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-grid/u-grid.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-85602471"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-grid/u-grid.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-icon/u-icon.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-icon/u-icon.js index 6ea89fe..b60fa52 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-icon/u-icon.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-icon/u-icon.js @@ -6,7 +6,7 @@ const _sfc_main = { return {}; }, emits: ["click"], - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$10], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12], computed: { uClasses() { let classes = []; @@ -88,5 +88,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { t: common_vendor.n("u-icon--" + _ctx.labelPos) }); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1c933a9a"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-icon/u-icon.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1c933a9a"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-icon/u-icon.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-input/u-input.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-input/u-input.js index 4d987e6..d1cde61 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-input/u-input.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-input/u-input.js @@ -209,5 +209,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { J: common_vendor.s($options.wrapperStyle) }); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5904192e"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-input/u-input.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5904192e"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-input/u-input.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js index 7a8daf3..76b6475 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-line", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$14], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$16], computed: { lineStyle() { const style = {}; @@ -30,5 +30,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { a: common_vendor.s($options.lineStyle) }; } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bbd9963c"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-line/u-line.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bbd9963c"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-line/u-line.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js index b9a0548..bef9e2c 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-link", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$13], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$15], computed: { linkStyle() { const style = { @@ -40,5 +40,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { d: common_vendor.s($options.addStyle(_ctx.customStyle)) }; } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dedad317"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-link/u-link.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dedad317"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-link/u-link.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-list-item/u-list-item.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-list-item/u-list-item.js index 051a401..ef845e2 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-list-item/u-list-item.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-list-item/u-list-item.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-list-item", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$7], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$8], data() { return { // 节点信息 @@ -70,5 +70,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { c: common_vendor.n(`u-list-item-${_ctx.anchor}`) }; } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-32197ac9"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-list-item/u-list-item.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-32197ac9"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-list-item/u-list-item.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-list/u-list.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-list/u-list.js index 8632b69..48632a7 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-list/u-list.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-list/u-list.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-list", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$8], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$9], watch: { scrollIntoView(n) { this.scrollIntoViewById(n); @@ -114,5 +114,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { v: common_vendor.o((...args) => $options.refresherabort && $options.refresherabort(...args)) }; } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9ad03670"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-list/u-list.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9ad03670"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-list/u-list.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js index 9965db1..990d86a 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-loading-icon", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$11], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$13], data() { return { // Array.form可以通过一个伪数组对象创建指定长度的数组 @@ -96,5 +96,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { t: common_vendor.n(_ctx.vertical && "u-loading-icon--vertical") }) : {}); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-00752c6d"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-loading-icon/u-loading-icon.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-00752c6d"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-loading-icon/u-loading-icon.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.js new file mode 100644 index 0000000..fe6ed75 --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.js @@ -0,0 +1,99 @@ +"use strict"; +const common_vendor = require("../../../../common/vendor.js"); +const _sfc_main = { + name: "u-loadmore", + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$5], + data() { + return { + // 粗点 + dotText: "●" + }; + }, + computed: { + // 加载的文字显示的样式 + loadTextStyle() { + return { + color: this.color, + fontSize: common_vendor.addUnit(this.fontSize), + lineHeight: common_vendor.addUnit(this.fontSize), + backgroundColor: this.bgColor + }; + }, + // 显示的提示文字 + showText() { + let text = ""; + if (this.status == "loadmore") + text = this.loadmoreText; + else if (this.status == "loading") + text = this.loadingText; + else if (this.status == "nomore" && this.isDot) + text = this.dotText; + else + text = this.nomoreText; + return text; + } + }, + emits: ["loadmore"], + methods: { + addStyle: common_vendor.addStyle, + addUnit: common_vendor.addUnit, + loadMore() { + if (this.status == "loadmore") + this.$emit("loadmore"); + } + } +}; +if (!Array) { + const _easycom_u_line2 = common_vendor.resolveComponent("u-line"); + const _easycom_u_loading_icon2 = common_vendor.resolveComponent("u-loading-icon"); + (_easycom_u_line2 + _easycom_u_loading_icon2)(); +} +const _easycom_u_line = () => "../u-line/u-line.js"; +const _easycom_u_loading_icon = () => "../u-loading-icon/u-loading-icon.js"; +if (!Math) { + (_easycom_u_line + _easycom_u_loading_icon)(); +} +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return common_vendor.e({ + a: _ctx.line + }, _ctx.line ? { + b: common_vendor.p({ + length: "140rpx", + color: _ctx.lineColor, + hairline: false, + dashed: _ctx.dashed + }) + } : {}, { + c: _ctx.status === "loading" && _ctx.icon + }, _ctx.status === "loading" && _ctx.icon ? { + d: common_vendor.p({ + color: _ctx.iconColor, + size: _ctx.iconSize, + mode: _ctx.loadingIcon + }) + } : {}, { + e: common_vendor.t($options.showText), + f: common_vendor.s($options.loadTextStyle), + g: common_vendor.n(_ctx.status == "nomore" && _ctx.isDot == true ? "u-loadmore__content__dot-text" : "u-loadmore__content__text"), + h: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args)), + i: common_vendor.n(_ctx.status == "loadmore" || _ctx.status == "nomore" ? "u-more" : ""), + j: _ctx.line + }, _ctx.line ? { + k: common_vendor.p({ + length: "140rpx", + color: _ctx.lineColor, + hairline: false, + dashed: _ctx.dashed + }) + } : {}, { + l: common_vendor.s($options.addStyle(_ctx.customStyle)), + m: common_vendor.s({ + backgroundColor: _ctx.bgColor, + marginBottom: $options.addUnit(_ctx.marginBottom), + marginTop: $options.addUnit(_ctx.marginTop), + height: $options.addUnit(_ctx.height) + }) + }); +} +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5817e4cf"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-loadmore/u-loadmore.vue"]]); +wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.json b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.json new file mode 100644 index 0000000..8a324fe --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "u-line": "../u-line/u-line", + "u-loading-icon": "../u-loading-icon/u-loading-icon" + } +} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxml b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxml new file mode 100644 index 0000000..9cc3c81 --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxml @@ -0,0 +1 @@ +{{e}} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxss b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxss new file mode 100644 index 0000000..36dcc5f --- /dev/null +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxss @@ -0,0 +1,66 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.u-empty.data-v-5817e4cf, +.u-empty__wrap.data-v-5817e4cf, +.u-tabs.data-v-5817e4cf, +.u-tabs__wrapper.data-v-5817e4cf, +.u-tabs__wrapper__scroll-view-wrapper.data-v-5817e4cf, +.u-tabs__wrapper__scroll-view.data-v-5817e4cf, +.u-tabs__wrapper__nav.data-v-5817e4cf, +.u-tabs__wrapper__nav__line.data-v-5817e4cf { + display: flex; + flex-direction: column; + flex-shrink: 0; + flex-grow: 0; + flex-basis: auto; + align-items: stretch; + align-content: flex-start; +} +.u-loadmore.data-v-5817e4cf { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + flex: 1; +} +.u-loadmore__content.data-v-5817e4cf { + margin: 0 15px; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; +} +.u-loadmore__content__icon-wrap.data-v-5817e4cf { + margin-right: 8px; +} +.u-loadmore__content__text.data-v-5817e4cf { + font-size: 14px; + color: #606266; +} +.u-loadmore__content__dot-text.data-v-5817e4cf { + font-size: 15px; + color: #909193; +} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-search/u-search.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-search/u-search.js index b20de57..854d9e9 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-search/u-search.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-search/u-search.js @@ -157,5 +157,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { F: common_vendor.s($options.addStyle(_ctx.customStyle)) }); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ed789780"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-search/u-search.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ed789780"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-search/u-search.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.js index 934af58..1996cfc 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-swiper-indicator", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$14], data() { return { lineWidth: 22 @@ -50,5 +50,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { }) } : {}); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23112adb"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23112adb"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper/u-swiper.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper/u-swiper.js index dbaabf0..c5d12e7 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper/u-swiper.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-swiper/u-swiper.js @@ -159,5 +159,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { w: $options.addUnit(_ctx.radius) }); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-eda42115"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-swiper/u-swiper.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-eda42115"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-swiper/u-swiper.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-tag/u-tag.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-tag/u-tag.js index f25ec02..976a2ac 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-tag/u-tag.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-tag/u-tag.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-tag", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$15], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$17], data() { return {}; }, @@ -121,5 +121,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { }) }); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23de980f"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-tag/u-tag.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23de980f"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-tag/u-tag.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.js index 3617471..d5c7d20 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.js @@ -118,5 +118,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { O: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)) }) : {}); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5fec1d8b"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-text/u-text.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5fec1d8b"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-text/u-text.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-transition/u-transition.js b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-transition/u-transition.js index c47c2e5..c49649b 100644 --- a/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-transition/u-transition.js +++ b/unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-transition/u-transition.js @@ -33,7 +33,7 @@ const _sfc_main = { } }, // 将mixin挂在到组件中,实际上为一个vue格式对象。 - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transition, common_vendor.props$16], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transition, common_vendor.props$18], watch: { show: { handler(newVal) { @@ -54,5 +54,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { e: common_vendor.o((...args) => _ctx.noop && _ctx.noop(...args)) } : {}); } -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0573594d"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-transition/u-transition.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0573594d"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-transition/u-transition.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/pages/discuss/CommentItem.js b/unpackage/dist/dev/mp-weixin/pages/discuss/CommentItem.js index 87db342..d0dabf0 100644 --- a/unpackage/dist/dev/mp-weixin/pages/discuss/CommentItem.js +++ b/unpackage/dist/dev/mp-weixin/pages/discuss/CommentItem.js @@ -73,5 +73,5 @@ const _sfc_main = { }; } }; -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ed332cbd"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/discuss/CommentItem.vue"]]); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ed332cbd"], ["__file", "D:/uniapp1/gree_leran/pages/discuss/CommentItem.vue"]]); wx.createComponent(Component); diff --git a/unpackage/dist/dev/mp-weixin/pages/discuss/discuss.js b/unpackage/dist/dev/mp-weixin/pages/discuss/discuss.js index 8638882..1ee8b77 100644 --- a/unpackage/dist/dev/mp-weixin/pages/discuss/discuss.js +++ b/unpackage/dist/dev/mp-weixin/pages/discuss/discuss.js @@ -88,5 +88,5 @@ const _sfc_main = { }; } }; -const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9635802b"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/discuss/discuss.vue"]]); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9635802b"], ["__file", "D:/uniapp1/gree_leran/pages/discuss/discuss.vue"]]); wx.createPage(MiniProgramPage); diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.js b/unpackage/dist/dev/mp-weixin/pages/index/index.js index 2dd1c41..418358a 100644 --- a/unpackage/dist/dev/mp-weixin/pages/index/index.js +++ b/unpackage/dist/dev/mp-weixin/pages/index/index.js @@ -6,29 +6,66 @@ if (!Array) { const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item"); const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid"); const _easycom_up_text2 = common_vendor.resolveComponent("up-text"); - (_easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_text2)(); + const _easycom_CaseBox2 = common_vendor.resolveComponent("CaseBox"); + const _easycom_up_loadmore2 = common_vendor.resolveComponent("up-loadmore"); + (_easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_text2 + _easycom_CaseBox2 + _easycom_up_loadmore2)(); } const _easycom_up_search = () => "../../node-modules/uview-plus/components/u-search/u-search.js"; const _easycom_up_swiper = () => "../../node-modules/uview-plus/components/u-swiper/u-swiper.js"; const _easycom_up_grid_item = () => "../../node-modules/uview-plus/components/u-grid-item/u-grid-item.js"; const _easycom_up_grid = () => "../../node-modules/uview-plus/components/u-grid/u-grid.js"; const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js"; +const _easycom_CaseBox = () => "../../components/CaseBox/CaseBox.js"; +const _easycom_up_loadmore = () => "../../node-modules/uview-plus/components/u-loadmore/u-loadmore.js"; if (!Math) { - (_easycom_up_search + _easycom_up_swiper + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_text + newsCard)(); + (_easycom_up_search + _easycom_up_swiper + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_text + _easycom_CaseBox + _easycom_up_loadmore)(); } -const newsCard = () => "../../components/newsCard.js"; const _sfc_main = { __name: "index", setup(__props) { const swipe = common_vendor.reactive([ "/static/stu.png" ]); - const newsList = common_vendor.reactive([{ - title: "测试", - image: "/static/stu.png", - detile: "这是一个测试", - time: "2024-6-1" - }]); + const caseList = common_vendor.ref([ + {}, + {}, + {} + ]); + const isLoading = common_vendor.ref(false); + const status = common_vendor.ref("more"); + const loadMore = async () => { + console.log("加载更多..."); + status.value = "loading"; + if (isLoading.value) + return; + isLoading.value = true; + await fetchCases(); + caseList.value.push({}); + caseList.value.push({}); + caseList.value.push({}); + caseList.value.push({}); + console.log("加载更多2..."); + isLoading.value = false; + status.value = "nomore"; + console.log("加载更多2..."); + }; + const fetchCases = () => { + return new Promise((resolve) => { + setTimeout(() => { + const newCases = [ + { id: 1, title: "Case 1" }, + { id: 2, title: "Case 2" } + ]; + resolve(newCases); + }, 1e3); + }); + }; + const toTop = () => { + common_vendor.index.pageScrollTo({ + scrollTop: 0, + duration: 300 + }); + }; const baseList = common_vendor.ref([ { src: "/static/icon/video.png", @@ -56,7 +93,7 @@ const _sfc_main = { }); } return (_ctx, _cache) => { - return { + return common_vendor.e({ a: common_vendor.o(($event) => _ctx.keyword = $event), b: common_vendor.p({ placeholder: "日照香炉生紫烟", @@ -74,7 +111,7 @@ const _sfc_main = { b: common_vendor.t(baseListItem.title), c: baseListIndex, d: common_vendor.o(($event) => NavicatToBaseItems(baseListItem), baseListIndex), - e: "5cad4243-3-" + i0 + ",5cad4243-2" + e: "adbc9592-3-" + i0 + ",adbc9592-2" }; }), e: common_vendor.p({ @@ -86,17 +123,23 @@ const _sfc_main = { type: "primary", text: "新闻" }), - g: common_vendor.f(newsList, (i, k0, i0) => { + g: common_vendor.o(toTop), + h: common_vendor.f(caseList.value, (item, index, i0) => { return { - a: "5cad4243-5-" + i0, - b: common_vendor.p({ - info: i - }) + a: "adbc9592-5-" + i0, + b: index }; + }), + i: isLoading.value + }, isLoading.value ? { + j: common_vendor.p({ + status: status.value }) - }; + } : {}, { + k: common_vendor.o(loadMore) + }); }; } }; -const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/index/index.vue"]]); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/pages/index/index.vue"]]); wx.createPage(MiniProgramPage); diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.json b/unpackage/dist/dev/mp-weixin/pages/index/index.json index 9e39e00..5dabacd 100644 --- a/unpackage/dist/dev/mp-weixin/pages/index/index.json +++ b/unpackage/dist/dev/mp-weixin/pages/index/index.json @@ -6,6 +6,7 @@ "up-grid-item": "../../node-modules/uview-plus/components/u-grid-item/u-grid-item", "up-grid": "../../node-modules/uview-plus/components/u-grid/u-grid", "up-text": "../../node-modules/uview-plus/components/u-text/u-text", - "news-card": "../../components/newsCard" + "case-box": "../../components/CaseBox/CaseBox", + "up-loadmore": "../../node-modules/uview-plus/components/u-loadmore/u-loadmore" } } \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.wxml b/unpackage/dist/dev/mp-weixin/pages/index/index.wxml index bf54842..d8b933d 100644 --- a/unpackage/dist/dev/mp-weixin/pages/index/index.wxml +++ b/unpackage/dist/dev/mp-weixin/pages/index/index.wxml @@ -1 +1 @@ - 学习平台 {{baseListItem.b}} \ No newline at end of file + 学习平台 {{baseListItem.b}} \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.wxss b/unpackage/dist/dev/mp-weixin/pages/index/index.wxss index 09c3964..a32e6e5 100644 --- a/unpackage/dist/dev/mp-weixin/pages/index/index.wxss +++ b/unpackage/dist/dev/mp-weixin/pages/index/index.wxss @@ -45,6 +45,18 @@ position: relative; top: 25rpx; } +.newlist { + display: flex; + flex-flow: column; +} +.newList-t { + position: -webkit-sticky; + position: sticky; + top: 60rpx; + height: 60rpx; + background-color: #fff; + z-index: 2; +} .content { height: 100vh; background-color: #F7F8FA; @@ -62,4 +74,16 @@ width: 95%; margin: 0 auto; margin-top: -80rpx; +} +.case-list { + scrollbar-width: none; + height: 100vh; + display: flexbox; + flex-flow: column; + background-color: #e2e2e2; +} +.list-itme { + width: 98%; + height: 350rpx; + margin: 10rpx auto; } \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/intergral/intergral.js b/unpackage/dist/dev/mp-weixin/pages/intergral/intergral.js index e89064f..f27e1f7 100644 --- a/unpackage/dist/dev/mp-weixin/pages/intergral/intergral.js +++ b/unpackage/dist/dev/mp-weixin/pages/intergral/intergral.js @@ -62,5 +62,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { }) } : {}); } -const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/intergral/intergral.vue"]]); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/pages/intergral/intergral.vue"]]); wx.createPage(MiniProgramPage); diff --git a/unpackage/dist/dev/mp-weixin/pages/news/news.js b/unpackage/dist/dev/mp-weixin/pages/news/news.js index bf24bb1..9a94ce8 100644 --- a/unpackage/dist/dev/mp-weixin/pages/news/news.js +++ b/unpackage/dist/dev/mp-weixin/pages/news/news.js @@ -1,31 +1,70 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -if (!Math) { - newsCard(); +if (!Array) { + const _easycom_CaseBox2 = common_vendor.resolveComponent("CaseBox"); + const _easycom_up_loadmore2 = common_vendor.resolveComponent("up-loadmore"); + (_easycom_CaseBox2 + _easycom_up_loadmore2)(); +} +const _easycom_CaseBox = () => "../../components/CaseBox/CaseBox.js"; +const _easycom_up_loadmore = () => "../../node-modules/uview-plus/components/u-loadmore/u-loadmore.js"; +if (!Math) { + (_easycom_CaseBox + _easycom_up_loadmore)(); } -const newsCard = () => "../../components/newsCard.js"; const _sfc_main = { __name: "news", setup(__props) { - const newsList = common_vendor.reactive([{ - title: "测试", - image: "/static/stu.png", - detile: "这是一个测试", - time: "2024-6-1" - }]); + const caseList = common_vendor.ref([ + {}, + {}, + {} + ]); + const isLoading = common_vendor.ref(false); + const status = common_vendor.ref("more"); + const loadMore = async () => { + console.log("加载更多..."); + status.value = "loading"; + if (isLoading.value) + return; + isLoading.value = true; + await fetchCases(); + caseList.value.push({}); + caseList.value.push({}); + caseList.value.push({}); + caseList.value.push({}); + console.log("加载更多2..."); + isLoading.value = false; + status.value = "nomore"; + console.log("加载更多2..."); + }; + const fetchCases = () => { + return new Promise((resolve) => { + setTimeout(() => { + const newCases = [ + { id: 1, title: "Case 1" }, + { id: 2, title: "Case 2" } + ]; + resolve(newCases); + }, 1e3); + }); + }; return (_ctx, _cache) => { - return { - a: common_vendor.f(newsList, (i, k0, i0) => { + return common_vendor.e({ + a: common_vendor.f(caseList.value, (item, index, i0) => { return { - a: "2b6dbdfd-0-" + i0, - b: common_vendor.p({ - info: i - }) + a: "4c8a5df1-0-" + i0, + b: index }; + }), + b: isLoading.value + }, isLoading.value ? { + c: common_vendor.p({ + status: status.value }) - }; + } : {}, { + d: common_vendor.o(loadMore) + }); }; } }; -const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/news/news.vue"]]); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/pages/news/news.vue"]]); wx.createPage(MiniProgramPage); diff --git a/unpackage/dist/dev/mp-weixin/pages/news/news.json b/unpackage/dist/dev/mp-weixin/pages/news/news.json index 0639578..a590db0 100644 --- a/unpackage/dist/dev/mp-weixin/pages/news/news.json +++ b/unpackage/dist/dev/mp-weixin/pages/news/news.json @@ -1,6 +1,7 @@ { "navigationBarTitleText": "新闻", "usingComponents": { - "news-card": "../../components/newsCard" + "case-box": "../../components/CaseBox/CaseBox", + "up-loadmore": "../../node-modules/uview-plus/components/u-loadmore/u-loadmore" } } \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/news/news.wxml b/unpackage/dist/dev/mp-weixin/pages/news/news.wxml index fd3e36d..98ed7f1 100644 --- a/unpackage/dist/dev/mp-weixin/pages/news/news.wxml +++ b/unpackage/dist/dev/mp-weixin/pages/news/news.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/news/news.wxss b/unpackage/dist/dev/mp-weixin/pages/news/news.wxss index 13c608b..19c3d57 100644 --- a/unpackage/dist/dev/mp-weixin/pages/news/news.wxss +++ b/unpackage/dist/dev/mp-weixin/pages/news/news.wxss @@ -23,6 +23,15 @@ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ -page { - background-color: #F7F8FA; +.case-list { + scrollbar-width: none; + height: 100vh; + display: flexbox; + flex-flow: column; + background-color: #e2e2e2; +} +.list-itme { + width: 98%; + height: 350rpx; + margin: 10rpx auto; } \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/user/login.js b/unpackage/dist/dev/mp-weixin/pages/user/login.js index 4beb41e..5893530 100644 --- a/unpackage/dist/dev/mp-weixin/pages/user/login.js +++ b/unpackage/dist/dev/mp-weixin/pages/user/login.js @@ -1,62 +1,88 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const comm_api = require("../../comm/api.js"); -const utils_Auth = require("../../utils/Auth.js"); -require("../../utils/http.js"); if (!Array) { + const _easycom_up_text2 = common_vendor.resolveComponent("up-text"); + const _easycom_up_input2 = common_vendor.resolveComponent("up-input"); const _easycom_up_button2 = common_vendor.resolveComponent("up-button"); - _easycom_up_button2(); + (_easycom_up_text2 + _easycom_up_input2 + _easycom_up_button2)(); } +const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js"; +const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-input/u-input.js"; const _easycom_up_button = () => "../../node-modules/uview-plus/components/u-button/u-button.js"; if (!Math) { - _easycom_up_button(); + (_easycom_up_text + _easycom_up_input + _easycom_up_button)(); } const _sfc_main = { __name: "login", setup(__props) { + const username = common_vendor.ref(""); + const password = common_vendor.ref(""); + const style = common_vendor.reactive({ + height: "70rpx", + margin: "10rpx", + textAlign: "center", + backgroundColor: "#fff", + boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)" + }); + const usernameError = common_vendor.ref(false); + const passwordError = common_vendor.ref(false); + const isButtonDisabled = common_vendor.ref(true); + function validateUsername() { + usernameError.value = username.value.trim() === ""; + checkFormValidity(); + } + function validatePassword() { + passwordError.value = password.value.trim() === ""; + checkFormValidity(); + } + function checkFormValidity() { + isButtonDisabled.value = usernameError.value || passwordError.value || username.value.trim() === "" || password.value.trim() === ""; + } async function login() { - common_vendor.index.login({ - provider: "weixin", - async success(e) { - console.log(e.code); - try { - const resp = await comm_api.loginByCode({ - code: e.code - }); - console.log(resp, "resp"); - common_vendor.index.showToast({ - icon: "none", - title: "登录成功" - }); - utils_Auth.setToken(resp.token); - setTimeout(() => { - common_vendor.index.switchTab({ - url: "/pages/user/user" - }); - }, 800); - } catch (err) { - console.log(err, "errorCatch"); - common_vendor.index.showToast({ - icon: "none", - title: "登录失败" - }); - } - }, - fail(err) { - console.log(err, "error"); - } - }); + if (isButtonDisabled.value) + return; } return (_ctx, _cache) => { return { - a: common_vendor.o(login), - b: common_vendor.p({ + a: common_vendor.p({ + lines: 1, + text: "登录", + bold: "true", + size: " 60rpx", + align: "cente" + }), + b: common_vendor.o(validateUsername), + c: common_vendor.o(($event) => username.value = $event), + d: common_vendor.p({ + placeholder: "请输入账号", + border: "surround", + error: usernameError.value, + fontSize: 15, + ["error-message"]: "账号不能为空", + customStyle: style, + modelValue: username.value + }), + e: common_vendor.o(validatePassword), + f: common_vendor.o(($event) => password.value = $event), + g: common_vendor.p({ + placeholder: "请输入密码", + border: "surround", + type: "password", + error: passwordError.value, + fontSize: 15, + customStyle: style, + ["error-message"]: "密码不能为空", + modelValue: password.value + }), + h: common_vendor.o(login), + i: common_vendor.p({ type: "primary", - text: "登录" + text: "登录", + disabled: isButtonDisabled.value }) }; }; } }; -const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/user/login.vue"]]); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6163e5ce"], ["__file", "D:/uniapp1/gree_leran/pages/user/login.vue"]]); wx.createPage(MiniProgramPage); diff --git a/unpackage/dist/dev/mp-weixin/pages/user/login.json b/unpackage/dist/dev/mp-weixin/pages/user/login.json index 20020ef..981729f 100644 --- a/unpackage/dist/dev/mp-weixin/pages/user/login.json +++ b/unpackage/dist/dev/mp-weixin/pages/user/login.json @@ -2,6 +2,8 @@ "navigationBarTitleText": "登录", "navigationStyle": "default", "usingComponents": { + "up-text": "../../node-modules/uview-plus/components/u-text/u-text", + "up-input": "../../node-modules/uview-plus/components/u-input/u-input", "up-button": "../../node-modules/uview-plus/components/u-button/u-button" } } \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/user/login.wxml b/unpackage/dist/dev/mp-weixin/pages/user/login.wxml index 7005fee..dc7b465 100644 --- a/unpackage/dist/dev/mp-weixin/pages/user/login.wxml +++ b/unpackage/dist/dev/mp-weixin/pages/user/login.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/unpackage/dist/dev/mp-weixin/pages/user/login.wxss b/unpackage/dist/dev/mp-weixin/pages/user/login.wxss index 5fc24f1..7157a52 100644 --- a/unpackage/dist/dev/mp-weixin/pages/user/login.wxss +++ b/unpackage/dist/dev/mp-weixin/pages/user/login.wxss @@ -1,6 +1,31 @@ -.main { - height: 100vh; - display: flex; - align-items: center; +.main.data-v-6163e5ce { + height: 100vh; + display: flex; + align-items: center; + justify-content: center; + background-color: #efefef; +} +.login-container.data-v-6163e5ce { + width: 80%; + display: flex; + flex-flow: column; + height: 90vh; + align-items: center; + margin: 0 auto; + padding: 20px; + /* background: #ffffff; */ + /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */ + /* border-radius: 8px; */ +} +.login-container up-input.data-v-6163e5ce { + margin-bottom: 15px; +} +.login-container up-button.data-v-6163e5ce { + width: 100%; +} +.log-input.data-v-6163e5ce{ + width: 100%; + margin-top: 40rpx; + margin-bottom: 20rpx; } diff --git a/unpackage/dist/dev/mp-weixin/pages/user/user.js b/unpackage/dist/dev/mp-weixin/pages/user/user.js index 22b7afa..b746996 100644 --- a/unpackage/dist/dev/mp-weixin/pages/user/user.js +++ b/unpackage/dist/dev/mp-weixin/pages/user/user.js @@ -83,5 +83,5 @@ const _sfc_main = { }; } }; -const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0f7520f0"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/user/user.vue"]]); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0f7520f0"], ["__file", "D:/uniapp1/gree_leran/pages/user/user.vue"]]); wx.createPage(MiniProgramPage); diff --git a/unpackage/dist/dev/mp-weixin/pages/video/video.js b/unpackage/dist/dev/mp-weixin/pages/video/video.js index 4546cce..2ea1f22 100644 --- a/unpackage/dist/dev/mp-weixin/pages/video/video.js +++ b/unpackage/dist/dev/mp-weixin/pages/video/video.js @@ -93,7 +93,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.o($options.getVideo, index), b: index, - c: "71f14456-0-" + i0, + c: "137bd0c9-0-" + i0, d: common_vendor.p({ VideoId: index, Videos: item @@ -102,5 +102,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { }) }; } -const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/video/video.vue"]]); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/pages/video/video.vue"]]); wx.createPage(MiniProgramPage); diff --git a/unpackage/dist/dev/mp-weixin/project.config.json b/unpackage/dist/dev/mp-weixin/project.config.json index 5a5f3bd..3fecc02 100644 --- a/unpackage/dist/dev/mp-weixin/project.config.json +++ b/unpackage/dist/dev/mp-weixin/project.config.json @@ -19,7 +19,9 @@ "disablePlugins": [], "outputPath": "" }, - "ignoreUploadUnusedFiles": false + "condition": false, + "ignoreUploadUnusedFiles": true, + "minifyWXML": true }, "condition": {}, "editorSetting": { diff --git a/unpackage/dist/dev/mp-weixin/static/image/imgerr.png b/unpackage/dist/dev/mp-weixin/static/image/imgerr.png new file mode 100644 index 0000000000000000000000000000000000000000..5b568b6696a77082882fb8ff96e9c69700bef8c3 GIT binary patch literal 3380 zcmcInX;f3!77l`fAVR?kIKU-75sMHKWiTX?NRUBhP$^a*Ar}ac+?WJIKxA-2!Gb6< zSy)IA83GE*P^Pwwf)two5d4rHj2`FpOyso#^EcvH%k3L!n{euPbWc z0ELW&pD?i1x22nbz7)$~2Iw4Y=i(LY?{$z2H$4Pkg3w|DD##)NLDT>m6CH$wf8a%n z`zvMy9QXiX`D5W9MY-BK0A>&a1Pt`{>w4)Uk$|D09`b;Jp&@b~fYL{z5c=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Gbj1#O8uO#^X#jeg2tKI5Dl{rAKT%g7&7Y>6ypD*EL zoo5bJzUSl;3f0Husup8*_XY5}-L!MA1!Ek`AAB=cftRhafUvQ|yy@DIb(?WFnZN99 zeb4QLo@!A&P9D>z<)t>?5>92wN+IYi`{qNZp!HpCY)1}_ar%|S<5Y_+QFQw*tyooz zv|+Qn#UqS{J4?yW^2M@t>(P|_0%RIKYp}ic`1z$@oA{+!*qO`zv)OM%e(lO0jfno9 z%XH(EsINv-XEa~iWvYj1VY;^cpEmmcdUyWo2L9o!vUdFV$5j9Dm=XqGmQsbi`CX0` Ts=T3VTIi*fa7Ey2(pU literal 0 HcmV?d00001 diff --git a/unpackage/dist/dev/mp-weixin/utils/Auth.js b/unpackage/dist/dev/mp-weixin/utils/Auth.js index a489b41..fa3c501 100644 --- a/unpackage/dist/dev/mp-weixin/utils/Auth.js +++ b/unpackage/dist/dev/mp-weixin/utils/Auth.js @@ -1,9 +1,6 @@ "use strict"; const common_vendor = require("../common/vendor.js"); var Admin = "token"; -function setToken(token) { - common_vendor.index.setStorageSync(Admin, token); -} function getToken() { return common_vendor.index.getStorageSync(Admin); } @@ -12,4 +9,3 @@ function isLogin() { } exports.getToken = getToken; exports.isLogin = isLogin; -exports.setToken = setToken;