|
@@ -8,6 +8,10 @@ export default defineComponent({
|
|
|
productList: {
|
|
|
type: Array,
|
|
|
default: []
|
|
|
+ },
|
|
|
+ onOpenWebView: {
|
|
|
+ type: Function,
|
|
|
+ default: (a: any) => {}
|
|
|
}
|
|
|
},
|
|
|
render() {
|
|
@@ -24,7 +28,14 @@ export default defineComponent({
|
|
|
{this.productList.map((product: any) => (
|
|
|
<SwipeItem class={styles.typeSection}>
|
|
|
{product.map((item: any) => (
|
|
|
- <div class={styles.typeItem}>
|
|
|
+ <div
|
|
|
+ class={styles.typeItem}
|
|
|
+ onClick={() => {
|
|
|
+ this.onOpenWebView(
|
|
|
+ '/goodsList?' + 'id=' + item.id + '&tag=' + encodeURIComponent(item.name)
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ >
|
|
|
<Image
|
|
|
class={styles.swipeTypeImg}
|
|
|
src={item.icon}
|