module.exports = (function() {
var __MODS__ = {};
var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
__DEFINE__(1595492076959, function(require, module, exports) {
var AV = require('./core');
var useAdatpers = require('./use-adapters');
module.exports = useAdatpers(AV);
}, function(modId) {var map = {"./core":1595492076960,"./use-adapters":1595492076996}; return __REQUIRE__(map[modId], modId); })
__DEFINE__(1595492076960, function(require, module, exports) {
module.exports = require('../index');
}, function(modId) { var map = {"../index":1595492076961}; return __REQUIRE__(map[modId], modId); })
__DEFINE__(1595492076961, function(require, module, exports) {
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/*!
* LeanCloud JavaScript SDK
* https://leancloud.cn
*
* Copyright 2016 LeanCloud.cn, Inc.
* The LeanCloud JavaScript SDK is freely distributable under the MIT license.
*/
var _ = require('underscore');
var AV = require('./av');
AV._ = _;
AV.version = require('./version');
AV.Promise = _promise2.default;
AV.localStorage = require('./localstorage');
AV.Cache = require('./cache');
AV.Error = require('./error');
require('./init');
require('./event')(AV);
require('./geopoint')(AV);
require('./acl')(AV);
require('./op')(AV);
require('./relation')(AV);
require('./file')(AV);
require('./object')(AV);
require('./role')(AV);
require('./user')(AV);
require('./query')(AV);
require('./live-query')(AV);
require('./captcha')(AV);
require('./cloudfunction')(AV);
require('./push')(AV);
require('./status')(AV);
require('./search')(AV);
require('./insight')(AV);
AV.Conversation = require('./conversation');
require('./leaderboard');
module.exports = AV;
/**
* Options to controll the authentication for an operation
* @typedef {Object} AuthOptions
* @property {String} [sessionToken] Specify a user to excute the operation as.
* @property {AV.User} [user] Specify a user to excute the operation as. The user must have _sessionToken. This option will be ignored if sessionToken option provided.
* @property {Boolean} [useMasterKey] Indicates whether masterKey is used for this operation. Only valid when masterKey is set.
*/
}, function(modId) { var map = {"./av":1595492076962,"./version":1595492076964,"./localstorage":1595492076966,"./cache":1595492076967,"./error":1595492076968,"./init":1595492076969,"./event":1595492076972,"./geopoint":1595492076973,"./acl":1595492076974,"./op":1595492076975,"./relation":1595492076976,"./file":1595492076977,"./object":1595492076983,"./role":1595492076984,"./user":1595492076985,"./query":1595492076986,"./live-query":1595492076987,"./captcha":1595492076988,"./cloudfunction":1595492076989,"./push":1595492076990,"./status":1595492076991,"./search":1595492076992,"./insight":1595492076993,"./conversation":1595492076994,"./leaderboard":1595492076995}; return __REQUIRE__(map[modId], modId); })
__DEFINE__(1595492076962, function(require, module, exports) {
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _ = require('underscore');
var uuid = require('uuid/v4');
var debug = require('debug');
var _require = require('./utils'),
inherits = _require.inherits,
parseDate = _require.parseDate;
var version = require('./version');
var _require2 = require('./adapter'),
setAdapters = _require2.setAdapters,
adapterManager = _require2.adapterManager;
var AV = global.AV || {};
// All internal configuration items
AV._config = {
serverURLs: {},
useMasterKey: false,
production: null,
realtime: null,
requestTimeout: null
};
var initialUserAgent = 'LeanCloud-JS-SDK/' + version;
// configs shared by all AV instances
AV._sharedConfig = {
userAgent: initialUserAgent,
liveQueryRealtime: null
};
adapterManager.on('platformInfo', function (platformInfo) {
var ua = initialUserAgent;
if (platformInfo) {
if (platformInfo.userAgent) {
ua = platformInfo.userAgent;
} else {
var comments = platformInfo.name;
if (platformInfo.version) {
comments += '/' + platformInfo.version;
}
if (platformInfo.extra) {
comments += '; ' + platformInfo.extra;
}
ua += ' (' + comments + ')';
}
}
AV._sharedConfig.userAgent = ua;
});
/**
* Contains all AV API classes and functions.
* @namespace AV
*/
/**
* Returns prefix for localStorage keys used by this instance of AV.
* @param {String} path The relative suffix to append to it.
* null or undefined is treated as the empty string.
* @return {String} The full key name.
* @private
*/
AV._getAVPath = function (path) {
if (!AV.applicationId) {
throw new Error('You need to call AV.initialize before using AV.');
}
if (!path) {
path = '';
}
if (!_.isString(path)) {
throw new Error("Tried to get a localStorage path that wasn't a String.");
}
if (path[0] === '/') {
path = path.substring(1);
}
return 'AV/' + AV.applicationId + '/' + path;
};
/**
* Returns the unique string for this app on this machine.
* Gets reset when localStorage is cleared.
* @private
*/
AV._installationId = null;
AV._getInstallationId = function () {
// See if it's cached in RAM.
if (AV._installationId) {
return _promise2.default.resolve(AV._installationId);
}
// Try to get it from localStorage.
var path = AV._getAVPath('installationId');
return AV.localStorage.getItemAsync(path).then(function (_installationId) {
AV._installationId = _installationId;
if (!AV._installationId) {
// It wasn't in localStorage, so create a new one.
AV._installationId = _installationId = uuid();
return AV.localStorage.setItemAsync(path, _installationId).then(function () {
return _installationId;
});
}
return _installationId;
});
};
AV._subscriptionId = null;
AV._refreshSubscriptionId = function () {
var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : AV._getAVPath('subscriptionId');
var subscriptionId = AV._subscriptionId = uuid();
return AV.localStorage.setItemAsync(path, subscriptionId).then(function () {
return subscriptionId;
});
};
AV._getSubscriptionId = function () {
// See if it's cached in RAM.
if (AV._subscriptionId) {
return _promise2.default.resolve(AV._subscriptionId);
}
// Try to get it from localStorage.
var path = AV._getAVPath('subscri
没有合适的资源?快使用搜索试试~ 我知道了~
lendoo-wx-master.zip
共134个文件
json:40个
js:29个
png:26个
0 下载量 36 浏览量
2022-12-24
16:24:51
上传
评论
收藏 2.63MB ZIP 举报
温馨提示
灵动电商开源系统之微信小程序端
资源推荐
资源详情
资源评论
收起资源包目录
lendoo-wx-master.zip (134个子文件)
.gitignore 13B
index.js 356KB
av-weapp-min.js 187KB
av-core-min.js 166KB
av-weapp.js 142KB
moment.min.js 50KB
leancloud-adapters-weapp.js 35KB
add.js 10KB
cart.js 8KB
qqmap-wx-jssdk.min.js 6KB
checkout.js 5KB
list.js 5KB
donate.js 5KB
WxNotificationCenter.js 5KB
list.js 4KB
evaluate.js 3KB
detail.js 3KB
category.js 3KB
order.js 3KB
list.js 3KB
index.js 2KB
index.js 2KB
app.js 2KB
payment.js 1KB
login.js 920B
index.js 651B
utils.js 527B
dashboard.js 412B
share.js 284B
aboutus.js 246B
Area.json 4.21MB
_User.json 3.47MB
OrderGoodsMap.json 1.3MB
Order.json 1.22MB
Cart.json 551KB
_File.json 280KB
Donate.json 212KB
Address.json 175KB
Category.json 12KB
Goods.json 9KB
Banner.json 3KB
app.json 2KB
project.config.json 1KB
sitemap.json 191B
sitemap98.json 191B
_Conversation.json 178B
list.json 66B
package.json 62B
login.json 48B
donate.json 45B
aboutus.json 45B
share.json 45B
dashboard.json 45B
order.json 45B
evaluate.json 42B
list.json 42B
index.json 27B
cart.json 27B
category.json 27B
index.json 27B
payment.json 27B
checkout.json 27B
detail.json 27B
list.json 27B
add.json 27B
_Followee.json 18B
_Installation.json 18B
_Role.json 18B
Evaluate.json 18B
_Follower.json 18B
index.js.map 419KB
logo.png 15KB
icon_member_selected.png 4KB
icon_member.png 4KB
close.png 4KB
icon_address.png 4KB
icon_aboutus.png 4KB
icon_cart.png 4KB
icon_cart_selected.png 4KB
icon_favor.png 4KB
favor.png 4KB
location.png 4KB
icon_home.png 4KB
icon_home_selected.png 4KB
icon_order.png 3KB
icon_cate_selected.png 3KB
icon_cate.png 3KB
icon_share.png 3KB
icon_edit.png 3KB
icon_delete.png 3KB
mail.png 3KB
icon_donate.png 2KB
username.png 2KB
password.png 2KB
icon_add.png 2KB
icon_shopping.png 2KB
icon_all.png 1KB
add.wxml 3KB
checkout.wxml 2KB
list.wxml 2KB
共 134 条
- 1
- 2
资源评论
m0_72731342
- 粉丝: 2
- 资源: 1832
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于SHT25温湿度传感器、FREERTOS、STM32F103C8T6、LCD1602温湿度采集显示系统proteus仿真设计
- C# 屏幕放大取色器 随时随地获取屏幕像素颜色
- 下载安装这个软件.apk
- 【数据集详细解释及案例分析】数据集详细解释及案例分析
- 基于SHT71温湿度传感器、STM32F103C8T6、LCD1602温湿度采集显示系统proteus仿真设计
- 基于TH02温湿度传感器、STM32F103C8T6、LCD1602、FREERTOS的温湿度采集系统proteus仿真设计
- 【TCP-IP协议详细解释及案例分析】TCP-IP协议详细解释及案例分析
- 一文搞懂 LSTM(长短期记忆网络).rar
- 【autosar简介及基本案例解析】autosar简介及基本案例解析
- java模拟斗地主洗牌发牌
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功