xiongchao il y a 3 ans
Parent
commit
9150a17a5a
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 3 0
      src/components/custom/ImgCode.vue
  2. 1 1
      src/views/sb/info/modules/Detail.vue

+ 3 - 0
src/components/custom/ImgCode.vue

@@ -12,7 +12,9 @@
       <img
         v-show="codeFlag"
         ref="imgCode"
+        style="cursor:pointer"
         src="@/assets/logo_2.png"
+        @click="getCode"
         :width="width"
         :height="height"
       />
@@ -74,6 +76,7 @@ export default {
       saveCode({ type: this.type, codeId: this.codeId }).then(result => {
         console.log(1111, result)
         this.imageIsExist(result.data).then(res => {
+          this.$message.info('二维码已经重新生成')
           if (res) {
             this.$refs.imgCode.src = result.data
             this.showFlag = true

+ 1 - 1
src/views/sb/info/modules/Detail.vue

@@ -32,7 +32,7 @@
                   <img :src="BaseTool.Constant.FILE_URL + item.url" width="200px" height="200px"/>
                 </detail-list-item>-->
         <detail-list-item>
-          <img-code :src="model.qrCode" :code-id="model.id" :width="200"></img-code>
+          <img-code :src="model.qrCode" title="点击重新生成二维码" :code-id="model.id" :width="200"></img-code>
         </detail-list-item>
       </detail-list>