对接确认订单

This commit is contained in:
2022-05-13 19:28:46 +08:00
parent 26555a9541
commit ab1118c5b4
32 changed files with 2233 additions and 160 deletions
-17
View File
@@ -1,17 +0,0 @@
import Taro from "@tarojs/taro";
/**
* 设置 客户 本地存储
* @param {Object} clientInfo
*/
export const setClient = (clientInfo) => {
Taro.setStorageSync('client', clientInfo)
}
/**
* 返回 客户 本地存储
*/
export const getClient = () => {
Taro.getStorageSync('client') || null
}
@@ -32,3 +32,19 @@ export const getAccountInfo = () => {
const result = Taro.getStorageSync('accountInfo')
return result ? JSON.parse(result) : null
}
/**
* 设置 参数本地存储
* @param {Object} info
*/
export const setParam = (info:Object) => {
Taro.setStorageSync('params', JSON.stringify(info))
}
/**
* 返回 参数本地存储
*/
export const getParam = () => {
const res = Taro.getStorageSync('params') || null
return res?JSON.parse(res):null
}