请求
import Taro from '@tarojs/taro'
let base = 'http://localhost:3000'
let token = 'dbgsgbowgd'
function request (params, method = 'GET') {
let {
url, data } = params
let contentType = 'application/x-www-form-urlencoded'
contentType = params.contentType || contentType
const option = {
isShowLoading: false,
url: base + url,
data: data,
method: method,
header: {
'content-type': contentType, 'token': token }