Browse Source

扫码严卷

15591641157 3 months ago
parent
commit
241f97129d
1 changed files with 3 additions and 10 deletions
  1. 3 10
      packages/merchant/src/pages/home/result/orderConfirm.vue

+ 3 - 10
packages/merchant/src/pages/home/result/orderConfirm.vue

@@ -19,7 +19,7 @@ const orderNo =ref()
 const query = computed(() => ({ orderNo: orderNo.value}))
 // 获取接口数据
 const getProductByOrderNo = async () => {
-    const response = await productByOrderNo({ orderNo: '241229224706IZ00018' });
+    const response = await productByOrderNo({ orderNo: orderNo.value });
     if (response) {
       productInfo.value = response.data;
     }
@@ -49,11 +49,10 @@ const navigateBack = () => {
     <!-- 商品信息 -->
     <view class="flex items-center bg-white p-[16px] shadow-sm rounded-md">
       <wd-img
-        class="w-[80px] h-[80px] rounded-md mr-[16px]"
+        :width="80" :height="80"
         :src="productInfo.productCoverImgUrl"
-        mode="aspectFill"
       ></wd-img>
-      <view class="flex-1">
+      <view class="flex-1 ml-[25px]">
         <view class="text-lg font-bold mb-[8px]">{{ productInfo.productName }}</view>
         <view class="text-sm text-gray-500 mb-[8px]">数量: x{{ productInfo.num }}</view>
         <view class="text-sm text-gray-500">
@@ -75,10 +74,4 @@ const navigateBack = () => {
 </template>
 
 <style scoped lang="scss">
-.image {
-  border-radius: 8px;
-}
-.shadow-sm {
-  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
-}
 </style>