@fonixtree/magic-design 0.0.182 → 0.0.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/utils/businessUtil.js
CHANGED
|
@@ -81,7 +81,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
81
81
|
case _constants.urlType.ANCHOR:
|
|
82
82
|
// document.getElementById(id) && document.getElementById(id).scrollIntoView({ behavior: 'smooth' });
|
|
83
83
|
params = {
|
|
84
|
-
|
|
84
|
+
action: 'ANCHOR',
|
|
85
85
|
data: {
|
|
86
86
|
id: arg1
|
|
87
87
|
}
|
|
@@ -91,9 +91,9 @@ var parseUrl = function parseUrl(url) {
|
|
|
91
91
|
case _constants.urlType.GET_COUPON:
|
|
92
92
|
// 领取优惠券
|
|
93
93
|
params = {
|
|
94
|
-
|
|
94
|
+
action: 'operation',
|
|
95
95
|
params: {
|
|
96
|
-
|
|
96
|
+
type: 'GET_COUPON',
|
|
97
97
|
couponId: arg1
|
|
98
98
|
}
|
|
99
99
|
};
|
|
@@ -102,7 +102,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
102
102
|
case _constants.urlType.VIDEO:
|
|
103
103
|
// 播放视频
|
|
104
104
|
params = {
|
|
105
|
-
|
|
105
|
+
action: 'operation',
|
|
106
106
|
params: {
|
|
107
107
|
type: 'VIDEO',
|
|
108
108
|
data: (0, _commonUtil.ensure)(function () {
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -81,7 +81,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
81
81
|
case _constants.urlType.ANCHOR:
|
|
82
82
|
// document.getElementById(id) && document.getElementById(id).scrollIntoView({ behavior: 'smooth' });
|
|
83
83
|
params = {
|
|
84
|
-
|
|
84
|
+
action: 'ANCHOR',
|
|
85
85
|
data: {
|
|
86
86
|
id: arg1
|
|
87
87
|
}
|
|
@@ -91,9 +91,9 @@ var parseUrl = function parseUrl(url) {
|
|
|
91
91
|
case _constants.urlType.GET_COUPON:
|
|
92
92
|
// 领取优惠券
|
|
93
93
|
params = {
|
|
94
|
-
|
|
94
|
+
action: 'operation',
|
|
95
95
|
params: {
|
|
96
|
-
|
|
96
|
+
type: 'GET_COUPON',
|
|
97
97
|
couponId: arg1
|
|
98
98
|
}
|
|
99
99
|
};
|
|
@@ -102,7 +102,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
102
102
|
case _constants.urlType.VIDEO:
|
|
103
103
|
// 播放视频
|
|
104
104
|
params = {
|
|
105
|
-
|
|
105
|
+
action: 'operation',
|
|
106
106
|
params: {
|
|
107
107
|
type: 'VIDEO',
|
|
108
108
|
data: (0, _commonUtil.ensure)(function () {
|
package/lib/utils/coreUtil.js
CHANGED