瀏覽代碼

去掉无用代码

谢杰标 2 年之前
父節點
當前提交
bab414d346
共有 1 個文件被更改,包括 0 次插入10 次删除
  1. 0 10
      src/components/goodsItem/index.vue

+ 0 - 10
src/components/goodsItem/index.vue

@@ -48,16 +48,6 @@ export default {
   },
   computed: {
     ...mapGetters(["userInfo"]),
-    price() {
-      let { standPrice, maxPrice, minPrice, specTemplateId } = this.item
-      if (!specTemplateId || (!maxPrice && !minPrice)) {
-        return standPrice === 0 ? '免费' : `¥${standPrice}`
-      }
-      if (maxPrice == minPrice) {
-        return minPrice === 0 ? '免费' : `¥${minPrice}`
-      }
-      return `¥${minPrice}-¥${maxPrice}`
-    }
   },
   props: ["item"],
   data() {