ts-glitter 14.4.0 → 14.4.3
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/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-blog.js +14 -7
- package/lowcode/backend-manager/bg-blog.ts +14 -7
- package/lowcode/backend-manager/bg-product.js +22 -20
- package/lowcode/backend-manager/bg-product.ts +85 -73
- package/lowcode/backend-manager/bg-recommend.js +31 -28
- package/lowcode/backend-manager/bg-recommend.ts +31 -28
- package/lowcode/cms-plugin/ai-message.ts +2 -1
- package/lowcode/cms-plugin/filter-options.js +6 -4
- package/lowcode/cms-plugin/filter-options.ts +8 -6
- package/lowcode/cms-plugin/module/product-excel.js +35 -14
- package/lowcode/cms-plugin/module/product-excel.ts +40 -15
- package/lowcode/cms-plugin/shopping-discount-setting.js +1 -1
- package/lowcode/cms-plugin/shopping-discount-setting.ts +5 -2
- package/lowcode/cms-plugin/shopping-invoice-manager.js +0 -1
- package/lowcode/cms-plugin/shopping-invoice-manager.ts +0 -1
- package/lowcode/cms-plugin/shopping-product-setting.js +265 -160
- package/lowcode/cms-plugin/shopping-product-setting.ts +295 -297
- package/lowcode/cms-plugin/shopping-product-stock.js +12 -16
- package/lowcode/cms-plugin/shopping-product-stock.ts +29 -35
- package/lowcode/glitter-base/route/shopping.js +25 -4
- package/lowcode/glitter-base/route/shopping.ts +52 -44
- package/lowcode/glitterBundle/html-component/widget.js +0 -3
- package/lowcode/glitterBundle/html-component/widget.ts +3 -3
- package/lowcode/public-components/blogs/blogs-01.js +138 -1
- package/lowcode/public-components/blogs/blogs-01.ts +142 -2
- package/lowcode/public-components/checkout/index.js +3 -2
- package/lowcode/public-components/checkout/index.ts +16 -3
- package/lowcode/public-components/product/product-detail.js +1 -0
- package/lowcode/public-components/product/product-detail.ts +1 -0
- package/lowcode/public-components/product/product-list.js +1 -0
- package/lowcode/public-components/product/product-list.ts +1 -0
- package/lowcode/public-components/user-manager/um-class.js +2 -2
- package/lowcode/public-components/user-manager/um-class.ts +2 -2
- package/lowcode/public-components/user-manager/um-rebate.js +9 -9
- package/lowcode/public-components/user-manager/um-rebate.ts +29 -29
- package/package.json +1 -1
- package/src/api-public/controllers/shop.js +18 -0
- package/src/api-public/controllers/shop.js.map +1 -1
- package/src/api-public/controllers/shop.ts +17 -1
- package/src/api-public/services/financial-service.d.ts +16 -0
- package/src/api-public/services/financial-service.js +70 -3
- package/src/api-public/services/financial-service.js.map +1 -1
- package/src/api-public/services/financial-service.ts +89 -4
- package/src/api-public/services/recommend.js +14 -0
- package/src/api-public/services/recommend.js.map +1 -1
- package/src/api-public/services/recommend.ts +15 -0
- package/src/api-public/services/shopping.d.ts +35 -0
- package/src/api-public/services/shopping.js +99 -10
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +136 -21
- package/src/services/template.js.map +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -70,7 +70,7 @@ export class Entry {
|
|
|
70
70
|
}
|
|
71
71
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
72
72
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
73
|
-
glitter.share.editerVersion = 'V_14.4.
|
|
73
|
+
glitter.share.editerVersion = 'V_14.4.3';
|
|
74
74
|
glitter.share.start = new Date();
|
|
75
75
|
const vm = {
|
|
76
76
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -73,7 +73,7 @@ export class Entry {
|
|
|
73
73
|
}
|
|
74
74
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
75
75
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
76
|
-
glitter.share.editerVersion = 'V_14.4.
|
|
76
|
+
glitter.share.editerVersion = 'V_14.4.3';
|
|
77
77
|
glitter.share.start = new Date();
|
|
78
78
|
const vm: {
|
|
79
79
|
appConfig: any;
|
|
@@ -476,13 +476,20 @@ export class BgBlog {
|
|
|
476
476
|
style="height: 28px;width: 75px;gap:5px;"
|
|
477
477
|
onclick="${gvc.event(() => {
|
|
478
478
|
if (dd.tag === 'empty') {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
479
|
+
if (['hidden', 'shopping'].includes(page_tab)) {
|
|
480
|
+
const a = [
|
|
481
|
+
Template_refer.bigTitle(page_tab === 'hidden' ? `隱形賣場` : `一頁商店`),
|
|
482
|
+
Template_refer.productList(),
|
|
483
|
+
Template_refer.checkoutPage()
|
|
484
|
+
];
|
|
485
|
+
a.name = page_tab === 'hidden' ? `隱形賣場` : `一頁商店`;
|
|
486
|
+
callback(a);
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
const a = [];
|
|
490
|
+
a.name = `空白內容`;
|
|
491
|
+
callback(a);
|
|
492
|
+
}
|
|
486
493
|
}
|
|
487
494
|
else {
|
|
488
495
|
if (dd._config) {
|
|
@@ -516,13 +516,20 @@ export class BgBlog {
|
|
|
516
516
|
style="height: 28px;width: 75px;gap:5px;"
|
|
517
517
|
onclick="${gvc.event(() => {
|
|
518
518
|
if (dd.tag === 'empty') {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
519
|
+
if(['hidden','shopping'].includes(page_tab)){
|
|
520
|
+
const a: any = [
|
|
521
|
+
Template_refer.bigTitle(page_tab==='hidden' ? `隱形賣場`:`一頁商店`),
|
|
522
|
+
Template_refer.productList(),
|
|
523
|
+
Template_refer.checkoutPage()
|
|
524
|
+
];
|
|
525
|
+
(a as any).name = page_tab==='hidden' ? `隱形賣場`:`一頁商店`;
|
|
526
|
+
callback(a);
|
|
527
|
+
}else{
|
|
528
|
+
const a:any=[];
|
|
529
|
+
(a as any).name = `空白內容`;
|
|
530
|
+
callback(a);
|
|
531
|
+
}
|
|
532
|
+
|
|
526
533
|
} else {
|
|
527
534
|
if (dd._config) {
|
|
528
535
|
dd._config.name = dd.template_config.name;
|
|
@@ -2,7 +2,7 @@ import { BgWidget } from './bg-widget.js';
|
|
|
2
2
|
import { ApiShop } from '../glitter-base/route/shopping.js';
|
|
3
3
|
import { FilterOptions } from '../cms-plugin/filter-options.js';
|
|
4
4
|
import { StockList } from '../cms-plugin/shopping-product-stock.js';
|
|
5
|
-
import { ProductConfig } from
|
|
5
|
+
import { ProductConfig } from '../cms-plugin/product-config.js';
|
|
6
6
|
const html = String.raw;
|
|
7
7
|
export class BgProduct {
|
|
8
8
|
static variantsSelector(obj) {
|
|
@@ -84,7 +84,8 @@ export class BgProduct {
|
|
|
84
84
|
options: FilterOptions.productOrderBy,
|
|
85
85
|
})}
|
|
86
86
|
</div>
|
|
87
|
-
${
|
|
87
|
+
${gvc
|
|
88
|
+
.map(vm.options
|
|
88
89
|
.filter((dd) => {
|
|
89
90
|
return !obj.filter || obj.filter(dd);
|
|
90
91
|
})
|
|
@@ -125,26 +126,27 @@ export class BgProduct {
|
|
|
125
126
|
bind: id,
|
|
126
127
|
view: () => {
|
|
127
128
|
return html `<input
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
129
|
+
class="form-check-input mt-0 ${vm.checkClass}"
|
|
130
|
+
type="checkbox"
|
|
131
|
+
id="${opt.key}"
|
|
132
|
+
name="radio_${vm.id}_${index}"
|
|
133
|
+
onclick="${gvc.event(() => call())}"
|
|
134
|
+
${obj.default.includes(opt.key) ? 'checked' : ''}
|
|
135
|
+
/>
|
|
136
|
+
<div
|
|
137
|
+
class="d-flex align-items-center form-check-label c_updown_label cursor_pointer gap-3"
|
|
138
|
+
onclick="${gvc.event(() => call())}"
|
|
139
|
+
>
|
|
140
|
+
${BgWidget.validImageBox({
|
|
140
141
|
gvc: gvc,
|
|
141
142
|
image: opt.image,
|
|
142
143
|
width: 40,
|
|
143
144
|
})}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
<div class="tx_normal ${opt.note ? 'mb-1' : ''} d-flex gap-2">
|
|
146
|
+
${obj.show_product_type ? BgWidget.infoInsignia(ProductConfig.getName(opt.content)) : ''}${opt.value}
|
|
147
|
+
</div>
|
|
148
|
+
${opt.note ? html ` <div class="tx_gray_12">${opt.note}</div> ` : ''}
|
|
149
|
+
</div>`;
|
|
148
150
|
},
|
|
149
151
|
divCreate: {
|
|
150
152
|
class: `d-flex align-items-center`,
|
|
@@ -152,7 +154,8 @@ export class BgProduct {
|
|
|
152
154
|
},
|
|
153
155
|
};
|
|
154
156
|
});
|
|
155
|
-
}))
|
|
157
|
+
}))
|
|
158
|
+
.trim() || `<div class="w-100 d-flex align-items-center justify-content-center">尚未加入任何商品,請前往管理中心加入商品。</div>`}
|
|
156
159
|
</div>
|
|
157
160
|
<div class="c_dialog_bar">
|
|
158
161
|
${BgWidget.cancel(gvc.event(() => {
|
|
@@ -194,7 +197,6 @@ export class BgProduct {
|
|
|
194
197
|
}).then((data) => {
|
|
195
198
|
vm.options = data.response.data.map((product) => {
|
|
196
199
|
var _a;
|
|
197
|
-
console.log(product.content);
|
|
198
200
|
return {
|
|
199
201
|
key: product.content.id,
|
|
200
202
|
value: product.content.title,
|
|
@@ -3,7 +3,7 @@ import { BgWidget } from './bg-widget.js';
|
|
|
3
3
|
import { ApiShop } from '../glitter-base/route/shopping.js';
|
|
4
4
|
import { FilterOptions } from '../cms-plugin/filter-options.js';
|
|
5
5
|
import { StockList } from '../cms-plugin/shopping-product-stock.js';
|
|
6
|
-
import {ProductConfig} from
|
|
6
|
+
import { ProductConfig } from '../cms-plugin/product-config.js';
|
|
7
7
|
|
|
8
8
|
const html = String.raw;
|
|
9
9
|
|
|
@@ -56,8 +56,18 @@ export class BgProduct {
|
|
|
56
56
|
}, 'variantsSelector');
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
static productsDialog(obj: {
|
|
60
|
-
|
|
59
|
+
static productsDialog(obj: {
|
|
60
|
+
gvc: GVC;
|
|
61
|
+
title?: string;
|
|
62
|
+
default: (number | string)[];
|
|
63
|
+
callback: (value: any) => void;
|
|
64
|
+
filter?: (data: any) => boolean;
|
|
65
|
+
productType?: string;
|
|
66
|
+
single?: boolean;
|
|
67
|
+
filter_visible?: string;
|
|
68
|
+
show_product_type?: boolean;
|
|
69
|
+
}) {
|
|
70
|
+
const glitter = (window.parent as any).glitter;
|
|
61
71
|
return (window.parent as any).glitter.innerDialog((gvc: GVC) => {
|
|
62
72
|
const vm = {
|
|
63
73
|
id: glitter.getUUID(),
|
|
@@ -113,77 +123,80 @@ export class BgProduct {
|
|
|
113
123
|
options: FilterOptions.productOrderBy,
|
|
114
124
|
})}
|
|
115
125
|
</div>
|
|
116
|
-
${
|
|
126
|
+
${gvc
|
|
127
|
+
.map(
|
|
117
128
|
vm.options
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
129
|
+
.filter((dd) => {
|
|
130
|
+
return !obj.filter || obj.filter(dd);
|
|
131
|
+
})
|
|
132
|
+
.map((opt, index) => {
|
|
133
|
+
const id = gvc.glitter.getUUID();
|
|
134
|
+
vm.ids.push({
|
|
135
|
+
key: opt.key,
|
|
136
|
+
id: id,
|
|
137
|
+
});
|
|
127
138
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
function call() {
|
|
140
|
+
if (obj.single) {
|
|
141
|
+
const tempArray = JSON.parse(JSON.stringify(obj.default));
|
|
142
|
+
const tempKey = tempArray[0];
|
|
143
|
+
obj.default = [];
|
|
144
|
+
vm.ids
|
|
145
|
+
.filter((item) => {
|
|
146
|
+
return tempArray.includes(item.key);
|
|
147
|
+
})
|
|
148
|
+
.map((item) => {
|
|
149
|
+
gvc.notifyDataChange(item.id);
|
|
150
|
+
});
|
|
151
|
+
if (tempKey !== opt.key) {
|
|
152
|
+
obj.default = [opt.key];
|
|
153
|
+
}
|
|
154
|
+
} else {
|
|
155
|
+
if (obj.default.includes(opt.key)) {
|
|
156
|
+
obj.default = obj.default.filter((item) => item !== opt.key);
|
|
143
157
|
} else {
|
|
144
|
-
|
|
145
|
-
obj.default = obj.default.filter((item) => item !== opt.key);
|
|
146
|
-
} else {
|
|
147
|
-
obj.default.push(opt.key);
|
|
148
|
-
}
|
|
158
|
+
obj.default.push(opt.key);
|
|
149
159
|
}
|
|
150
|
-
gvc.notifyDataChange(id);
|
|
151
160
|
}
|
|
161
|
+
gvc.notifyDataChange(id);
|
|
162
|
+
}
|
|
152
163
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
})
|
|
186
|
-
|
|
164
|
+
return gvc.bindView(() => {
|
|
165
|
+
return {
|
|
166
|
+
bind: id,
|
|
167
|
+
view: () => {
|
|
168
|
+
return html`<input
|
|
169
|
+
class="form-check-input mt-0 ${vm.checkClass}"
|
|
170
|
+
type="checkbox"
|
|
171
|
+
id="${opt.key}"
|
|
172
|
+
name="radio_${vm.id}_${index}"
|
|
173
|
+
onclick="${gvc.event(() => call())}"
|
|
174
|
+
${obj.default.includes(opt.key) ? 'checked' : ''}
|
|
175
|
+
/>
|
|
176
|
+
<div
|
|
177
|
+
class="d-flex align-items-center form-check-label c_updown_label cursor_pointer gap-3"
|
|
178
|
+
onclick="${gvc.event(() => call())}"
|
|
179
|
+
>
|
|
180
|
+
${BgWidget.validImageBox({
|
|
181
|
+
gvc: gvc,
|
|
182
|
+
image: opt.image,
|
|
183
|
+
width: 40,
|
|
184
|
+
})}
|
|
185
|
+
<div class="tx_normal ${opt.note ? 'mb-1' : ''} d-flex gap-2">
|
|
186
|
+
${obj.show_product_type ? BgWidget.infoInsignia(ProductConfig.getName((opt as any).content as any)) : ''}${opt.value}
|
|
187
|
+
</div>
|
|
188
|
+
${opt.note ? html` <div class="tx_gray_12">${opt.note}</div> ` : ''}
|
|
189
|
+
</div>`;
|
|
190
|
+
},
|
|
191
|
+
divCreate: {
|
|
192
|
+
class: `d-flex align-items-center`,
|
|
193
|
+
style: `gap: 24px`,
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
})
|
|
198
|
+
)
|
|
199
|
+
.trim() || `<div class="w-100 d-flex align-items-center justify-content-center">尚未加入任何商品,請前往管理中心加入商品。</div>`}
|
|
187
200
|
</div>
|
|
188
201
|
<div class="c_dialog_bar">
|
|
189
202
|
${BgWidget.cancel(
|
|
@@ -231,14 +244,13 @@ export class BgProduct {
|
|
|
231
244
|
}
|
|
232
245
|
})(),
|
|
233
246
|
productType: obj.productType,
|
|
234
|
-
filter_visible:obj.filter_visible,
|
|
247
|
+
filter_visible: obj.filter_visible,
|
|
235
248
|
}).then((data) => {
|
|
236
249
|
vm.options = data.response.data.map((product: { content: { id: number; title: string; preview_image: string[] } }) => {
|
|
237
|
-
console.log(product.content);
|
|
238
250
|
return {
|
|
239
251
|
key: product.content.id,
|
|
240
252
|
value: product.content.title,
|
|
241
|
-
content:product.content,
|
|
253
|
+
content: product.content,
|
|
242
254
|
image: product.content.preview_image[0] ?? BgWidget.noImageURL,
|
|
243
255
|
};
|
|
244
256
|
});
|
|
@@ -252,7 +264,7 @@ export class BgProduct {
|
|
|
252
264
|
}, 'productsDialog');
|
|
253
265
|
}
|
|
254
266
|
|
|
255
|
-
static getProductOpts = (def: (number | string)[],product_type?: 'product' | 'addProduct' | 'giveaway'
|
|
267
|
+
static getProductOpts = (def: (number | string)[], product_type?: 'product' | 'addProduct' | 'giveaway') => {
|
|
256
268
|
return new Promise<OptionsItem[]>((resolve) => {
|
|
257
269
|
if (!def || def.length === 0) {
|
|
258
270
|
resolve([]);
|
|
@@ -261,7 +273,7 @@ export class BgProduct {
|
|
|
261
273
|
ApiShop.getProduct({
|
|
262
274
|
page: 0,
|
|
263
275
|
limit: 99999,
|
|
264
|
-
productType:product_type,
|
|
276
|
+
productType: product_type,
|
|
265
277
|
id_list: def.map((d) => `${d}`).join(','),
|
|
266
278
|
}).then((data) => {
|
|
267
279
|
resolve(
|
|
@@ -152,6 +152,10 @@ export class BgRecommend {
|
|
|
152
152
|
};
|
|
153
153
|
})()),
|
|
154
154
|
},
|
|
155
|
+
{
|
|
156
|
+
key: '下單數',
|
|
157
|
+
value: `<span class="fs-7">${dd.orders ? dd.orders.toLocaleString() : 0}</span>`,
|
|
158
|
+
},
|
|
155
159
|
{
|
|
156
160
|
key: '總金額',
|
|
157
161
|
value: `<span class="fs-7">${dd.total_price ? dd.total_price.toLocaleString() : 0}</span>`,
|
|
@@ -160,10 +164,6 @@ export class BgRecommend {
|
|
|
160
164
|
key: '曝光量',
|
|
161
165
|
value: `<span class="fs-7">${dd.exposure ? dd.exposure.toLocaleString() : 0}</span>`,
|
|
162
166
|
},
|
|
163
|
-
{
|
|
164
|
-
key: '下單數',
|
|
165
|
-
value: `<span class="fs-7">${dd.orders ? dd.orders.toLocaleString() : 0}</span>`,
|
|
166
|
-
},
|
|
167
167
|
{
|
|
168
168
|
key: '轉換率',
|
|
169
169
|
value: `<span class="fs-7">${(_b = dd.conversion_rate) !== null && _b !== void 0 ? _b : 0}%</span>`,
|
|
@@ -178,7 +178,9 @@ export class BgRecommend {
|
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
key: '期限',
|
|
181
|
-
value: `<div class="
|
|
181
|
+
value: html `<div class="me-2">
|
|
182
|
+
<span class="fs-7">${dd.content.startDate} ~ ${(_c = dd.content.endDate) !== null && _c !== void 0 ? _c : '永不過期'}</span>
|
|
183
|
+
</div>`,
|
|
182
184
|
},
|
|
183
185
|
{
|
|
184
186
|
key: '狀態',
|
|
@@ -531,13 +533,13 @@ export class BgRecommend {
|
|
|
531
533
|
bind: id,
|
|
532
534
|
view: () => {
|
|
533
535
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
534
|
-
const inputStyle = 'font-size: 16px; height:40px;
|
|
536
|
+
const inputStyle = 'font-size: 16px; height:40px;';
|
|
535
537
|
let map = [
|
|
536
538
|
BgWidget.mainCard([
|
|
537
|
-
html ` <div class="tx_700">連結網址</div
|
|
538
|
-
|
|
539
|
+
html ` <div class="tx_700 mb-2">連結網址</div>
|
|
540
|
+
<div class="tx_normal">分銷代碼</div>
|
|
539
541
|
<div style="margin: 4px 0 8px;">${BgWidget.grayNote('是一段唯一的識別碼,用於系統追蹤和記錄通過該代碼完成的銷售')}</div>
|
|
540
|
-
${
|
|
542
|
+
${BgWidget.editeInput({
|
|
541
543
|
gvc: gvc,
|
|
542
544
|
title: '',
|
|
543
545
|
default: (_a = vm.data.code) !== null && _a !== void 0 ? _a : '',
|
|
@@ -611,10 +613,10 @@ export class BgRecommend {
|
|
|
611
613
|
].join('');
|
|
612
614
|
},
|
|
613
615
|
}),
|
|
614
|
-
html ` <div class="tx_700">基本設定</div
|
|
615
|
-
|
|
616
|
+
html ` <div class="tx_700 mb-2">基本設定</div>
|
|
617
|
+
<div class="tx_normal">分銷連結名稱</div>
|
|
616
618
|
${BgWidget.mbContainer(8)}
|
|
617
|
-
${
|
|
619
|
+
${BgWidget.editeInput({
|
|
618
620
|
gvc: gvc,
|
|
619
621
|
title: '',
|
|
620
622
|
default: (_c = vm.data.title) !== null && _c !== void 0 ? _c : '',
|
|
@@ -1032,7 +1034,7 @@ export class BgRecommend {
|
|
|
1032
1034
|
? [
|
|
1033
1035
|
'',
|
|
1034
1036
|
html `<div class="tx_normal">名字</div>`,
|
|
1035
|
-
|
|
1037
|
+
BgWidget.editeInput({
|
|
1036
1038
|
gvc: gvc,
|
|
1037
1039
|
title: '',
|
|
1038
1040
|
default: user.content.name,
|
|
@@ -1042,7 +1044,7 @@ export class BgRecommend {
|
|
|
1042
1044
|
}),
|
|
1043
1045
|
html ` <div class="tx_normal">電子信箱</div>
|
|
1044
1046
|
${BgWidget.grayNote('將作為登入帳號,系統會寄送隨機密碼至此信箱')}`,
|
|
1045
|
-
|
|
1047
|
+
BgWidget.editeInput({
|
|
1046
1048
|
gvc: gvc,
|
|
1047
1049
|
title: '',
|
|
1048
1050
|
default: user.email,
|
|
@@ -1051,7 +1053,7 @@ export class BgRecommend {
|
|
|
1051
1053
|
readonly: true,
|
|
1052
1054
|
}),
|
|
1053
1055
|
html `<div class="tx_normal">電話</div>`,
|
|
1054
|
-
|
|
1056
|
+
BgWidget.editeInput({
|
|
1055
1057
|
gvc: gvc,
|
|
1056
1058
|
title: '',
|
|
1057
1059
|
default: user.content.phone,
|
|
@@ -1075,7 +1077,7 @@ export class BgRecommend {
|
|
|
1075
1077
|
return html `<div>
|
|
1076
1078
|
${[
|
|
1077
1079
|
html `<div class="tx_normal">名字</div>`,
|
|
1078
|
-
|
|
1080
|
+
BgWidget.editeInput({
|
|
1079
1081
|
gvc: gvc,
|
|
1080
1082
|
title: '',
|
|
1081
1083
|
default: user ? user.content.name : (_a = vm.data.recommend_user.name) !== null && _a !== void 0 ? _a : '',
|
|
@@ -1094,7 +1096,7 @@ export class BgRecommend {
|
|
|
1094
1096
|
bind: id,
|
|
1095
1097
|
view: () => {
|
|
1096
1098
|
var _a;
|
|
1097
|
-
return
|
|
1099
|
+
return BgWidget.editeInput({
|
|
1098
1100
|
gvc: gvc,
|
|
1099
1101
|
title: '',
|
|
1100
1102
|
default: user ? user.content.email : (_a = vm.data.recommend_user.email) !== null && _a !== void 0 ? _a : '',
|
|
@@ -1114,7 +1116,7 @@ export class BgRecommend {
|
|
|
1114
1116
|
};
|
|
1115
1117
|
})()),
|
|
1116
1118
|
html `<div class="tx_normal">電話</div>`,
|
|
1117
|
-
|
|
1119
|
+
BgWidget.editeInput({
|
|
1118
1120
|
gvc: gvc,
|
|
1119
1121
|
title: '',
|
|
1120
1122
|
default: user ? user.content.phone : (_b = vm.data.recommend_user.phone) !== null && _b !== void 0 ? _b : '',
|
|
@@ -1153,9 +1155,10 @@ export class BgRecommend {
|
|
|
1153
1155
|
].join(BgWidget.mbContainer(18))),
|
|
1154
1156
|
BgWidget.mainCard([
|
|
1155
1157
|
html ` <div class="tx_700">活動時間</div>`,
|
|
1158
|
+
BgWidget.mbContainer(18),
|
|
1156
1159
|
html `<div class="tx_normal">開始時間</div>`,
|
|
1157
|
-
html ` <div class="d-flex mb-
|
|
1158
|
-
${
|
|
1160
|
+
html ` <div class="d-flex mb-2 ${document.body.clientWidth < 768 ? 'flex-column' : ''}" style="gap: 12px">
|
|
1161
|
+
${BgWidget.editeInput({
|
|
1159
1162
|
gvc: gvc,
|
|
1160
1163
|
title: '',
|
|
1161
1164
|
type: 'date',
|
|
@@ -1166,7 +1169,7 @@ export class BgRecommend {
|
|
|
1166
1169
|
vm.data.startDate = text;
|
|
1167
1170
|
},
|
|
1168
1171
|
})}
|
|
1169
|
-
${
|
|
1172
|
+
${BgWidget.editeInput({
|
|
1170
1173
|
gvc: gvc,
|
|
1171
1174
|
title: '',
|
|
1172
1175
|
type: 'time',
|
|
@@ -1182,8 +1185,8 @@ export class BgRecommend {
|
|
|
1182
1185
|
{
|
|
1183
1186
|
key: 'withEnd',
|
|
1184
1187
|
name: '設定結束時間',
|
|
1185
|
-
innerHtml: html `<div class="d-flex mt-
|
|
1186
|
-
${
|
|
1188
|
+
innerHtml: html `<div class="d-flex mt-1 ${document.body.clientWidth < 768 ? 'flex-column' : ''}" style="gap: 12px">
|
|
1189
|
+
${BgWidget.editeInput({
|
|
1187
1190
|
gvc: gvc,
|
|
1188
1191
|
title: '',
|
|
1189
1192
|
type: 'date',
|
|
@@ -1194,7 +1197,7 @@ export class BgRecommend {
|
|
|
1194
1197
|
vm.data.endDate = text;
|
|
1195
1198
|
},
|
|
1196
1199
|
})}
|
|
1197
|
-
${
|
|
1200
|
+
${BgWidget.editeInput({
|
|
1198
1201
|
gvc: gvc,
|
|
1199
1202
|
title: '',
|
|
1200
1203
|
type: 'time',
|
|
@@ -1218,7 +1221,7 @@ export class BgRecommend {
|
|
|
1218
1221
|
vm.data.endTime = undefined;
|
|
1219
1222
|
}
|
|
1220
1223
|
}, { single: false }),
|
|
1221
|
-
].join(
|
|
1224
|
+
].join('')),
|
|
1222
1225
|
];
|
|
1223
1226
|
return map.join(BgWidget.mbContainer(24));
|
|
1224
1227
|
},
|
|
@@ -1484,7 +1487,7 @@ export class BgRecommend {
|
|
|
1484
1487
|
<div class="col-12 col-md-6">
|
|
1485
1488
|
<div class="tx_normal">姓名</div>
|
|
1486
1489
|
${BgWidget.mbContainer(8)}
|
|
1487
|
-
${
|
|
1490
|
+
${BgWidget.editeInput({
|
|
1488
1491
|
gvc: gvc,
|
|
1489
1492
|
title: '',
|
|
1490
1493
|
default: (_a = vm.data.name) !== null && _a !== void 0 ? _a : '',
|
|
@@ -1498,7 +1501,7 @@ export class BgRecommend {
|
|
|
1498
1501
|
<div class="col-12 col-md-6">
|
|
1499
1502
|
<div class="tx_normal">電子信箱</div>
|
|
1500
1503
|
${BgWidget.mbContainer(8)}
|
|
1501
|
-
${
|
|
1504
|
+
${BgWidget.editeInput({
|
|
1502
1505
|
gvc: gvc,
|
|
1503
1506
|
title: '',
|
|
1504
1507
|
default: (_b = vm.data.email) !== null && _b !== void 0 ? _b : '',
|
|
@@ -1511,7 +1514,7 @@ export class BgRecommend {
|
|
|
1511
1514
|
</div>`,
|
|
1512
1515
|
html `<div class="tx_normal">電話</div>
|
|
1513
1516
|
${BgWidget.mbContainer(8)}
|
|
1514
|
-
${
|
|
1517
|
+
${BgWidget.editeInput({
|
|
1515
1518
|
gvc: gvc,
|
|
1516
1519
|
title: '',
|
|
1517
1520
|
default: (_c = vm.data.phone) !== null && _c !== void 0 ? _c : '',
|