Bläddra i källkod

feat: 取消订单参数及按钮判断、商详拼团无拼团不显示

liangan 1 månad sedan
förälder
incheckning
4cfeacac97

+ 1 - 1
env/.env

@@ -1,4 +1,4 @@
-VITE_APP_TITLE = 'unibest'
+VITE_APP_TITLE = 'BandhuBuy'
 VITE_APP_PORT = 9000
 
 VITE_UNI_APPID = '__UNI__3065F51'

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
   "version": "3.2.0",
   "packageManager": "pnpm@10.10.0",
   "description": "unibest - 最好的 uniapp 开发模板",
-  "update-time": "2025-08-21",
+  "update-time": "2025-08-26",
   "author": {
     "name": "feige996",
     "zhName": "菲鸽",

+ 1 - 1
src/api/order.ts

@@ -72,5 +72,5 @@ export function orderPink(data: any) {
  * @returns
  */
 export function orderCancel(data: any) {
-  return http.post<any>(`${pre}/app/order/cancel`, data)
+  return http.post<any>(`${pre}/app/order/cancel?id=${data.id}`)
 }

+ 1 - 1
src/api/product.ts

@@ -6,7 +6,7 @@ const pre = import.meta.env.VITE_SERVER_BASEURL_PREFIX
  * @returns data.list[]
  */
 export function getList(data: any) {
-  return http.post<any>(`${pre}/app/combination/app/list`, { ...data, isShow: 1 })
+  return http.post<any>(`${pre}/app/combination/app/list`, data)
 }
 /**
  * 获取商品排名列表

+ 1 - 1
src/manifest.json

@@ -1,5 +1,5 @@
 {
-  "name": "unibest",
+  "name": "BandhuBuy",
   "appid": "__UNI__3065F51",
   "description": "",
   "versionName": "1.0.0",

+ 1 - 1
src/pages/index/index.vue

@@ -85,7 +85,7 @@ const navIcons = ref([
 const newProducts = ref<any>([])
 
 async function getNewList() {
-  const res = await getList({ page: 1, size: 10, isNew: true })
+  const res = await getList({ page: 1, size: 20 })
   console.log(res)
   newProducts.value = res.data.list
 }

+ 1 - 0
src/pages/myOrders/orderDetail.vue

@@ -307,6 +307,7 @@ function handleDialogClose() {
       <view class="flex items-center justify-end bg-white/60 px-28rpx py-30rpx backdrop-blur-20">
         <!-- 取消订单按钮 -->
         <wd-button
+          v-if="detail?.status === 1"
           custom-class="mr-16rpx!"
           plain
           @click="showCancelOrderDialog"

+ 1 - 1
src/pages/productDetail/productDetail.vue

@@ -405,7 +405,7 @@ onShow(() => {
       </view>
       <image src="/static/images/buy-flow.png" class="w-full" mode="widthFix" />
     </view>
-    <view class="bg-white p-24rpx">
+    <view v-if="pinkInfo && pinkInfo.length" class="bg-white p-24rpx">
       <view
         class="mb-20rpx flex items-center before:h-45rpx before:w-8rpx before:rounded-4rpx before:bg-#FF3778 before:content-empty"
       >