jufubao-mall 1.0.0-beta21 → 1.0.0-beta23
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/package.json +2 -2
- package/src/components/JfbMallCart/JfbMallCartLess.less +4 -0
- package/src/components/JfbMallCart/JfbMallCartMixin.js +30 -0
- package/src/components/JfbMallCollect/JfbMallCollectLess.less +4 -0
- package/src/components/JfbMallCollect/JfbMallCollectMixin.js +30 -0
- package/src/components/JfbMallConfirm/Api.js +1 -1
- package/src/components/JfbMallConfirm/JfbMallConfirmLess.less +4 -0
- package/src/components/JfbMallConfirm/JfbMallConfirmMixin.js +30 -0
- package/src/components/JfbMallConfirm/orderMixin.js +4 -4
- package/src/components/JfbMallHomeBrand/JfbMallHomeBrandLess.less +4 -0
- package/src/components/JfbMallHomeBrand/JfbMallHomeBrandMixin.js +30 -0
- package/src/components/JfbMallHomeCategory/JfbMallHomeCategoryLess.less +4 -0
- package/src/components/JfbMallHomeCategory/JfbMallHomeCategoryMixin.js +30 -0
- package/src/components/JfbMallHomeMarket/JfbMallHomeMarketLess.less +4 -0
- package/src/components/JfbMallHomeMarket/JfbMallHomeMarketMixin.js +30 -0
- package/src/components/JfbMallHomeProductList/JfbMallHomeProductListLess.less +4 -0
- package/src/components/JfbMallHomeProductList/JfbMallHomeProductListMixin.js +30 -0
- package/src/components/JfbMallProductInfo/JfbMallProductInfoLess.less +4 -0
- package/src/components/JfbMallProductInfo/JfbMallProductInfoMixin.js +30 -0
- package/src/components/JfbMallProductList/JfbMallProductListLess.less +4 -0
- package/src/components/JfbMallProductList/JfbMallProductListMixin.js +30 -0
- package/src/components/JfbMallProductType/JfbMallProductTypeLess.less +4 -0
- package/src/components/JfbMallProductType/JfbMallProductTypeMixin.js +30 -0
- package/src/components/JfbMallSearch/JfbMallSearchLess.less +4 -0
- package/src/components/JfbMallSearch/JfbMallSearchMixin.js +30 -0
- package/src/components/JfbMallShop/JfbMallShopLess.less +4 -0
- package/src/components/JfbMallShop/JfbMallShopMixin.js +30 -0
- package/src/components/JfbMallShopList/JfbMallShopListLess.less +4 -0
- package/src/components/JfbMallShopList/JfbMallShopListMixin.js +30 -0
- package/src/components/JfbMallTest/JfbMallTestLess.less +4 -0
- package/src/components/JfbMallTest/JfbMallTestMixin.js +30 -0
- package/src/components/JfbMallTestApi/JfbMallTestApiLess.less +4 -0
- package/src/components/JfbMallTestApi/JfbMallTestApiMixin.js +30 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jufubao-mall",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "聚福宝商城业务组件插件包",
|
|
6
6
|
"main": "index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"core-js": "^2.6.5",
|
|
51
51
|
"flyio": "^0.6.2",
|
|
52
52
|
"gxd-commands-bussiness": "^1.0.12",
|
|
53
|
-
"gxd-uni-library-editx": "1.0.8-
|
|
53
|
+
"gxd-uni-library-editx": "1.0.8-beta30",
|
|
54
54
|
"jweixin-module": "^1.6.0",
|
|
55
55
|
"md5": "^2.3.0",
|
|
56
56
|
"path-to-regexp": "^6.2.1",
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-cart__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-cart__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-collect__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-collect__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-confirm__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-confirm__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
p_getOrderInfo(options, cb){
|
|
137
137
|
|
|
138
138
|
this.$xdShowLoading({});
|
|
139
|
-
jfbRootExec("
|
|
139
|
+
jfbRootExec("getOrderStatus", {
|
|
140
140
|
vm: this,
|
|
141
141
|
data: options
|
|
142
142
|
}).then(res => {
|
|
@@ -199,15 +199,15 @@ export default {
|
|
|
199
199
|
address_nnid: this.curAddr.address_nnid
|
|
200
200
|
}
|
|
201
201
|
}).then(res => {
|
|
202
|
-
this.
|
|
202
|
+
this.getOrderStatus(res.request_order_id);
|
|
203
203
|
}).catch(err => {
|
|
204
204
|
console.error(err);
|
|
205
205
|
this.$xdHideLoading();
|
|
206
206
|
})
|
|
207
207
|
},
|
|
208
|
-
|
|
208
|
+
getOrderStatus(request_order_id){
|
|
209
209
|
this.$xdShowLoading({});
|
|
210
|
-
jfbRootExec("
|
|
210
|
+
jfbRootExec("getOrderStatus", {
|
|
211
211
|
vm: this,
|
|
212
212
|
data: {
|
|
213
213
|
request_order_id
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-home-brand__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-home-brand__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-home-category__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-home-category__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-home-market__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-home-market__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-home-product-list__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-home-product-list__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-product-info__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-product-info__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-product-list__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-product-list__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-product-type__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-product-type__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-search__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-search__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-shop__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-shop__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-shop-list__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-shop-list__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-test__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-test__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|
|
@@ -160,6 +160,36 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
// #endif
|
|
162
162
|
},
|
|
163
|
+
|
|
164
|
+
//#ifdef H5
|
|
165
|
+
mounted(){
|
|
166
|
+
if(this.$configProject.isPreview) {
|
|
167
|
+
function handle() {
|
|
168
|
+
let className = 'jfb-mall-test-api__body-mask';
|
|
169
|
+
if (document.getElementsByClassName(className).length === 0) {
|
|
170
|
+
let elx = document.getElementsByClassName('jfb-mall-test-api__body');
|
|
171
|
+
if(elx.length === 0) {
|
|
172
|
+
setTimeout(()=>{
|
|
173
|
+
handle()
|
|
174
|
+
},100)
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const mask = document.createElement("div");
|
|
178
|
+
mask.className = 'jfb-mask';
|
|
179
|
+
mask.style.position = 'absolute';
|
|
180
|
+
mask.style.left = '0px';
|
|
181
|
+
mask.style.right = '0px';
|
|
182
|
+
mask.style.top = '0px';
|
|
183
|
+
mask.style.bottom = '0px';
|
|
184
|
+
elx.item(0).appendChild(mask);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handle()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
// #endif
|
|
192
|
+
|
|
163
193
|
methods: {
|
|
164
194
|
/**
|
|
165
195
|
* @description 获取吸顶样式
|