shish 3 years ago
parent
commit
95a9d4c39d
1 changed files with 6 additions and 2 deletions
  1. 6 2
      ghsApp/src/pagesPurchase/components/CommodityPurchase.vue

+ 6 - 2
ghsApp/src/pagesPurchase/components/CommodityPurchase.vue

@@ -2,10 +2,14 @@
   <view class="item-cmd_bx" @click="showAddModelFn">
   <view class="item-cmd_bx" @click="showAddModelFn">
 			<view class="img_bx" style="background:#eeeeee"> <image :src="info.cover" lazy-load="true" :lazy-load-margin="0"></image> </view>
 			<view class="img_bx" style="background:#eeeeee"> <image :src="info.cover" lazy-load="true" :lazy-load-margin="0"></image> </view>
     <view class="cmd-info_bx">
     <view class="cmd-info_bx">
-      <view class="tit"> {{ info.name || "" }} </view>
+      <view class="tit">
+				<text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;" 
+				v-if="info.presell == 1">预售</text>
+        {{ info.name || "" }} 
+      </view>
       <view class="num-open_bx">
       <view class="num-open_bx">
         <view class="price" style="position:absolute;top:105upx;">¥{{ parseFloat(info.price) }}</view>
         <view class="price" style="position:absolute;top:105upx;">¥{{ parseFloat(info.price) }}</view>
-        <view style="position: relative;top:-10upx;">
+        <view style="position: relative;top:-12upx;">
            <view class="kc">
            <view class="kc">
            <block v-if="info.ratioType == 0">{{info.ratio}}{{ info.smallUnit }}/{{info.bigUnit}}</block>
            <block v-if="info.ratioType == 0">{{info.ratio}}{{ info.smallUnit }}/{{info.bigUnit}}</block>
            <block v-else>若干{{ info.smallUnit }}/{{info.bigUnit}}</block>
            <block v-else>若干{{ info.smallUnit }}/{{info.bigUnit}}</block>