登录
This commit is contained in:
88
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
88
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const store_index = require("../../store/index.js");
|
||||
require("../../api/index.js");
|
||||
require("../../api/request.js");
|
||||
require("../../config/index.js");
|
||||
if (!Array) {
|
||||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
(_easycom_uni_icons2 + _easycom_uni_popup2)();
|
||||
}
|
||||
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||||
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
(mySwiper + _easycom_uni_icons + _easycom_uni_popup)();
|
||||
}
|
||||
const mySwiper = () => "../../components/mySwiper.js";
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const store = store_index.useStore();
|
||||
common_vendor.onLoad((e) => {
|
||||
var _a;
|
||||
if (!((_a = store.userInfo) == null ? void 0 : _a.has_operation))
|
||||
;
|
||||
});
|
||||
const inputDialog = common_vendor.ref();
|
||||
common_vendor.ref();
|
||||
common_vendor.ref(false);
|
||||
const lbt_list = common_vendor.ref([
|
||||
{
|
||||
banner_name: "首页轮播2",
|
||||
createtime: 1694851490,
|
||||
deletetime: null,
|
||||
id: 6,
|
||||
image: "http://niunai.zhitou1688.com/uploads/20230922/ea3b3348df5d2b41eb49ddbf86b83516.png",
|
||||
is_show: 1,
|
||||
type: "index",
|
||||
url: "",
|
||||
weigh: 6
|
||||
},
|
||||
{
|
||||
banner_name: "首页轮播2",
|
||||
createtime: 1694851490,
|
||||
deletetime: null,
|
||||
id: 6,
|
||||
image: "/static/vip2.png",
|
||||
is_show: 1,
|
||||
type: "index",
|
||||
url: "",
|
||||
weigh: 6
|
||||
}
|
||||
]);
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
indicatorDots: true,
|
||||
isRadius: true,
|
||||
height: "160",
|
||||
lbt_list: lbt_list.value
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
type: "forward",
|
||||
color: "#ffa2a2",
|
||||
size: "20"
|
||||
}),
|
||||
c: common_vendor.p({
|
||||
type: "forward",
|
||||
color: "#f9b275",
|
||||
size: "20"
|
||||
}),
|
||||
d: common_vendor.p({
|
||||
type: "forward",
|
||||
color: "#8fdc8a",
|
||||
size: "20"
|
||||
}),
|
||||
e: common_vendor.sr(inputDialog, "1cf27b2a-4", {
|
||||
"k": "inputDialog"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
["is-mask-click"]: false
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"], ["__file", "F:/项目2023/视力表/vision-record/pages/index/index.vue"]]);
|
||||
wx.createPage(MiniProgramPage);
|
8
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "首页",
|
||||
"usingComponents": {
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
|
||||
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup",
|
||||
"my-swiper": "../../components/mySwiper"
|
||||
}
|
||||
}
|
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="content page-box data-v-1cf27b2a"><my-swiper wx:if="{{a}}" class="index-siwper margin-b-card data-v-1cf27b2a" style="width:100%" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{a}}"/><view class="main-cards data-v-1cf27b2a"><view class="mc-part data-v-1cf27b2a" style="margin-left:0"><view class="mc-part-text data-v-1cf27b2a">已完成事项</view><image class="data-v-1cf27b2a" src="/static/done.png" mode="widthFix"></image></view><view class="mc-part mc-part2 data-v-1cf27b2a" style="margin-right:0"><view class="mc-part-text data-v-1cf27b2a">待完成事项</view><image class="data-v-1cf27b2a" style="transform:rotate(0deg)" src="/static/undone.png" mode="widthFix"></image></view></view><view class="attention-card data-v-1cf27b2a"><view class="part-title data-v-1cf27b2a"> 注意事项 </view><view class="ac-parts data-v-1cf27b2a"><view class="ac-part data-v-1cf27b2a" style="background:linear-gradient(45deg, #ffa2a2,#ffd3d3, #ffffff00)"> 术前注意事项 <uni-icons wx:if="{{b}}" class="data-v-1cf27b2a" u-i="1cf27b2a-1" bind:__l="__l" u-p="{{b}}"></uni-icons></view><view class="ac-part data-v-1cf27b2a" style="background:linear-gradient(45deg, #f9b275,#fff3e9, #ffffff00)"> 术中注意事项 <uni-icons wx:if="{{c}}" class="data-v-1cf27b2a" u-i="1cf27b2a-2" bind:__l="__l" u-p="{{c}}"></uni-icons></view><view class="ac-part data-v-1cf27b2a" style="background:linear-gradient(45deg, #8fdc8a,#fdfdfd, #ffffff00)"> 术后注意事项 <uni-icons wx:if="{{d}}" class="data-v-1cf27b2a" u-i="1cf27b2a-3" bind:__l="__l" u-p="{{d}}"></uni-icons></view></view></view><uni-popup wx:if="{{f}}" class="r data-v-1cf27b2a" u-s="{{['d']}}" u-r="inputDialog" u-i="1cf27b2a-4" bind:__l="__l" u-p="{{f}}"><view class="pop-box data-v-1cf27b2a"><view class="pb-title data-v-1cf27b2a">手术信息</view></view><view class="pop-close data-v-1cf27b2a"> 关闭 </view></uni-popup></view>
|
110
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
110
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
@@ -0,0 +1,110 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.part-title.data-v-1cf27b2a {
|
||||
border-left: 10rpx solid #fe915d;
|
||||
padding-left: 20rpx;
|
||||
font-weight: 900;
|
||||
}
|
||||
.attention-card.data-v-1cf27b2a {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.attention-card .ac-parts.data-v-1cf27b2a {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.attention-card .ac-parts .ac-part.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 30rpx 20rpx;
|
||||
color: white;
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
.main-cards.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.main-cards .mc-part.data-v-1cf27b2a {
|
||||
width: 50%;
|
||||
/* text-align: center; */
|
||||
background: linear-gradient(200deg, #82d8f2, #ddecf0);
|
||||
color: white;
|
||||
padding: 40rpx 20rpx;
|
||||
margin: 0 20rpx;
|
||||
border-radius: 20rpx;
|
||||
height: 100rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.main-cards .mc-part .mc-part-text.data-v-1cf27b2a {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
font-size: 36rpx;
|
||||
font-weight: 900;
|
||||
}
|
||||
.main-cards .mc-part image.data-v-1cf27b2a {
|
||||
position: absolute;
|
||||
width: 66%;
|
||||
right: 0;
|
||||
bottom: -20%;
|
||||
z-index: 1;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.main-cards .mc-part2.data-v-1cf27b2a {
|
||||
background: linear-gradient(200deg, #bbf4d5, #50c053);
|
||||
}
|
||||
.pop-box.data-v-1cf27b2a {
|
||||
background-color: white;
|
||||
padding: 20rpx;
|
||||
}
|
||||
.page-box.data-v-1cf27b2a {
|
||||
padding: 20rpx;
|
||||
}
|
||||
.content.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.logo.data-v-1cf27b2a {
|
||||
height: 200rpx;
|
||||
width: 200rpx;
|
||||
margin-top: 200rpx;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: 50rpx;
|
||||
}
|
||||
.text-area.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.title.data-v-1cf27b2a {
|
||||
font-size: 36rpx;
|
||||
color: #8f8f94;
|
||||
}
|
Reference in New Issue
Block a user