|
@@ -1,6 +1,10 @@
|
|
const _Http = getApp().globalData.http,
|
|
const _Http = getApp().globalData.http,
|
|
MFT = require("../../utils/matchingFeilType"),
|
|
MFT = require("../../utils/matchingFeilType"),
|
|
CF = require("../../utils/checkFile");
|
|
CF = require("../../utils/checkFile");
|
|
|
|
+import {
|
|
|
|
+ weAtob,
|
|
|
|
+ weBtoa
|
|
|
|
+} from "../../utils/weapp-jwt";
|
|
Page({
|
|
Page({
|
|
/**
|
|
/**
|
|
* 页面的初始数据
|
|
* 页面的初始数据
|
|
@@ -81,7 +85,8 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
loading: true
|
|
loading: true
|
|
})
|
|
})
|
|
- content.content = encodeURIComponent(content.content);
|
|
|
|
|
|
+ // content.content = escape(content.content);
|
|
|
|
+ content.content = weBtoa(content.content);
|
|
_Http.basic({
|
|
_Http.basic({
|
|
"classname": "webmanage.saletool.sharematerial.sharematerial",
|
|
"classname": "webmanage.saletool.sharematerial.sharematerial",
|
|
"method": "insertOrUpdate",
|
|
"method": "insertOrUpdate",
|