Compare commits
No commits in common. "20b415ffc44ad4d9aeb029a3aa0e6a20c4737169" and "91c34c3f9bb501d7d99a9cb3e145ba432b743e3c" have entirely different histories.
20b415ffc4
...
91c34c3f9b
1
app.json
1
app.json
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"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 './heightWeight';
|
import { heightList, weightList } from '~/assets/js/heightWeight';
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
"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/util';
|
import aesCryptoJS from '~/utils/aesCryptoJS.js';
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
6
utils/aesCryptoJS.js
Normal file
6
utils/aesCryptoJS.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import CryptoJS from "crypto-js";
|
||||||
|
|
||||||
|
const aesCryptoJS = function (text) {
|
||||||
|
return CryptoJS.MD5(text).toString()
|
||||||
|
}
|
||||||
|
export default aesCryptoJS;
|
||||||
@ -1,5 +1,3 @@
|
|||||||
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}`;
|
||||||
@ -24,12 +22,7 @@ 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