等待增加打印模板后端渲染
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
</form>
|
||||
<view class="page-section">
|
||||
<view class="page-section-demo">
|
||||
<text> v1.0.11 </text>
|
||||
<text> v1.0.12 </text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -1,3 +1,4 @@
|
||||
import jsonrpcFunc from '../ulti/jsonrpc'
|
||||
Page({
|
||||
data: {
|
||||
apiurl: '',
|
||||
@@ -134,6 +135,7 @@ Page({
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
dd.httpRequest({
|
||||
url: `${apiurl}/jsonrpc`,
|
||||
@@ -162,6 +164,38 @@ Page({
|
||||
password,
|
||||
databaseName
|
||||
};
|
||||
// const session_id = {
|
||||
// "jsonrpc": "2.0",
|
||||
// "method": "call",
|
||||
// "id": 2,
|
||||
// "params": {
|
||||
// "service": "object",
|
||||
// "method": "execute_kw",
|
||||
// "args": [
|
||||
// databaseName,
|
||||
// uid,
|
||||
// password,
|
||||
// "ir.http",
|
||||
// "session_info",
|
||||
// [],
|
||||
// {}
|
||||
// ]
|
||||
// }
|
||||
// };
|
||||
// jsonrpcFunc(loginInfo, session_id)
|
||||
// .then((response) => {
|
||||
// // 保存数据到本地缓存
|
||||
// dd.setStorageSync({
|
||||
// key: 'session_id',
|
||||
// data: response
|
||||
// });
|
||||
// console.log("response", response)
|
||||
// })
|
||||
// .catch((error) => {
|
||||
// console.log("获取session_id失败")
|
||||
// // console.error('请求数据时出错:', error);
|
||||
// });
|
||||
//
|
||||
dd.setStorageSync({
|
||||
key: 'loginInfo',
|
||||
data: loginInfo
|
||||
@@ -170,6 +204,7 @@ Page({
|
||||
reject(new Error(`保存登录信息到本地缓存失败: ${e.message}`));
|
||||
return;
|
||||
}
|
||||
|
||||
if (uid) {
|
||||
dd.switchTab({
|
||||
url: '/pages/deal/deal',
|
||||
|
||||
Reference in New Issue
Block a user