dsds
This commit is contained in:
parent
1eaf786919
commit
4d02e461c5
1
app.json
1
app.json
@ -1,5 +1,6 @@
|
||||
{
|
||||
"pages": ["pages/patients/index", "pages/my/index"],
|
||||
"lazyCodeLoading": "requiredComponents",
|
||||
"usingComponents": {
|
||||
"t-toast": "tdesign-miniprogram/toast/toast"
|
||||
},
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as echarts from '../../ec-canvas/echarts.min';
|
||||
import request from '~/api/request';
|
||||
import { heightList, weightList } from '~/assets/js/heightWeight';
|
||||
import { heightList, weightList } from './heightWeight';
|
||||
const app = getApp();
|
||||
|
||||
Page({
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "首页",
|
||||
"usingComponents": {
|
||||
"t-button": "tdesign-miniprogram/button/button",
|
||||
"ec-canvas": "../../ec-canvas/ec-canvas",
|
||||
"t-col": "tdesign-miniprogram/col/col",
|
||||
"t-row": "tdesign-miniprogram/row/row",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import request from '~/api/request';
|
||||
import { resetTokenInvalid } from '~/api/request';
|
||||
import aesCryptoJS from '~/utils/aesCryptoJS.js';
|
||||
import { aesCryptoJS } from '~/utils/util';
|
||||
|
||||
Page({
|
||||
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) => {
|
||||
n = n.toString();
|
||||
return n[1] ? n : `0${n}`;
|
||||
@ -22,7 +24,12 @@ const getLocalUrl = (path, name) => {
|
||||
return tempFileName;
|
||||
};
|
||||
|
||||
const aesCryptoJS = function (text) {
|
||||
return CryptoJS.MD5(text).toString()
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
formatTime,
|
||||
getLocalUrl,
|
||||
aesCryptoJS
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user