first commit
20
unpackage/dist/dev/mp-weixin/api/api.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
const request_index = require("../request/index.js");
|
||||
const loginApi = (params, config = {}) => request_index.http("/api/auth/login", params);
|
||||
const saveOpenIdByWxCode = (params, config = {}) => request_index.http("/api/auth/saveOpenIdByWxCode", params);
|
||||
const registerApi = (params, config = {}) => request_index.http("/api/auth/register", params);
|
||||
const forgotPassword = (params, config = {}) => request_index.http("/api/auth/forgotPassword", params);
|
||||
const smsCode = (params, config = {}) => request_index.http("/api/auth/sendSmsCode", params);
|
||||
const userInfo = (params, config = {}) => request_index.http("/api/v0/user/info", params, "GET");
|
||||
const userStat = (params, config = {}) => request_index.http("/api/v0/stat/userStat", params, "GET");
|
||||
const freezeTotal = (params, config = {}) => request_index.http("/api/v0/user/freezeTotal", params);
|
||||
const forgotUserName = (params, config = {}) => request_index.http("/api/auth/forgotUserName", params);
|
||||
exports.forgotPassword = forgotPassword;
|
||||
exports.forgotUserName = forgotUserName;
|
||||
exports.freezeTotal = freezeTotal;
|
||||
exports.loginApi = loginApi;
|
||||
exports.registerApi = registerApi;
|
||||
exports.saveOpenIdByWxCode = saveOpenIdByWxCode;
|
||||
exports.smsCode = smsCode;
|
||||
exports.userInfo = userInfo;
|
||||
exports.userStat = userStat;
|
||||
36
unpackage/dist/dev/mp-weixin/app.js
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
const common_vendor = require("./common/vendor.js");
|
||||
const store_index = require("./store/index.js");
|
||||
const uni_modules_uviewPlus_index = require("./uni_modules/uview-plus/index.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpShare = require("./uni_modules/uview-plus/libs/mixin/mpShare.js");
|
||||
if (!Math) {
|
||||
"./pages/index/index.js";
|
||||
"./pages/login/login.js";
|
||||
"./pages/login/register.js";
|
||||
"./pages/login/getBack.js";
|
||||
"./pages/login/getBackAccout.js";
|
||||
}
|
||||
const _sfc_main = {
|
||||
onLaunch: function(options) {
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
if (token) {
|
||||
store_index.store.commit("setToken", token);
|
||||
}
|
||||
},
|
||||
onShow: function(e) {
|
||||
},
|
||||
onHide: function() {
|
||||
}
|
||||
};
|
||||
function createApp() {
|
||||
const app = common_vendor.createSSRApp(_sfc_main);
|
||||
app.mixin(uni_modules_uviewPlus_libs_mixin_mpShare.mpShare);
|
||||
app.use(uni_modules_uviewPlus_index.uviewPlus);
|
||||
app.use(store_index.store);
|
||||
return {
|
||||
app
|
||||
};
|
||||
}
|
||||
createApp().app.mount("#app");
|
||||
exports.createApp = createApp;
|
||||
16
unpackage/dist/dev/mp-weixin/app.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/login/login",
|
||||
"pages/login/register",
|
||||
"pages/login/getBack",
|
||||
"pages/login/getBackAccout"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "uni-app",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"usingComponents": {}
|
||||
}
|
||||
3064
unpackage/dist/dev/mp-weixin/app.wxss
vendored
Normal file
19
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
const _imports_0$1 = "/static/icon/mx.png";
|
||||
const _imports_1$1 = "/static/icon/order.png";
|
||||
const _imports_2 = "/static/icon/cdz.png";
|
||||
const _imports_3 = "/static/icon/cds.png";
|
||||
const _imports_4 = "/static/icon/grxx.png";
|
||||
const _imports_5 = "/static/icon/tc.png";
|
||||
const _imports_6 = "/static/icon/zhuan.png";
|
||||
const _imports_0 = "/static/logoB.png";
|
||||
const _imports_1 = "/static/logo.png";
|
||||
exports._imports_0 = _imports_0$1;
|
||||
exports._imports_0$1 = _imports_0;
|
||||
exports._imports_1 = _imports_1$1;
|
||||
exports._imports_1$1 = _imports_1;
|
||||
exports._imports_2 = _imports_2;
|
||||
exports._imports_3 = _imports_3;
|
||||
exports._imports_4 = _imports_4;
|
||||
exports._imports_5 = _imports_5;
|
||||
exports._imports_6 = _imports_6;
|
||||
8353
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
Normal file
14
unpackage/dist/dev/mp-weixin/components/statusBar/statusBar.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "statusBar",
|
||||
setup(__props) {
|
||||
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: statusBarHeight
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createComponent(_sfc_main);
|
||||
4
unpackage/dist/dev/mp-weixin/components/statusBar/statusBar.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/components/statusBar/statusBar.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="position:relative"><view style="{{'height:' + a}}"></view><view style="height:44px;display:flex;align-items:center"><slot/></view></view>
|
||||
11
unpackage/dist/dev/mp-weixin/components/statusBar/statusBar.wxss
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
.statusBar_blur {
|
||||
width: 100%;
|
||||
height: 185rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(180deg, #DBE5FF 0%, #FFFFFF 15%, #FFFFFF 81%, #F7F7F7 100%);
|
||||
opacity: 0.8;
|
||||
filter: blur(50px);
|
||||
z-index: -1;
|
||||
}
|
||||
11
unpackage/dist/dev/mp-weixin/config.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
const ENV_API_URL = {
|
||||
// development: 'http://192.168.1.63:1001', //开发环境
|
||||
development: "https://iuser.zhongshuai2023.com",
|
||||
//开发环境
|
||||
// production: 'https://iuser.zhongshuai2023.com', //开发环境
|
||||
production: "https://guangdongapp.zhongshuai2023.com"
|
||||
//生产环境
|
||||
};
|
||||
const API_URL = ENV_API_URL["development"];
|
||||
exports.API_URL = API_URL;
|
||||
44
unpackage/dist/dev/mp-weixin/hooks/useNav.js
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const store_index = require("../store/index.js");
|
||||
function useNav() {
|
||||
const navTo = (path, token, call) => {
|
||||
if (call) {
|
||||
common_vendor.index.makePhoneCall({
|
||||
phoneNumber: "17707569278"
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.log(token, "token");
|
||||
console.log(store_index.store.state.token, "store.state.token");
|
||||
if (token && !store_index.store.state.token) {
|
||||
return common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "你还未登录,是否前往登录?",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
console.log("用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.navigateTo({
|
||||
url: path
|
||||
});
|
||||
}
|
||||
};
|
||||
const nav = (e) => {
|
||||
common_vendor.index[e.type == "nav" || !e.type ? "navigateTo" : e.type == "switchTab" ? "switchTab" : "navigateTo"]({
|
||||
url: e.path
|
||||
});
|
||||
};
|
||||
return {
|
||||
nav,
|
||||
navTo
|
||||
};
|
||||
}
|
||||
exports.useNav = useNav;
|
||||
147
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
require("../../uni_modules/uview-plus/index.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const hooks_useNav = require("../../hooks/useNav.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
|
||||
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
|
||||
(_easycom_up_grid_item2 + _easycom_up_grid2)();
|
||||
}
|
||||
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
|
||||
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_grid_item + _easycom_up_grid)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let getInfo = common_vendor.ref({});
|
||||
common_vendor.ref({});
|
||||
let devices = common_vendor.ref(0);
|
||||
let teamDevices = common_vendor.ref(0);
|
||||
let wallet = common_vendor.ref(0);
|
||||
let income = common_vendor.ref(0);
|
||||
let money_list = common_vendor.ref([
|
||||
{
|
||||
name: "收益统计",
|
||||
type: "收益",
|
||||
data: {}
|
||||
},
|
||||
{
|
||||
name: "推广统计",
|
||||
type: "推广",
|
||||
data: {}
|
||||
}
|
||||
// {
|
||||
// name: '邀请统计',
|
||||
// type: '邀请',
|
||||
// data: {}
|
||||
// }
|
||||
]);
|
||||
common_vendor.ref(1);
|
||||
common_vendor.onShow(async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
userStatCou();
|
||||
let _data = await api_api.freezeTotal();
|
||||
income.value = _data.income;
|
||||
wallet.value = _data.wallet;
|
||||
});
|
||||
let userStatCou = async () => {
|
||||
let _res = await api_api.userStat();
|
||||
devices.value = _res.devices;
|
||||
teamDevices.value = _res.teamDevices;
|
||||
money_list.value.map((item, index) => {
|
||||
if (item.type == "推广") {
|
||||
item.data = {
|
||||
day_money: _res.ordersToday,
|
||||
week_money1: _res.ordersLastWeek,
|
||||
week_money0: _res.ordersThisWeek,
|
||||
total_money: _res.orders30Days
|
||||
};
|
||||
}
|
||||
if (item.type == "收益") {
|
||||
item.data = {
|
||||
day_money: _res.pointDeviceToday,
|
||||
week_money1: _res.pointDeviceLastWeek,
|
||||
week_money0: _res.pointDeviceThisWeek,
|
||||
total_money: _res.pointDevice30Days
|
||||
};
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(common_vendor.unref(getInfo).points2 || "0.00"),
|
||||
b: common_assets._imports_0,
|
||||
c: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/incomeList`, true)),
|
||||
d: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
e: common_assets._imports_1,
|
||||
f: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/transferBalance`, true)),
|
||||
g: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
h: common_assets._imports_2,
|
||||
i: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/toUser`, true)),
|
||||
j: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
k: common_assets._imports_3,
|
||||
l: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
|
||||
m: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
n: common_assets._imports_4,
|
||||
o: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
|
||||
p: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
q: common_assets._imports_5,
|
||||
r: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
|
||||
s: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
t: common_vendor.p({
|
||||
border: false,
|
||||
col: "4"
|
||||
}),
|
||||
v: common_vendor.unref(getInfo).point2Give && common_vendor.unref(getInfo).point2Give == 1
|
||||
}, common_vendor.unref(getInfo).point2Give && common_vendor.unref(getInfo).point2Give == 1 ? {
|
||||
w: common_assets._imports_6,
|
||||
x: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/toUser2`, true)),
|
||||
y: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
z: common_vendor.p({
|
||||
border: false,
|
||||
col: "4"
|
||||
})
|
||||
} : {}, {
|
||||
A: common_vendor.t(common_vendor.unref(devices) || 0),
|
||||
B: common_vendor.t(common_vendor.unref(teamDevices) || 0),
|
||||
C: common_vendor.f(common_vendor.unref(money_list), (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.name),
|
||||
b: common_vendor.t(item.data.day_money || 0),
|
||||
c: common_vendor.t(item.type),
|
||||
d: common_vendor.t(item.data.week_money1 || 0),
|
||||
e: common_vendor.t(item.type),
|
||||
f: common_vendor.t(item.data.week_money0 || 0),
|
||||
g: common_vendor.t(item.type),
|
||||
h: common_vendor.t(item.data.total_money || 0),
|
||||
i: common_vendor.t(item.type),
|
||||
j: index
|
||||
};
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
|
||||
_sfc_main.__runtimeHooks = 1;
|
||||
wx.createPage(MiniProgramPage);
|
||||
7
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "统计",
|
||||
"usingComponents": {
|
||||
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
|
||||
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
146
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
.wallet_pall.data-v-1cf27b2a {
|
||||
height: 200rpx;
|
||||
border-radius: 16rpx;
|
||||
padding: 40rpx;
|
||||
background: linear-gradient(179deg, #5082ff 0%, #4278ff 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1rpx solid rgba(153, 153, 153, 0.6);
|
||||
}
|
||||
.wallet_pall_button.data-v-1cf27b2a {
|
||||
padding: 10rpx 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
background-color: #fff;
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
.wallet_pall_header.data-v-1cf27b2a {
|
||||
font-weight: bold;
|
||||
font-size: 26rpx;
|
||||
color: #002ea4;
|
||||
}
|
||||
.wallet_pall_ye.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 70%;
|
||||
}
|
||||
.wallet_pall_ye view.data-v-1cf27b2a:nth-child(1) {
|
||||
font-weight: bold;
|
||||
font-size: 68rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.wallet_pall_ye view.data-v-1cf27b2a:nth-child(2) {
|
||||
width: 128rpx;
|
||||
height: 58rpx;
|
||||
background: rgba(0, 46, 164, 0.07);
|
||||
border-radius: 32rpx 32rpx 32rpx 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 26rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.wallet_pall_view.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.wallet_pall_view view.data-v-1cf27b2a:nth-child(1) {
|
||||
font-weight: bold;
|
||||
font-size: 45rpx;
|
||||
color: #fff;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.wallet_pall_view view.data-v-1cf27b2a:nth-child(2) {
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.wallet_list.data-v-1cf27b2a {
|
||||
width: 690rpx;
|
||||
height: 120rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
padding: 15rpx 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wallet_list_left view.data-v-1cf27b2a:nth-child(1) {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.wallet_list_left view.data-v-1cf27b2a:nth-child(2) {
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.wallet_list_right.data-v-1cf27b2a {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #ff2727;
|
||||
}
|
||||
.mine_block.data-v-1cf27b2a {
|
||||
padding: 24rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.mine_block_tit.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.mine_block_tit_left.data-v-1cf27b2a {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.mine_block_tit_right.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 24rpx;
|
||||
color: #cbd73b;
|
||||
}
|
||||
.mine_block_tit_right image.data-v-1cf27b2a {
|
||||
width: 13rpx;
|
||||
height: 22rpx;
|
||||
margin-left: 15rpx;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
.mine_block_view.data-v-1cf27b2a {
|
||||
width: 100%;
|
||||
min-height: 120rpx;
|
||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||
border: 2rpx solid rgba(55, 112, 174, 0.1);
|
||||
margin-top: 16rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 28rpx;
|
||||
color: #232323;
|
||||
padding: 20rpx 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.mine_block_view image.data-v-1cf27b2a {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
margin-right: 25rpx;
|
||||
}
|
||||
.u-flex-y-center.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
align-items: center;
|
||||
}
|
||||
.u-flex-between.data-v-1cf27b2a {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-flex-fill.data-v-1cf27b2a {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
147
unpackage/dist/dev/mp-weixin/pages/login/getBack.js
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
|
||||
(_easycom_up_icon2 + _easycom_statusBar2 + _easycom_up_input2 + _easycom_up_code2)();
|
||||
}
|
||||
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_icon + _easycom_statusBar + _easycom_up_input + _easycom_up_code)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "getBack",
|
||||
setup(__props) {
|
||||
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
|
||||
let tips = common_vendor.ref("");
|
||||
let uCode = common_vendor.ref(null);
|
||||
let dataFrom = common_vendor.reactive({
|
||||
userName: "",
|
||||
passwd: "",
|
||||
phone: "",
|
||||
smsCode: "",
|
||||
confirmPasswd: ""
|
||||
});
|
||||
let codeChange2 = (text) => {
|
||||
tips.value = text;
|
||||
};
|
||||
let getCode2 = () => {
|
||||
if (!dataFrom.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (uCode.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
api_api.smsCode({
|
||||
phone: dataFrom.phone
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCode.value.start();
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
let submit = async () => {
|
||||
if (!dataFrom.userName)
|
||||
return common_vendor.index.showToast({ title: "请输入用户名", icon: "none" });
|
||||
if (!dataFrom.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (dataFrom.phone.length != 11)
|
||||
return common_vendor.index.showToast({ title: "请输入正确的手机号", icon: "none" });
|
||||
if (!dataFrom.smsCode)
|
||||
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
|
||||
if (!dataFrom.passwd)
|
||||
return common_vendor.index.showToast({ title: "请输入密码", icon: "none" });
|
||||
if (!dataFrom.confirmPasswd)
|
||||
return common_vendor.index.showToast({ title: "请再次输入密码", icon: "none" });
|
||||
if (dataFrom.passwd != dataFrom.confirmPasswd)
|
||||
return common_vendor.index.showToast({ title: "两次密码输入不一致", icon: "none" });
|
||||
await api_api.forgotPassword(dataFrom);
|
||||
common_vendor.index.showToast({ title: "修改成功", icon: "none" });
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateBack();
|
||||
}, 200);
|
||||
};
|
||||
let back = () => {
|
||||
common_vendor.index.navigateBack();
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: statusBarHeight,
|
||||
b: common_vendor.o(common_vendor.unref(back)),
|
||||
c: common_vendor.p({
|
||||
name: "arrow-left",
|
||||
bold: true,
|
||||
color: "#000"
|
||||
}),
|
||||
d: common_assets._imports_0$1,
|
||||
e: common_assets._imports_1$1,
|
||||
f: common_vendor.o(($event) => common_vendor.unref(dataFrom).userName = $event),
|
||||
g: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入您的用户名",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).userName
|
||||
}),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).passwd = $event),
|
||||
i: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
type: "password",
|
||||
placeholder: "请输入您的密码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).passwd
|
||||
}),
|
||||
j: common_vendor.o(($event) => common_vendor.unref(dataFrom).confirmPasswd = $event),
|
||||
k: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
type: "password",
|
||||
placeholder: "请再次输入您的密码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).confirmPasswd
|
||||
}),
|
||||
l: common_vendor.o(($event) => common_vendor.unref(dataFrom).phone = $event),
|
||||
m: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入您的手机号",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).phone
|
||||
}),
|
||||
n: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
|
||||
o: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入验证码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).smsCode
|
||||
}),
|
||||
p: common_vendor.sr(uCode, "d23ab30f-7", {
|
||||
"k": "uCode"
|
||||
}),
|
||||
q: common_vendor.o(common_vendor.unref(codeChange2)),
|
||||
r: common_vendor.p({
|
||||
["keep-running"]: true,
|
||||
["start-text"]: "点我获取验证码"
|
||||
}),
|
||||
s: common_vendor.t(common_vendor.unref(tips)),
|
||||
t: common_vendor.o((...args) => common_vendor.unref(getCode2) && common_vendor.unref(getCode2)(...args)),
|
||||
v: common_vendor.unref(tips),
|
||||
w: common_vendor.o((...args) => common_vendor.unref(submit) && common_vendor.unref(submit)(...args))
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d23ab30f"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
10
unpackage/dist/dev/mp-weixin/pages/login/getBack.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/login/getBack.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="login data-v-d23ab30f"><view class="orderdetail_header p30 data-v-d23ab30f"><view class="data-v-d23ab30f" style="{{'height:' + a}}"></view><view class="data-v-d23ab30f" style="height:44px;display:flex;align-items:center"><up-icon wx:if="{{c}}" class="data-v-d23ab30f" bindclick="{{b}}" u-i="d23ab30f-0" bind:__l="__l" u-p="{{c}}"></up-icon></view></view><image class="login_bei data-v-d23ab30f" src="{{d}}"></image><status-bar class="data-v-d23ab30f" u-i="d23ab30f-1" bind:__l="__l"/><view class="login_logo data-v-d23ab30f"><image class="login_logo_img data-v-d23ab30f" src="{{e}}"></image><view class="login_logo_tit data-v-d23ab30f">欢迎来到星动能源</view></view><view class="data-v-d23ab30f" style="margin-top:150rpx"><view class="data-v-d23ab30f" style="margin-bottom:30rpx"><up-input wx:if="{{g}}" class="data-v-d23ab30f" u-i="d23ab30f-2" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="data-v-d23ab30f" style="margin-bottom:30rpx"><up-input wx:if="{{i}}" class="data-v-d23ab30f" u-i="d23ab30f-3" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-input></view><view class="data-v-d23ab30f" style="margin-bottom:30rpx"><up-input wx:if="{{k}}" class="data-v-d23ab30f" u-i="d23ab30f-4" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"></up-input></view><view class="data-v-d23ab30f" style="margin-bottom:30rpx"><up-input wx:if="{{m}}" class="data-v-d23ab30f" u-i="d23ab30f-5" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"></up-input></view><view class="data-v-d23ab30f" style="margin-bottom:30rpx;display:flex;align-items:center"><up-input wx:if="{{o}}" class="data-v-d23ab30f" u-i="d23ab30f-6" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"></up-input><up-code wx:if="{{r}}" class="r data-v-d23ab30f" u-r="uCode" bindchange="{{q}}" u-i="d23ab30f-7" bind:__l="__l" u-p="{{r}}"></up-code><text class="data-v-d23ab30f" bindtap="{{t}}" text="{{v}}" style="font-size:28rpx;color:#4874e5">{{s}}</text></view></view><view class="data-v-d23ab30f" style="display:flex;justify-content:center;margin-top:80rpx"><view class="login_btn data-v-d23ab30f" bindtap="{{w}}">确认</view></view></view>
|
||||
43
unpackage/dist/dev/mp-weixin/pages/login/getBack.wxss
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
.login.data-v-d23ab30f {
|
||||
padding: 0 60rpx;
|
||||
}
|
||||
.login_bei.data-v-d23ab30f {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 608rpx;
|
||||
height: 424rpx;
|
||||
}
|
||||
.login_logo.data-v-d23ab30f {
|
||||
margin-top: 150rpx;
|
||||
}
|
||||
.login_logo_img.data-v-d23ab30f {
|
||||
width: 152rpx;
|
||||
height: 106rpx;
|
||||
border-radius: 28rpx 28rpx 28rpx 28rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.login_logo_tit.data-v-d23ab30f {
|
||||
font-weight: bold;
|
||||
font-size: 44rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.login_btn.data-v-d23ab30f {
|
||||
width: 474rpx;
|
||||
height: 78rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
.orderdetail_header.data-v-d23ab30f {
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99;
|
||||
}
|
||||
136
unpackage/dist/dev/mp-weixin/pages/login/getBackAccout.js
vendored
Normal file
@@ -0,0 +1,136 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
|
||||
(_easycom_up_icon2 + _easycom_statusBar2 + _easycom_up_input2 + _easycom_up_code2)();
|
||||
}
|
||||
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_icon + _easycom_statusBar + _easycom_up_input + _easycom_up_code)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "getBackAccout",
|
||||
setup(__props) {
|
||||
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
|
||||
let tips = common_vendor.ref("");
|
||||
let uCode = common_vendor.ref(null);
|
||||
let dataFrom = common_vendor.reactive({
|
||||
phone: "",
|
||||
smsCode: ""
|
||||
});
|
||||
let codeChange2 = (text) => {
|
||||
tips.value = text;
|
||||
};
|
||||
let getCode2 = () => {
|
||||
if (!dataFrom.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (uCode.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
api_api.smsCode({
|
||||
phone: dataFrom.phone
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCode.value.start();
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
let submit = async () => {
|
||||
if (!dataFrom.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (dataFrom.phone.length != 11)
|
||||
return common_vendor.index.showToast({ title: "请输入正确的手机号", icon: "none" });
|
||||
if (!dataFrom.smsCode)
|
||||
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
|
||||
let _res = await api_api.forgotUserName(dataFrom);
|
||||
if (_res.userNames.length == 0) {
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "该手机号还未注册",
|
||||
showCancel: false,
|
||||
confirmText: "我知道了"
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showModal({
|
||||
title: "已找回的用户名",
|
||||
content: _res.userNames.join(","),
|
||||
showCancel: false,
|
||||
confirmText: "确认",
|
||||
success: () => {
|
||||
common_vendor.index.setClipboardData({
|
||||
data: _res.userNames.join(","),
|
||||
//要被复制的内容
|
||||
success: () => {
|
||||
common_vendor.index.showToast({
|
||||
//提示
|
||||
title: "已复制用户名"
|
||||
});
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateBack();
|
||||
}, 1500);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
let back = () => {
|
||||
common_vendor.index.navigateBack();
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: statusBarHeight,
|
||||
b: common_vendor.o(common_vendor.unref(back)),
|
||||
c: common_vendor.p({
|
||||
name: "arrow-left",
|
||||
bold: true,
|
||||
color: "#000"
|
||||
}),
|
||||
d: common_assets._imports_0$1,
|
||||
e: common_assets._imports_1$1,
|
||||
f: common_vendor.o(($event) => common_vendor.unref(dataFrom).phone = $event),
|
||||
g: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入您的手机号",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).phone
|
||||
}),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
|
||||
i: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入验证码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).smsCode
|
||||
}),
|
||||
j: common_vendor.sr(uCode, "07a163b6-4", {
|
||||
"k": "uCode"
|
||||
}),
|
||||
k: common_vendor.o(common_vendor.unref(codeChange2)),
|
||||
l: common_vendor.p({
|
||||
["keep-running"]: true,
|
||||
["start-text"]: "点我获取验证码"
|
||||
}),
|
||||
m: common_vendor.t(common_vendor.unref(tips)),
|
||||
n: common_vendor.o((...args) => common_vendor.unref(getCode2) && common_vendor.unref(getCode2)(...args)),
|
||||
o: common_vendor.unref(tips),
|
||||
p: common_vendor.o((...args) => common_vendor.unref(submit) && common_vendor.unref(submit)(...args))
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-07a163b6"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
10
unpackage/dist/dev/mp-weixin/pages/login/getBackAccout.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/login/getBackAccout.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="login data-v-07a163b6"><view class="orderdetail_header p30 data-v-07a163b6"><view class="data-v-07a163b6" style="{{'height:' + a}}"></view><view class="data-v-07a163b6" style="height:44px;display:flex;align-items:center"><up-icon wx:if="{{c}}" class="data-v-07a163b6" bindclick="{{b}}" u-i="07a163b6-0" bind:__l="__l" u-p="{{c}}"></up-icon></view></view><image class="login_bei data-v-07a163b6" src="{{d}}"></image><status-bar class="data-v-07a163b6" u-i="07a163b6-1" bind:__l="__l"/><view class="login_logo data-v-07a163b6"><image class="login_logo_img data-v-07a163b6" src="{{e}}"></image><view class="login_logo_tit data-v-07a163b6">欢迎来到星动能源</view></view><view class="data-v-07a163b6" style="margin-top:150rpx"><view class="data-v-07a163b6" style="margin-bottom:30rpx"><up-input wx:if="{{g}}" class="data-v-07a163b6" u-i="07a163b6-2" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="data-v-07a163b6" style="margin-bottom:30rpx;display:flex;align-items:center"><up-input wx:if="{{i}}" class="data-v-07a163b6" u-i="07a163b6-3" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-input><up-code wx:if="{{l}}" class="r data-v-07a163b6" u-r="uCode" bindchange="{{k}}" u-i="07a163b6-4" bind:__l="__l" u-p="{{l}}"></up-code><text class="data-v-07a163b6" bindtap="{{n}}" text="{{o}}" style="font-size:28rpx;color:#4874e5">{{m}}</text></view></view><view class="data-v-07a163b6" style="display:flex;justify-content:center;margin-top:80rpx"><view class="login_btn data-v-07a163b6" bindtap="{{p}}">确认</view></view></view>
|
||||
43
unpackage/dist/dev/mp-weixin/pages/login/getBackAccout.wxss
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
.login.data-v-07a163b6 {
|
||||
padding: 0 60rpx;
|
||||
}
|
||||
.login_bei.data-v-07a163b6 {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 608rpx;
|
||||
height: 424rpx;
|
||||
}
|
||||
.login_logo.data-v-07a163b6 {
|
||||
margin-top: 150rpx;
|
||||
}
|
||||
.login_logo_img.data-v-07a163b6 {
|
||||
width: 152rpx;
|
||||
height: 106rpx;
|
||||
border-radius: 28rpx 28rpx 28rpx 28rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.login_logo_tit.data-v-07a163b6 {
|
||||
font-weight: bold;
|
||||
font-size: 44rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.login_btn.data-v-07a163b6 {
|
||||
width: 474rpx;
|
||||
height: 78rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
.orderdetail_header.data-v-07a163b6 {
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99;
|
||||
}
|
||||
92
unpackage/dist/dev/mp-weixin/pages/login/login.js
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const store_index = require("../../store/index.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
(_easycom_up_icon2 + _easycom_statusBar2 + _easycom_up_input2)();
|
||||
}
|
||||
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_icon + _easycom_statusBar + _easycom_up_input)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "login",
|
||||
setup(__props) {
|
||||
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
|
||||
common_vendor.ref("");
|
||||
let dataFrom = common_vendor.reactive({
|
||||
userName: "",
|
||||
passwd: "",
|
||||
uuid: "",
|
||||
captcha: ""
|
||||
});
|
||||
let back = () => {
|
||||
common_vendor.index.navigateBack();
|
||||
};
|
||||
let getBackAccout = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "./getBackAccout"
|
||||
});
|
||||
};
|
||||
let toGetBack = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/login/getBack"
|
||||
});
|
||||
};
|
||||
let login = async () => {
|
||||
try {
|
||||
const { code } = await common_vendor.index.login();
|
||||
let _res = await api_api.loginApi(dataFrom);
|
||||
common_vendor.index.setStorageSync("token", _res.token);
|
||||
common_vendor.index.setStorageSync("user", _res);
|
||||
store_index.store.commit("setToken", _res.token);
|
||||
let saveOpenId = await api_api.saveOpenIdByWxCode({ loginCode: code });
|
||||
common_vendor.index.showToast({ title: "登录成功", icon: "none" });
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateBack();
|
||||
}, 200);
|
||||
} catch (err) {
|
||||
}
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: statusBarHeight,
|
||||
b: common_vendor.o(common_vendor.unref(back)),
|
||||
c: common_vendor.p({
|
||||
name: "arrow-left",
|
||||
bold: true,
|
||||
color: "#000"
|
||||
}),
|
||||
d: common_assets._imports_0$1,
|
||||
e: common_vendor.o(($event) => common_vendor.unref(dataFrom).userName = $event),
|
||||
f: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入您的用户名",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).userName
|
||||
}),
|
||||
g: common_vendor.o(($event) => common_vendor.unref(dataFrom).passwd = $event),
|
||||
h: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
type: "password",
|
||||
placeholder: "请输入您的密码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).passwd
|
||||
}),
|
||||
i: common_vendor.o((...args) => common_vendor.unref(getBackAccout) && common_vendor.unref(getBackAccout)(...args)),
|
||||
j: common_vendor.o((...args) => common_vendor.unref(toGetBack) && common_vendor.unref(toGetBack)(...args)),
|
||||
k: common_vendor.o((...args) => common_vendor.unref(login) && common_vendor.unref(login)(...args))
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e4e4508d"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
9
unpackage/dist/dev/mp-weixin/pages/login/login.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/login/login.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="login data-v-e4e4508d"><view class="orderdetail_header p30 data-v-e4e4508d"><view class="data-v-e4e4508d" style="{{'height:' + a}}"></view><view class="data-v-e4e4508d" style="height:44px;display:flex;align-items:center"><up-icon wx:if="{{c}}" class="data-v-e4e4508d" bindclick="{{b}}" u-i="e4e4508d-0" bind:__l="__l" u-p="{{c}}"></up-icon></view></view><image class="login_bei data-v-e4e4508d" src="{{d}}"></image><status-bar class="data-v-e4e4508d" u-i="e4e4508d-1" bind:__l="__l"/><view class="login_logo data-v-e4e4508d"><view class="login_logo_tit data-v-e4e4508d">欢迎来到充电桩运营系统</view></view><view class="data-v-e4e4508d" style="margin-top:150rpx"><view class="data-v-e4e4508d" style="margin-bottom:50rpx"><up-input wx:if="{{f}}" class="data-v-e4e4508d" u-i="e4e4508d-2" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-input></view><view class="data-v-e4e4508d"><up-input wx:if="{{h}}" class="data-v-e4e4508d" u-i="e4e4508d-3" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-input></view></view><view class="data-v-e4e4508d" style="font-size:28rpx;color:#666;margin-top:20rpx;display:flex;align-items:center;justify-content:space-between"><view class="data-v-e4e4508d"> 忘记账号? <text class="data-v-e4e4508d" style="color:#4874e5" bindtap="{{i}}">找回用户名</text></view><view class="data-v-e4e4508d"><text class="data-v-e4e4508d" style="color:#4874e5" bindtap="{{j}}">忘记密码</text></view></view><view class="data-v-e4e4508d" style="display:flex;justify-content:center;margin-top:80rpx"><view class="login_btn data-v-e4e4508d" bindtap="{{k}}">登录</view></view></view>
|
||||
43
unpackage/dist/dev/mp-weixin/pages/login/login.wxss
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
.login.data-v-e4e4508d {
|
||||
padding: 0 60rpx;
|
||||
}
|
||||
.login_bei.data-v-e4e4508d {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 608rpx;
|
||||
height: 424rpx;
|
||||
}
|
||||
.login_logo.data-v-e4e4508d {
|
||||
margin-top: 150rpx;
|
||||
}
|
||||
.login_logo_img.data-v-e4e4508d {
|
||||
width: 152rpx;
|
||||
height: 106rpx;
|
||||
border-radius: 28rpx 28rpx 28rpx 28rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.login_logo_tit.data-v-e4e4508d {
|
||||
font-weight: bold;
|
||||
font-size: 44rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.login_btn.data-v-e4e4508d {
|
||||
width: 474rpx;
|
||||
height: 78rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
.orderdetail_header.data-v-e4e4508d {
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99;
|
||||
}
|
||||
185
unpackage/dist/dev/mp-weixin/pages/login/register.js
vendored
Normal file
@@ -0,0 +1,185 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
|
||||
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
|
||||
(_easycom_up_icon2 + _easycom_statusBar2 + _easycom_up_input2 + _easycom_up_code2 + _easycom_up_checkbox2)();
|
||||
}
|
||||
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
|
||||
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_icon + _easycom_statusBar + _easycom_up_input + _easycom_up_code + _easycom_up_checkbox)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "register",
|
||||
setup(__props) {
|
||||
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
|
||||
let tips = common_vendor.ref("");
|
||||
let uCode = common_vendor.ref(null);
|
||||
common_vendor.ref("");
|
||||
let dataFrom = common_vendor.reactive({
|
||||
userName: "",
|
||||
passwd: "",
|
||||
shareCode: "",
|
||||
phone: "",
|
||||
platform: 1,
|
||||
smsCode: "",
|
||||
confirmPasswd: ""
|
||||
});
|
||||
let xieyi = common_vendor.ref(false);
|
||||
common_vendor.onLoad(() => {
|
||||
const invite_code = common_vendor.index.getStorageSync("invite_code");
|
||||
if (invite_code) {
|
||||
dataFrom.shareCode = invite_code;
|
||||
}
|
||||
});
|
||||
let changeChex = (e) => {
|
||||
xieyi.value = e;
|
||||
};
|
||||
let toLogin = () => {
|
||||
common_vendor.index.navigateBack();
|
||||
};
|
||||
let codeChange2 = (text) => {
|
||||
tips.value = text;
|
||||
};
|
||||
let getCode2 = () => {
|
||||
if (!dataFrom.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (uCode.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
api_api.smsCode({
|
||||
phone: dataFrom.phone
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCode.value.start();
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
let submit = async () => {
|
||||
if (!xieyi.value)
|
||||
return common_vendor.index.showToast({ title: "请先阅读并勾选隐私政策和用户注册服务协议", icon: "none" });
|
||||
if (!dataFrom.userName)
|
||||
return common_vendor.index.showToast({ title: "请输入用户名", icon: "none" });
|
||||
if (!dataFrom.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (dataFrom.phone.length != 11)
|
||||
return common_vendor.index.showToast({ title: "请输入正确的手机号", icon: "none" });
|
||||
if (!dataFrom.smsCode)
|
||||
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
|
||||
if (!dataFrom.shareCode)
|
||||
return common_vendor.index.showToast({ title: "请输入邀请码", icon: "none" });
|
||||
if (!dataFrom.passwd)
|
||||
return common_vendor.index.showToast({ title: "请输入密码", icon: "none" });
|
||||
if (!dataFrom.confirmPasswd)
|
||||
return common_vendor.index.showToast({ title: "请再次输入密码", icon: "none" });
|
||||
if (dataFrom.passwd != dataFrom.confirmPasswd)
|
||||
return common_vendor.index.showToast({ title: "两次密码输入不一致", icon: "none" });
|
||||
await api_api.registerApi(dataFrom);
|
||||
common_vendor.index.showToast({ title: "注册成功", icon: "none" });
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateBack();
|
||||
}, 200);
|
||||
};
|
||||
let back = () => {
|
||||
common_vendor.index.navigateBack();
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: statusBarHeight,
|
||||
b: common_vendor.o(common_vendor.unref(back)),
|
||||
c: common_vendor.p({
|
||||
name: "arrow-left",
|
||||
bold: true,
|
||||
color: "#000"
|
||||
}),
|
||||
d: common_assets._imports_0$1,
|
||||
e: common_assets._imports_1$1,
|
||||
f: common_vendor.o(($event) => common_vendor.unref(dataFrom).userName = $event),
|
||||
g: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入您的用户名",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).userName
|
||||
}),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).phone = $event),
|
||||
i: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入您的手机号",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).phone
|
||||
}),
|
||||
j: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
|
||||
k: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入验证码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).smsCode
|
||||
}),
|
||||
l: common_vendor.sr(uCode, "838b72c9-5", {
|
||||
"k": "uCode"
|
||||
}),
|
||||
m: common_vendor.o(common_vendor.unref(codeChange2)),
|
||||
n: common_vendor.p({
|
||||
["keep-running"]: true,
|
||||
["start-text"]: "点我获取验证码"
|
||||
}),
|
||||
o: common_vendor.t(common_vendor.unref(tips)),
|
||||
p: common_vendor.o((...args) => common_vendor.unref(getCode2) && common_vendor.unref(getCode2)(...args)),
|
||||
q: common_vendor.unref(tips),
|
||||
r: common_vendor.o(($event) => common_vendor.unref(dataFrom).shareCode = $event),
|
||||
s: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
placeholder: "请输入您的邀请码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).shareCode
|
||||
}),
|
||||
t: common_vendor.o(($event) => common_vendor.unref(dataFrom).passwd = $event),
|
||||
v: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
type: "password",
|
||||
placeholder: "请输入您的密码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).passwd
|
||||
}),
|
||||
w: common_vendor.o(($event) => common_vendor.unref(dataFrom).confirmPasswd = $event),
|
||||
x: common_vendor.p({
|
||||
fontSize: "30rpx",
|
||||
type: "password",
|
||||
placeholder: "请再次输入您的密码",
|
||||
border: "bottom",
|
||||
clearable: true,
|
||||
modelValue: common_vendor.unref(dataFrom).confirmPasswd
|
||||
}),
|
||||
y: common_vendor.o((...args) => common_vendor.unref(toLogin) && common_vendor.unref(toLogin)(...args)),
|
||||
z: common_vendor.o((...args) => common_vendor.unref(submit) && common_vendor.unref(submit)(...args)),
|
||||
A: common_vendor.o(common_vendor.unref(changeChex)),
|
||||
B: common_vendor.p({
|
||||
customStyle: {
|
||||
marginRight: "15rpx",
|
||||
marginBotton: 0
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-838b72c9"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
11
unpackage/dist/dev/mp-weixin/pages/login/register.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
|
||||
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/login/register.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="login data-v-838b72c9"><view class="orderdetail_header p30 data-v-838b72c9"><view class="data-v-838b72c9" style="{{'height:' + a}}"></view><view class="data-v-838b72c9" style="height:44px;display:flex;align-items:center"><up-icon wx:if="{{c}}" class="data-v-838b72c9" bindclick="{{b}}" u-i="838b72c9-0" bind:__l="__l" u-p="{{c}}"></up-icon></view></view><image class="login_bei data-v-838b72c9" src="{{d}}"></image><view class="data-v-838b72c9" style="padding:0 60rpx"><status-bar class="data-v-838b72c9" u-i="838b72c9-1" bind:__l="__l"/><view class="login_logo data-v-838b72c9"><image class="login_logo_img data-v-838b72c9" src="{{e}}"></image><view class="login_logo_tit data-v-838b72c9">欢迎来到星动能源</view></view><view class="data-v-838b72c9" style="margin-top:100rpx"><view class="data-v-838b72c9"><up-input wx:if="{{g}}" class="data-v-838b72c9" u-i="838b72c9-2" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="data-v-838b72c9" style="font-size:26rpx;color:#ff9900;margin:10rpx 0 10rpx;padding-left:9px">用户名由字母或数字组成,长度6-32</view><view class="data-v-838b72c9" style="margin-bottom:30rpx"><up-input wx:if="{{i}}" class="data-v-838b72c9" u-i="838b72c9-3" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-input></view><view class="data-v-838b72c9" style="margin-bottom:30rpx;display:flex;align-items:center"><up-input wx:if="{{k}}" class="data-v-838b72c9" u-i="838b72c9-4" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"></up-input><up-code wx:if="{{n}}" class="r data-v-838b72c9" u-r="uCode" bindchange="{{m}}" u-i="838b72c9-5" bind:__l="__l" u-p="{{n}}"></up-code><text class="data-v-838b72c9" bindtap="{{p}}" text="{{q}}" style="font-size:28rpx;color:#4874e5">{{o}}</text></view><view class="data-v-838b72c9" style="margin-bottom:30rpx"><up-input wx:if="{{s}}" class="data-v-838b72c9" u-i="838b72c9-6" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></up-input></view><view class="data-v-838b72c9"><up-input wx:if="{{v}}" class="data-v-838b72c9" u-i="838b72c9-7" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"></up-input></view><view class="data-v-838b72c9" style="font-size:26rpx;color:#ff9900;margin:10rpx 0 10rpx;padding-left:9px">密码必须包含字母、数字长度8-32</view><view class="data-v-838b72c9" style="margin-bottom:30rpx"><up-input wx:if="{{x}}" class="data-v-838b72c9" u-i="838b72c9-8" bind:__l="__l" bindupdateModelValue="{{w}}" u-p="{{x}}"></up-input></view></view><view class="data-v-838b72c9" style="font-size:28rpx;color:#666;margin-top:20rpx"> 已有账号? <text class="data-v-838b72c9" style="color:#4874e5" bindtap="{{y}}">立即登录</text></view><view class="data-v-838b72c9" style="display:flex;justify-content:center;margin-top:80rpx"><view class="login_btn data-v-838b72c9" bindtap="{{z}}">注册</view></view></view><view class="data-v-838b72c9" style="display:flex;flex-wrap:wrap;justify-content:center;margin-top:20rpx;font-size:26rpx;align-items:center"><up-checkbox wx:if="{{B}}" class="data-v-838b72c9" bindchange="{{A}}" u-i="838b72c9-9" bind:__l="__l" u-p="{{B}}"></up-checkbox> 已阅读并同意 <navigator class="data-v-838b72c9" url="/pages/agreement/agreement?id=9" style="color:#4874e5">《用户注册服务协议》</navigator> 和 <navigator class="data-v-838b72c9" url="/pages/agreement/agreement?id=10" style="color:#4874e5">《隐私政策》</navigator></view><view class="data-v-838b72c9" style="height:150rpx"></view></view>
|
||||
40
unpackage/dist/dev/mp-weixin/pages/login/register.wxss
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
.login_bei.data-v-838b72c9 {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 608rpx;
|
||||
height: 424rpx;
|
||||
}
|
||||
.login_logo.data-v-838b72c9 {
|
||||
margin-top: 150rpx;
|
||||
}
|
||||
.login_logo_img.data-v-838b72c9 {
|
||||
width: 152rpx;
|
||||
height: 106rpx;
|
||||
border-radius: 28rpx 28rpx 28rpx 28rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.login_logo_tit.data-v-838b72c9 {
|
||||
font-weight: bold;
|
||||
font-size: 44rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.login_btn.data-v-838b72c9 {
|
||||
width: 474rpx;
|
||||
height: 78rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
.orderdetail_header.data-v-838b72c9 {
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99;
|
||||
}
|
||||
36
unpackage/dist/dev/mp-weixin/project.config.json
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"description": "项目配置文件。",
|
||||
"packOptions": {
|
||||
"ignore": []
|
||||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": true,
|
||||
"postcss": false,
|
||||
"minified": false,
|
||||
"newFeature": true,
|
||||
"bigPackageSizeSupport": true
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "",
|
||||
"appid": "wx907fc79e90e4a066",
|
||||
"projectname": "星动能源",
|
||||
"condition": {
|
||||
"search": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"conversation": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"game": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"miniprogram": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
}
|
||||
}
|
||||
}
|
||||
41
unpackage/dist/dev/mp-weixin/project.private.config.json
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||
"projectname": "星动能源",
|
||||
"setting": {
|
||||
"compileHotReLoad": true
|
||||
},
|
||||
"condition": {
|
||||
"miniprogram": {
|
||||
"list": [
|
||||
{
|
||||
"name": "pages/activity/index",
|
||||
"pathName": "pages/activity/index",
|
||||
"query": "",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "pages/order/success",
|
||||
"pathName": "pages/order/success",
|
||||
"query": "amount=4980&orderNo=1831166259786539008&createTime=2024-09-04T03%3A03%3A52.000%2B00%3A00",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "pages/wallet/withdraw",
|
||||
"pathName": "pages/wallet/withdraw",
|
||||
"query": "",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "登陆页面",
|
||||
"pathName": "pages/login/login",
|
||||
"query": "",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
74
unpackage/dist/dev/mp-weixin/request/index.js
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const store_index = require("../store/index.js");
|
||||
const config = require("../config.js");
|
||||
require("../uni_modules/uview-plus/index.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../uni_modules/uview-plus/libs/function/index.js");
|
||||
const http = (url, params, method, Headers) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
let Authorization = store_index.store.state.token || "";
|
||||
let header = {
|
||||
Authorization,
|
||||
...Headers
|
||||
};
|
||||
common_vendor.index.request({
|
||||
url: config.API_URL + url,
|
||||
data: params || {},
|
||||
method: method || "POST",
|
||||
header,
|
||||
success: (res) => {
|
||||
const data = res.data;
|
||||
if (data.code == 401 || res.statusCode == 401) {
|
||||
common_vendor.index.clearStorageSync();
|
||||
store_index.store.commit("setToken", "");
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: `${Authorization ? "登录失效" : "你还未登录"},是否前往登录?`,
|
||||
success: function(res2) {
|
||||
if (res2.confirm) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
} else if (res2.cancel) {
|
||||
console.log("用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
reject(data);
|
||||
return;
|
||||
}
|
||||
if (data.code == 10 && !data.success) {
|
||||
reject(data);
|
||||
return;
|
||||
}
|
||||
if (data.code !== 1 && !data.success) {
|
||||
uni_modules_uviewPlus_libs_function_index.toast(data.msg);
|
||||
reject(data);
|
||||
return;
|
||||
}
|
||||
resolve(data.data || null);
|
||||
},
|
||||
fail: (err) => {
|
||||
if (err.code == 401 || err.statusCode == 401) {
|
||||
common_vendor.index.clearStorageSync();
|
||||
store_index.store.commit("setToken", "");
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: `${Authorization ? "登录失效" : "你还未登录"},是否前往登录?`,
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
console.log("用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
exports.http = http;
|
||||
BIN
unpackage/dist/dev/mp-weixin/static/icon/avatar.png
vendored
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/cds.png
vendored
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/cdz.png
vendored
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/grxx.png
vendored
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/hd.png
vendored
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/home.png
vendored
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/mx.png
vendored
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/order.png
vendored
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/sz.png
vendored
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/tc.png
vendored
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/tkf.png
vendored
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/tx.png
vendored
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/txs.png
vendored
Normal file
|
After Width: | Height: | Size: 8.9 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/xia.png
vendored
Normal file
|
After Width: | Height: | Size: 849 B |
BIN
unpackage/dist/dev/mp-weixin/static/icon/yhk.png
vendored
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/zhuan.png
vendored
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/icon/zz.png
vendored
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/logo.png
vendored
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/logoB.png
vendored
Normal file
|
After Width: | Height: | Size: 46 KiB |
13
unpackage/dist/dev/mp-weixin/store/index.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const store = common_vendor.createStore({
|
||||
state: {
|
||||
token: ""
|
||||
},
|
||||
mutations: {
|
||||
setToken(state, data) {
|
||||
state.token = data;
|
||||
}
|
||||
}
|
||||
});
|
||||
exports.store = store;
|
||||
25
unpackage/dist/dev/mp-weixin/uni_modules/tuniaoui-wx-user-info/static/iconfont.css
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
@font-face {
|
||||
font-family: "tuniaoFont"; /* Project id 3784643 */
|
||||
src:
|
||||
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAN8AAsAAAAAB4gAAAMvAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDBgqCQIIdATYCJAMMCwgABCAFhH8HPRuYBiMRpmvPIfurAzsYPj7DCVbrRAmElfXCs4V6xacO8aHO69VXu54tTy8h0hcJ7ufgieY+3+xscrn9B8wKQQFBywplLZCw9SwcOyZ5pKsoAQAbcICJTr7AjPPqr06NRkeIAemFpXv8cje1+/LkuLvD789WJZUANjOe9F76qptDOSMUui/Ua0WQKpZGXaqf5hHZdAD6x8tRJtRKtQd7j5UKkk6lWywYkGADCZBnGLugJd6CAI4GOjH956Ep4k7imdNkYTGFAkm2nJyPrBNwA7YhWwgQ/K4bLXITD8wl8xxuBN+XwyYJwOAp5jFjOwNbPNwd3l3WiyFAv3sCBLjcAB6gQM3GjLLSbJpDo1ANiqsiFiX7WAQzqTcMA06j/pb/eAbEx8yMAaAChg3sDjs6COwub8IAoAD4PEZkA7iAZClPKdicmJLc2OiZcQC3cV613sc3Ab9W7YItQtio9YgdKGjgr+ANlbg5gPvXFacv8IyvKTH4pcjV7VIcfnuIAUd3VCbxcCIKj++rvr/hpx/iwxd4/5mxDXeILbBp2+ByMIlGMuQEU3gjiVaMcXk8Dn2gWo5wuRwuIldLRqRwWogvmCRXE9/kSvrVQP4iFDVWRSbRakMk/AtcBYVpO6rpah1V9J/m/Wt+q8WfsOV+S5KFTGD5dwW9KFstZUs5smuYK3V495zwUG+r/Izf0PWtbWj/HUQsAL9u+cGK8NCiAgRnaRJ49fqljrxWc4PaKs4pQwBlMLUeAzgcEGLakvg5nCZ3zgTBkZzAEEUuFEeJyMrq4BGhGT6OPjiqGd4eIZkLKGKjgTKuAAgpPIAhjmdQUngnsrJdeKTxBz4pkgjHjJQeFqFMXv8PQqg0QP+F2cbAdoHqFmaM52jYlcbNoeTq4CtPkjzHAE1Zl0QvFEjGmp9fY6vKwBI9kOvIuQhJ4kJWy0k1dVXFVXcpbfTmIIRKA/RfmG0M7G1T3cKM8VwMXGlEnR1KY0uU+CTJnM1ODk1ZdxJdSOjYdGOp+TW2k6szsNg8qIvIuQipetFCVstpQCB1lcXHXUl5ZOpfdBvgMI9QMaJi8TZdzLS36K8/ueDZOWMAAA==') format('woff2'),
|
||||
url('//at.alicdn.com/t/c/font_3784643_5jru9pe5fad.woff?t=1669045092678') format('woff'),
|
||||
url('//at.alicdn.com/t/c/font_3784643_5jru9pe5fad.ttf?t=1669045092678') format('truetype');
|
||||
}
|
||||
|
||||
[class*='tn-icon-'] {
|
||||
font-family: 'tuniaoFont' !important;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tn-icon-close:before {
|
||||
content: "\e74d";
|
||||
}
|
||||
|
||||
.tn-icon-camera-fill:before {
|
||||
content: "\e75d";
|
||||
}
|
||||
77
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-checkbox/props.js
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = {
|
||||
props: {
|
||||
// checkbox的名称
|
||||
name: {
|
||||
type: [String, Number, Boolean],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.name
|
||||
},
|
||||
// 形状,square为方形,circle为圆型
|
||||
shape: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.shape
|
||||
},
|
||||
// 整体的大小
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.size
|
||||
},
|
||||
// 是否默认选中
|
||||
checked: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.checked
|
||||
},
|
||||
// 是否禁用
|
||||
disabled: {
|
||||
type: [String, Boolean],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.disabled
|
||||
},
|
||||
// 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
|
||||
activeColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.activeColor
|
||||
},
|
||||
// 未选中的颜色
|
||||
inactiveColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.inactiveColor
|
||||
},
|
||||
// 图标的大小,单位px
|
||||
iconSize: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.iconSize
|
||||
},
|
||||
// 图标颜色
|
||||
iconColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.iconColor
|
||||
},
|
||||
// label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
|
||||
label: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.label
|
||||
},
|
||||
// label的字体大小,px单位
|
||||
labelSize: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.labelSize
|
||||
},
|
||||
// label的颜色
|
||||
labelColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.labelColor
|
||||
},
|
||||
// 是否禁止点击提示语选中复选框
|
||||
labelDisabled: {
|
||||
type: [String, Boolean],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.checkbox.labelDisabled
|
||||
},
|
||||
// 是否独立使用
|
||||
usedAlone: {
|
||||
type: [Boolean],
|
||||
default: () => false
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.props = props;
|
||||
213
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.js
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_components_uCheckbox_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../libs/function/index.js");
|
||||
const uni_modules_uviewPlus_libs_function_test = require("../../libs/function/test.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "u-checkbox",
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uCheckbox_props.props],
|
||||
data() {
|
||||
return {
|
||||
isChecked: false,
|
||||
// 父组件的默认值,因为头条小程序不支持在computed中使用this.parent.shape的形式
|
||||
// 故只能使用如此方法
|
||||
parentData: {
|
||||
iconSize: 12,
|
||||
labelDisabled: null,
|
||||
disabled: null,
|
||||
shape: "square",
|
||||
activeColor: null,
|
||||
inactiveColor: null,
|
||||
size: 18,
|
||||
modelValue: null,
|
||||
iconColor: null,
|
||||
placement: "row",
|
||||
borderBottom: false,
|
||||
iconPlacement: "left"
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
// 是否禁用,如果父组件u-raios-group禁用的话,将会忽略子组件的配置
|
||||
elDisabled() {
|
||||
return this.disabled !== "" ? this.disabled : this.parentData.disabled !== null ? this.parentData.disabled : false;
|
||||
},
|
||||
// 是否禁用label点击
|
||||
elLabelDisabled() {
|
||||
return this.labelDisabled !== "" ? this.labelDisabled : this.parentData.labelDisabled !== null ? this.parentData.labelDisabled : false;
|
||||
},
|
||||
// 组件尺寸,对应size的值,默认值为21px
|
||||
elSize() {
|
||||
return this.size ? this.size : this.parentData.size ? this.parentData.size : 21;
|
||||
},
|
||||
// 组件的勾选图标的尺寸,默认12px
|
||||
elIconSize() {
|
||||
return this.iconSize ? this.iconSize : this.parentData.iconSize ? this.parentData.iconSize : 12;
|
||||
},
|
||||
// 组件选中激活时的颜色
|
||||
elActiveColor() {
|
||||
return this.activeColor ? this.activeColor : this.parentData.activeColor ? this.parentData.activeColor : "#2979ff";
|
||||
},
|
||||
// 组件选未中激活时的颜色
|
||||
elInactiveColor() {
|
||||
return this.inactiveColor ? this.inactiveColor : this.parentData.inactiveColor ? this.parentData.inactiveColor : "#c8c9cc";
|
||||
},
|
||||
// label的颜色
|
||||
elLabelColor() {
|
||||
return this.labelColor ? this.labelColor : this.parentData.labelColor ? this.parentData.labelColor : "#606266";
|
||||
},
|
||||
// 组件的形状
|
||||
elShape() {
|
||||
return this.shape ? this.shape : this.parentData.shape ? this.parentData.shape : "circle";
|
||||
},
|
||||
// label大小
|
||||
elLabelSize() {
|
||||
return uni_modules_uviewPlus_libs_function_index.addUnit(this.labelSize ? this.labelSize : this.parentData.labelSize ? this.parentData.labelSize : "15");
|
||||
},
|
||||
elIconColor() {
|
||||
const iconColor = this.iconColor ? this.iconColor : this.parentData.iconColor ? this.parentData.iconColor : "#ffffff";
|
||||
if (this.elDisabled) {
|
||||
return this.isChecked ? this.elInactiveColor : "transparent";
|
||||
} else {
|
||||
return this.isChecked ? iconColor : "transparent";
|
||||
}
|
||||
},
|
||||
iconClasses() {
|
||||
let classes = [];
|
||||
classes.push("u-checkbox__icon-wrap--" + this.elShape);
|
||||
if (this.elDisabled) {
|
||||
classes.push("u-checkbox__icon-wrap--disabled");
|
||||
}
|
||||
if (this.isChecked && this.elDisabled) {
|
||||
classes.push("u-checkbox__icon-wrap--disabled--checked");
|
||||
}
|
||||
return classes;
|
||||
},
|
||||
iconWrapStyle() {
|
||||
const style = {};
|
||||
style.backgroundColor = this.isChecked && !this.elDisabled ? this.elActiveColor : "#ffffff";
|
||||
style.borderColor = this.isChecked && !this.elDisabled ? this.elActiveColor : this.elInactiveColor;
|
||||
style.width = uni_modules_uviewPlus_libs_function_index.addUnit(this.elSize);
|
||||
style.height = uni_modules_uviewPlus_libs_function_index.addUnit(this.elSize);
|
||||
if (!this.usedAlone) {
|
||||
if (this.parentData.iconPlacement === "right") {
|
||||
style.marginRight = 0;
|
||||
}
|
||||
}
|
||||
return style;
|
||||
},
|
||||
checkboxStyle() {
|
||||
const style = {};
|
||||
if (!this.usedAlone) {
|
||||
if (this.parentData.borderBottom && this.parentData.placement === "row") {
|
||||
uni_modules_uviewPlus_libs_function_index.error("检测到您将borderBottom设置为true,需要同时将u-checkbox-group的placement设置为column才有效");
|
||||
}
|
||||
if (this.parentData.borderBottom && this.parentData.placement === "column") {
|
||||
style.paddingBottom = "8px";
|
||||
}
|
||||
}
|
||||
return uni_modules_uviewPlus_libs_function_index.deepMerge(style, uni_modules_uviewPlus_libs_function_index.addStyle(this.customStyle));
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.init();
|
||||
},
|
||||
emits: ["change"],
|
||||
methods: {
|
||||
init() {
|
||||
if (!this.usedAlone) {
|
||||
this.updateParentData();
|
||||
if (!this.parent) {
|
||||
uni_modules_uviewPlus_libs_function_index.error("u-checkbox必须搭配u-checkbox-group组件使用");
|
||||
}
|
||||
}
|
||||
const value = this.parentData.modelValue;
|
||||
if (this.checked) {
|
||||
this.isChecked = true;
|
||||
} else if (!this.usedAlone && uni_modules_uviewPlus_libs_function_test.test.array(value)) {
|
||||
this.isChecked = value.some((item) => {
|
||||
return item === this.name;
|
||||
});
|
||||
}
|
||||
},
|
||||
updateParentData() {
|
||||
this.getParentData("u-checkbox-group");
|
||||
},
|
||||
// 横向两端排列时,点击组件即可触发选中事件
|
||||
wrapperClickHandler(e) {
|
||||
if (!this.usedAlone) {
|
||||
this.parentData.iconPlacement === "right" && this.iconClickHandler(e);
|
||||
} else {
|
||||
this.iconClickHandler(e);
|
||||
}
|
||||
},
|
||||
// 点击图标
|
||||
iconClickHandler(e) {
|
||||
this.preventEvent(e);
|
||||
if (!this.elDisabled) {
|
||||
this.setRadioCheckedStatus();
|
||||
}
|
||||
},
|
||||
// 点击label
|
||||
labelClickHandler(e) {
|
||||
this.preventEvent(e);
|
||||
if (!this.elLabelDisabled && !this.elDisabled) {
|
||||
this.setRadioCheckedStatus();
|
||||
}
|
||||
},
|
||||
emitEvent() {
|
||||
this.$emit("change", this.isChecked);
|
||||
this.$nextTick(() => {
|
||||
uni_modules_uviewPlus_libs_function_index.formValidate(this, "change");
|
||||
});
|
||||
},
|
||||
// 改变组件选中状态
|
||||
// 这里的改变的依据是,更改本组件的checked值为true,同时通过父组件遍历所有u-checkbox实例
|
||||
// 将本组件外的其他u-checkbox的checked都设置为false(都被取消选中状态),因而只剩下一个为选中状态
|
||||
setRadioCheckedStatus() {
|
||||
this.isChecked = !this.isChecked;
|
||||
this.emitEvent();
|
||||
if (!this.usedAlone) {
|
||||
typeof this.parent.unCheckedOther === "function" && this.parent.unCheckedOther(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
checked() {
|
||||
this.isChecked = this.checked;
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
_easycom_u_icon2();
|
||||
}
|
||||
const _easycom_u_icon = () => "../u-icon/u-icon.js";
|
||||
if (!Math) {
|
||||
_easycom_u_icon();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
name: "checkbox-mark",
|
||||
size: $options.elIconSize,
|
||||
color: $options.elIconColor
|
||||
}),
|
||||
b: common_vendor.o((...args) => $options.iconClickHandler && $options.iconClickHandler(...args)),
|
||||
c: common_vendor.n($options.iconClasses),
|
||||
d: common_vendor.s($options.iconWrapStyle),
|
||||
e: common_vendor.t(_ctx.label),
|
||||
f: common_vendor.o((...args) => $options.labelClickHandler && $options.labelClickHandler(...args)),
|
||||
g: $options.elDisabled ? $options.elInactiveColor : $options.elLabelColor,
|
||||
h: $options.elLabelSize,
|
||||
i: $options.elLabelSize,
|
||||
j: common_vendor.s($options.checkboxStyle),
|
||||
k: common_vendor.o((...args) => $options.wrapperClickHandler && $options.wrapperClickHandler(...args)),
|
||||
l: common_vendor.n(`u-checkbox-label--${$data.parentData.iconPlacement}`),
|
||||
m: common_vendor.n($data.parentData.borderBottom && $data.parentData.placement === "column" && "u-border-bottom")
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-41713600"]]);
|
||||
wx.createComponent(Component);
|
||||
6
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{j}}" catchtap="{{k}}" class="{{['u-checkbox', 'cursor-pointer', 'data-v-41713600', l, m]}}"><view catchtap="{{b}}" class="{{['u-checkbox__icon-wrap', 'cursor-pointer', 'data-v-41713600', c]}}" style="{{d}}"><block wx:if="{{$slots.icon}}"><slot name="icon"></slot></block><block wx:else><u-icon wx:if="{{a}}" class="u-checkbox__icon-wrap__icon data-v-41713600" u-i="41713600-0" bind:__l="__l" u-p="{{a}}"/></block></view><text class="data-v-41713600" catchtap="{{f}}" style="{{'color:' + g + ';' + ('font-size:' + h) + ';' + ('line-height:' + i)}}">{{e}}</text></view>
|
||||
74
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.wxss
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
.u-empty.data-v-41713600,
|
||||
.u-empty__wrap.data-v-41713600,
|
||||
.u-tabs.data-v-41713600,
|
||||
.u-tabs__wrapper.data-v-41713600,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-41713600,
|
||||
.u-tabs__wrapper__scroll-view.data-v-41713600,
|
||||
.u-tabs__wrapper__nav.data-v-41713600,
|
||||
.u-tabs__wrapper__nav__line.data-v-41713600 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-checkbox.data-v-41713600 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.u-checkbox-label--left.data-v-41713600 {
|
||||
flex-direction: row;
|
||||
}
|
||||
.u-checkbox-label--right.data-v-41713600 {
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-checkbox__icon-wrap.data-v-41713600 {
|
||||
box-sizing: border-box;
|
||||
transition-property: border-color, background-color, color;
|
||||
transition-duration: 0.2s;
|
||||
color: #606266;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: transparent;
|
||||
text-align: center;
|
||||
margin-right: 6px;
|
||||
font-size: 6px;
|
||||
border-width: 1px;
|
||||
border-color: #c8c9cc;
|
||||
border-style: solid;
|
||||
}
|
||||
.u-checkbox__icon-wrap--circle.data-v-41713600 {
|
||||
border-radius: 100%;
|
||||
}
|
||||
.u-checkbox__icon-wrap--square.data-v-41713600 {
|
||||
border-radius: 3px;
|
||||
}
|
||||
.u-checkbox__icon-wrap--checked.data-v-41713600 {
|
||||
color: #fff;
|
||||
background-color: red;
|
||||
border-color: #2979ff;
|
||||
}
|
||||
.u-checkbox__icon-wrap--disabled.data-v-41713600 {
|
||||
background-color: #ebedf0 !important;
|
||||
}
|
||||
.u-checkbox__icon-wrap--disabled--checked.data-v-41713600 {
|
||||
color: #c8c9cc !important;
|
||||
}
|
||||
.u-checkbox__label.data-v-41713600 {
|
||||
word-wrap: break-word;
|
||||
margin-left: 5px;
|
||||
margin-right: 12px;
|
||||
color: #606266;
|
||||
font-size: 15px;
|
||||
}
|
||||
.u-checkbox__label--disabled.data-v-41713600 {
|
||||
color: #c8c9cc;
|
||||
}
|
||||
37
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-code/props.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = {
|
||||
props: {
|
||||
// 倒计时总秒数
|
||||
seconds: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.code.seconds
|
||||
},
|
||||
// 尚未开始时提示
|
||||
startText: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.code.startText
|
||||
},
|
||||
// 正在倒计时中的提示
|
||||
changeText: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.code.changeText
|
||||
},
|
||||
// 倒计时结束时的提示
|
||||
endText: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.code.endText
|
||||
},
|
||||
// 是否在H5刷新或各端返回再进入时继续倒计时
|
||||
keepRunning: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.code.keepRunning
|
||||
},
|
||||
// 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
|
||||
uniqueKey: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.code.uniqueKey
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.props = props;
|
||||
100
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-code/u-code.js
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_uviewPlus_components_uCode_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const _sfc_main = {
|
||||
name: "u-code",
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uCode_props.props],
|
||||
data() {
|
||||
return {
|
||||
secNum: this.seconds,
|
||||
timer: null,
|
||||
canGetCode: true
|
||||
// 是否可以执行验证码操作
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.checkKeepRunning();
|
||||
},
|
||||
watch: {
|
||||
seconds: {
|
||||
immediate: true,
|
||||
handler(n) {
|
||||
this.secNum = n;
|
||||
}
|
||||
}
|
||||
},
|
||||
emits: ["start", "end", "change"],
|
||||
methods: {
|
||||
checkKeepRunning() {
|
||||
let lastTimestamp = Number(common_vendor.index.getStorageSync(this.uniqueKey + "_$uCountDownTimestamp"));
|
||||
if (!lastTimestamp)
|
||||
return this.changeEvent(this.startText);
|
||||
let nowTimestamp = Math.floor(+/* @__PURE__ */ new Date() / 1e3);
|
||||
if (this.keepRunning && lastTimestamp && lastTimestamp > nowTimestamp) {
|
||||
this.secNum = lastTimestamp - nowTimestamp;
|
||||
common_vendor.index.removeStorageSync(this.uniqueKey + "_$uCountDownTimestamp");
|
||||
this.start();
|
||||
} else {
|
||||
this.changeEvent(this.startText);
|
||||
}
|
||||
},
|
||||
// 开始倒计时
|
||||
start() {
|
||||
if (this.timer) {
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
}
|
||||
this.$emit("start");
|
||||
this.canGetCode = false;
|
||||
this.changeEvent(this.changeText.replace(/x|X/, this.secNum));
|
||||
this.timer = setInterval(() => {
|
||||
if (--this.secNum) {
|
||||
this.changeEvent(this.changeText.replace(/x|X/, this.secNum));
|
||||
} else {
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
this.changeEvent(this.endText);
|
||||
this.secNum = this.seconds;
|
||||
this.$emit("end");
|
||||
this.canGetCode = true;
|
||||
}
|
||||
}, 1e3);
|
||||
this.setTimeToStorage();
|
||||
},
|
||||
// 重置,可以让用户再次获取验证码
|
||||
reset() {
|
||||
this.canGetCode = true;
|
||||
clearInterval(this.timer);
|
||||
this.secNum = this.seconds;
|
||||
this.changeEvent(this.endText);
|
||||
},
|
||||
changeEvent(text) {
|
||||
this.$emit("change", text);
|
||||
},
|
||||
// 保存时间戳,为了防止倒计时尚未结束,H5刷新或者各端的右上角返回上一页再进来
|
||||
setTimeToStorage() {
|
||||
if (!this.keepRunning || !this.timer)
|
||||
return;
|
||||
if (this.secNum > 0 && this.secNum < this.seconds) {
|
||||
let nowTimestamp = Math.floor(+/* @__PURE__ */ new Date() / 1e3);
|
||||
common_vendor.index.setStorage({
|
||||
key: this.uniqueKey + "_$uCountDownTimestamp",
|
||||
data: nowTimestamp + Number(this.secNum)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
// 组件销毁的时候,清除定时器,否则定时器会继续存在,系统不会自动清除
|
||||
beforeUnmount() {
|
||||
this.setTimeToStorage();
|
||||
clearTimeout(this.timer);
|
||||
this.timer = null;
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8783e3d0"]]);
|
||||
wx.createComponent(Component);
|
||||
4
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-code/u-code.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-code/u-code.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="u-code data-v-8783e3d0"></view>
|
||||
16
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-code/u-code.wxss
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
.u-empty.data-v-8783e3d0,
|
||||
.u-empty__wrap.data-v-8783e3d0,
|
||||
.u-tabs.data-v-8783e3d0,
|
||||
.u-tabs__wrapper.data-v-8783e3d0,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-8783e3d0,
|
||||
.u-tabs__wrapper__scroll-view.data-v-8783e3d0,
|
||||
.u-tabs__wrapper__nav.data-v-8783e3d0,
|
||||
.u-tabs__wrapper__nav__line.data-v-8783e3d0 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
17
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid-item/props.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = {
|
||||
props: {
|
||||
// 宫格的name
|
||||
name: {
|
||||
type: [String, Number, null],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.gridItem.name
|
||||
},
|
||||
// 背景颜色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.gridItem.bgColor
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.props = props;
|
||||
115
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid-item/u-grid-item.js
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_uviewPlus_components_uGridItem_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../libs/function/index.js");
|
||||
const _sfc_main = {
|
||||
name: "u-grid-item",
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uGridItem_props.props],
|
||||
data() {
|
||||
return {
|
||||
parentData: {
|
||||
col: 0,
|
||||
// 父组件划分的宫格数
|
||||
border: true
|
||||
// 是否显示边框,根据父组件决定
|
||||
},
|
||||
classes: []
|
||||
// 类名集合,用于判断是否显示右边和下边框
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.init();
|
||||
},
|
||||
emits: ["click"],
|
||||
// 微信小程序中 options 选项
|
||||
options: {
|
||||
virtualHost: true
|
||||
//将自定义节点设置成虚拟的,更加接近Vue组件的表现。我们不希望自定义组件的这个节点本身可以设置样式、响应 flex 布局等
|
||||
},
|
||||
computed: {
|
||||
// vue下放到computed中,否则会因为延时造成闪烁
|
||||
width() {
|
||||
if (this.parentData.col > 0) {
|
||||
return 100 / Number(this.parentData.col) + "%";
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
itemStyle() {
|
||||
const style = {
|
||||
background: this.bgColor,
|
||||
width: this.width
|
||||
};
|
||||
return uni_modules_uviewPlus_libs_function_index.deepMerge(style, uni_modules_uviewPlus_libs_function_index.addStyle(this.customStyle));
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
common_vendor.index.$on("$uGridItem", () => {
|
||||
this.gridItemClasses();
|
||||
});
|
||||
this.updateParentData();
|
||||
common_vendor.index.$emit("$uGridItem");
|
||||
this.gridItemClasses();
|
||||
},
|
||||
// 获取父组件的参数
|
||||
updateParentData() {
|
||||
this.getParentData("u-grid");
|
||||
},
|
||||
clickHandler() {
|
||||
var _a;
|
||||
let name = this.name;
|
||||
const children = (_a = this.parent) == null ? void 0 : _a.children;
|
||||
if (children && this.name === null) {
|
||||
name = children.findIndex((child) => child === this);
|
||||
}
|
||||
this.parent && this.parent.childClick(name);
|
||||
this.$emit("click", name);
|
||||
},
|
||||
async getItemWidth() {
|
||||
let width = 0;
|
||||
if (this.parent) {
|
||||
const parentWidth = await this.getParentWidth();
|
||||
width = parentWidth / Number(this.parentData.col) + "px";
|
||||
}
|
||||
this.width = width;
|
||||
},
|
||||
// 获取父元素的尺寸
|
||||
getParentWidth() {
|
||||
},
|
||||
gridItemClasses() {
|
||||
if (this.parentData.border) {
|
||||
let classes = [];
|
||||
this.parent.children.map((child, index) => {
|
||||
if (this === child) {
|
||||
const len = this.parent.children.length;
|
||||
if ((index + 1) % this.parentData.col !== 0 && index + 1 !== len) {
|
||||
classes.push("u-border-right");
|
||||
}
|
||||
const lessNum = len % this.parentData.col === 0 ? this.parentData.col : len % this.parentData.col;
|
||||
if (index < len - lessNum) {
|
||||
classes.push("u-border-bottom");
|
||||
}
|
||||
}
|
||||
});
|
||||
this.classes = classes;
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeUnmount() {
|
||||
common_vendor.index.$off("$uGridItem");
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $data.parentData.col > 0
|
||||
}, $data.parentData.col > 0 ? {
|
||||
b: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)),
|
||||
c: common_vendor.n($data.classes),
|
||||
d: common_vendor.s($options.itemStyle)
|
||||
} : {});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0a78094b"]]);
|
||||
wx.createComponent(Component);
|
||||
4
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid-item/u-grid-item.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid-item/u-grid-item.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" hover-class="u-grid-item--hover-class" hover-stay-time="{{200}}" bindtap="{{b}}" class="{{['u-grid-item', 'data-v-0a78094b', c]}}" style="{{d}}"><slot/></view>
|
||||
29
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid-item/u-grid-item.wxss
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
.u-empty.data-v-0a78094b,
|
||||
.u-empty__wrap.data-v-0a78094b,
|
||||
.u-tabs.data-v-0a78094b,
|
||||
.u-tabs__wrapper.data-v-0a78094b,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-0a78094b,
|
||||
.u-tabs__wrapper__scroll-view.data-v-0a78094b,
|
||||
.u-tabs__wrapper__nav.data-v-0a78094b,
|
||||
.u-tabs__wrapper__nav__line.data-v-0a78094b {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-grid-item.data-v-0a78094b {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
position: relative;
|
||||
float: left;
|
||||
}
|
||||
.u-grid-item--hover-class.data-v-0a78094b {
|
||||
opacity: 0.5;
|
||||
}
|
||||
22
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid/props.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = {
|
||||
props: {
|
||||
// 分成几列
|
||||
col: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.grid.col
|
||||
},
|
||||
// 是否显示边框
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.grid.border
|
||||
},
|
||||
// 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右
|
||||
align: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.grid.align
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.props = props;
|
||||
72
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid/u-grid.js
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_components_uGrid_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../libs/function/index.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "u-grid",
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uGrid_props.props],
|
||||
data() {
|
||||
return {
|
||||
index: 0,
|
||||
width: 0
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
// 当父组件需要子组件需要共享的参数发生了变化,手动通知子组件
|
||||
parentData() {
|
||||
if (this.children.length) {
|
||||
this.children.map((child) => {
|
||||
typeof child.updateParentData == "function" && child.updateParentData();
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.children = [];
|
||||
},
|
||||
computed: {
|
||||
// 计算父组件的值是否发生变化
|
||||
parentData() {
|
||||
return [this.hoverClass, this.col, this.size, this.border];
|
||||
},
|
||||
// 宫格对齐方式
|
||||
gridStyle() {
|
||||
let style = {};
|
||||
switch (this.align) {
|
||||
case "left":
|
||||
style.justifyContent = "flex-start";
|
||||
break;
|
||||
case "center":
|
||||
style.justifyContent = "center";
|
||||
break;
|
||||
case "right":
|
||||
style.justifyContent = "flex-end";
|
||||
break;
|
||||
default:
|
||||
style.justifyContent = "flex-start";
|
||||
}
|
||||
return uni_modules_uviewPlus_libs_function_index.deepMerge(style, uni_modules_uviewPlus_libs_function_index.addStyle(this.customStyle));
|
||||
}
|
||||
},
|
||||
emits: ["click"],
|
||||
// 防止事件执行两次
|
||||
// 20240409发现抖音小程序如果开启virtualHost会出现严重问题,几乎所有事件包括created等生命周期事件全部失效。
|
||||
options: {
|
||||
// virtualHost: true ,//将自定义节点设置成虚拟的,更加接近Vue组件的表现。我们不希望自定义组件的这个节点本身可以设置样式、响应 flex 布局等
|
||||
},
|
||||
methods: {
|
||||
// 此方法由u-grid-item触发,用于在u-grid发出事件
|
||||
childClick(name) {
|
||||
this.$emit("click", name);
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.s($options.gridStyle)
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-10b668c8"]]);
|
||||
wx.createComponent(Component);
|
||||
4
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid/u-grid.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid/u-grid.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="u-grid data-v-10b668c8" ref="u-grid" style="{{a}}"><slot/></view>
|
||||
28
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-grid/u-grid.wxss
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
.u-empty.data-v-10b668c8,
|
||||
.u-empty__wrap.data-v-10b668c8,
|
||||
.u-tabs.data-v-10b668c8,
|
||||
.u-tabs__wrapper.data-v-10b668c8,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-10b668c8,
|
||||
.u-tabs__wrapper__scroll-view.data-v-10b668c8,
|
||||
.u-tabs__wrapper__nav.data-v-10b668c8,
|
||||
.u-tabs__wrapper__nav__line.data-v-10b668c8 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-grid.data-v-10b668c8 {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
216
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-icon/icons.js
vendored
Normal file
@@ -0,0 +1,216 @@
|
||||
"use strict";
|
||||
const icons = {
|
||||
"uicon-level": "",
|
||||
"uicon-column-line": "",
|
||||
"uicon-checkbox-mark": "",
|
||||
"uicon-folder": "",
|
||||
"uicon-movie": "",
|
||||
"uicon-star-fill": "",
|
||||
"uicon-star": "",
|
||||
"uicon-phone-fill": "",
|
||||
"uicon-phone": "",
|
||||
"uicon-apple-fill": "",
|
||||
"uicon-chrome-circle-fill": "",
|
||||
"uicon-backspace": "",
|
||||
"uicon-attach": "",
|
||||
"uicon-cut": "",
|
||||
"uicon-empty-car": "",
|
||||
"uicon-empty-coupon": "",
|
||||
"uicon-empty-address": "",
|
||||
"uicon-empty-favor": "",
|
||||
"uicon-empty-permission": "",
|
||||
"uicon-empty-news": "",
|
||||
"uicon-empty-search": "",
|
||||
"uicon-github-circle-fill": "",
|
||||
"uicon-rmb": "",
|
||||
"uicon-person-delete-fill": "",
|
||||
"uicon-reload": "",
|
||||
"uicon-order": "",
|
||||
"uicon-server-man": "",
|
||||
"uicon-search": "",
|
||||
"uicon-fingerprint": "",
|
||||
"uicon-more-dot-fill": "",
|
||||
"uicon-scan": "",
|
||||
"uicon-share-square": "",
|
||||
"uicon-map": "",
|
||||
"uicon-map-fill": "",
|
||||
"uicon-tags": "",
|
||||
"uicon-tags-fill": "",
|
||||
"uicon-bookmark-fill": "",
|
||||
"uicon-bookmark": "",
|
||||
"uicon-eye": "",
|
||||
"uicon-eye-fill": "",
|
||||
"uicon-mic": "",
|
||||
"uicon-mic-off": "",
|
||||
"uicon-calendar": "",
|
||||
"uicon-calendar-fill": "",
|
||||
"uicon-trash": "",
|
||||
"uicon-trash-fill": "",
|
||||
"uicon-play-left": "",
|
||||
"uicon-play-right": "",
|
||||
"uicon-minus": "",
|
||||
"uicon-plus": "",
|
||||
"uicon-info": "",
|
||||
"uicon-info-circle": "",
|
||||
"uicon-info-circle-fill": "",
|
||||
"uicon-question": "",
|
||||
"uicon-error": "",
|
||||
"uicon-close": "",
|
||||
"uicon-checkmark": "",
|
||||
"uicon-android-circle-fill": "",
|
||||
"uicon-android-fill": "",
|
||||
"uicon-ie": "",
|
||||
"uicon-IE-circle-fill": "",
|
||||
"uicon-google": "",
|
||||
"uicon-google-circle-fill": "",
|
||||
"uicon-setting-fill": "",
|
||||
"uicon-setting": "",
|
||||
"uicon-minus-square-fill": "",
|
||||
"uicon-plus-square-fill": "",
|
||||
"uicon-heart": "",
|
||||
"uicon-heart-fill": "",
|
||||
"uicon-camera": "",
|
||||
"uicon-camera-fill": "",
|
||||
"uicon-more-circle": "",
|
||||
"uicon-more-circle-fill": "",
|
||||
"uicon-chat": "",
|
||||
"uicon-chat-fill": "",
|
||||
"uicon-bag-fill": "",
|
||||
"uicon-bag": "",
|
||||
"uicon-error-circle-fill": "",
|
||||
"uicon-error-circle": "",
|
||||
"uicon-close-circle": "",
|
||||
"uicon-close-circle-fill": "",
|
||||
"uicon-checkmark-circle": "",
|
||||
"uicon-checkmark-circle-fill": "",
|
||||
"uicon-question-circle-fill": "",
|
||||
"uicon-question-circle": "",
|
||||
"uicon-share": "",
|
||||
"uicon-share-fill": "",
|
||||
"uicon-shopping-cart": "",
|
||||
"uicon-shopping-cart-fill": "",
|
||||
"uicon-bell": "",
|
||||
"uicon-bell-fill": "",
|
||||
"uicon-list": "",
|
||||
"uicon-list-dot": "",
|
||||
"uicon-zhihu": "",
|
||||
"uicon-zhihu-circle-fill": "",
|
||||
"uicon-zhifubao": "",
|
||||
"uicon-zhifubao-circle-fill": "",
|
||||
"uicon-weixin-circle-fill": "",
|
||||
"uicon-weixin-fill": "",
|
||||
"uicon-twitter-circle-fill": "",
|
||||
"uicon-twitter": "",
|
||||
"uicon-taobao-circle-fill": "",
|
||||
"uicon-taobao": "",
|
||||
"uicon-weibo-circle-fill": "",
|
||||
"uicon-weibo": "",
|
||||
"uicon-qq-fill": "",
|
||||
"uicon-qq-circle-fill": "",
|
||||
"uicon-moments-circel-fill": "",
|
||||
"uicon-moments": "",
|
||||
"uicon-qzone": "",
|
||||
"uicon-qzone-circle-fill": "",
|
||||
"uicon-baidu-circle-fill": "",
|
||||
"uicon-baidu": "",
|
||||
"uicon-facebook-circle-fill": "",
|
||||
"uicon-facebook": "",
|
||||
"uicon-car": "",
|
||||
"uicon-car-fill": "",
|
||||
"uicon-warning-fill": "",
|
||||
"uicon-warning": "",
|
||||
"uicon-clock-fill": "",
|
||||
"uicon-clock": "",
|
||||
"uicon-edit-pen": "",
|
||||
"uicon-edit-pen-fill": "",
|
||||
"uicon-email": "",
|
||||
"uicon-email-fill": "",
|
||||
"uicon-minus-circle": "",
|
||||
"uicon-minus-circle-fill": "",
|
||||
"uicon-plus-circle": "",
|
||||
"uicon-plus-circle-fill": "",
|
||||
"uicon-file-text": "",
|
||||
"uicon-file-text-fill": "",
|
||||
"uicon-pushpin": "",
|
||||
"uicon-pushpin-fill": "",
|
||||
"uicon-grid": "",
|
||||
"uicon-grid-fill": "",
|
||||
"uicon-play-circle": "",
|
||||
"uicon-play-circle-fill": "",
|
||||
"uicon-pause-circle-fill": "",
|
||||
"uicon-pause": "",
|
||||
"uicon-pause-circle": "",
|
||||
"uicon-eye-off": "",
|
||||
"uicon-eye-off-outline": "",
|
||||
"uicon-gift-fill": "",
|
||||
"uicon-gift": "",
|
||||
"uicon-rmb-circle-fill": "",
|
||||
"uicon-rmb-circle": "",
|
||||
"uicon-kefu-ermai": "",
|
||||
"uicon-server-fill": "",
|
||||
"uicon-coupon-fill": "",
|
||||
"uicon-coupon": "",
|
||||
"uicon-integral": "",
|
||||
"uicon-integral-fill": "",
|
||||
"uicon-home-fill": "",
|
||||
"uicon-home": "",
|
||||
"uicon-hourglass-half-fill": "",
|
||||
"uicon-hourglass": "",
|
||||
"uicon-account": "",
|
||||
"uicon-plus-people-fill": "",
|
||||
"uicon-minus-people-fill": "",
|
||||
"uicon-account-fill": "",
|
||||
"uicon-thumb-down-fill": "",
|
||||
"uicon-thumb-down": "",
|
||||
"uicon-thumb-up": "",
|
||||
"uicon-thumb-up-fill": "",
|
||||
"uicon-lock-fill": "",
|
||||
"uicon-lock-open": "",
|
||||
"uicon-lock-opened-fill": "",
|
||||
"uicon-lock": "",
|
||||
"uicon-red-packet-fill": "",
|
||||
"uicon-photo-fill": "",
|
||||
"uicon-photo": "",
|
||||
"uicon-volume-off-fill": "",
|
||||
"uicon-volume-off": "",
|
||||
"uicon-volume-fill": "",
|
||||
"uicon-volume": "",
|
||||
"uicon-red-packet": "",
|
||||
"uicon-download": "",
|
||||
"uicon-arrow-up-fill": "",
|
||||
"uicon-arrow-down-fill": "",
|
||||
"uicon-play-left-fill": "",
|
||||
"uicon-play-right-fill": "",
|
||||
"uicon-rewind-left-fill": "",
|
||||
"uicon-rewind-right-fill": "",
|
||||
"uicon-arrow-downward": "",
|
||||
"uicon-arrow-leftward": "",
|
||||
"uicon-arrow-rightward": "",
|
||||
"uicon-arrow-upward": "",
|
||||
"uicon-arrow-down": "",
|
||||
"uicon-arrow-right": "",
|
||||
"uicon-arrow-left": "",
|
||||
"uicon-arrow-up": "",
|
||||
"uicon-skip-back-left": "",
|
||||
"uicon-skip-forward-right": "",
|
||||
"uicon-rewind-right": "",
|
||||
"uicon-rewind-left": "",
|
||||
"uicon-arrow-right-double": "",
|
||||
"uicon-arrow-left-double": "",
|
||||
"uicon-wifi-off": "",
|
||||
"uicon-wifi": "",
|
||||
"uicon-empty-data": "",
|
||||
"uicon-empty-history": "",
|
||||
"uicon-empty-list": "",
|
||||
"uicon-empty-page": "",
|
||||
"uicon-empty-order": "",
|
||||
"uicon-man": "",
|
||||
"uicon-woman": "",
|
||||
"uicon-man-add": "",
|
||||
"uicon-man-add-fill": "",
|
||||
"uicon-man-delete": "",
|
||||
"uicon-man-delete-fill": "",
|
||||
"uicon-zh": "",
|
||||
"uicon-en": ""
|
||||
};
|
||||
exports.icons = icons;
|
||||
92
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-icon/props.js
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = {
|
||||
props: {
|
||||
// 图标类名
|
||||
name: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.name
|
||||
},
|
||||
// 图标颜色,可接受主题色
|
||||
color: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.color
|
||||
},
|
||||
// 字体大小,单位px
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.size
|
||||
},
|
||||
// 是否显示粗体
|
||||
bold: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.bold
|
||||
},
|
||||
// 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
|
||||
index: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.index
|
||||
},
|
||||
// 触摸图标时的类名
|
||||
hoverClass: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.hoverClass
|
||||
},
|
||||
// 自定义扩展前缀,方便用户扩展自己的图标库
|
||||
customPrefix: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.customPrefix
|
||||
},
|
||||
// 图标右边或者下面的文字
|
||||
label: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.label
|
||||
},
|
||||
// label的位置,只能右边或者下边
|
||||
labelPos: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.labelPos
|
||||
},
|
||||
// label的大小
|
||||
labelSize: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.labelSize
|
||||
},
|
||||
// label的颜色
|
||||
labelColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.labelColor
|
||||
},
|
||||
// label与图标的距离
|
||||
space: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.space
|
||||
},
|
||||
// 图片的mode
|
||||
imgMode: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.imgMode
|
||||
},
|
||||
// 用于显示图片小图标时,图片的宽度
|
||||
width: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.width
|
||||
},
|
||||
// 用于显示图片小图标时,图片的高度
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.height
|
||||
},
|
||||
// 用于解决某些情况下,让图标垂直居中的用途
|
||||
top: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.top
|
||||
},
|
||||
// 是否阻止事件传播
|
||||
stop: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.icon.stop
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.props = props;
|
||||
97
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.js
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_components_uIcon_icons = require("./icons.js");
|
||||
const uni_modules_uviewPlus_components_uIcon_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../libs/function/index.js");
|
||||
const uni_modules_uviewPlus_libs_config_config = require("../../libs/config/config.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "u-icon",
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
emits: ["click"],
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uIcon_props.props],
|
||||
computed: {
|
||||
uClasses() {
|
||||
let classes = [];
|
||||
classes.push(this.customPrefix + "-" + this.name);
|
||||
if (this.customPrefix == "uicon") {
|
||||
classes.push("u-iconfont");
|
||||
} else {
|
||||
classes.push(this.customPrefix);
|
||||
}
|
||||
if (this.color && uni_modules_uviewPlus_libs_config_config.config.type.includes(this.color))
|
||||
classes.push("u-icon__icon--" + this.color);
|
||||
return classes;
|
||||
},
|
||||
iconStyle() {
|
||||
let style = {};
|
||||
style = {
|
||||
fontSize: uni_modules_uviewPlus_libs_function_index.addUnit(this.size),
|
||||
lineHeight: uni_modules_uviewPlus_libs_function_index.addUnit(this.size),
|
||||
fontWeight: this.bold ? "bold" : "normal",
|
||||
// 某些特殊情况需要设置一个到顶部的距离,才能更好的垂直居中
|
||||
top: uni_modules_uviewPlus_libs_function_index.addUnit(this.top)
|
||||
};
|
||||
if (this.color && !uni_modules_uviewPlus_libs_config_config.config.type.includes(this.color))
|
||||
style.color = this.color;
|
||||
return style;
|
||||
},
|
||||
// 判断传入的name属性,是否图片路径,只要带有"/"均认为是图片形式
|
||||
isImg() {
|
||||
return this.name.indexOf("/") !== -1;
|
||||
},
|
||||
imgStyle() {
|
||||
let style = {};
|
||||
style.width = this.width ? uni_modules_uviewPlus_libs_function_index.addUnit(this.width) : uni_modules_uviewPlus_libs_function_index.addUnit(this.size);
|
||||
style.height = this.height ? uni_modules_uviewPlus_libs_function_index.addUnit(this.height) : uni_modules_uviewPlus_libs_function_index.addUnit(this.size);
|
||||
return style;
|
||||
},
|
||||
// 通过图标名,查找对应的图标
|
||||
icon() {
|
||||
if (this.customPrefix !== "uicon")
|
||||
return "";
|
||||
return uni_modules_uviewPlus_components_uIcon_icons.icons["uicon-" + this.name] || this.name;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
addStyle: uni_modules_uviewPlus_libs_function_index.addStyle,
|
||||
addUnit: uni_modules_uviewPlus_libs_function_index.addUnit,
|
||||
clickHandler(e) {
|
||||
this.$emit("click", this.index);
|
||||
this.stop && this.preventEvent(e);
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $options.isImg
|
||||
}, $options.isImg ? {
|
||||
b: _ctx.name,
|
||||
c: common_vendor.s($options.imgStyle),
|
||||
d: common_vendor.s($options.addStyle(_ctx.customStyle))
|
||||
} : {
|
||||
e: common_vendor.t($options.icon),
|
||||
f: common_vendor.n($options.uClasses),
|
||||
g: common_vendor.s($options.iconStyle),
|
||||
h: common_vendor.s($options.addStyle(_ctx.customStyle)),
|
||||
i: _ctx.hoverClass
|
||||
}, {
|
||||
j: _ctx.label !== ""
|
||||
}, _ctx.label !== "" ? {
|
||||
k: common_vendor.t(_ctx.label),
|
||||
l: _ctx.labelColor,
|
||||
m: $options.addUnit(_ctx.labelSize),
|
||||
n: _ctx.labelPos == "right" ? $options.addUnit(_ctx.space) : 0,
|
||||
o: _ctx.labelPos == "bottom" ? $options.addUnit(_ctx.space) : 0,
|
||||
p: _ctx.labelPos == "left" ? $options.addUnit(_ctx.space) : 0,
|
||||
q: _ctx.labelPos == "top" ? $options.addUnit(_ctx.space) : 0
|
||||
} : {}, {
|
||||
r: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)),
|
||||
s: common_vendor.n("u-icon--" + _ctx.labelPos)
|
||||
});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ac70166d"]]);
|
||||
wx.createComponent(Component);
|
||||
4
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view bindtap="{{r}}" class="{{['u-icon', 'data-v-ac70166d', s]}}"><image wx:if="{{a}}" class="u-icon__img data-v-ac70166d" src="{{b}}" mode="{{'widthFix'}}" style="{{c + ';' + d}}"></image><text wx:else class="{{['u-icon__icon', 'data-v-ac70166d', f]}}" style="{{g + ';' + h}}" hover-class="{{i}}">{{e}}</text><text wx:if="{{j}}" class="u-icon__label data-v-ac70166d" style="{{'color:' + l + ';' + ('font-size:' + m) + ';' + ('margin-left:' + n) + ';' + ('margin-top:' + o) + ';' + ('margin-right:' + p) + ';' + ('margin-bottom:' + q)}}">{{k}}</text></view>
|
||||
69
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.wxss
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
.u-empty.data-v-ac70166d,
|
||||
.u-empty__wrap.data-v-ac70166d,
|
||||
.u-tabs.data-v-ac70166d,
|
||||
.u-tabs__wrapper.data-v-ac70166d,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-ac70166d,
|
||||
.u-tabs__wrapper__scroll-view.data-v-ac70166d,
|
||||
.u-tabs__wrapper__nav.data-v-ac70166d,
|
||||
.u-tabs__wrapper__nav__line.data-v-ac70166d {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "uicon-iconfont";
|
||||
src: url("https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf") format("truetype");
|
||||
}
|
||||
.u-icon.data-v-ac70166d {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.u-icon--left.data-v-ac70166d {
|
||||
flex-direction: row-reverse;
|
||||
align-items: center;
|
||||
}
|
||||
.u-icon--right.data-v-ac70166d {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.u-icon--top.data-v-ac70166d {
|
||||
flex-direction: column-reverse;
|
||||
justify-content: center;
|
||||
}
|
||||
.u-icon--bottom.data-v-ac70166d {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.u-icon__icon.data-v-ac70166d {
|
||||
font-family: uicon-iconfont;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.u-icon__icon--primary.data-v-ac70166d {
|
||||
color: #3c9cff;
|
||||
}
|
||||
.u-icon__icon--success.data-v-ac70166d {
|
||||
color: #5ac725;
|
||||
}
|
||||
.u-icon__icon--error.data-v-ac70166d {
|
||||
color: #f56c6c;
|
||||
}
|
||||
.u-icon__icon--warning.data-v-ac70166d {
|
||||
color: #f9ae3d;
|
||||
}
|
||||
.u-icon__icon--info.data-v-ac70166d {
|
||||
color: #909399;
|
||||
}
|
||||
.u-icon__img.data-v-ac70166d {
|
||||
height: auto;
|
||||
will-change: transform;
|
||||
}
|
||||
.u-icon__label.data-v-ac70166d {
|
||||
line-height: 1;
|
||||
}
|
||||
189
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-input/props.js
vendored
Normal file
@@ -0,0 +1,189 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = {
|
||||
props: {
|
||||
// 绑定的值
|
||||
modelValue: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.value
|
||||
},
|
||||
// number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
|
||||
// idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
|
||||
// digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
|
||||
// text-文本输入键盘
|
||||
type: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.type
|
||||
},
|
||||
// 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
|
||||
// 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
|
||||
fixed: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.fixed
|
||||
},
|
||||
// 是否禁用输入框
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.disabled
|
||||
},
|
||||
// 禁用状态时的背景色
|
||||
disabledColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.disabledColor
|
||||
},
|
||||
// 是否显示清除控件
|
||||
clearable: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.clearable
|
||||
},
|
||||
// 是否密码类型
|
||||
password: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.password
|
||||
},
|
||||
// 最大输入长度,设置为 -1 的时候不限制最大长度
|
||||
maxlength: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.maxlength
|
||||
},
|
||||
// 输入框为空时的占位符
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.placeholder
|
||||
},
|
||||
// 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
|
||||
placeholderClass: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.placeholderClass
|
||||
},
|
||||
// 指定placeholder的样式
|
||||
placeholderStyle: {
|
||||
type: [String, Object],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.placeholderStyle
|
||||
},
|
||||
// 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
|
||||
showWordLimit: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.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: () => uni_modules_uviewPlus_libs_config_props.defProps.input.confirmType
|
||||
},
|
||||
// 点击键盘右下角按钮时是否保持键盘不收起,H5无效
|
||||
confirmHold: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.confirmHold
|
||||
},
|
||||
// focus时,点击页面的时候不收起键盘,微信小程序有效
|
||||
holdKeyboard: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.holdKeyboard
|
||||
},
|
||||
// 自动获取焦点
|
||||
// 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
|
||||
focus: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.focus
|
||||
},
|
||||
// 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
|
||||
autoBlur: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.autoBlur
|
||||
},
|
||||
// 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
|
||||
disableDefaultPadding: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.disableDefaultPadding
|
||||
},
|
||||
// 指定focus时光标的位置
|
||||
cursor: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.cursor
|
||||
},
|
||||
// 输入框聚焦时底部与键盘的距离
|
||||
cursorSpacing: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.cursorSpacing
|
||||
},
|
||||
// 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
||||
selectionStart: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.selectionStart
|
||||
},
|
||||
// 光标结束位置,自动聚集时有效,需与selection-start搭配使用
|
||||
selectionEnd: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.selectionEnd
|
||||
},
|
||||
// 键盘弹起时,是否自动上推页面
|
||||
adjustPosition: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.adjustPosition
|
||||
},
|
||||
// 输入框内容对齐方式,可选值为:left|center|right
|
||||
inputAlign: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.inputAlign
|
||||
},
|
||||
// 输入框字体的大小
|
||||
fontSize: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.fontSize
|
||||
},
|
||||
// 输入框字体颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.color
|
||||
},
|
||||
// 输入框前置图标
|
||||
prefixIcon: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.prefixIcon
|
||||
},
|
||||
// 前置图标样式,对象或字符串
|
||||
prefixIconStyle: {
|
||||
type: [String, Object],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.prefixIconStyle
|
||||
},
|
||||
// 输入框后置图标
|
||||
suffixIcon: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.suffixIcon
|
||||
},
|
||||
// 后置图标样式,对象或字符串
|
||||
suffixIconStyle: {
|
||||
type: [String, Object],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.suffixIconStyle
|
||||
},
|
||||
// 边框类型,surround-四周边框,bottom-底部边框,none-无边框
|
||||
border: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.border
|
||||
},
|
||||
// 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
|
||||
readonly: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.readonly
|
||||
},
|
||||
// 输入框形状,circle-圆形,square-方形
|
||||
shape: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.shape
|
||||
},
|
||||
// 用于处理或者过滤输入框内容的方法
|
||||
formatter: {
|
||||
type: [Function, null],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.input.formatter
|
||||
},
|
||||
// 是否忽略组件内对文本合成系统事件的处理
|
||||
ignoreCompositionEvent: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.props = props;
|
||||
218
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.js
vendored
Normal file
@@ -0,0 +1,218 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_components_uInput_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../libs/function/index.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "u-input",
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uInput_props.props],
|
||||
data() {
|
||||
return {
|
||||
// 清除操作
|
||||
clearInput: false,
|
||||
// 输入框的值
|
||||
innerValue: "",
|
||||
// 是否处于获得焦点状态
|
||||
focused: false,
|
||||
// value是否第一次变化,在watch中,由于加入immediate属性,会在第一次触发,此时不应该认为value发生了变化
|
||||
firstChange: true,
|
||||
// value绑定值的变化是由内部还是外部引起的
|
||||
changeFromInner: false,
|
||||
// 过滤处理方法
|
||||
innerFormatter: (value) => value
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
modelValue: {
|
||||
immediate: true,
|
||||
handler(newVal, oldVal) {
|
||||
this.innerValue = newVal;
|
||||
this.firstChange = false;
|
||||
this.changeFromInner = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 是否显示清除控件
|
||||
isShowClear() {
|
||||
const { clearable, readonly, focused, innerValue } = this;
|
||||
return !!clearable && !readonly && !!focused && innerValue !== "";
|
||||
},
|
||||
// 组件的类名
|
||||
inputClass() {
|
||||
let classes = [], { border, disabled, shape } = this;
|
||||
border === "surround" && (classes = classes.concat(["u-border", "u-input--radius"]));
|
||||
classes.push(`u-input--${shape}`);
|
||||
border === "bottom" && (classes = classes.concat([
|
||||
"u-border-bottom",
|
||||
"u-input--no-radius"
|
||||
]));
|
||||
return classes.join(" ");
|
||||
},
|
||||
// 组件的样式
|
||||
wrapperStyle() {
|
||||
const style = {};
|
||||
if (this.disabled) {
|
||||
style.backgroundColor = this.disabledColor;
|
||||
}
|
||||
if (this.border === "none") {
|
||||
style.padding = "0";
|
||||
} else {
|
||||
style.paddingTop = "6px";
|
||||
style.paddingBottom = "6px";
|
||||
style.paddingLeft = "9px";
|
||||
style.paddingRight = "9px";
|
||||
}
|
||||
return uni_modules_uviewPlus_libs_function_index.deepMerge(style, uni_modules_uviewPlus_libs_function_index.addStyle(this.customStyle));
|
||||
},
|
||||
// 输入框的样式
|
||||
inputStyle() {
|
||||
const style = {
|
||||
color: this.color,
|
||||
fontSize: uni_modules_uviewPlus_libs_function_index.addUnit(this.fontSize),
|
||||
textAlign: this.inputAlign
|
||||
};
|
||||
return style;
|
||||
}
|
||||
},
|
||||
emits: ["update:modelValue", "focus", "blur", "change", "confirm", "clear", "keyboardheightchange"],
|
||||
methods: {
|
||||
// 在微信小程序中,不支持将函数当做props参数,故只能通过ref形式调用
|
||||
setFormatter(e) {
|
||||
this.innerFormatter = e;
|
||||
},
|
||||
// 当键盘输入时,触发input事件
|
||||
onInput(e) {
|
||||
let { value = "" } = e.detail || {};
|
||||
const formatter = this.formatter || this.innerFormatter;
|
||||
const formatValue = formatter(value);
|
||||
this.innerValue = value;
|
||||
this.$nextTick(() => {
|
||||
this.innerValue = formatValue;
|
||||
this.valueChange();
|
||||
});
|
||||
},
|
||||
// 输入框失去焦点时触发
|
||||
onBlur(event) {
|
||||
this.$emit("blur", event.detail.value);
|
||||
uni_modules_uviewPlus_libs_function_index.sleep(150).then(() => {
|
||||
this.focused = false;
|
||||
});
|
||||
uni_modules_uviewPlus_libs_function_index.formValidate(this, "blur");
|
||||
},
|
||||
// 输入框聚焦时触发
|
||||
onFocus(event) {
|
||||
this.focused = true;
|
||||
this.$emit("focus");
|
||||
},
|
||||
// 点击完成按钮时触发
|
||||
onConfirm(event) {
|
||||
this.$emit("confirm", this.innerValue);
|
||||
},
|
||||
// 键盘高度发生变化的时候触发此事件
|
||||
// 兼容性:微信小程序2.7.0+、App 3.1.0+
|
||||
onkeyboardheightchange(event) {
|
||||
this.$emit("keyboardheightchange", event);
|
||||
},
|
||||
// 内容发生变化,进行处理
|
||||
valueChange() {
|
||||
if (this.clearInput) {
|
||||
this.innerValue = "";
|
||||
this.clearInput = false;
|
||||
}
|
||||
const value = this.innerValue;
|
||||
this.$nextTick(() => {
|
||||
this.$emit("update:modelValue", value);
|
||||
this.changeFromInner = true;
|
||||
this.$emit("change", value);
|
||||
uni_modules_uviewPlus_libs_function_index.formValidate(this, "change");
|
||||
});
|
||||
},
|
||||
// 点击清除控件
|
||||
onClear() {
|
||||
this.clearInput = true;
|
||||
this.innerValue = "";
|
||||
this.$nextTick(() => {
|
||||
this.valueChange();
|
||||
this.$emit("clear");
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 在安卓nvue上,事件无法冒泡
|
||||
* 在某些时间,我们希望监听u-from-item的点击事件,此时会导致点击u-form-item内的u-input后
|
||||
* 无法触发u-form-item的点击事件,这里通过手动调用u-form-item的方法进行触发
|
||||
*/
|
||||
clickHandler() {
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
_easycom_u_icon2();
|
||||
}
|
||||
const _easycom_u_icon = () => "../u-icon/u-icon.js";
|
||||
if (!Math) {
|
||||
_easycom_u_icon();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: _ctx.prefixIcon || _ctx.$slots.prefix
|
||||
}, _ctx.prefixIcon || _ctx.$slots.prefix ? {
|
||||
b: common_vendor.p({
|
||||
name: _ctx.prefixIcon,
|
||||
size: "18",
|
||||
customStyle: _ctx.prefixIconStyle
|
||||
})
|
||||
} : {}, {
|
||||
c: common_vendor.s($options.inputStyle),
|
||||
d: _ctx.type,
|
||||
e: _ctx.focus,
|
||||
f: _ctx.cursor,
|
||||
g: $data.innerValue,
|
||||
h: _ctx.autoBlur,
|
||||
i: _ctx.disabled || _ctx.readonly,
|
||||
j: _ctx.maxlength,
|
||||
k: _ctx.placeholder,
|
||||
l: _ctx.placeholderStyle,
|
||||
m: _ctx.placeholderClass,
|
||||
n: _ctx.confirmType,
|
||||
o: _ctx.confirmHold,
|
||||
p: _ctx.holdKeyboard,
|
||||
q: _ctx.cursorSpacing,
|
||||
r: _ctx.adjustPosition,
|
||||
s: _ctx.selectionEnd,
|
||||
t: _ctx.selectionStart,
|
||||
v: _ctx.password || _ctx.type === "password" || false,
|
||||
w: _ctx.ignoreCompositionEvent,
|
||||
x: common_vendor.o((...args) => $options.onInput && $options.onInput(...args)),
|
||||
y: common_vendor.o((...args) => $options.onBlur && $options.onBlur(...args)),
|
||||
z: common_vendor.o((...args) => $options.onFocus && $options.onFocus(...args)),
|
||||
A: common_vendor.o((...args) => $options.onConfirm && $options.onConfirm(...args)),
|
||||
B: common_vendor.o((...args) => $options.onkeyboardheightchange && $options.onkeyboardheightchange(...args)),
|
||||
C: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)),
|
||||
D: $options.isShowClear
|
||||
}, $options.isShowClear ? {
|
||||
E: common_vendor.p({
|
||||
name: "close",
|
||||
size: "11",
|
||||
color: "#ffffff",
|
||||
customStyle: "line-height: 12px"
|
||||
}),
|
||||
F: common_vendor.o((...args) => $options.onClear && $options.onClear(...args))
|
||||
} : {}, {
|
||||
G: _ctx.suffixIcon || _ctx.$slots.suffix
|
||||
}, _ctx.suffixIcon || _ctx.$slots.suffix ? {
|
||||
H: common_vendor.p({
|
||||
name: _ctx.suffixIcon,
|
||||
size: "18",
|
||||
customStyle: _ctx.suffixIconStyle,
|
||||
imgMode: "widthFix"
|
||||
})
|
||||
} : {}, {
|
||||
I: common_vendor.n($options.inputClass),
|
||||
J: common_vendor.s($options.wrapperStyle)
|
||||
});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-df79975b"]]);
|
||||
wx.createComponent(Component);
|
||||
6
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['u-input', 'data-v-df79975b', I]}}" style="{{J}}"><view class="u-input__content data-v-df79975b"><view wx:if="{{a}}" class="u-input__content__prefix-icon data-v-df79975b"><block wx:if="{{$slots.prefix}}"><slot name="prefix"></slot></block><block wx:else><u-icon wx:if="{{b}}" class="data-v-df79975b" u-i="df79975b-0" bind:__l="__l" u-p="{{b}}"></u-icon></block></view><view class="u-input__content__field-wrapper data-v-df79975b" bindtap="{{C}}"><block wx:if="{{r0}}"><input class="u-input__content__field-wrapper__field data-v-df79975b" style="{{c}}" type="{{d}}" focus="{{e}}" cursor="{{f}}" value="{{g}}" auto-blur="{{h}}" disabled="{{i}}" maxlength="{{j}}" placeholder="{{k}}" placeholder-style="{{l}}" placeholder-class="{{m}}" confirm-type="{{n}}" confirm-hold="{{o}}" hold-keyboard="{{p}}" cursor-spacing="{{q}}" adjust-position="{{r}}" selection-end="{{s}}" selection-start="{{t}}" password="{{v}}" ignoreCompositionEvent="{{w}}" bindinput="{{x}}" bindblur="{{y}}" bindfocus="{{z}}" bindconfirm="{{A}}" bindkeyboardheightchange="{{B}}"/></block></view><view wx:if="{{D}}" class="u-input__content__clear data-v-df79975b" bindtap="{{F}}"><u-icon wx:if="{{E}}" class="data-v-df79975b" u-i="df79975b-1" bind:__l="__l" u-p="{{E}}"></u-icon></view><view wx:if="{{G}}" class="u-input__content__subfix-icon data-v-df79975b"><block wx:if="{{$slots.suffix}}"><slot name="suffix"></slot></block><block wx:else><u-icon wx:if="{{H}}" class="data-v-df79975b" u-i="df79975b-2" bind:__l="__l" u-p="{{H}}"></u-icon></block></view></view></view>
|
||||
72
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.wxss
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
.u-empty.data-v-df79975b,
|
||||
.u-empty__wrap.data-v-df79975b,
|
||||
.u-tabs.data-v-df79975b,
|
||||
.u-tabs__wrapper.data-v-df79975b,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-df79975b,
|
||||
.u-tabs__wrapper__scroll-view.data-v-df79975b,
|
||||
.u-tabs__wrapper__nav.data-v-df79975b,
|
||||
.u-tabs__wrapper__nav__line.data-v-df79975b {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-input.data-v-df79975b {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex: 1;
|
||||
}
|
||||
.u-input--radius.data-v-df79975b, .u-input--square.data-v-df79975b {
|
||||
border-radius: 4px;
|
||||
}
|
||||
.u-input--no-radius.data-v-df79975b {
|
||||
border-radius: 0;
|
||||
}
|
||||
.u-input--circle.data-v-df79975b {
|
||||
border-radius: 100px;
|
||||
}
|
||||
.u-input__content.data-v-df79975b {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-input__content__field-wrapper.data-v-df79975b {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
}
|
||||
.u-input__content__field-wrapper__field.data-v-df79975b {
|
||||
line-height: 26px;
|
||||
text-align: left;
|
||||
color: #303133;
|
||||
height: 24px;
|
||||
font-size: 15px;
|
||||
flex: 1;
|
||||
}
|
||||
.u-input__content__clear.data-v-df79975b {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 100px;
|
||||
background-color: #c6c7cb;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transform: scale(0.82);
|
||||
margin-left: 4px;
|
||||
}
|
||||
.u-input__content__subfix-icon.data-v-df79975b {
|
||||
margin-left: 4px;
|
||||
}
|
||||
.u-input__content__prefix-icon.data-v-df79975b {
|
||||
margin-right: 4px;
|
||||
}
|
||||
57
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/index.js
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("./libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("./libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_luchRequest_core_Request = require("./libs/luch-request/core/Request.js");
|
||||
const uni_modules_uviewPlus_libs_util_route = require("./libs/util/route.js");
|
||||
const uni_modules_uviewPlus_libs_function_colorGradient = require("./libs/function/colorGradient.js");
|
||||
const uni_modules_uviewPlus_libs_function_test = require("./libs/function/test.js");
|
||||
const uni_modules_uviewPlus_libs_function_debounce = require("./libs/function/debounce.js");
|
||||
const uni_modules_uviewPlus_libs_function_throttle = require("./libs/function/throttle.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("./libs/function/index.js");
|
||||
const uni_modules_uviewPlus_libs_config_config = require("./libs/config/config.js");
|
||||
const uni_modules_uviewPlus_libs_config_props = require("./libs/config/props.js");
|
||||
const uni_modules_uviewPlus_libs_config_zIndex = require("./libs/config/zIndex.js");
|
||||
const uni_modules_uviewPlus_libs_config_color = require("./libs/config/color.js");
|
||||
const uni_modules_uviewPlus_libs_function_platform = require("./libs/function/platform.js");
|
||||
const http = new uni_modules_uviewPlus_libs_luchRequest_core_Request.Request();
|
||||
let themeType = ["primary", "success", "error", "warning", "info"];
|
||||
function setConfig(configs) {
|
||||
uni_modules_uviewPlus_libs_function_index.index.shallowMerge(uni_modules_uviewPlus_libs_config_config.config, configs.config || {});
|
||||
uni_modules_uviewPlus_libs_function_index.index.shallowMerge(uni_modules_uviewPlus_libs_config_props.defProps, configs.props || {});
|
||||
uni_modules_uviewPlus_libs_function_index.index.shallowMerge(uni_modules_uviewPlus_libs_config_color.color, configs.color || {});
|
||||
uni_modules_uviewPlus_libs_function_index.index.shallowMerge(uni_modules_uviewPlus_libs_config_zIndex.zIndex, configs.zIndex || {});
|
||||
}
|
||||
uni_modules_uviewPlus_libs_function_index.index.setConfig = setConfig;
|
||||
const $u = {
|
||||
route: uni_modules_uviewPlus_libs_util_route.route,
|
||||
date: uni_modules_uviewPlus_libs_function_index.index.timeFormat,
|
||||
// 另名date
|
||||
colorGradient: uni_modules_uviewPlus_libs_function_colorGradient.colorGradient.colorGradient,
|
||||
hexToRgb: uni_modules_uviewPlus_libs_function_colorGradient.colorGradient.hexToRgb,
|
||||
rgbToHex: uni_modules_uviewPlus_libs_function_colorGradient.colorGradient.rgbToHex,
|
||||
colorToRgba: uni_modules_uviewPlus_libs_function_colorGradient.colorGradient.colorToRgba,
|
||||
test: uni_modules_uviewPlus_libs_function_test.test,
|
||||
type: themeType,
|
||||
http,
|
||||
config: uni_modules_uviewPlus_libs_config_config.config,
|
||||
// uview-plus配置信息相关,比如版本号
|
||||
zIndex: uni_modules_uviewPlus_libs_config_zIndex.zIndex,
|
||||
debounce: uni_modules_uviewPlus_libs_function_debounce.debounce,
|
||||
throttle: uni_modules_uviewPlus_libs_function_throttle.throttle,
|
||||
mixin: uni_modules_uviewPlus_libs_mixin_mixin.mixin,
|
||||
mpMixin: uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin,
|
||||
props: uni_modules_uviewPlus_libs_config_props.defProps,
|
||||
...uni_modules_uviewPlus_libs_function_index.index,
|
||||
color: uni_modules_uviewPlus_libs_config_color.color,
|
||||
platform: uni_modules_uviewPlus_libs_function_platform.platform
|
||||
};
|
||||
common_vendor.index.$u = $u;
|
||||
const install = (Vue) => {
|
||||
Vue.config.globalProperties.$u = $u;
|
||||
Vue.mixin(uni_modules_uviewPlus_libs_mixin_mixin.mixin);
|
||||
};
|
||||
const uviewPlus = {
|
||||
install
|
||||
};
|
||||
exports.uviewPlus = uviewPlus;
|
||||
15
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/color.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
const color = {
|
||||
primary: "#3c9cff",
|
||||
info: "#909399",
|
||||
default: "#909399",
|
||||
warning: "#f9ae3d",
|
||||
error: "#f56c6c",
|
||||
success: "#5ac725",
|
||||
mainColor: "#303133",
|
||||
contentColor: "#606266",
|
||||
tipsColor: "#909399",
|
||||
lightColor: "#c0c4cc",
|
||||
borderColor: "#e4e7ed"
|
||||
};
|
||||
exports.color = color;
|
||||
35
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/config.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
const version = "3";
|
||||
{
|
||||
console.log(`
|
||||
%c uview-plus V${version} %c https://ijry.github.io/uview-plus/
|
||||
|
||||
`, "color: #ffffff; background: #3c9cff; padding:5px 0;", "color: #3c9cff;background: #ffffff; padding:5px 0;");
|
||||
}
|
||||
const config = {
|
||||
v: version,
|
||||
version,
|
||||
// 主题名称
|
||||
type: [
|
||||
"primary",
|
||||
"success",
|
||||
"info",
|
||||
"error",
|
||||
"warning"
|
||||
],
|
||||
// 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
|
||||
color: {
|
||||
"u-primary": "#2979ff",
|
||||
"u-warning": "#ff9900",
|
||||
"u-success": "#19be6b",
|
||||
"u-error": "#fa3534",
|
||||
"u-info": "#909399",
|
||||
"u-main-color": "#303133",
|
||||
"u-content-color": "#606266",
|
||||
"u-tips-color": "#909399",
|
||||
"u-light-color": "#c0c4cc"
|
||||
},
|
||||
// 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
|
||||
unit: "px"
|
||||
};
|
||||
exports.config = config;
|
||||
181
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props.js
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
"use strict";
|
||||
require("./config.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_actionSheet = require("./props/actionSheet.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_album = require("./props/album.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_alert = require("./props/alert.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_avatar = require("./props/avatar.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_avatarGroup = require("./props/avatarGroup.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_backtop = require("./props/backtop.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_badge = require("./props/badge.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_button = require("./props/button.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_calendar = require("./props/calendar.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_carKeyboard = require("./props/carKeyboard.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_cell = require("./props/cell.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_cellGroup = require("./props/cellGroup.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_checkbox = require("./props/checkbox.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_checkboxGroup = require("./props/checkboxGroup.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_circleProgress = require("./props/circleProgress.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_code = require("./props/code.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_codeInput = require("./props/codeInput.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_col = require("./props/col.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_collapse = require("./props/collapse.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_collapseItem = require("./props/collapseItem.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_columnNotice = require("./props/columnNotice.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_countDown = require("./props/countDown.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_countTo = require("./props/countTo.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_datetimePicker = require("./props/datetimePicker.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_divider = require("./props/divider.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_empty = require("./props/empty.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_form = require("./props/form.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_formItem = require("./props/formItem.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_gap = require("./props/gap.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_grid = require("./props/grid.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_gridItem = require("./props/gridItem.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_icon = require("./props/icon.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_image = require("./props/image.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_indexAnchor = require("./props/indexAnchor.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_indexList = require("./props/indexList.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_input = require("./props/input.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_keyboard = require("./props/keyboard.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_line = require("./props/line.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_lineProgress = require("./props/lineProgress.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_link = require("./props/link.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_list = require("./props/list.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_listItem = require("./props/listItem.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_loadingIcon = require("./props/loadingIcon.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_loadingPage = require("./props/loadingPage.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_loadmore = require("./props/loadmore.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_modal = require("./props/modal.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_navbar = require("./props/navbar.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_noNetwork = require("./props/noNetwork.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_noticeBar = require("./props/noticeBar.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_notify = require("./props/notify.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_numberBox = require("./props/numberBox.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_numberKeyboard = require("./props/numberKeyboard.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_overlay = require("./props/overlay.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_parse = require("./props/parse.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_picker = require("./props/picker.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_popup = require("./props/popup.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_radio = require("./props/radio.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_radioGroup = require("./props/radioGroup.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_rate = require("./props/rate.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_readMore = require("./props/readMore.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_row = require("./props/row.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_rowNotice = require("./props/rowNotice.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_scrollList = require("./props/scrollList.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_search = require("./props/search.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_section = require("./props/section.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_skeleton = require("./props/skeleton.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_slider = require("./props/slider.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_statusBar = require("./props/statusBar.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_steps = require("./props/steps.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_stepsItem = require("./props/stepsItem.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_sticky = require("./props/sticky.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_subsection = require("./props/subsection.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_swipeAction = require("./props/swipeAction.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_swipeActionItem = require("./props/swipeActionItem.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_swiper = require("./props/swiper.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_swipterIndicator = require("./props/swipterIndicator.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_switch = require("./props/switch.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_tabbar = require("./props/tabbar.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_tabbarItem = require("./props/tabbarItem.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_tabs = require("./props/tabs.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_tag = require("./props/tag.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_text = require("./props/text.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_textarea = require("./props/textarea.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_toast = require("./props/toast.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_toolbar = require("./props/toolbar.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_tooltip = require("./props/tooltip.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_transition = require("./props/transition.js");
|
||||
const uni_modules_uviewPlus_libs_config_props_upload = require("./props/upload.js");
|
||||
const defProps = {
|
||||
...uni_modules_uviewPlus_libs_config_props_actionSheet.ActionSheet,
|
||||
...uni_modules_uviewPlus_libs_config_props_album.Album,
|
||||
...uni_modules_uviewPlus_libs_config_props_alert.Alert,
|
||||
...uni_modules_uviewPlus_libs_config_props_avatar.Avatar,
|
||||
...uni_modules_uviewPlus_libs_config_props_avatarGroup.AvatarGroup,
|
||||
...uni_modules_uviewPlus_libs_config_props_backtop.Backtop,
|
||||
...uni_modules_uviewPlus_libs_config_props_badge.Badge,
|
||||
...uni_modules_uviewPlus_libs_config_props_button.Button,
|
||||
...uni_modules_uviewPlus_libs_config_props_calendar.Calendar,
|
||||
...uni_modules_uviewPlus_libs_config_props_carKeyboard.CarKeyboard,
|
||||
...uni_modules_uviewPlus_libs_config_props_cell.Cell,
|
||||
...uni_modules_uviewPlus_libs_config_props_cellGroup.CellGroup,
|
||||
...uni_modules_uviewPlus_libs_config_props_checkbox.Checkbox,
|
||||
...uni_modules_uviewPlus_libs_config_props_checkboxGroup.CheckboxGroup,
|
||||
...uni_modules_uviewPlus_libs_config_props_circleProgress.CircleProgress,
|
||||
...uni_modules_uviewPlus_libs_config_props_code.Code,
|
||||
...uni_modules_uviewPlus_libs_config_props_codeInput.CodeInput,
|
||||
...uni_modules_uviewPlus_libs_config_props_col.Col,
|
||||
...uni_modules_uviewPlus_libs_config_props_collapse.Collapse,
|
||||
...uni_modules_uviewPlus_libs_config_props_collapseItem.CollapseItem,
|
||||
...uni_modules_uviewPlus_libs_config_props_columnNotice.ColumnNotice,
|
||||
...uni_modules_uviewPlus_libs_config_props_countDown.CountDown,
|
||||
...uni_modules_uviewPlus_libs_config_props_countTo.CountTo,
|
||||
...uni_modules_uviewPlus_libs_config_props_datetimePicker.DatetimePicker,
|
||||
...uni_modules_uviewPlus_libs_config_props_divider.Divider,
|
||||
...uni_modules_uviewPlus_libs_config_props_empty.Empty,
|
||||
...uni_modules_uviewPlus_libs_config_props_form.Form,
|
||||
...uni_modules_uviewPlus_libs_config_props_formItem.GormItem,
|
||||
...uni_modules_uviewPlus_libs_config_props_gap.Gap,
|
||||
...uni_modules_uviewPlus_libs_config_props_grid.Grid,
|
||||
...uni_modules_uviewPlus_libs_config_props_gridItem.GridItem,
|
||||
...uni_modules_uviewPlus_libs_config_props_icon.Icon,
|
||||
...uni_modules_uviewPlus_libs_config_props_image.Image,
|
||||
...uni_modules_uviewPlus_libs_config_props_indexAnchor.IndexAnchor,
|
||||
...uni_modules_uviewPlus_libs_config_props_indexList.IndexList,
|
||||
...uni_modules_uviewPlus_libs_config_props_input.Input,
|
||||
...uni_modules_uviewPlus_libs_config_props_keyboard.Keyboard,
|
||||
...uni_modules_uviewPlus_libs_config_props_line.Line,
|
||||
...uni_modules_uviewPlus_libs_config_props_lineProgress.LineProgress,
|
||||
...uni_modules_uviewPlus_libs_config_props_link.Link,
|
||||
...uni_modules_uviewPlus_libs_config_props_list.List,
|
||||
...uni_modules_uviewPlus_libs_config_props_listItem.ListItem,
|
||||
...uni_modules_uviewPlus_libs_config_props_loadingIcon.LoadingIcon,
|
||||
...uni_modules_uviewPlus_libs_config_props_loadingPage.LoadingPage,
|
||||
...uni_modules_uviewPlus_libs_config_props_loadmore.Loadmore,
|
||||
...uni_modules_uviewPlus_libs_config_props_modal.Modal,
|
||||
...uni_modules_uviewPlus_libs_config_props_navbar.Navbar,
|
||||
...uni_modules_uviewPlus_libs_config_props_noNetwork.NoNetwork,
|
||||
...uni_modules_uviewPlus_libs_config_props_noticeBar.NoticeBar,
|
||||
...uni_modules_uviewPlus_libs_config_props_notify.Notify,
|
||||
...uni_modules_uviewPlus_libs_config_props_numberBox.NumberBox,
|
||||
...uni_modules_uviewPlus_libs_config_props_numberKeyboard.NumberKeyboard,
|
||||
...uni_modules_uviewPlus_libs_config_props_overlay.Overlay,
|
||||
...uni_modules_uviewPlus_libs_config_props_parse.Parse,
|
||||
...uni_modules_uviewPlus_libs_config_props_picker.Picker,
|
||||
...uni_modules_uviewPlus_libs_config_props_popup.Popup,
|
||||
...uni_modules_uviewPlus_libs_config_props_radio.Radio,
|
||||
...uni_modules_uviewPlus_libs_config_props_radioGroup.RadioGroup,
|
||||
...uni_modules_uviewPlus_libs_config_props_rate.Rate,
|
||||
...uni_modules_uviewPlus_libs_config_props_readMore.ReadMore,
|
||||
...uni_modules_uviewPlus_libs_config_props_row.Row,
|
||||
...uni_modules_uviewPlus_libs_config_props_rowNotice.RowNotice,
|
||||
...uni_modules_uviewPlus_libs_config_props_scrollList.ScrollList,
|
||||
...uni_modules_uviewPlus_libs_config_props_search.Search,
|
||||
...uni_modules_uviewPlus_libs_config_props_section.Section,
|
||||
...uni_modules_uviewPlus_libs_config_props_skeleton.Skeleton,
|
||||
...uni_modules_uviewPlus_libs_config_props_slider.Slider,
|
||||
...uni_modules_uviewPlus_libs_config_props_statusBar.StatusBar,
|
||||
...uni_modules_uviewPlus_libs_config_props_steps.Steps,
|
||||
...uni_modules_uviewPlus_libs_config_props_stepsItem.StepsItem,
|
||||
...uni_modules_uviewPlus_libs_config_props_sticky.Sticky,
|
||||
...uni_modules_uviewPlus_libs_config_props_subsection.Subsection,
|
||||
...uni_modules_uviewPlus_libs_config_props_swipeAction.SwipeAction,
|
||||
...uni_modules_uviewPlus_libs_config_props_swipeActionItem.SwipeActionItem,
|
||||
...uni_modules_uviewPlus_libs_config_props_swiper.Swiper,
|
||||
...uni_modules_uviewPlus_libs_config_props_swipterIndicator.SwipterIndicator,
|
||||
...uni_modules_uviewPlus_libs_config_props_switch.Switch,
|
||||
...uni_modules_uviewPlus_libs_config_props_tabbar.Tabbar,
|
||||
...uni_modules_uviewPlus_libs_config_props_tabbarItem.TabbarItem,
|
||||
...uni_modules_uviewPlus_libs_config_props_tabs.Tabs,
|
||||
...uni_modules_uviewPlus_libs_config_props_tag.Tag,
|
||||
...uni_modules_uviewPlus_libs_config_props_text.Text,
|
||||
...uni_modules_uviewPlus_libs_config_props_textarea.Textarea,
|
||||
...uni_modules_uviewPlus_libs_config_props_toast.Toast,
|
||||
...uni_modules_uviewPlus_libs_config_props_toolbar.Toolbar,
|
||||
...uni_modules_uviewPlus_libs_config_props_tooltip.Tooltip,
|
||||
...uni_modules_uviewPlus_libs_config_props_transition.Transition,
|
||||
...uni_modules_uviewPlus_libs_config_props_upload.Upload
|
||||
};
|
||||
exports.defProps = defProps;
|
||||
18
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/actionSheet.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
const ActionSheet = {
|
||||
// action-sheet组件
|
||||
actionSheet: {
|
||||
show: false,
|
||||
title: "",
|
||||
description: "",
|
||||
actions: [],
|
||||
index: "",
|
||||
cancelText: "",
|
||||
closeOnClickAction: true,
|
||||
safeAreaInsetBottom: true,
|
||||
openType: "",
|
||||
closeOnClickOverlay: true,
|
||||
round: 0
|
||||
}
|
||||
};
|
||||
exports.ActionSheet = ActionSheet;
|
||||
18
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/album.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
const Album = {
|
||||
// album 组件
|
||||
album: {
|
||||
urls: [],
|
||||
keyName: "",
|
||||
singleSize: 180,
|
||||
multipleSize: 70,
|
||||
space: 6,
|
||||
singleMode: "scaleToFill",
|
||||
multipleMode: "aspectFill",
|
||||
maxCount: 9,
|
||||
previewFullImage: true,
|
||||
rowCount: 3,
|
||||
showMore: true
|
||||
}
|
||||
};
|
||||
exports.Album = Album;
|
||||
15
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/alert.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
const Alert = {
|
||||
// alert警告组件
|
||||
alert: {
|
||||
title: "",
|
||||
type: "warning",
|
||||
description: "",
|
||||
closable: false,
|
||||
showIcon: false,
|
||||
effect: "light",
|
||||
center: false,
|
||||
fontSize: 14
|
||||
}
|
||||
};
|
||||
exports.Alert = Alert;
|
||||
21
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/avatar.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
const Avatar = {
|
||||
// avatar 组件
|
||||
avatar: {
|
||||
src: "",
|
||||
shape: "circle",
|
||||
size: 40,
|
||||
mode: "scaleToFill",
|
||||
text: "",
|
||||
bgColor: "#c0c4cc",
|
||||
color: "#ffffff",
|
||||
fontSize: 18,
|
||||
icon: "",
|
||||
mpAvatar: false,
|
||||
randomBgColor: false,
|
||||
defaultUrl: "",
|
||||
colorIndex: "",
|
||||
name: ""
|
||||
}
|
||||
};
|
||||
exports.Avatar = Avatar;
|
||||
16
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/avatarGroup.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
const AvatarGroup = {
|
||||
// avatarGroup 组件
|
||||
avatarGroup: {
|
||||
urls: [],
|
||||
maxCount: 5,
|
||||
shape: "circle",
|
||||
mode: "scaleToFill",
|
||||
showMore: true,
|
||||
size: 40,
|
||||
keyName: "",
|
||||
gap: 0.5,
|
||||
extraValue: 0
|
||||
}
|
||||
};
|
||||
exports.AvatarGroup = AvatarGroup;
|
||||
20
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/backtop.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
const Backtop = {
|
||||
// backtop组件
|
||||
backtop: {
|
||||
mode: "circle",
|
||||
icon: "arrow-upward",
|
||||
text: "",
|
||||
duration: 100,
|
||||
scrollTop: 0,
|
||||
top: 400,
|
||||
bottom: 100,
|
||||
right: 20,
|
||||
zIndex: 9,
|
||||
iconStyle: {
|
||||
color: "#909399",
|
||||
fontSize: "19px"
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.Backtop = Backtop;
|
||||
20
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/badge.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
const Badge = {
|
||||
// 徽标数组件
|
||||
badge: {
|
||||
isDot: false,
|
||||
value: "",
|
||||
show: true,
|
||||
max: 999,
|
||||
type: "error",
|
||||
showZero: false,
|
||||
bgColor: null,
|
||||
color: null,
|
||||
shape: "circle",
|
||||
numberType: "overflow",
|
||||
offset: [],
|
||||
inverted: false,
|
||||
absolute: false
|
||||
}
|
||||
};
|
||||
exports.Badge = Badge;
|
||||
35
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/button.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
const Button = {
|
||||
// button组件
|
||||
button: {
|
||||
hairline: false,
|
||||
type: "info",
|
||||
size: "normal",
|
||||
shape: "square",
|
||||
plain: false,
|
||||
disabled: false,
|
||||
loading: false,
|
||||
loadingText: "",
|
||||
loadingMode: "spinner",
|
||||
loadingSize: 15,
|
||||
openType: "",
|
||||
formType: "",
|
||||
appParameter: "",
|
||||
hoverStopPropagation: true,
|
||||
lang: "en",
|
||||
sessionFrom: "",
|
||||
sendMessageTitle: "",
|
||||
sendMessagePath: "",
|
||||
sendMessageImg: "",
|
||||
showMessageCard: false,
|
||||
dataName: "",
|
||||
throttleTime: 0,
|
||||
hoverStartTime: 0,
|
||||
hoverStayTime: 200,
|
||||
text: "",
|
||||
icon: "",
|
||||
iconColor: "",
|
||||
color: ""
|
||||
}
|
||||
};
|
||||
exports.Button = Button;
|
||||
37
unpackage/dist/dev/mp-weixin/uni_modules/uview-plus/libs/config/props/calendar.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
const Calendar = {
|
||||
// calendar 组件
|
||||
calendar: {
|
||||
title: "日期选择",
|
||||
showTitle: true,
|
||||
showSubtitle: true,
|
||||
mode: "single",
|
||||
startText: "开始",
|
||||
endText: "结束",
|
||||
customList: [],
|
||||
color: "#3c9cff",
|
||||
minDate: 0,
|
||||
maxDate: 0,
|
||||
defaultDate: null,
|
||||
maxCount: Number.MAX_SAFE_INTEGER,
|
||||
// Infinity
|
||||
rowHeight: 56,
|
||||
formatter: null,
|
||||
showLunar: false,
|
||||
showMark: true,
|
||||
confirmText: "确定",
|
||||
confirmDisabledText: "确定",
|
||||
show: false,
|
||||
closeOnClickOverlay: false,
|
||||
readonly: false,
|
||||
showConfirm: true,
|
||||
maxRange: Number.MAX_SAFE_INTEGER,
|
||||
// Infinity
|
||||
rangePrompt: "",
|
||||
showRangePrompt: true,
|
||||
allowSameDay: false,
|
||||
round: 0,
|
||||
monthNum: 3
|
||||
}
|
||||
};
|
||||
exports.Calendar = Calendar;
|
||||