|
@@ -32,7 +32,7 @@
|
|
|
</el-upload>
|
|
|
|
|
|
</div>
|
|
|
-
|
|
|
+ <input type="text" id="releaseUrl" v-model="releaseUrl" style="height:0px;border: 0;">
|
|
|
</div>
|
|
|
<div class="qrcode-title">渠道二维码
|
|
|
<div class="qrcode-copy" @click="copy">
|
|
@@ -58,14 +58,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import appConst from "../util/appConst";
|
|
|
import editorApi from "../api/editor";
|
|
|
import * as http from "../util/http";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
shareImg: this.shareModel.shareImg,
|
|
|
- releaseUrl:
|
|
|
- "http://192.168.4.249:8080/#/preview?mgid=" + this.shareModel.id
|
|
|
+ releaseUrl: appConst.DIAOYANBAO_PATH + this.shareModel.id
|
|
|
};
|
|
|
},
|
|
|
props: {
|
|
@@ -75,14 +75,6 @@ export default {
|
|
|
},
|
|
|
shareModel: ""
|
|
|
},
|
|
|
- watch: {
|
|
|
- shareModel(val) {
|
|
|
- console.log("shareModel", this.shareModel);
|
|
|
- this.shareImg = val.shareImg;
|
|
|
- this.releaseUrl =
|
|
|
- "http://192.168.4.249:8080/#/preview?mgid=" + this.shareModel.id;
|
|
|
- }
|
|
|
- },
|
|
|
methods: {
|
|
|
async uploadFile(file) {
|
|
|
console.log("上传", file);
|
|
@@ -105,6 +97,8 @@ export default {
|
|
|
console.log("失败");
|
|
|
},
|
|
|
copy() {
|
|
|
+ document.querySelector("#releaseUrl").select();
|
|
|
+ document.execCommand("copy");
|
|
|
this.$message.success("复制成功");
|
|
|
},
|
|
|
closeBtn() {
|