ts-glitter 21.1.5 → 21.1.7
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/create.js +1 -0
- package/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/cms-plugin/module/order-excel.js +256 -132
- package/lowcode/cms-plugin/module/order-excel.ts +228 -81
- package/lowcode/cms-plugin/shopping-finance-setting.js +1 -1
- package/lowcode/cms-plugin/shopping-finance-setting.ts +1 -1
- package/lowcode/cms-plugin/shopping-order-manager.js +33 -29
- package/lowcode/cms-plugin/shopping-order-manager.ts +36 -30
- package/lowcode/editor-components/global-widget/bridge.js +43 -0
- package/lowcode/editor-components/global-widget/bridge.ts +46 -0
- package/lowcode/editor-components/global-widget/global-widget.js +254 -0
- package/lowcode/editor-components/global-widget/global-widget.ts +269 -0
- package/lowcode/editor-components/global-widget/src/banner.jpg +0 -0
- package/lowcode/editor-components/global-widget/src/footer.jpg +0 -0
- package/lowcode/editor-components/global-widget/src/header.png +0 -0
- package/lowcode/editor-components/global-widget/src/product.jpg +0 -0
- package/lowcode/glitterBundle/plugins/editor-elem.js +14 -4
- package/lowcode/glitterBundle/plugins/editor-elem.ts +13 -4
- package/lowcode/jspage/function-page/main_editor.js +14 -10
- package/lowcode/jspage/function-page/main_editor.ts +14 -10
- package/lowcode/jspage/function-page/tool-setting.js +260 -300
- package/lowcode/jspage/function-page/tool-setting.ts +350 -384
- package/lowcode/official_view_component/official/component.ts +1 -0
- package/lowcode/public-components/checkout/index.js +32 -1
- package/lowcode/public-components/checkout/index.ts +32 -1
- package/lowcode/public-components/product/pd-card-01.js +0 -58
- package/lowcode/public-components/product/pd-card-01.ts +0 -45
- package/lowcode/public-components/product/pd-card-02.js +1 -59
- package/lowcode/public-components/product/pd-card-02.ts +1 -45
- package/lowcode/public-components/product/pd-card-03.js +2 -59
- package/lowcode/public-components/product/pd-card-03.ts +2 -46
- package/package.json +3 -1
- package/src/api-public/services/financial-serviceV2.js +17 -7
- package/src/api-public/services/financial-serviceV2.js.map +1 -1
- package/src/api-public/services/post.js +17 -7
- package/src/api-public/services/post.js.map +1 -1
- package/src/api-public/services/shopee.js +17 -7
- package/src/api-public/services/shopee.js.map +1 -1
- package/src/api-public/services/shopping.js.map +1 -1
|
@@ -877,6 +877,7 @@ export const component = Plugin.createComponent(import.meta.url, (glitter: Glitt
|
|
|
877
877
|
gvc.glitter.share.editorViewModel.selectItem =
|
|
878
878
|
undefined;
|
|
879
879
|
gvc.glitter.share.selectEditorItem();
|
|
880
|
+
|
|
880
881
|
// if (select_.container_cf) {
|
|
881
882
|
// const gvc_ =
|
|
882
883
|
// gvc.glitter.document.querySelector('.iframe_view')
|
|
@@ -1941,7 +1941,38 @@ export class CheckoutIndex {
|
|
|
1941
1941
|
].join('');
|
|
1942
1942
|
}
|
|
1943
1943
|
catch (e) {
|
|
1944
|
-
console.error(`error 3 =>`, e);
|
|
1944
|
+
console.error(`error 3-1 =>`, e);
|
|
1945
|
+
return '';
|
|
1946
|
+
}
|
|
1947
|
+
})()}
|
|
1948
|
+
${(() => {
|
|
1949
|
+
var _a, _b;
|
|
1950
|
+
try {
|
|
1951
|
+
vm.cartData.user_info.custom_form_payment =
|
|
1952
|
+
(_a = vm.cartData.user_info.custom_form_payment) !== null && _a !== void 0 ? _a : {};
|
|
1953
|
+
const formData = (_b = vm.cartData.payment_customer_form.find((dd) => {
|
|
1954
|
+
return vm.cartData.customer_info.payment_select === dd.id;
|
|
1955
|
+
})) === null || _b === void 0 ? void 0 : _b.list;
|
|
1956
|
+
if (!formData) {
|
|
1957
|
+
return '';
|
|
1958
|
+
}
|
|
1959
|
+
const form_array = JSON.parse(JSON.stringify(formData));
|
|
1960
|
+
form_array.map((dd) => {
|
|
1961
|
+
return formatterFormElement(dd);
|
|
1962
|
+
});
|
|
1963
|
+
return [
|
|
1964
|
+
FormWidget.editorView({
|
|
1965
|
+
gvc: gvc,
|
|
1966
|
+
array: form_array,
|
|
1967
|
+
refresh: () => {
|
|
1968
|
+
this.storeLocalData(vm.cartData);
|
|
1969
|
+
},
|
|
1970
|
+
formData: vm.cartData.user_info.custom_form_payment,
|
|
1971
|
+
}),
|
|
1972
|
+
].join('');
|
|
1973
|
+
}
|
|
1974
|
+
catch (e) {
|
|
1975
|
+
console.error(`error 3-2 =>`, e);
|
|
1945
1976
|
return '';
|
|
1946
1977
|
}
|
|
1947
1978
|
})()}
|
|
@@ -2146,7 +2146,38 @@ export class CheckoutIndex {
|
|
|
2146
2146
|
}),
|
|
2147
2147
|
].join('');
|
|
2148
2148
|
} catch (e) {
|
|
2149
|
-
console.error(`error 3 =>`, e);
|
|
2149
|
+
console.error(`error 3-1 =>`, e);
|
|
2150
|
+
return '';
|
|
2151
|
+
}
|
|
2152
|
+
})()}
|
|
2153
|
+
${(() => {
|
|
2154
|
+
try {
|
|
2155
|
+
vm.cartData.user_info.custom_form_payment =
|
|
2156
|
+
vm.cartData.user_info.custom_form_payment ?? {};
|
|
2157
|
+
|
|
2158
|
+
const formData = vm.cartData.payment_customer_form.find((dd: any) => {
|
|
2159
|
+
return vm.cartData.customer_info.payment_select === dd.id;
|
|
2160
|
+
})?.list;
|
|
2161
|
+
|
|
2162
|
+
if (!formData) {
|
|
2163
|
+
return '';
|
|
2164
|
+
}
|
|
2165
|
+
const form_array = JSON.parse(JSON.stringify(formData));
|
|
2166
|
+
form_array.map((dd: any) => {
|
|
2167
|
+
return formatterFormElement(dd);
|
|
2168
|
+
});
|
|
2169
|
+
return [
|
|
2170
|
+
FormWidget.editorView({
|
|
2171
|
+
gvc: gvc,
|
|
2172
|
+
array: form_array,
|
|
2173
|
+
refresh: () => {
|
|
2174
|
+
this.storeLocalData(vm.cartData);
|
|
2175
|
+
},
|
|
2176
|
+
formData: vm.cartData.user_info.custom_form_payment,
|
|
2177
|
+
}),
|
|
2178
|
+
].join('');
|
|
2179
|
+
} catch (e) {
|
|
2180
|
+
console.error(`error 3-2 =>`, e);
|
|
2150
2181
|
return '';
|
|
2151
2182
|
}
|
|
2152
2183
|
})()}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { ApiShop } from '../../glitter-base/route/shopping.js';
|
|
11
|
-
import { GlobalUser } from '../../glitter-base/global/global-user.js';
|
|
12
|
-
import { CheckInput } from '../../modules/checkInput.js';
|
|
13
1
|
import { PdClass } from './pd-class.js';
|
|
14
2
|
import { ApiUser } from '../../glitter-base/route/user.js';
|
|
15
3
|
import { Language } from '../../glitter-base/global/language.js';
|
|
@@ -234,52 +222,6 @@ export class ProductCard01 {
|
|
|
234
222
|
</div>
|
|
235
223
|
</div>
|
|
236
224
|
</div>
|
|
237
|
-
<div
|
|
238
|
-
class="wishBt wish-button ${window.store_info.wishlist === false ? 'd-none' : 'd-flex'}"
|
|
239
|
-
onclick="${gvc.event((e, event) => {
|
|
240
|
-
event.stopPropagation();
|
|
241
|
-
if (CheckInput.isEmpty(GlobalUser.token)) {
|
|
242
|
-
changePage('login', 'page', {});
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
if (vm.wishStatus) {
|
|
246
|
-
ApiShop.deleteWishList(`${prod.id}`).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
247
|
-
PdClass.jumpAlert({
|
|
248
|
-
gvc,
|
|
249
|
-
text: Language.text('delete_success'),
|
|
250
|
-
justify: 'top',
|
|
251
|
-
align: 'center',
|
|
252
|
-
});
|
|
253
|
-
vm.wishStatus = !vm.wishStatus;
|
|
254
|
-
gvc.notifyDataChange(wishId);
|
|
255
|
-
}));
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
ApiShop.postWishList(`${prod.id}`).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
259
|
-
PdClass.jumpAlert({
|
|
260
|
-
gvc,
|
|
261
|
-
text: Language.text('add_success'),
|
|
262
|
-
justify: 'top',
|
|
263
|
-
align: 'center',
|
|
264
|
-
});
|
|
265
|
-
vm.wishStatus = !vm.wishStatus;
|
|
266
|
-
gvc.notifyDataChange(wishId);
|
|
267
|
-
}));
|
|
268
|
-
}
|
|
269
|
-
})}"
|
|
270
|
-
>
|
|
271
|
-
${gvc.bindView({
|
|
272
|
-
bind: wishId,
|
|
273
|
-
view: () => {
|
|
274
|
-
if (vm.wishStatus) {
|
|
275
|
-
return html ` <i class="fa-solid fa-heart" style="color: #da1313"></i>`;
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
return html ` <i class="fa-regular fa-heart"></i>`;
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
})}
|
|
282
|
-
</div>
|
|
283
225
|
<div class="card-collapse-parent cursor_pointer">
|
|
284
226
|
<div>
|
|
285
227
|
<div class="row gx-0 card-title-container mb-1">
|
|
@@ -240,51 +240,6 @@ export class ProductCard01 {
|
|
|
240
240
|
</div>
|
|
241
241
|
</div>
|
|
242
242
|
</div>
|
|
243
|
-
<div
|
|
244
|
-
class="wishBt wish-button ${(window as any).store_info.wishlist === false ? 'd-none' : 'd-flex'}"
|
|
245
|
-
onclick="${gvc.event((e, event) => {
|
|
246
|
-
event.stopPropagation();
|
|
247
|
-
if (CheckInput.isEmpty(GlobalUser.token)) {
|
|
248
|
-
changePage('login', 'page', {});
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
if (vm.wishStatus) {
|
|
253
|
-
ApiShop.deleteWishList(`${prod.id}`).then(async () => {
|
|
254
|
-
PdClass.jumpAlert({
|
|
255
|
-
gvc,
|
|
256
|
-
text: Language.text('delete_success'),
|
|
257
|
-
justify: 'top',
|
|
258
|
-
align: 'center',
|
|
259
|
-
});
|
|
260
|
-
vm.wishStatus = !vm.wishStatus;
|
|
261
|
-
gvc.notifyDataChange(wishId);
|
|
262
|
-
});
|
|
263
|
-
} else {
|
|
264
|
-
ApiShop.postWishList(`${prod.id}`).then(async () => {
|
|
265
|
-
PdClass.jumpAlert({
|
|
266
|
-
gvc,
|
|
267
|
-
text: Language.text('add_success'),
|
|
268
|
-
justify: 'top',
|
|
269
|
-
align: 'center',
|
|
270
|
-
});
|
|
271
|
-
vm.wishStatus = !vm.wishStatus;
|
|
272
|
-
gvc.notifyDataChange(wishId);
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
})}"
|
|
276
|
-
>
|
|
277
|
-
${gvc.bindView({
|
|
278
|
-
bind: wishId,
|
|
279
|
-
view: () => {
|
|
280
|
-
if (vm.wishStatus) {
|
|
281
|
-
return html` <i class="fa-solid fa-heart" style="color: #da1313"></i>`;
|
|
282
|
-
} else {
|
|
283
|
-
return html` <i class="fa-regular fa-heart"></i>`;
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
})}
|
|
287
|
-
</div>
|
|
288
243
|
<div class="card-collapse-parent cursor_pointer">
|
|
289
244
|
<div>
|
|
290
245
|
<div class="row gx-0 card-title-container mb-1">
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { ApiShop } from '../../glitter-base/route/shopping.js';
|
|
11
|
-
import { GlobalUser } from '../../glitter-base/global/global-user.js';
|
|
12
|
-
import { CheckInput } from '../../modules/checkInput.js';
|
|
13
1
|
import { PdClass } from './pd-class.js';
|
|
14
2
|
import { ApiUser } from '../../glitter-base/route/user.js';
|
|
15
|
-
import { Language } from '../../glitter-base/global/language.js';
|
|
16
3
|
const html = String.raw;
|
|
17
4
|
export class ProductCard02 {
|
|
18
5
|
static main(gvc, widget, subData) {
|
|
@@ -206,52 +193,7 @@ export class ProductCard02 {
|
|
|
206
193
|
})}"
|
|
207
194
|
/>
|
|
208
195
|
</div>
|
|
209
|
-
|
|
210
|
-
class="wishBt wish-button ${window.store_info.wishlist === false ? 'd-none' : 'd-flex'}"
|
|
211
|
-
onclick="${gvc.event((_, event) => {
|
|
212
|
-
event.stopPropagation();
|
|
213
|
-
if (CheckInput.isEmpty(GlobalUser.token)) {
|
|
214
|
-
changePage('login', 'page', {});
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
if (vm.wishStatus) {
|
|
218
|
-
ApiShop.deleteWishList(`${prod.id}`).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
219
|
-
PdClass.jumpAlert({
|
|
220
|
-
gvc,
|
|
221
|
-
text: Language.text('delete_success'),
|
|
222
|
-
justify: 'top',
|
|
223
|
-
align: 'center',
|
|
224
|
-
});
|
|
225
|
-
vm.wishStatus = !vm.wishStatus;
|
|
226
|
-
gvc.notifyDataChange(wishId);
|
|
227
|
-
}));
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
ApiShop.postWishList(`${prod.id}`).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
PdClass.jumpAlert({
|
|
232
|
-
gvc,
|
|
233
|
-
text: Language.text('add_success'),
|
|
234
|
-
justify: 'top',
|
|
235
|
-
align: 'center',
|
|
236
|
-
});
|
|
237
|
-
vm.wishStatus = !vm.wishStatus;
|
|
238
|
-
gvc.notifyDataChange(wishId);
|
|
239
|
-
}));
|
|
240
|
-
}
|
|
241
|
-
})}"
|
|
242
|
-
>
|
|
243
|
-
${gvc.bindView({
|
|
244
|
-
bind: wishId,
|
|
245
|
-
view: () => {
|
|
246
|
-
if (vm.wishStatus) {
|
|
247
|
-
return html ` <i class="fa-solid fa-heart" style="color: #da1313"></i>`;
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
return html ` <i class="fa-regular fa-heart"></i>`;
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
})}
|
|
254
|
-
</div>
|
|
196
|
+
|
|
255
197
|
<div class="card-collapse-parent">
|
|
256
198
|
<div class="d-flex card-title-container justify-content-between align-items-center">
|
|
257
199
|
<div class="row gx-0 mb-1" style="max-width:calc(100% - 50px);">
|
|
@@ -212,51 +212,7 @@ export class ProductCard02 {
|
|
|
212
212
|
})}"
|
|
213
213
|
/>
|
|
214
214
|
</div>
|
|
215
|
-
|
|
216
|
-
class="wishBt wish-button ${(window as any).store_info.wishlist === false ? 'd-none' : 'd-flex'}"
|
|
217
|
-
onclick="${gvc.event((_, event) => {
|
|
218
|
-
event.stopPropagation();
|
|
219
|
-
if (CheckInput.isEmpty(GlobalUser.token)) {
|
|
220
|
-
changePage('login', 'page', {});
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
if (vm.wishStatus) {
|
|
225
|
-
ApiShop.deleteWishList(`${prod.id}`).then(async () => {
|
|
226
|
-
PdClass.jumpAlert({
|
|
227
|
-
gvc,
|
|
228
|
-
text: Language.text('delete_success'),
|
|
229
|
-
justify: 'top',
|
|
230
|
-
align: 'center',
|
|
231
|
-
});
|
|
232
|
-
vm.wishStatus = !vm.wishStatus;
|
|
233
|
-
gvc.notifyDataChange(wishId);
|
|
234
|
-
});
|
|
235
|
-
} else {
|
|
236
|
-
ApiShop.postWishList(`${prod.id}`).then(async () => {
|
|
237
|
-
PdClass.jumpAlert({
|
|
238
|
-
gvc,
|
|
239
|
-
text: Language.text('add_success'),
|
|
240
|
-
justify: 'top',
|
|
241
|
-
align: 'center',
|
|
242
|
-
});
|
|
243
|
-
vm.wishStatus = !vm.wishStatus;
|
|
244
|
-
gvc.notifyDataChange(wishId);
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
})}"
|
|
248
|
-
>
|
|
249
|
-
${gvc.bindView({
|
|
250
|
-
bind: wishId,
|
|
251
|
-
view: () => {
|
|
252
|
-
if (vm.wishStatus) {
|
|
253
|
-
return html` <i class="fa-solid fa-heart" style="color: #da1313"></i>`;
|
|
254
|
-
} else {
|
|
255
|
-
return html` <i class="fa-regular fa-heart"></i>`;
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
})}
|
|
259
|
-
</div>
|
|
215
|
+
|
|
260
216
|
<div class="card-collapse-parent">
|
|
261
217
|
<div class="d-flex card-title-container justify-content-between align-items-center">
|
|
262
218
|
<div class="row gx-0 mb-1" style="max-width:calc(100% - 50px);">
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { ApiShop } from '../../glitter-base/route/shopping.js';
|
|
11
|
-
import { GlobalUser } from '../../glitter-base/global/global-user.js';
|
|
12
|
-
import { CheckInput } from '../../modules/checkInput.js';
|
|
13
1
|
import { PdClass } from './pd-class.js';
|
|
14
2
|
import { ApiUser } from '../../glitter-base/route/user.js';
|
|
15
3
|
import { Language } from '../../glitter-base/global/language.js';
|
|
@@ -211,54 +199,9 @@ export class ProductCard03 {
|
|
|
211
199
|
})}"
|
|
212
200
|
/>
|
|
213
201
|
</div>
|
|
214
|
-
|
|
215
|
-
class="wishBt wish-button ${window.store_info.wishlist === false ? 'd-none' : 'd-flex'}"
|
|
216
|
-
onclick="${gvc.event((_, event) => {
|
|
217
|
-
event.stopPropagation();
|
|
218
|
-
if (CheckInput.isEmpty(GlobalUser.token)) {
|
|
219
|
-
changePage('login', 'page', {});
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
if (vm.wishStatus) {
|
|
223
|
-
ApiShop.deleteWishList(`${prod.id}`).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
224
|
-
PdClass.jumpAlert({
|
|
225
|
-
gvc,
|
|
226
|
-
text: Language.text('delete_success'),
|
|
227
|
-
justify: 'top',
|
|
228
|
-
align: 'center',
|
|
229
|
-
});
|
|
230
|
-
vm.wishStatus = !vm.wishStatus;
|
|
231
|
-
gvc.notifyDataChange(wishId);
|
|
232
|
-
}));
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
ApiShop.postWishList(`${prod.id}`).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
236
|
-
PdClass.jumpAlert({
|
|
237
|
-
gvc,
|
|
238
|
-
text: Language.text('add_success'),
|
|
239
|
-
justify: 'top',
|
|
240
|
-
align: 'center',
|
|
241
|
-
});
|
|
242
|
-
vm.wishStatus = !vm.wishStatus;
|
|
243
|
-
gvc.notifyDataChange(wishId);
|
|
244
|
-
}));
|
|
245
|
-
}
|
|
246
|
-
})}"
|
|
247
|
-
>
|
|
248
|
-
${gvc.bindView({
|
|
249
|
-
bind: wishId,
|
|
250
|
-
view: () => {
|
|
251
|
-
if (vm.wishStatus) {
|
|
252
|
-
return html ` <i class="fa-solid fa-heart" style="color: #da1313"></i>`;
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return html ` <i class="fa-regular fa-heart"></i>`;
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
})}
|
|
259
|
-
</div>
|
|
202
|
+
|
|
260
203
|
<div class="card-collapse-parent">
|
|
261
|
-
<div class="card-title-container">
|
|
204
|
+
<div class="card-title-container" style="min-height:auto;">
|
|
262
205
|
<div class="row gx-0 mb-2">
|
|
263
206
|
<div class="col-12 mb-1">
|
|
264
207
|
<div class="w-100 d-flex ${PdClass.isPad() ? 'justify-content-center' : ''}">
|
|
@@ -218,53 +218,9 @@ export class ProductCard03 {
|
|
|
218
218
|
})}"
|
|
219
219
|
/>
|
|
220
220
|
</div>
|
|
221
|
-
|
|
222
|
-
class="wishBt wish-button ${(window as any).store_info.wishlist === false ? 'd-none' : 'd-flex'}"
|
|
223
|
-
onclick="${gvc.event((_, event) => {
|
|
224
|
-
event.stopPropagation();
|
|
225
|
-
if (CheckInput.isEmpty(GlobalUser.token)) {
|
|
226
|
-
changePage('login', 'page', {});
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
if (vm.wishStatus) {
|
|
231
|
-
ApiShop.deleteWishList(`${prod.id}`).then(async () => {
|
|
232
|
-
PdClass.jumpAlert({
|
|
233
|
-
gvc,
|
|
234
|
-
text: Language.text('delete_success'),
|
|
235
|
-
justify: 'top',
|
|
236
|
-
align: 'center',
|
|
237
|
-
});
|
|
238
|
-
vm.wishStatus = !vm.wishStatus;
|
|
239
|
-
gvc.notifyDataChange(wishId);
|
|
240
|
-
});
|
|
241
|
-
} else {
|
|
242
|
-
ApiShop.postWishList(`${prod.id}`).then(async () => {
|
|
243
|
-
PdClass.jumpAlert({
|
|
244
|
-
gvc,
|
|
245
|
-
text: Language.text('add_success'),
|
|
246
|
-
justify: 'top',
|
|
247
|
-
align: 'center',
|
|
248
|
-
});
|
|
249
|
-
vm.wishStatus = !vm.wishStatus;
|
|
250
|
-
gvc.notifyDataChange(wishId);
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
})}"
|
|
254
|
-
>
|
|
255
|
-
${gvc.bindView({
|
|
256
|
-
bind: wishId,
|
|
257
|
-
view: () => {
|
|
258
|
-
if (vm.wishStatus) {
|
|
259
|
-
return html` <i class="fa-solid fa-heart" style="color: #da1313"></i>`;
|
|
260
|
-
} else {
|
|
261
|
-
return html` <i class="fa-regular fa-heart"></i>`;
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
})}
|
|
265
|
-
</div>
|
|
221
|
+
|
|
266
222
|
<div class="card-collapse-parent">
|
|
267
|
-
<div class="card-title-container">
|
|
223
|
+
<div class="card-title-container" style="min-height:auto;">
|
|
268
224
|
<div class="row gx-0 mb-2">
|
|
269
225
|
<div class="col-12 mb-1">
|
|
270
226
|
<div class="w-100 d-flex ${PdClass.isPad() ? 'justify-content-center' : ''}">
|
package/package.json
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|