build(deps): 依赖升级
This commit is contained in:
@@ -6,6 +6,21 @@ import { argv } from "yargs";
|
||||
|
||||
const { robot = 1, desc } = argv;
|
||||
|
||||
const CIPluginOptFn = async () => {
|
||||
/**
|
||||
* @typedef { import("@tarojs/plugin-mini-ci").CIOptions } CIOptions
|
||||
* @type {CIOptions}
|
||||
*/
|
||||
return {
|
||||
weapp: {
|
||||
appid: process.env.TARO_APP_ID,
|
||||
privateKeyPath: process.env.TARO_APP_KEY,
|
||||
robot,
|
||||
},
|
||||
desc,
|
||||
};
|
||||
};
|
||||
|
||||
const config = {
|
||||
projectName: "taroApp",
|
||||
date: "2023-8-13",
|
||||
@@ -23,26 +38,7 @@ const config = {
|
||||
},
|
||||
sourceRoot: "src",
|
||||
outputRoot: "dist",
|
||||
plugins: [
|
||||
"@tarojs/plugin-html",
|
||||
[
|
||||
"@tarojs/plugin-mini-ci",
|
||||
() => {
|
||||
/**
|
||||
* @typedef { import("@tarojs/plugin-mini-ci").CIOptions } CIOptions
|
||||
* @type {CIOptions}
|
||||
*/
|
||||
return {
|
||||
weapp: {
|
||||
appid: process.env.TARO_APP_ID,
|
||||
privateKeyPath: process.env.TARO_APP_KEY,
|
||||
robot,
|
||||
},
|
||||
desc,
|
||||
};
|
||||
},
|
||||
],
|
||||
],
|
||||
plugins: ["@tarojs/plugin-html", ["@tarojs/plugin-mini-ci", CIPluginOptFn]],
|
||||
defineConstants: {},
|
||||
copy: {
|
||||
patterns: [],
|
||||
|
||||
42
package.json
42
package.json
@@ -61,22 +61,22 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.23.5",
|
||||
"@nutui/icons-vue-taro": "^0.0.9",
|
||||
"@nutui/nutui-taro": "^4.2.7",
|
||||
"@nutui/nutui-taro": "^4.2.4",
|
||||
"@qiun/vue-ucharts": "2.5.0-20230101",
|
||||
"@tarojs/components": "3.6.22",
|
||||
"@tarojs/helper": "3.6.22",
|
||||
"@tarojs/plugin-framework-vue3": "3.6.22",
|
||||
"@tarojs/plugin-html": "3.6.22",
|
||||
"@tarojs/plugin-platform-alipay": "3.6.22",
|
||||
"@tarojs/plugin-platform-h5": "3.6.22",
|
||||
"@tarojs/plugin-platform-jd": "3.6.22",
|
||||
"@tarojs/plugin-platform-qq": "3.6.22",
|
||||
"@tarojs/plugin-platform-swan": "3.6.22",
|
||||
"@tarojs/plugin-platform-tt": "3.6.22",
|
||||
"@tarojs/plugin-platform-weapp": "3.6.22",
|
||||
"@tarojs/runtime": "3.6.22",
|
||||
"@tarojs/shared": "3.6.22",
|
||||
"@tarojs/taro": "3.6.22",
|
||||
"@tarojs/components": "3.6.20",
|
||||
"@tarojs/helper": "3.6.20",
|
||||
"@tarojs/plugin-framework-vue3": "3.6.20",
|
||||
"@tarojs/plugin-html": "3.6.20",
|
||||
"@tarojs/plugin-platform-alipay": "3.6.20",
|
||||
"@tarojs/plugin-platform-h5": "3.6.20",
|
||||
"@tarojs/plugin-platform-jd": "3.6.20",
|
||||
"@tarojs/plugin-platform-qq": "3.6.20",
|
||||
"@tarojs/plugin-platform-swan": "3.6.20",
|
||||
"@tarojs/plugin-platform-tt": "3.6.20",
|
||||
"@tarojs/plugin-platform-weapp": "3.6.20",
|
||||
"@tarojs/runtime": "3.6.20",
|
||||
"@tarojs/shared": "3.6.20",
|
||||
"@tarojs/taro": "3.6.20",
|
||||
"dayjs": "^1.11.10",
|
||||
"pinia": "^2.1.7",
|
||||
"vue": "^3.3.9"
|
||||
@@ -85,22 +85,22 @@
|
||||
"@babel/core": "^7.23.5",
|
||||
"@commitlint/cli": "^18.4.3",
|
||||
"@commitlint/config-conventional": "^18.4.3",
|
||||
"@tarojs/cli": "3.6.22",
|
||||
"@tarojs/plugin-mini-ci": "3.6.22",
|
||||
"@tarojs/taro-loader": "3.6.22",
|
||||
"@tarojs/webpack5-runner": "3.6.22",
|
||||
"@tarojs/cli": "3.6.20",
|
||||
"@tarojs/plugin-mini-ci": "3.6.20",
|
||||
"@tarojs/taro-loader": "3.6.20",
|
||||
"@tarojs/webpack5-runner": "3.6.20",
|
||||
"@types/node": "^18.19.1",
|
||||
"@types/webpack-env": "^1.18.4",
|
||||
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
||||
"@typescript-eslint/parser": "^6.13.1",
|
||||
"@vue/babel-plugin-jsx": "^1.1.5",
|
||||
"@vue/compiler-sfc": "^3.3.9",
|
||||
"babel-preset-taro": "3.6.22",
|
||||
"babel-preset-taro": "3.6.20",
|
||||
"commitizen": "^4.3.0",
|
||||
"css-loader": "3.4.2",
|
||||
"cz-customizable": "^7.0.0",
|
||||
"eslint": "^8.55.0",
|
||||
"eslint-config-taro": "3.6.22",
|
||||
"eslint-config-taro": "3.6.20",
|
||||
"eslint-plugin-vue": "^9.19.2",
|
||||
"husky": "^8.0.3",
|
||||
"lint-staged": "^15.1.0",
|
||||
|
||||
18026
pnpm-lock.yaml
generated
18026
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,6 @@
|
||||
import { ref } from "vue";
|
||||
import Taro from "@tarojs/taro";
|
||||
import { userSign } from "@/api/user";
|
||||
import { debounce } from "@/utils";
|
||||
|
||||
const show = ref(false);
|
||||
|
||||
@@ -33,7 +32,7 @@ const toSign = async () => {
|
||||
:close-on-click-overlay="false"
|
||||
>
|
||||
<view class="wrapper">
|
||||
<view @click.stop="debounce(toSign)">
|
||||
<view @click.stop="toSign">
|
||||
<image class="image" src="../static/index/poppBg.png" />
|
||||
</view>
|
||||
<view @click.stop="show = false">
|
||||
|
||||
@@ -53,44 +53,3 @@ export function parseQueryString(url: string) {
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param rdix 随机因子
|
||||
* @param length 取的长度
|
||||
* @param isAddStr 是否限制随机结果中的长度,不允许输出长度
|
||||
* @returns String
|
||||
*/
|
||||
export function getUid(rdix = 1, length = 12, isAddStr = false) {
|
||||
return Math.floor(
|
||||
Math.random() * rdix * Math.floor(Math.random() * Date.now())
|
||||
)
|
||||
.toString(isAddStr ? 16 : 10)
|
||||
.substring(0, length);
|
||||
}
|
||||
|
||||
/*
|
||||
防抖
|
||||
防抖原理:在一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
|
||||
@param {Function} func 要执行的回调函数
|
||||
@param {Number} wait 延迟的时间
|
||||
@param{Boolean} immediate 是否要立即执行
|
||||
*/
|
||||
var timeout: any = getUid(1);
|
||||
export function debounce(func: Function, wait = 500, immediate = false) {
|
||||
// 清除定时器
|
||||
if (timeout !== null) clearTimeout(timeout);
|
||||
// 立即执行,此类情况一般用不到
|
||||
if (immediate) {
|
||||
timeout = setTimeout(() => {
|
||||
timeout = null;
|
||||
}, wait);
|
||||
typeof func === "function" && func();
|
||||
} else {
|
||||
// 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
|
||||
timeout = getUid(1);
|
||||
timeout = setTimeout(() => {
|
||||
typeof func === "function" && func();
|
||||
}, wait);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user