123456789101112131415161718192021222324252627 |
- import {
- hexMD5
- } from "../../utils/md5";
- const _Http = getApp().globalData.http;
- Page({
- data: {
- username: "000101",
- password: "123456789",
- },
- onLoad(options) {
- },
- login() {
- _Http.login({
- "accountno": this.data.username,
- "password": hexMD5(this.data.password),
- "systemclient": "wechatsaletool"
- }).then(res => {
- console.log("登录", res)
- wx.showToast({
- title: res.msg == '成功' ? '登录成功' : res.msg,
- icon: "none"
- });
- wx.setStorageSync('userMsg', res.account_list[0])
- })
- },
- })
|