Merge branch 'main' of https://git.1024tool.vip/xz/doctor-mini into main
This commit is contained in:
commit
d5fbedd191
1
app.json
1
app.json
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pages": ["pages/patients/index", "pages/my/index"],
|
"pages": ["pages/patients/index", "pages/my/index"],
|
||||||
|
"lazyCodeLoading": "requiredComponents",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"t-toast": "tdesign-miniprogram/toast/toast"
|
"t-toast": "tdesign-miniprogram/toast/toast"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import * as echarts from '../../ec-canvas/echarts.min';
|
import * as echarts from '../../ec-canvas/echarts.min';
|
||||||
import request from '~/api/request';
|
import request from '~/api/request';
|
||||||
import { heightList, weightList } from '~/assets/js/heightWeight';
|
import { heightList, weightList } from './heightWeight';
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "首页",
|
"navigationBarTitleText": "首页",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"t-button": "tdesign-miniprogram/button/button",
|
|
||||||
"ec-canvas": "../../ec-canvas/ec-canvas",
|
"ec-canvas": "../../ec-canvas/ec-canvas",
|
||||||
"t-col": "tdesign-miniprogram/col/col",
|
"t-col": "tdesign-miniprogram/col/col",
|
||||||
"t-row": "tdesign-miniprogram/row/row",
|
"t-row": "tdesign-miniprogram/row/row",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import request from '~/api/request';
|
import request from '~/api/request';
|
||||||
import { resetTokenInvalid } from '~/api/request';
|
import { resetTokenInvalid } from '~/api/request';
|
||||||
import aesCryptoJS from '~/utils/aesCryptoJS.js';
|
import { aesCryptoJS } from '~/utils/util';
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
import CryptoJS from "crypto-js";
|
|
||||||
|
|
||||||
const aesCryptoJS = function (text) {
|
|
||||||
return CryptoJS.MD5(text).toString()
|
|
||||||
}
|
|
||||||
export default aesCryptoJS;
|
|
||||||
@ -1,3 +1,5 @@
|
|||||||
|
import CryptoJS from "crypto-js";
|
||||||
|
|
||||||
const formatNumber = (n) => {
|
const formatNumber = (n) => {
|
||||||
n = n.toString();
|
n = n.toString();
|
||||||
return n[1] ? n : `0${n}`;
|
return n[1] ? n : `0${n}`;
|
||||||
@ -22,7 +24,12 @@ const getLocalUrl = (path, name) => {
|
|||||||
return tempFileName;
|
return tempFileName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const aesCryptoJS = function (text) {
|
||||||
|
return CryptoJS.MD5(text).toString()
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
formatTime,
|
formatTime,
|
||||||
getLocalUrl,
|
getLocalUrl,
|
||||||
|
aesCryptoJS
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user