flat: init

This commit is contained in:
史典卓
2024-11-08 11:55:23 +08:00
commit 0e64009a8a
80 changed files with 10529 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view></view>

View File

@@ -0,0 +1,31 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const stores_useUserStore = require("../../stores/useUserStore.js");
const _sfc_main = {
__name: "index",
setup(__props) {
const { $api, navTo } = common_vendor.inject("globalFunction");
stores_useUserStore.useUserStore();
const state = common_vendor.reactive({
title: "123123123房贷首付打的手机家里好玩的很浓厚第卡后sdhiwohdijasnbdhoui1很努力"
});
common_vendor.onShow(() => {
console.log("onShow");
});
common_vendor.onLoad(() => {
console.log("onLoad");
navTo("/pages/login/login");
});
common_vendor.watch(
() => state.title,
(newValue, oldValue) => {
},
{ deep: true }
);
return (_ctx, _cache) => {
return {};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "uni-app",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="content data-v-1cf27b2a"></view>

View File

@@ -0,0 +1,4 @@
.logo.data-v-1cf27b2a {
width: 100px;
height: 100px;
}

View File

@@ -0,0 +1,29 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
name: "tab",
data() {
return {};
},
props: {
current: {
type: Number,
default: 0
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o(($event) => false),
b: common_vendor.o(($event) => false),
c: common_vendor.o(($event) => false),
d: common_vendor.o(($event) => false),
e: common_vendor.o(($event) => false),
f: common_vendor.o(($event) => false),
g: common_vendor.o(($event) => false),
h: common_vendor.o(($event) => false),
i: $props.current
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="tab-container"><view class="uni-margin-wrap"><swiper class="swiper" current="{{i}}" circular="{{false}}" indicator-dots="{{false}}" autoplay="{{false}}" duration="{{500}}"><swiper-item catchtouchmove="{{a}}"><slot name="tab0"></slot></swiper-item><swiper-item catchtouchmove="{{b}}"><slot name="tab1"></slot></swiper-item><swiper-item catchtouchmove="{{c}}"><slot name="tab2"></slot></swiper-item><swiper-item catchtouchmove="{{d}}"><slot name="tab3"></slot></swiper-item><swiper-item catchtouchmove="{{e}}"><slot name="tab4"></slot></swiper-item><swiper-item catchtouchmove="{{f}}"><slot name="tab5"></slot></swiper-item><swiper-item catchtouchmove="{{g}}"><slot name="tab6"></slot></swiper-item><swiper-item catchtouchmove="{{h}}"><slot name="tab7"></slot></swiper-item></swiper></view></view>

View File

@@ -0,0 +1,21 @@
.tab-container {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
}
.uni-margin-wrap {
width: 100%;
height: 100%;
}
.swiper {
width: 100%;
height: 100%;
}
.swiper-item {
display: block;
width: 100%;
height: 100%;
}

View File

@@ -0,0 +1,42 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
if (!Math) {
tabcontrolVue();
}
const tabcontrolVue = () => "./components/tabcontrol.js";
const _sfc_main = {
__name: "login",
setup(__props) {
const { statusBarHeight } = common_vendor.inject("deviceInfo");
const tabCurrent = common_vendor.ref(1);
common_vendor.reactive({
sex: 1
});
setTimeout(() => {
console.log("gg");
}, 4e3);
const getuserinfo = (e) => {
console.log(e);
};
function nextStep() {
tabCurrent.value += 1;
}
return (_ctx, _cache) => {
return {
a: common_vendor.unref(statusBarHeight) + "px",
b: common_assets._imports_0,
c: common_vendor.o(getuserinfo),
d: common_assets._imports_1,
e: common_assets._imports_2,
f: common_vendor.o(nextStep),
g: common_vendor.o(nextStep),
h: common_vendor.o(nextStep),
i: common_vendor.p({
current: tabCurrent.value
})
};
};
}
};
wx.createPage(_sfc_main);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "登录",
"navigationStyle": "custom",
"usingComponents": {
"tabcontrol-vue": "./components/tabcontrol"
}
}

View File

@@ -0,0 +1 @@
<view class="container"><view style="{{'height:' + a}}"></view><tabcontrol-vue wx:if="{{i}}" u-s="{{['tab0','tab1','tab2','tab3']}}" u-i="665c1f0a-0" bind:__l="__l" u-p="{{i}}"><view slot="tab0"><view class="login-content"><image class="logo" src="{{b}}"></image><view class="logo-title">就业</view></view><view class="btns"><button open-type="getUserInfo" bindgetuserinfo="{{c}}" class="wxlogin">微信登录</button><view class="wxaddress">青岛市公共就业和人才服务中心</view></view></view><view class="tabtwo" slot="tab1"><view class="tabtwo-top"><view class="color_FFFFFF fs_30">选择您的性别1/6</view><view class="color_D9D9D9">个人信息仅用于推送优质内容</view></view><view class="fl_box fl_justmiddle"><view class="tabtwo-sex"><image class="sex-img" src="{{d}}"></image><view class="mar_top5">女</view><view class="dot"></view></view><view class="tabtwo-sex"><image class="sex-img" src="{{e}}"></image><view class="mar_top5">男</view><view class="dot doted"></view></view></view><view class="nextstep" bindtap="{{f}}">下一步</view></view><view class="tabtwo" slot="tab2"><view class="tabtwo-top"><view class="color_FFFFFF fs_30">选择您的年龄断段2/6</view><view class="color_D9D9D9">个人信息仅用于推送优质内容</view></view><view class="fl_box fl_deri"><view class="agebtn agebtned">30岁以下</view><view class="agebtn">31-40岁</view><view class="agebtn">41-50岁</view><view class="agebtn">51岁以上</view></view><view class="fl_box fl_justmiddle"></view><view class="nextstep" bindtap="{{g}}">下一步</view></view><view class="tabtwo" slot="tab3"><view class="tabtwo-top"><view class="color_FFFFFF fs_30">选择您的学历3/6</view><view class="color_D9D9D9">个人信息仅用于推送优质内容</view></view><view class="eduction-content"><view class="eductionbtn eductionbtned">30岁以下</view><view class="eductionbtn">31-40岁</view><view class="eductionbtn">41-50岁</view><view class="eductionbtn">51岁以上</view></view><view class="fl_box fl_justmiddle"></view><view class="nextstep" bindtap="{{h}}">下一步</view></view></tabcontrol-vue></view>

View File

@@ -0,0 +1,128 @@
.container {
width: 100%;
height: 100%;
background: linear-gradient(#4778ec, #002979);
position: relative;
}
.login-content {
position: absolute;
left: 50%;
top: 40%;
transform: translate(-50%, -50%);
display: flex;
align-items: flex-end;
flex-wrap: nowrap;
}
.login-content .logo {
width: 266rpx;
height: 182rpx;
}
.login-content .logo-title {
font-size: 88rpx;
color: #fff;
width: 180rpx;
}
.btns {
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%, 0);
}
.btns .wxlogin {
width: 562rpx;
height: 140rpx;
border-radius: 70rpx;
background-color: #13c57c;
color: #fff;
text-align: center;
line-height: 140rpx;
font-size: 70rpx;
}
.btns .wxaddress {
color: #bbb;
margin-top: 70rpx;
text-align: center;
}
.tabtwo {
padding: 40rpx;
}
.tabtwo-top {
margin: 222rpx 0 0 0;
}
.tabtwo-sex {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
font-size: 40rpx;
margin: 200rpx 60rpx 0 60rpx;
}
.tabtwo-sex .sex-img {
width: 184rpx;
height: 184rpx;
}
.dot {
width: 68rpx;
height: 68rpx;
border-radius: 50%;
background: #d1d1d6;
position: relative;
}
.dot:before {
content: '';
width: 44rpx;
height: 44rpx;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
background: #1e4baa;
}
.doted {
background: #13c57c;
}
.doted:after {
content: '';
width: 34rpx;
height: 34rpx;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
background: #13c57c;
}
.agebtn {
width: 630rpx;
height: 108rpx;
border-radius: 20rpx;
background: #d9d9d9;
text-align: center;
line-height: 108rpx;
font-size: 40rpx;
margin-top: 50rpx;
color: #606060;
}
.agebtned {
background: #13c57c;
color: #fff;
}
.nextstep {
position: absolute;
top: 80%;
left: 50%;
transform: translate(-50%, 0);
width: 630rpx;
height: 98rpx;
border-radius: 20rpx;
background: #13c57c;
text-align: center;
line-height: 98rpx;
font-size: 40rpx;
color: #fff;
}
.eduction-content {
display: grid;
}

View File

@@ -0,0 +1,12 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view></view>

View File

View File

@@ -0,0 +1,12 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view></view>

View File