-
- ¥{{product.price / 100.00}}
+
+ ¥{{product.buyPrice ? product.buyPrice / 100.00 : product.price / 100.00}}
+
+ {{ product.promotionActivityTitle }}
+
diff --git a/mobile-web/src/components/search/searchtop.vue b/mobile-web/src/components/search/searchtop.vue
index b1d0528e4..d5e00bcd3 100644
--- a/mobile-web/src/components/search/searchtop.vue
+++ b/mobile-web/src/components/search/searchtop.vue
@@ -8,13 +8,13 @@
placeholder="请输入搜索关键词"
background="#fff"
show-action
- @search="onSearch"
+ @search="onSearchClick"
slot="title"
>
- 搜索
+ 搜索
-
+
@@ -27,14 +27,19 @@ export default {
components:{
[Search.name]:Search,
},
+ props: {
+ // keyword: String,
+ // onSearch: Function,
+ },
data(){
return{
value:'',
}
},
methods:{
- onSearch() {
- console.log(this.value);
+ onSearchClick() {
+ // this.props.onSearch(this.keyword);
+ this.$emit('onSearch', this.value);
},
onBack() {
history.back();
diff --git a/mobile-web/src/config/request.js b/mobile-web/src/config/request.js
index e4e5bcbf5..90183546f 100644
--- a/mobile-web/src/config/request.js
+++ b/mobile-web/src/config/request.js
@@ -28,6 +28,10 @@ const serviceRouter = function(requestUrl) {
prefix: '/pay-api',
target: 'http://127.0.0.1:18084/pay-api',
},
+ '/search-api': {
+ prefix: '/search-api',
+ target: 'http://127.0.0.1:18086/search-api',
+ },
};
const configProd = {
@@ -51,6 +55,10 @@ const serviceRouter = function(requestUrl) {
prefix: '/pay-api',
target: 'http://api.shop.iocoder.cn:18099/pay-api',
},
+ '/search-api': {
+ prefix: '/search-api',
+ target: 'http://api.shop.iocoder.cn:18099/search-api',
+ },
};
if (process.env.NODE_ENV == 'development') {
diff --git a/mobile-web/src/config/router.js b/mobile-web/src/config/router.js
index 4e492d8c8..7fd1ac559 100644
--- a/mobile-web/src/config/router.js
+++ b/mobile-web/src/config/router.js
@@ -153,13 +153,6 @@ const routes = [
title: '进度详情'
}
},
- {
- path: '/product/:id',
- component: () => import('../page/product/detail'),
- meta: {
- title: '商品详情'
- }
- },
{
path: '/product/search',
component: () => import('../page/product/search'),
@@ -167,6 +160,13 @@ const routes = [
title: '商品搜索'
}
},
+ {
+ path: '/product/:id',
+ component: () => import('../page/product/detail'),
+ meta: {
+ title: '商品详情'
+ }
+ },
{
path: '/products/list',
component: () => import('../page/product/list'),
diff --git a/mobile-web/src/page/product/search.vue b/mobile-web/src/page/product/search.vue
index 53757f628..fd06a6eb0 100644
--- a/mobile-web/src/page/product/search.vue
+++ b/mobile-web/src/page/product/search.vue
@@ -1,21 +1,21 @@