shish 2 miesięcy temu
rodzic
commit
b3611a4af1
1 zmienionych plików z 17 dodań i 2 usunięć
  1. 17 2
      ghsApp/src/admin/billing/affirm.vue

+ 17 - 2
ghsApp/src/admin/billing/affirm.vue

@@ -16,7 +16,8 @@
                     <!-- #endif -->
                     <view class="item-info">
                       <view class="info-line">
-                        <text class="item-name">
+                        <text class="item-name" @click.stop="goItemDetail(item)">
+                          <text class="limit-buy-tag" v-if="Number(item.limitBuy) > 0">限购{{ item.limitBuy }}份</text>
                           {{ item.name || '' }}
                           <text v-if="item.variety && item.variety == 1" class="show-color"></text>
                         </text>
@@ -1156,6 +1157,12 @@ export default {
     returnCheck() {
       this.$refs.diffPriceRef.close();
     },
+    goItemDetail(item) {
+      if (!item || !item.id) {
+        return;
+      }
+      this.$util.pageTo({ url: '/admin/item/detail?id=' + item.id });
+    },
     gobackEvent() {
       let book = this.option && this.option.book ? this.option.book : 0;
       let customId = this.option && this.option.customId ? this.option.customId : 0;
@@ -1390,9 +1397,17 @@ export default {
               justify-content: space-between;
               align-items: flex-end;
               .item-name {
-                color: #333333;
                 font-size: 28upx;
                 font-weight: bold;
+                .limit-buy-tag {
+                  font-size: 22upx;
+                  border: 1upx solid red;
+                  color: #ffffff;
+                  background-color: red;
+                  margin-right: 5upx;
+                  padding-left: 5upx;
+                  padding-right: 5upx;
+                }
                 .show-color {
                   display: inline-block;
                   width: 25upx;