...
|
...
|
@@ -20053,6 +20053,358 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default = |
|
|
default: uni.$u.props.gap.marginBottom } } };exports.default = _default;
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
|
/* 515 */,
|
|
|
/* 516 */,
|
|
|
/* 517 */,
|
|
|
/* 518 */,
|
|
|
/* 519 */,
|
|
|
/* 520 */,
|
|
|
/* 521 */,
|
|
|
/* 522 */,
|
|
|
/* 523 */
|
|
|
/*!******************************************************************************!*\
|
|
|
!*** F:/minigroup/Bitcoin/node_modules/uview-ui/components/u-modal/props.js ***!
|
|
|
\******************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
|
|
|
props: {
|
|
|
// 是否展示modal
|
|
|
show: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.modal.show },
|
|
|
|
|
|
// 标题
|
|
|
title: {
|
|
|
type: [String],
|
|
|
default: uni.$u.props.modal.title },
|
|
|
|
|
|
// 弹窗内容
|
|
|
content: {
|
|
|
type: String,
|
|
|
default: uni.$u.props.modal.content },
|
|
|
|
|
|
// 确认文案
|
|
|
confirmText: {
|
|
|
type: String,
|
|
|
default: uni.$u.props.modal.confirmText },
|
|
|
|
|
|
// 取消文案
|
|
|
cancelText: {
|
|
|
type: String,
|
|
|
default: uni.$u.props.modal.cancelText },
|
|
|
|
|
|
// 是否显示确认按钮
|
|
|
showConfirmButton: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.modal.showConfirmButton },
|
|
|
|
|
|
// 是否显示取消按钮
|
|
|
showCancelButton: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.modal.showCancelButton },
|
|
|
|
|
|
// 确认按钮颜色
|
|
|
confirmColor: {
|
|
|
type: String,
|
|
|
default: uni.$u.props.modal.confirmColor },
|
|
|
|
|
|
// 取消文字颜色
|
|
|
cancelColor: {
|
|
|
type: String,
|
|
|
default: uni.$u.props.modal.cancelColor },
|
|
|
|
|
|
// 对调确认和取消的位置
|
|
|
buttonReverse: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.modal.buttonReverse },
|
|
|
|
|
|
// 是否开启缩放效果
|
|
|
zoom: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.modal.zoom },
|
|
|
|
|
|
// 是否异步关闭,只对确定按钮有效
|
|
|
asyncClose: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.modal.asyncClose },
|
|
|
|
|
|
// 是否允许点击遮罩关闭modal
|
|
|
closeOnClickOverlay: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.modal.closeOnClickOverlay },
|
|
|
|
|
|
// 给一个负的margin-top,往上偏移,避免和键盘重合的情况
|
|
|
negativeTop: {
|
|
|
type: [String, Number],
|
|
|
default: uni.$u.props.modal.negativeTop },
|
|
|
|
|
|
// modal宽度,不支持百分比,可以数值,px,rpx单位
|
|
|
width: {
|
|
|
type: [String, Number],
|
|
|
default: uni.$u.props.modal.width },
|
|
|
|
|
|
// 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
|
|
|
confirmButtonShape: {
|
|
|
type: String,
|
|
|
default: uni.$u.props.modal.confirmButtonShape } } };exports.default = _default;
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
|
/* 524 */,
|
|
|
/* 525 */,
|
|
|
/* 526 */,
|
|
|
/* 527 */,
|
|
|
/* 528 */,
|
|
|
/* 529 */,
|
|
|
/* 530 */,
|
|
|
/* 531 */
|
|
|
/*!*****************************************************************************!*\
|
|
|
!*** F:/minigroup/Bitcoin/node_modules/uview-ui/components/u-line/props.js ***!
|
|
|
\*****************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
|
|
|
props: {
|
|
|
color: {
|
|
|
type: String,
|
|
|
default: uni.$u.props.line.color },
|
|
|
|
|
|
// 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
|
|
|
length: {
|
|
|
type: [String, Number],
|
|
|
default: uni.$u.props.line.length },
|
|
|
|
|
|
// 线条方向,col-竖向,row-横向
|
|
|
direction: {
|
|
|
type: String,
|
|
|
default: uni.$u.props.line.direction },
|
|
|
|
|
|
// 是否显示细边框
|
|
|
hairline: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.line.hairline },
|
|
|
|
|
|
// 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
|
|
|
margin: {
|
|
|
type: [String, Number],
|
|
|
default: uni.$u.props.line.margin },
|
|
|
|
|
|
// 是否虚线,true-实线,false-虚线
|
|
|
dashed: {
|
|
|
type: Boolean,
|
|
|
default: uni.$u.props.line.dashed } } };exports.default = _default;
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
|
/* 532 */,
|
|
|
/* 533 */,
|
|
|
/* 534 */,
|
|
|
/* 535 */,
|
|
|
/* 536 */
|
|
|
/*!*****************************************!*\
|
|
|
!*** F:/minigroup/Bitcoin/api/index.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });exports.product_list = exports.arcList = exports.sortList = exports.getBanner = void 0;var _request = __webpack_require__(/*! @/utils/request.js */ 537);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 轮播图 /api/index/banner
|
|
|
var getBanner = function getBanner() {return (0, _request.request)({ url: 'index/banner', method: 'post', data: {} });};
|
|
|
|
|
|
// 首页分类 /api/index/sort_index
|
|
|
exports.getBanner = getBanner;var sortList = function sortList() {return (0, _request.request)({ url: 'index/sort_index', method: 'post', data: {} });};
|
|
|
|
|
|
// 首页相关资讯列表 /api/index/arc_list
|
|
|
exports.sortList = sortList;var arcList = function arcList() {return (0, _request.request)({ url: 'index/arc_list', method: 'post', data: {} });};
|
|
|
|
|
|
// 首页产品列表
|
|
|
exports.arcList = arcList;var product_list = function product_list(data) {return (0, _request.request)({ url: 'product/product_list', method: 'post', data: data });};exports.product_list = product_list;
|
|
|
|
|
|
/***/ }),
|
|
|
/* 537 */
|
|
|
/*!*********************************************!*\
|
|
|
!*** F:/minigroup/Bitcoin/utils/request.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.request = exports.baseURL = void 0;var baseURL = 'http://yuanjie.n.broing.cn/api/';exports.baseURL = baseURL;
|
|
|
|
|
|
var request = function request(options) {
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
uni.request({
|
|
|
url: baseURL + options.url, //接口地址:前缀+方法中传入的地址
|
|
|
method: options.method || 'GET', //请求方法:传入的方法或者默认是“GET”
|
|
|
data: options.data || {}, //传递参数:传入的参数或者默认传递空集合
|
|
|
header: {
|
|
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
|
'token': uni.getStorageSync("token") || "" //自定义请求头信息
|
|
|
},
|
|
|
success: function success(res) {
|
|
|
console.log(res, uni.getStorageSync('token'));
|
|
|
//返回的数据(不固定,看后端接口,这里是做了一个判断,如果不为true,用uni.showToast方法提示获取数据失败)
|
|
|
if (res.data.code == 1) {
|
|
|
resolve(res.data.data);
|
|
|
} else {
|
|
|
if (res.data.code == 401) {
|
|
|
uni.navigateTo({
|
|
|
url: '/login/login' });
|
|
|
|
|
|
uni.clearStorageSync();
|
|
|
}
|
|
|
reject(res.data.msg);
|
|
|
}
|
|
|
// 如果不满足上述判断就输出数据
|
|
|
},
|
|
|
// 这里的接口请求,如果出现问题就输出接口请求失败
|
|
|
fail: function fail(err) {
|
|
|
console.log(err);
|
|
|
reject(err);
|
|
|
} });
|
|
|
|
|
|
});
|
|
|
};exports.request = request;
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
|
/* 538 */
|
|
|
/*!*******************************************!*\
|
|
|
!*** F:/minigroup/Bitcoin/utils/toast.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.router = exports.toa = exports.hideLoading = exports.loading = exports.success = exports.toast = void 0;var toast = function toast(title) {return uni.showToast({ title: title, icon: 'none' });};exports.toast = toast;
|
|
|
var success = function success(title) {return uni.showToast({ title: title });};exports.success = success;
|
|
|
var loading = function loading(title) {return uni.showLoading({ title: '加载中' });};exports.loading = loading;
|
|
|
var hideLoading = function hideLoading() {return uni.hideLoading();};exports.hideLoading = hideLoading;
|
|
|
|
|
|
var toa = {
|
|
|
toast: function toast(title) {return uni.showToast({ title: title, icon: 'none' });},
|
|
|
success: function success(title) {return uni.showToast({ title: title });},
|
|
|
loading: function loading(title) {return uni.showLoading({ title: title || '加载中', mask: true });},
|
|
|
hideLoading: function hideLoading() {return uni.hideLoading();} };exports.toa = toa;
|
|
|
|
|
|
|
|
|
var router = {
|
|
|
back: function back(num) {return uni.navigateBack({ delta: num || 1 });} };exports.router = router;
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
|
/* 539 */
|
|
|
/*!****************************************!*\
|
|
|
!*** F:/minigroup/Bitcoin/api/mine.js ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });exports.doFeedback = exports.problemDetail = exports.problemList = exports.problemSort = exports.getContactQrcode = exports.logotLogin = exports.getUserInfo = void 0;var _request = __webpack_require__(/*! @/utils/request.js */ 537);
|
|
|
|
|
|
|
|
|
|
|
|
// 会员中心 /api/user/index
|
|
|
var getUserInfo = function getUserInfo() {return (0, _request.request)({ url: 'user/index', method: 'post', data: {} });};
|
|
|
|
|
|
// 退出登录 /api/user/logout
|
|
|
exports.getUserInfo = getUserInfo;var logotLogin = function logotLogin() {return (0, _request.request)({ url: 'user/logout', method: 'post', data: {} });};
|
|
|
|
|
|
// 联系客服、品牌入驻 /api/common/contact
|
|
|
exports.logotLogin = logotLogin;var getContactQrcode = function getContactQrcode(type) {return (0, _request.request)({ url: 'common/contact', method: 'post', data: { type: type } });};
|
|
|
|
|
|
// 常见问题分类 /api/common/problem_sort
|
|
|
exports.getContactQrcode = getContactQrcode;var problemSort = function problemSort() {return (0, _request.request)({ url: 'common/problem_sort', method: 'post', data: {} });};
|
|
|
|
|
|
// 常见问题列表 /api/common/problem_list
|
|
|
exports.problemSort = problemSort;var problemList = function problemList(sort_id, page, pagenum) {return (0, _request.request)({ url: 'common/problem_list', method: 'post', data: { sort_id: sort_id, page: page, pagenum: pagenum } });};
|
|
|
|
|
|
// 常见问题详情 /api/common/problem_detail
|
|
|
exports.problemList = problemList;var problemDetail = function problemDetail(problem_id) {return (0, _request.request)({ url: 'common/problem_detail', method: 'post', data: { problem_id: problem_id } });};
|
|
|
|
|
|
// 意见反馈 /api/user/feedback
|
|
|
exports.problemDetail = problemDetail;var doFeedback = function doFeedback(content, image) {return (0, _request.request)({ url: 'user/feedback', method: 'post', data: { content: content, image: image } });};exports.doFeedback = doFeedback;
|
|
|
|
|
|
/***/ }),
|
|
|
/* 540 */
|
|
|
/*!********************************************!*\
|
|
|
!*** F:/minigroup/Bitcoin/utils/upload.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.uploadFile = void 0;var _request = __webpack_require__(/*! ./request.js */ 537);
|
|
|
var _toast = __webpack_require__(/*! ./toast.js */ 538);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
|
|
|
var uploadFile = function uploadFile(tempFilePaths, data) {
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
_toast.toa.loading('上传中..');
|
|
|
uni.uploadFile({
|
|
|
url: _request.baseURL + '/common/upload', //仅为示例,非真实的接口地址
|
|
|
filePath: tempFilePaths,
|
|
|
name: 'file',
|
|
|
formData: _objectSpread(_objectSpread({}, data), {}, { token: uni.getStorageSync('token') || '' }),
|
|
|
success: function success(res) {
|
|
|
_toast.toa.hideLoading();
|
|
|
console.log(res);
|
|
|
if (res.statusCode == 200) {
|
|
|
// return res
|
|
|
resolve(JSON.parse(res.data).data);
|
|
|
}
|
|
|
},
|
|
|
fail: function fail(err) {
|
|
|
_toast.toa.hideLoading();
|
|
|
(0, _toast.toast)(JSON.parse(err.data).msg);
|
|
|
console.log(err, '上传报错');
|
|
|
// return
|
|
|
reject(err);
|
|
|
} });
|
|
|
|
|
|
});
|
|
|
};exports.uploadFile = uploadFile;
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
|
/* 541 */
|
|
|
/*!*****************************************!*\
|
|
|
!*** F:/minigroup/Bitcoin/api/login.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });exports.getAgreement = exports.resetPassword = exports.sendCode = exports.register = exports.login = void 0;var _request = __webpack_require__(/*! @/utils/request.js */ 537);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 会员登录 /api/user/login
|
|
|
var login = function login(account, password) {return (0, _request.request)({ url: 'user/login', method: 'post', data: { account: account, password: password } });};
|
|
|
|
|
|
// 注册会员 /api/user/register
|
|
|
exports.login = login;var register = function register(username, password, mobile, code) {return (0, _request.request)({ url: 'user/register', method: 'post', data: { username: username, password: password, mobile: mobile, code: code } });};
|
|
|
|
|
|
// 发送验证码 /api/sms/send
|
|
|
exports.register = register;var sendCode = function sendCode(mobile, event) {return (0, _request.request)({ url: 'sms/send', method: 'post', data: { mobile: mobile, event: event } });};
|
|
|
|
|
|
// 重置密码 /api/user/resetpwd
|
|
|
exports.sendCode = sendCode;var resetPassword = function resetPassword(mobile, captcha, newpassword, confirmpassword) {return (0, _request.request)({ url: 'user/resetpwd', method: 'post', data: { mobile: mobile, captcha: captcha, newpassword: newpassword, confirmpassword: confirmpassword } });};
|
|
|
|
|
|
// 用户、隐私协议 /api/common/agreement type integer 是 类型:1=用户协议2=隐私协议
|
|
|
exports.resetPassword = resetPassword;var getAgreement = function getAgreement(type) {return (0, _request.request)({ url: 'common/agreement ', method: 'post', data: { type: type } });};exports.getAgreement = getAgreement;
|
|
|
|
|
|
/***/ })
|
|
|
]]);
|
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map |
|
|
\ No newline at end of file |
...
|
...
|
|