|
|
@@ -3,9 +3,12 @@
|
|
|
<view class="img_bx" style="background:#eeeeee">
|
|
|
<image :src="info.cover" v-if="isImg"></image>
|
|
|
</view>
|
|
|
- <view class="cmd-info_bx" :class="type == STOCK_TYPE.WARN?'':'active'">
|
|
|
+ <view class="cmd-info_bx">
|
|
|
<view class="tit">{{ info.name || "" }}</view>
|
|
|
- <view class="kc">{{info.className}}<text v-if="info.select == 2" style="color:#1f1cc0;float:right;margin-right:80upx;">已导入</text></view>
|
|
|
+ <view class="kc">{{info.className}}
|
|
|
+ <text v-if="info.select == 2" style="color:#1f1cc0;float:right;margin-right:80upx;">已导入</text>
|
|
|
+ <text v-else style="color:green;float:right;margin-right:80upx;">选择</text>
|
|
|
+ </view>
|
|
|
<view class="num-open_bx">
|
|
|
<view class="open-bx warn">
|
|
|
单位:<text>{{ info.bigUnit }}</text>
|
|
|
@@ -16,7 +19,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { STOCK_TYPE } from "@/utils/declare";
|
|
|
import AppImg from "@/components/app-img";
|
|
|
export default {
|
|
|
name: "item",
|
|
|
@@ -24,10 +26,7 @@ export default {
|
|
|
AppImg
|
|
|
},
|
|
|
props: {
|
|
|
- type: {
|
|
|
- type: String,
|
|
|
- default: STOCK_TYPE.WARN
|
|
|
- },
|
|
|
+
|
|
|
isPrice: {
|
|
|
type: Boolean,
|
|
|
default: true
|