shish 4 лет назад
Родитель
Сommit
bbc7748865
2 измененных файлов с 5 добавлено и 3 удалено
  1. 4 1
      hdApp/src/pagesPurchase/components/item.vue
  2. 1 2
      hdApp/src/pagesPurchase/ghsProduct.vue

+ 4 - 1
hdApp/src/pagesPurchase/components/item.vue

@@ -7,12 +7,15 @@
 			<view class="tit" >{{ info.itemName}}</view>
 			<view class="tit" >{{ info.itemName}}</view>
 			<view class="kc num-open_bx flex-space" v-if="type == COMMODITY_TYPE.COMMON">
 			<view class="kc num-open_bx flex-space" v-if="type == COMMODITY_TYPE.COMMON">
 				<view v-if="!offPrice">
 				<view v-if="!offPrice">
-					<view class="flex-space" style="margin-top:20upx" v-if="Number(info.discountPrice)>0">
+					<view class="flex-space" style="margin-top:15upx" v-if="Number(info.discountPrice)>0">
 						<view style="padding:2upx 10upx 5upx 10upx;text-align: center;color: red;border: 1px solid red;margin-right: 20upx;line-height: 1;font-size: 20upx">
 						<view style="padding:2upx 10upx 5upx 10upx;text-align: center;color: red;border: 1px solid red;margin-right: 20upx;line-height: 1;font-size: 20upx">
 							{{parseFloat(((Number(info.discountPrice)/Number(info.prePrice)).toFixed(2)*10).toFixed(1))+'折'}}
 							{{parseFloat(((Number(info.discountPrice)/Number(info.prePrice)).toFixed(2)*10).toFixed(1))+'折'}}
 						</view>
 						</view>
 						<text style="text-decoration:line-through;color:#A9A9A9">¥{{parseFloat(info.prePrice)}}</text>
 						<text style="text-decoration:line-through;color:#A9A9A9">¥{{parseFloat(info.prePrice)}}</text>
 					</view>
 					</view>
+					<view class="flex-space" style="margin-top:15upx;color:#CCCCCC;" v-else>
+						{{info.ratio}}{{info.smallUnit}}/{{info.bigUnit}}
+					</view>
 					<view class="price" >¥{{ parseFloat(info.price) }}</view>
 					<view class="price" >¥{{ parseFloat(info.price) }}</view>
 				</view>
 				</view>
 				<view class="price" v-else></view>
 				<view class="price" v-else></view>

+ 1 - 2
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -127,7 +127,6 @@ import AppSearchModule from "@/components/module/app-search";
 import AppTabs from "@/components/plugin/tabs";
 import AppTabs from "@/components/plugin/tabs";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import Commondity from "./components/item";
 import Commondity from "./components/item";
-import GoodsCommondity from "@/components/module/app-goods-commodity";
 import PxClassCommondity from "@/components/module/app-pxClass-commodity";
 import PxClassCommondity from "@/components/module/app-pxClass-commodity";
 import FooterCart from "@/components/module/app-footer-cart";
 import FooterCart from "@/components/module/app-footer-cart";
 import ModalModule from "@/components/plugin/modal";
 import ModalModule from "@/components/plugin/modal";
@@ -148,7 +147,7 @@ export default {
 		AppWrapperEmpty,
 		AppWrapperEmpty,
 		Commondity,
 		Commondity,
 		ModalModule,
 		ModalModule,
-		FooterCart,allMoreSelectInput,PxClassCommondity,GoodsCommondity,wangCg,SelPopup,AppActivilyCoupon
+		FooterCart,allMoreSelectInput,PxClassCommondity,wangCg,SelPopup,AppActivilyCoupon
 	},
 	},
 	props: {
 	props: {
 		ghsShopAdminId:{
 		ghsShopAdminId:{