diff --git a/pages/210/call/index.vue b/pages/210/call/index.vue new file mode 100644 index 0000000..2dea435 --- /dev/null +++ b/pages/210/call/index.vue @@ -0,0 +1,311 @@ + + + + + \ No newline at end of file diff --git a/static/images/common/bj_1.png b/static/images/common/bj_1.png new file mode 100644 index 0000000..9078adb Binary files /dev/null and b/static/images/common/bj_1.png differ diff --git a/utils/function.js b/utils/function.js new file mode 100644 index 0000000..189f138 --- /dev/null +++ b/utils/function.js @@ -0,0 +1,16 @@ +/** + * 生成短ID (16位字符) + */ +export const generateShortId = () => { + const crypto = window.crypto || window.msCrypto; + + if (crypto?.getRandomValues) { + return Array.from(crypto.getRandomValues(new Uint32Array(3))) + .map(n => n.toString(36)) + .join('') + .slice(0, 16); + } + + return Date.now().toString(36) + Math.random().toString(36).substr(2, 8); +}; +export default generateShortId; \ No newline at end of file