Browse Source

活动选择商品过滤掉卡密优惠券,本地上传图片问题修复

evoxwht 2 years ago
parent
commit
26380f8a9a

+ 2 - 2
crmeb/crmeb/services/upload/storage/Local.php

@@ -150,11 +150,11 @@ class Local extends BaseUpload
 
 
     /**
     /**
      * 文件流上传
      * 文件流上传
-     * @param string $fileContent
+     * @param $fileContent
      * @param string|null $key
      * @param string|null $key
      * @return array|bool|mixed|\StdClass
      * @return array|bool|mixed|\StdClass
      */
      */
-    public function stream(string $fileContent, string $key = null)
+    public function stream($fileContent, string $key = null)
     {
     {
         if (!$key) {
         if (!$key) {
             $key = $this->saveFileName();
             $key = $this->saveFileName();

+ 10 - 2
template/admin/src/pages/marketing/lottery/addGoods.vue

@@ -49,7 +49,7 @@
           </div>
           </div>
         </template>
         </template>
         <div v-else class="upLoad pictrueTab acea-row row-center-wrapper">
         <div v-else class="upLoad pictrueTab acea-row row-center-wrapper">
-          <Icon type="ios-camera-outline" size="26" @click="modals = true" />
+          <Icon type="ios-camera-outline" size="26" @click="changeGoods" />
         </div>
         </div>
       </FormItem>
       </FormItem>
       <FormItem label="奖品名称" prop="name">
       <FormItem label="奖品名称" prop="name">
@@ -116,7 +116,7 @@
       width="900"
       width="900"
       @on-cancel="cancel"
       @on-cancel="cancel"
     >
     >
-      <goods-list ref="goodslist" v-if="modals" @getProductId="getProductId"></goods-list>
+      <goods-list ref="goodslist" @getProductId="getProductId"></goods-list>
     </Modal>
     </Modal>
     <coupon-list ref="couponTemplates" :luckDraw="true" @getCouponId="getCouponId"></coupon-list>
     <coupon-list ref="couponTemplates" :luckDraw="true" @getCouponId="getCouponId"></coupon-list>
     <!--<coupon-list-->
     <!--<coupon-list-->
@@ -232,6 +232,14 @@ export default {
     });
     });
   },
   },
   methods: {
   methods: {
+    // 选择商品
+    changeGoods() {
+      this.modals = true;
+      this.$refs.goodslist.formValidate.is_presale = 0;
+      this.$refs.goodslist.formValidate.is_virtual = 0;
+      this.$refs.goodslist.getList();
+      this.$refs.goodslist.goodsCategory();
+    }, 
     getCouponId(e) {
     getCouponId(e) {
       this.formValidate.coupon_id = e.id;
       this.formValidate.coupon_id = e.id;
       this.formValidate.coupon_title = e.coupon_title;
       this.formValidate.coupon_title = e.coupon_title;

+ 1 - 0
template/admin/src/pages/marketing/storeBargain/create.vue

@@ -955,6 +955,7 @@ export default {
     changeGoods() {
     changeGoods() {
       this.modals = true;
       this.modals = true;
       this.$refs.goodslist.formValidate.is_presale = 0;
       this.$refs.goodslist.formValidate.is_presale = 0;
+      this.$refs.goodslist.formValidate.is_virtual = 0;
       this.$refs.goodslist.getList();
       this.$refs.goodslist.getList();
       this.$refs.goodslist.goodsCategory();
       this.$refs.goodslist.goodsCategory();
     },
     },

+ 1 - 0
template/admin/src/pages/marketing/storeCombination/create.vue

@@ -949,6 +949,7 @@ export default {
     changeGoods() {
     changeGoods() {
       this.modals = true;
       this.modals = true;
       this.$refs.goodslist.formValidate.is_presale = 0;
       this.$refs.goodslist.formValidate.is_presale = 0;
+      this.$refs.goodslist.formValidate.is_virtual = 0;
       this.$refs.goodslist.getList();
       this.$refs.goodslist.getList();
       this.$refs.goodslist.goodsCategory();
       this.$refs.goodslist.goodsCategory();
     },
     },

+ 1 - 0
template/admin/src/pages/marketing/storeIntegral/create.vue

@@ -699,6 +699,7 @@ export default {
     changeGoods() {
     changeGoods() {
       this.modals = true;
       this.modals = true;
       this.$refs.goodslist.formValidate.is_presale = 0;
       this.$refs.goodslist.formValidate.is_presale = 0;
+      this.$refs.goodslist.formValidate.is_virtual = 0;
       this.$refs.goodslist.getList();
       this.$refs.goodslist.getList();
       this.$refs.goodslist.goodsCategory();
       this.$refs.goodslist.goodsCategory();
     }, // 移动
     }, // 移动

+ 1 - 0
template/admin/src/pages/marketing/storeSeckill/create.vue

@@ -875,6 +875,7 @@ export default {
     changeGoods() {
     changeGoods() {
       this.modals = true;
       this.modals = true;
       this.$refs.goodslist.formValidate.is_presale = 0;
       this.$refs.goodslist.formValidate.is_presale = 0;
+      this.$refs.goodslist.formValidate.is_virtual = 0;
       this.$refs.goodslist.getList();
       this.$refs.goodslist.getList();
       this.$refs.goodslist.goodsCategory();
       this.$refs.goodslist.goodsCategory();
     }, // 移动
     }, // 移动