[商品分享微信好友和朋友圈处理邀请码和商品id]
This commit is contained in:
45
unpackage/dist/dev/app-plus/app-service.js
vendored
45
unpackage/dist/dev/app-plus/app-service.js
vendored
@@ -31063,7 +31063,9 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 45));
|
||||
/* WEBPACK VAR INJECTION */(function(__f__) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 45));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -31124,7 +31126,13 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
|
||||
|
||||
|
||||
var _user = __webpack_require__(/*! @/apis/interfaces/user */ 59);
|
||||
|
||||
|
||||
var _util = __webpack_require__(/*! @/uni_modules/sakura-canvas/js_sdk/util */ 270);
|
||||
|
||||
|
||||
|
||||
|
||||
var _draw = _interopRequireDefault(__webpack_require__(/*! @/uni_modules/sakura-canvas/js_sdk/draw */ 272));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}
|
||||
var draw = null;var _default =
|
||||
{
|
||||
@@ -31178,8 +31186,13 @@ var draw = null;var _default =
|
||||
h: 667 } });_context2.next = 9;return (
|
||||
|
||||
|
||||
draw.createdSharePoster(function (_ref) {var bgObj = _ref.bgObj;var
|
||||
width = bgObj.width,height = bgObj.height;
|
||||
draw.createdSharePoster(function (_ref)
|
||||
|
||||
{var bgObj = _ref.bgObj;var
|
||||
|
||||
width =
|
||||
|
||||
bgObj.width,height = bgObj.height;
|
||||
_this2.Popinvite = bgObj;
|
||||
// 绘制内容
|
||||
return [
|
||||
@@ -31325,7 +31338,9 @@ var draw = null;var _default =
|
||||
|
||||
// 保存图片
|
||||
saveImage: function saveImage() {var _this3 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3() {var posterImg, res;return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:
|
||||
posterImg = _this3.posterImg;_context3.next = 3;return (
|
||||
|
||||
posterImg =
|
||||
_this3.posterImg;_context3.next = 3;return (
|
||||
(0, _util.saveImageToPhotosAlbum)(posterImg));case 3:res = _context3.sent;if (
|
||||
res.success) {_context3.next = 6;break;}return _context3.abrupt("return");case 6:
|
||||
(0, _util.showToast)('保存成功,去相册分享给朋友吧');
|
||||
@@ -31334,6 +31349,7 @@ var draw = null;var _default =
|
||||
|
||||
// 复制邀请码
|
||||
copyCenter: function copyCenter(e) {
|
||||
__f__("log", e, " at pages/user/code.vue:287");
|
||||
// e.slice(0,2) + '$InviTaTiOn$CoDe/$-?' + e.substring(2)
|
||||
uni.setClipboardData({
|
||||
data: e,
|
||||
@@ -31350,6 +31366,7 @@ var draw = null;var _default =
|
||||
swiperChange: function swiperChange(e) {
|
||||
this.codeIndex = e.detail.current;
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 39)["default"]))
|
||||
|
||||
/***/ }),
|
||||
/* 270 */
|
||||
@@ -42450,13 +42467,16 @@ var _index = __webpack_require__(/*! @/apis/index.js */ 25);function _interopReq
|
||||
},
|
||||
// 顶部菜单点击了分享功能
|
||||
onNavigationBarButtonTap: function onNavigationBarButtonTap() {
|
||||
__f__("log", '点击了分享功能。。。', " at pages/goods/details.vue:318");
|
||||
var invite = this.goodsObj.user_invite || '';
|
||||
var goods = '&GoodsId/$-?' + this.goodsObj.goods_id;
|
||||
var shareCode = invite === '' ? goods : invite.slice(0, 2) + '$InviTaTiOn$CoDe/$-?' + invite.substring(2) + goods;
|
||||
__f__("log", shareCode, " at pages/goods/details.vue:321");
|
||||
uniShare.show({
|
||||
content: { //公共的分享参数配置 类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
|
||||
content: {
|
||||
type: 0,
|
||||
href: 'https://www.lianshang.vip/app?',
|
||||
title: '链商星球,共创未来,一起搭建链商经济的世界~',
|
||||
summary: '链商星球app你值得拥有~天天签到领福利~',
|
||||
href: 'https://www.lianshang.vip/app?parent_id=' + shareCode,
|
||||
title: '链商星球 共创未来,一起搭建 链商经济的世界~',
|
||||
summary: '链商星球APP你值得拥有~每日签到领贡献值~',
|
||||
imageUrl: _index.config.apiUrls + 'images/top_logo.png' },
|
||||
|
||||
menus: [{
|
||||
@@ -42477,9 +42497,10 @@ var _index = __webpack_require__(/*! @/apis/index.js */ 25);function _interopReq
|
||||
|
||||
|
||||
cancelText: "取消分享" },
|
||||
function (e) {//callback
|
||||
__f__("log", uniShare.isShow, " at pages/goods/details.vue:346");
|
||||
__f__("log", e, " at pages/goods/details.vue:347");
|
||||
function (e) {
|
||||
if (uniShare.isShow) {
|
||||
__f__("log", 'shareCode', shareCode, " at pages/goods/details.vue:350");
|
||||
}
|
||||
});
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 39)["default"]))
|
||||
|
||||
Reference in New Issue
Block a user