diff --git a/src/api/index.js b/src/api/index.js
index 4cbee17..64743b5 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -70,4 +70,12 @@ export const prodOrNewsCatgApi = (catgId) => {
**/
export const prodPageApi = (params) => {
return request.get('/web/prodPageList', {params})
+}
+
+/**
+ * @function 获取产品新闻详情
+ * @param {string} id
+**/
+export const prodOrNewsInfoApi = (id) => {
+ return request.get(`/web/prodNewsInfo?id=${id}`)
}
\ No newline at end of file
diff --git a/src/application/product-details.vue b/src/application/product-details.vue
index 160ff6c..09e8025 100644
--- a/src/application/product-details.vue
+++ b/src/application/product-details.vue
@@ -1,15 +1,381 @@
- 产品详情
+
+
+
+
+
+
+
+
+
+
+
+ {{ swiperCurrent + 1 }}/{{productsImages.length}}
+
+
+
+ {{info.title}}
+
+
+
+
+
+
+ {{$t('products.productDetails')}}
+
+
+
+
+
+
+ {{$t('products.inquiry')}}
+
+
+
+
+
+
+
+
+ *
+
+
+
+
+
+
+
+
+
+
+
+ *
+
+
+
+
+
+
+
+
+
+
+
+ *
+
+
+
+
+
+
+
+
+
+
+
+ *
+
+
+
+
+
+
+
+
+
+
+
+ *
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('news.relatedProducts')}}
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
\ No newline at end of file
diff --git a/src/assets/images/bg/Inquiry-bg.png b/src/assets/images/bg/Inquiry-bg.png
new file mode 100644
index 0000000..e21de42
Binary files /dev/null and b/src/assets/images/bg/Inquiry-bg.png differ
diff --git a/src/assets/images/icon/Google.png b/src/assets/images/icon/Google.png
new file mode 100644
index 0000000..29dbc01
Binary files /dev/null and b/src/assets/images/icon/Google.png differ
diff --git a/src/assets/images/icon/X.png b/src/assets/images/icon/X.png
new file mode 100644
index 0000000..c3d869a
Binary files /dev/null and b/src/assets/images/icon/X.png differ
diff --git a/src/assets/images/icon/YouTobe.png b/src/assets/images/icon/YouTobe.png
new file mode 100644
index 0000000..44a9b4c
Binary files /dev/null and b/src/assets/images/icon/YouTobe.png differ
diff --git a/src/assets/images/icon/facebook.png b/src/assets/images/icon/facebook.png
new file mode 100644
index 0000000..ea05921
Binary files /dev/null and b/src/assets/images/icon/facebook.png differ
diff --git a/src/assets/images/icon/in.png b/src/assets/images/icon/in.png
new file mode 100644
index 0000000..1dacbae
Binary files /dev/null and b/src/assets/images/icon/in.png differ
diff --git a/src/assets/images/icon/phoneApp.png b/src/assets/images/icon/phoneApp.png
new file mode 100644
index 0000000..f48f329
Binary files /dev/null and b/src/assets/images/icon/phoneApp.png differ
diff --git a/src/locale/en.json b/src/locale/en.json
index 5883e30..e8d369f 100644
--- a/src/locale/en.json
+++ b/src/locale/en.json
@@ -47,7 +47,8 @@
"viewmore": "view more",
"ProductLabel": "Product",
"keywords": "keywords",
- "Quickcontact": "Quick contact"
+ "Quickcontact": "Quick contact",
+ "sending": "sending"
},
"menu": {
"Home": "Home",
diff --git a/src/locale/zh.json b/src/locale/zh.json
index ced328a..e43406b 100644
--- a/src/locale/zh.json
+++ b/src/locale/zh.json
@@ -47,7 +47,8 @@
"viewmore": "查看更多",
"ProductLabel": "产品",
"keywords": "关键字",
- "Quickcontact": "快速联系"
+ "Quickcontact": "快速联系",
+ "sending": "发送"
},
"menu": {
"Home": "首页",
diff --git a/src/pages.json b/src/pages.json
index c6cc88f..9c52e66 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -49,7 +49,8 @@
"path": "product-details",
"style": {
"navigationBarTitleText": "Product details",
- "enablePullDownRefresh": true
+ "enablePullDownRefresh": true,
+ "navigationStyle": "default"
}
},
{
diff --git a/src/pages/products/index.vue b/src/pages/products/index.vue
index 0b91125..b48cef4 100644
--- a/src/pages/products/index.vue
+++ b/src/pages/products/index.vue
@@ -74,6 +74,7 @@
class="prod-item"
v-for="item in prodList"
:key="item.id"
+ @click="goProdDetails(item)"
>
@@ -179,10 +180,10 @@
const onlineModalShow = ref(false)
const onlineModalRef = ref()
- const clickMsg = () => {
- onlineModalShow.value = false
- nextTick(() => {
-
+
+ const goProdDetails = (row) => {
+ uni.navigateTo({
+ url: `/application/product-details?id=${row.id}`
})
}