Commit 5fe273f8 authored by 陈宗胤(贵阳日报)'s avatar 陈宗胤(贵阳日报)
parents 10ffe92a bdd970d7
...@@ -202,26 +202,18 @@ function getProdDetailFn(prodId) { ...@@ -202,26 +202,18 @@ function getProdDetailFn(prodId) {
* 获取收藏 * 获取收藏
*/ */
function getCollectFn(shopId) { function getCollectFn(shopId) {
if (shopInfo.value.isCollect === 0) { getCollect(shopId).then((res) => {
shopInfo.value.privateIntFcount++; if (res.code === 0) {
shopInfo.value.isCollect = 1; if (shopInfo.value.isCollect === 0) {
} else { shopInfo.value.privateIntFcount++;
shopInfo.value.privateIntFcount--; shopInfo.value.isCollect = 1;
shopInfo.value.isCollect = 0; } else {
} shopInfo.value.privateIntFcount--;
shopInfo.value.console.log('111'); shopInfo.value.isCollect = 0;
// getCollect(shopId).then((res) => { }
// if (res.code === 0) { shopInfo.value.console.log('111');
// if (shopInfo.value.isCollect === 0) { }
// shopInfo.value.privateIntFcount++; });
// shopInfo.value.isCollect = 1;
// } else {
// shopInfo.value.privateIntFcount--;
// shopInfo.value.isCollect = 0;
// }
// shopInfo.value.console.log('111');
// }
// });
} }
function collectionFn() { function collectionFn() {
getCollectFn(shopId.value); getCollectFn(shopId.value);
......
...@@ -533,7 +533,7 @@ const giveTheThumbs = (item, index) => { ...@@ -533,7 +533,7 @@ const giveTheThumbs = (item, index) => {
*/ */
const viewAll = () => { const viewAll = () => {
getEvaluationPage({ getEvaluationPage({
current: params.value.current, current: 1,
size: commentTotal.value, size: commentTotal.value,
shopId: params.value.shopId, shopId: params.value.shopId,
}).then((res) => { }).then((res) => {
......
...@@ -41,7 +41,7 @@ export default defineConfig({ ...@@ -41,7 +41,7 @@ export default defineConfig({
// 代理配置 // 代理配置
proxy: { proxy: {
'/api': { '/api': {
target: 'http://test.rhhzkj.com:8080', target: 'http://192.168.0.147:9999',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''), rewrite: (path) => path.replace(/^\/api/, ''),
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment