Browse Source

1、AR发行配置

huangmp 7 months ago
parent
commit
5343877bb0

+ 3 - 2
src/views/modules/ar/arIssueConfig/video-config.vue

@@ -80,6 +80,7 @@
         prodId: null,
         videoList: [],
         resourcesUrl: process.env.VUE_APP_RESOURCES_URL,
+        shopId: this.$store.state.user.shopId,
         dataForm:{
           issueId: null,
           assetsType: null,
@@ -156,7 +157,7 @@
         this.$http({
           url: this.$http.adornUrl('/ar/arAssets/listByName'),
           method: 'get',
-          params: this.$http.adornParams({assetsName: assetsName})
+          params: this.$http.adornParams({shopId: this.shopId, assetsName: assetsName})
         }).then(({data}) => {
           this.assetsList = data
         })
@@ -165,7 +166,7 @@
         this.$http({
           url: this.$http.adornUrl('/ar/arAssets/listByName'),
           method: 'get',
-          params: this.$http.adornParams({issueId: this.dataForm.issueId, assetsId: assetsId})
+          params: this.$http.adornParams({shopId: this.shopId, issueId: this.dataForm.issueId, assetsId: assetsId})
         }).then(({data}) => {
           this.assetsList = data
         })

+ 3 - 0
src/views/modules/ar/arIssuePic/add-or-update.vue

@@ -253,6 +253,9 @@ export default {
       }
       try{
         if(this.dataForm.frontList.length > 0){
+          this.dataForm.frontList.forEach((item) => {
+            item.path = item.path.split('?')[0]
+          })
           this.dataForm.frontUrl = this.dataForm.frontList.join(",");
         }
         if(this.dataForm.backList.length > 0){