Explorar o código

认证通上正式

yuwenjun1997 %!s(int64=2) %!d(string=hai) anos
pai
achega
aee8741f79

+ 4 - 3
.env.development

@@ -2,12 +2,13 @@
 EVN = 'development'
 
 # 网站地址
-LOCALHOSE = 'https://zp-b.caimei365.com'
-# LOCALHOSE = 'http://192.168.2.92:8888'
+# LOCALHOSE = 'https://zp-b.caimei365.com'
+LOCALHOSE = 'http://192.168.2.92:8888'
 
 # 接口api地址
-BASE_URL = 'https://zplma-b.caimei365.com'
+# BASE_URL = 'https://zplma-b.caimei365.com'
 # BASE_URL = 'http://192.168.2.68:8012'
+BASE_URL = 'http://192.168.2.67:8012'
 
 # 静态资源文件地址
 STATIC_URL = 'https://static.caimei365.com/www/authentic'

+ 5 - 0
apis/index.js

@@ -137,6 +137,10 @@ export default ($axios) => {
   // 查询授权商品列表
   const fetchDetialBySnCode = (params = {}) =>
     $axios.get('/wx/auth/product/info', { params })
+  
+  // 查询授权商品列表
+  const fetchDocsList = (params = {}) =>
+    $axios.get('/wx/data/path/file', { params })  
 
   return {
     customLogin,
@@ -181,5 +185,6 @@ export default ($axios) => {
     fetchProductDetails,
     assistantBaidu,
     fetchDetialBySnCode,
+    fetchDocsList
   }
 }

BIN=BIN
assets/theme-images/common/h5-icon-download.png


BIN=BIN
assets/theme-images/common/pc-icon-download-hover.png


BIN=BIN
assets/theme-images/common/pc-icon-download.png


+ 1 - 1
layouts/app-ross.vue

@@ -125,7 +125,7 @@ export default {
         {
           id: 2,
           name: '产品资料',
-          path: '/database/article',
+          path: '/docs/10',
           icon: 'icon-doc',
         },
         {

+ 4 - 4
pages/_template/ldm/approve/club/index.vue

@@ -14,7 +14,7 @@
           <input
             type="text"
             placeholder="搜索店铺"
-            v-model="listQuery.authParty"
+            v-model="listQuery.clubName"
             @keyup.enter="onSearch"
           />
         </div>
@@ -38,9 +38,9 @@
             :key="item.authId"
             @click="toDetail(item)"
           >
-            <img class="cover" :src="item.logo || drawLogo(item.authParty)" />
+            <img class="cover" :src="item.logo || drawLogo(item.clubName)" />
             <div class="info">
-              <div class="name" v-text="item.authParty"></div>
+              <div class="name" v-text="item.clubName"></div>
               <div class="line"></div>
               <div class="mobile">{{ item.mobile || '暂无' }}</div>
               <div class="address">
@@ -76,7 +76,7 @@ export default {
       listQuery: {
         authUserId: '',
         lngAndLat: '',
-        authParty: '',
+        clubName: '',
         provinceId: '',
         cityId: '',
         townId: '',

+ 0 - 1
pages/_template/ross/form/components/form-club-device.vue

@@ -342,7 +342,6 @@ export default {
         obj.productName = formItem.productName
         obj.snCode = formItem.snCode
         obj.infoId = formItem.infoId
-        obj.relationId = formItem.relationId
         obj.productId = formItem.productId
         obj.source = 2
         obj.productTypeId = formItem.productTypeId

+ 1 - 1
pages/_template/ross/record/device/edit.vue

@@ -57,7 +57,7 @@ export default {
         await this.$http.api.authProducSave(this.formData)
         this.$toast('保存成功')
         this.$router.push(
-          `${this.routePrefix}/record/device/detail?id=${this.productId}&relationId=${this.relationId}`
+          `${this.routePrefix}/record/device/detail?id=${this.productId}`
         )
       } catch (error) {
         console.log(error)

+ 9 - 0
plugins/vue-filters.js

@@ -6,4 +6,13 @@ const dateFormat = (value) => {
   return formatDate(new Date(value), 'yyyy-MM-dd')
 }
 
+const fileSize = (size) => {
+  size = Math.round(size / 1024)
+  if (size < 1024) return size + 'KB'
+  size = Math.round(size / 1024)
+  if (size < 1024) return size + 'MB'
+  return Math.round(size / 1024) + 'GB'
+}
+
 Vue.filter('dateFormat', dateFormat)
+Vue.filter('fileSize', fileSize)