zhoujump 2 週間 前
コミット
6110a66a64

ファイルの差分が大きいため隠しています
+ 1 - 1
src/permission.js


+ 5 - 1
src/views/exhibitorManage/exhibitorList.vue

@@ -110,6 +110,9 @@ export default Vue.extend({
     },
     add() {
       this.$router.push({ path: '/exhibitor/add' })
+    },
+    gotoShare(row) {
+      this.$router.push({ path: '/share&utm/share?id=' + row.id })
     }
   }
 })
@@ -186,12 +189,13 @@ export default Vue.extend({
         <el-table-column
           label="操作"
           fixed="right"
-          width="210"
+          width="260"
         >
           <template slot-scope="scope">
             <expo-popover placement="left" trigger="click" :expo-id="''+scope.row.id">
               <span v-permission="'exhibitor.handelView'" class="button">预览</span>
             </expo-popover>
+            <span v-permission="'exhibitor.handelShare'" @click="gotoShare(scope.row)" class="button">分享</span>
             <span v-permission="'exhibitor.handelEdit'" :class="['button',scope.row.form_count?'disable':'']" @click="edit(scope.row)">编辑</span>
             <span v-permission="'exhibitor.handelCopy'" class="button" @click="copy(scope.row)">复制</span>
             <span v-permission="'exhibitor.handelDisable'" class="button" @click="setStatus(scope.row)">{{ scope.row.status?'启用':'禁用' }}</span>

+ 1 - 1
src/views/preRegManage/list.vue

@@ -204,7 +204,7 @@ export default Vue.extend({
           width="220"
         >
           <template slot-scope="scope">
-            <span v-permission="'preReg.handelEdit'" class="button" @click="bindToExp(scope.row)">绑定</span>
+            <span v-permission="'preReg.handelBind'" class="button" @click="bindToExp(scope.row)">绑定</span>
             <span v-permission="'preReg.handelEdit'" :class="['button',scope.row.is_use?'disable':'']" @click="edit(scope.row)">编辑</span>
             <span v-permission="'preReg.handelCopy'" class="button" @click="copy(scope.row)">复制</span>
             <span v-permission="'preReg.handelDisable'" class="button" @click="setStatus(scope.row)">{{ scope.row.status?'启用':'禁用' }}</span>

+ 21 - 15
src/views/shareUtm/share.vue

@@ -25,8 +25,15 @@ export default Vue.extend({
   },
   mounted() {
     this.getExpoList()
+    this.init()
   },
   methods: {
+    init() {
+      if (this.$route.query.id) {
+        this.expoId = this.$route.query.id - 0
+        this.getExpo()
+      }
+    },
     getExpoList() {
       getExpoList(1, 1000).then(res => {
         this.expoList = res.data.data
@@ -43,7 +50,7 @@ export default Vue.extend({
         title: this.currentExpo.expo_name,
         sub_title: '请编辑副标题',
         phone: this.currentExpo.contact_phone || '请编辑电话',
-        address: this.currentExpo.location || '请编辑地址',
+        address: this.currentExpo.location || '请编辑地址'
       }
     },
     getExpo() {
@@ -94,13 +101,13 @@ export default Vue.extend({
         <el-option v-for="item in expoList" :value="item.id" :label="item.expo_name" />
       </el-select>
       <div class="sub-title">分享方式</div>
-      <el-radio-group class="radio-list" v-model="shareType">
-        <el-radio border label="link" >网页链接</el-radio>
-        <el-radio border label="qrcode" >二维码图片</el-radio>
-<!--        <el-radio border label="social_media" >社交媒体/社交软件</el-radio>-->
-        <el-radio border label="post_image" >生成海报图片</el-radio>
-        <el-radio border label="wechat_insert" >微信公众平台嵌入</el-radio>
-        <el-radio border label="code_insert" >网页代码嵌入</el-radio>
+      <el-radio-group v-model="shareType" class="radio-list">
+        <el-radio border label="link">网页链接</el-radio>
+        <el-radio border label="qrcode">二维码图片</el-radio>
+        <!--        <el-radio border label="social_media" >社交媒体/社交软件</el-radio>-->
+        <el-radio border label="post_image">生成海报图片</el-radio>
+        <el-radio border label="wechat_insert">微信公众平台嵌入</el-radio>
+        <el-radio border label="code_insert">网页代码嵌入</el-radio>
       </el-radio-group>
     </div>
     <div class="share-view">
@@ -128,17 +135,16 @@ export default Vue.extend({
           <el-button size="small" icon="el-icon-download" round @click="downloadQrImage">下载图片</el-button>
         </div>
       </div>
-      <div v-if="shareType==='social_media' && expoId" class="social-share">
-      </div>
+      <div v-if="shareType==='social_media' && expoId" class="social-share" />
       <div v-if="shareType==='post_image' && expoId" class="post-share">
         <div class="post-inner">
           <div class="post-temp blue-temp-1">
-            <div class="title">{{renderData.sub_title}}</div>
-            <div class="sub-title">{{renderData.title}}</div>
-            <div class="phone"></div>
-            <div class="address"></div>
+            <div class="title">{{ renderData.sub_title }}</div>
+            <div class="sub-title">{{ renderData.title }}</div>
+            <div class="phone" />
+            <div class="address" />
           </div>
-          <div class="border-box"></div>
+          <div class="border-box" />
         </div>
       </div>
     </div>