diff --git a/api/request.ts b/api/request.ts
index 7230ec5..aa8d37c 100644
--- a/api/request.ts
+++ b/api/request.ts
@@ -2,6 +2,6 @@ export const Url = 'http://localhost:9092/api' //后端接口文档
export const testUrl = 'http://123.249.108.160:8888/api' //自己组的服务器接口地址
export const suiUrl = 'http://154.8.193.216:9092/api' //隋宇霏的接口地址
export const domain = 'https://www.carboner.cn/api'
-export const myIp = 'http://8.130.119.119:9092/api'
+export const myIp = 'http://8.130.119.119:9092/api'
export const baseUrl = testUrl
diff --git a/common/globalImagesUrl.js b/common/globalImagesUrl.js
index f76243d..47d1a9f 100644
--- a/common/globalImagesUrl.js
+++ b/common/globalImagesUrl.js
@@ -1,2 +1,3 @@
export const bookUrl = 'https://carbon2.obs.cn-north-4.myhuaweicloud.com/feiyi/miniProgram/book'
-export const couponUrl = 'https://carbon2.obs.cn-north-4.myhuaweicloud.com/feiyi/miniProgram/coupon'
\ No newline at end of file
+export const couponUrl = 'https://carbon2.obs.cn-north-4.myhuaweicloud.com/feiyi/miniProgram/coupon'
+export const workshopUrl = 'https://carbon2.obs.cn-north-4.myhuaweicloud.com/feiyi/miniProgram/workshop'
\ No newline at end of file
diff --git a/components/vear-carousel/vear-carousel.vue b/components/vear-carousel/vear-carousel.vue
new file mode 100644
index 0000000..cb12015
--- /dev/null
+++ b/components/vear-carousel/vear-carousel.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index 0df35ed..7e25c10 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
- "dependencies": {
- "mathjs": "^14.0.1",
- "mitt": "^3.0.1"
- }
-}
+ "dependencies": {
+ "mathjs": "^14.0.1",
+ "mitt": "^3.0.1"
+ }
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index cb92871..768589e 100644
--- a/pages.json
+++ b/pages.json
@@ -1,5 +1,20 @@
{
"pages": [
+ {
+ "path" : "pages/workshop/searchResult/searchResult",
+ "style" :
+ {
+ "navigationBarTitleText" : ""
+ }
+ },
+
+ {
+ "path" : "pages/workshop/searchGood/searchGood",
+ "style" :
+ {
+ "navigationBarTitleText" : ""
+ }
+ },
{
"path" : "pages/home/home",
"style" :
diff --git a/pages/Shopping-cart/productmain/testproductmain.vue b/pages/Shopping-cart/productmain/testproductmain.vue
index de6c299..851c409 100644
--- a/pages/Shopping-cart/productmain/testproductmain.vue
+++ b/pages/Shopping-cart/productmain/testproductmain.vue
@@ -5,7 +5,7 @@
-
+
{{ stateText.topBtn }}
@@ -565,6 +565,30 @@
}
}
}
+
+
+
+
+
+
+
+
+
+ const gotoSearch = async () => {
+ if (searchText.value === '') {
+ await getProductCart()
+ return ;
+ }
+ if (current.value === 1) {
+ products.value = products.value.filter(item => item.cartGoodVO.name.includes(searchText.value))
+ } else {
+ products.value = products.value.filter(item => item.cartExperienceGoodVO.name.includes(searchText.value))
+ }
+ }
+
+
+
+
diff --git a/pages/workshop/productmain/productmain.vue b/pages/workshop/productmain/productmain.vue
index 1f451d3..0d7db5e 100644
--- a/pages/workshop/productmain/productmain.vue
+++ b/pages/workshop/productmain/productmain.vue
@@ -82,6 +82,7 @@ const cookie = wx.getStorageSync("cookie") //请求头
const productObject = ref({})
const popup = ref(null) //弹窗对象
const pObj = {}
+const appointmentDateVOList = ref([])
onMounted(()=>{
emitter.on('closeTimeDialog',()=>{
close()
@@ -106,6 +107,7 @@ const getProduct = async () =>{
console.log('单个服务类商品信息---->',res.data.data);
if(res.data.code === 1) {
productObject.value = res.data.data
+ appointmentDateVOList.value = res.data.data.appointmentDateVOList
} else {
uni.showToast({
icon: 'error',
@@ -137,13 +139,32 @@ const close =()=> { //关闭弹窗
popup.value.close()
})
}
+
+const check = () => {
+ if (appointmentDateVOList.value.length === 0) {
+ uni.showModal({
+ title: '提示',
+ content: '当前服务类商品的所有时段已约满',
+ showCancel: false
+ })
+ return true;
+ }
+ return false
+}
+
const loadPopCart =()=> {
+ if(check()) {
+ return ;
+ }
emitter.emit('getGoodData', productObject.value)
emitter.emit('getBookingNumberMap', countMap)
popup.value.open('bottom') //从底部弹
emitter.emit('count',1) //区别于加入购物车弹窗和立即预约弹窗
}
const loadPopBook = ()=> {
+ if (check()) {
+ return ;
+ }
emitter.emit('getGoodData', productObject.value)
emitter.emit('getBookingNumberMap', countMap)
popup.value.open('bottom') //从底部弹
@@ -312,7 +333,7 @@ const loadPopBook = ()=> {
.text-wrapper {
padding: 29.1rpx 0 28.69rpx;
flex: 1 1 260.63rpx;
- background-color: #e79ea14d;
+ background-color: #e79ea1;
border-radius: 93.75rpx;
height: 82.5rpx;
}
@@ -323,7 +344,7 @@ const loadPopBook = ()=> {
.text-wrapper_2 {
padding: 26.49rpx 0 28.57rpx;
flex: 1 1 260.63rpx;
- background-color: #e79ea1;
+ background-color: #c35c5d;
border-radius: 93.75rpx;
height: 82.5rpx;
}
diff --git a/pages/workshop/searchGood/searchGood.vue b/pages/workshop/searchGood/searchGood.vue
new file mode 100644
index 0000000..3a89629
--- /dev/null
+++ b/pages/workshop/searchGood/searchGood.vue
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/workshop/searchResult/searchResult.vue b/pages/workshop/searchResult/searchResult.vue
new file mode 100644
index 0000000..2be45f2
--- /dev/null
+++ b/pages/workshop/searchResult/searchResult.vue
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ {{ item.intro.length > 19 ? item.intro.substr(0, 20) + '...' : item.intro }}
+
+ ¥{{ item.price.toFixed(2) }}
+
+
+
+
+
+
+
+
diff --git a/static/logo.png b/static/logo.png
new file mode 100644
index 0000000..b5771e2
Binary files /dev/null and b/static/logo.png differ