Basil пре 3 година
родитељ
комит
758aa24e0c
2 измењених фајлова са 8 додато и 2 уклоњено
  1. 7 1
      src/pages/order/components/OtherOrderItem.vue
  2. 1 1
      src/pages/store/product/other.vue

+ 7 - 1
src/pages/order/components/OtherOrderItem.vue

@@ -48,10 +48,16 @@ function handleClick() {
48 48
   //   id: product.goods_id,
49 49
   //   featured: [product.goods_img]
50 50
   // })
51
+  console.log(product)
51 52
   if (product.source === '6') {
52 53
     navigateToDetail(encodeBase64({
53 54
       platform: product.source,
54
-      id: product.goods_id
55
+      id: product.goods_id,
56
+      title: product.goods_name,
57
+      featured: [product.goods_img],
58
+      allowance: product.commission,
59
+      price: product.goods_price,
60
+      salePrice: product.pay_money,
55 61
     }))
56 62
   }
57 63
 }

+ 1 - 1
src/pages/store/product/other.vue

@@ -154,7 +154,7 @@ function loadProductDetail(product: Partial<IProductDetail>) {
154 154
 }
155 155
 
156 156
 function handleBuyNow() {
157
-  if (detail.value?.platform == 6 && detail.value?.spreadUrl) {
157
+  if (detail.value?.platform == 6 || detail.value?.spreadUrl) {
158 158
     uni.navigateToMiniProgram({
159 159
       appId: 'wx91d27dbf599dff74',
160 160
       path: 'pages/union/proxy/proxy?spreadUrl=' + encodeURIComponent(detail.value?.spreadUrl),