Commit 39d649bb by 无尘

fix: 修改bug

parent a2358d47
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>分享有礼</title><link href=./static/css/app.a61b3099e91464f1f90afe9e00339237.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.03.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.29.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-card.2.0.14.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.38.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.91.js></script><script type=text/javascript src=./static/js/manifest.2d795e60154b4991f74d.js></script><script type=text/javascript src=./static/js/vendor.8455def81090347f10ce.js></script><script type=text/javascript src=./static/js/app.5fbfb5f1d78dd1e2f6e4.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>分享有礼</title><link href=./static/css/app.5c29fee94ec0311cf4148bfc0a41f8ee.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.03.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.29.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-card.2.0.14.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.38.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.91.js></script><script type=text/javascript src=./static/js/manifest.f8aef1058fc06405c785.js></script><script type=text/javascript src=./static/js/vendor.8455def81090347f10ce.js></script><script type=text/javascript src=./static/js/app.5fbfb5f1d78dd1e2f6e4.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,i,u,d=0,s=[];d<r.length;d++)i=r[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)u=o(o.s=a[d]);return u};var r={},t={15:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"acd984b18aa7925b3036",1:"cd8911fae63b93bb26df",2:"9336d0f03b2903186067",3:"9052654534b3cf1e2617",4:"4e4a73089e411fcc4956",5:"cf18de8ec97605087978",6:"a7f8a076881c826bf057",7:"d2ca391d27760dce0507",8:"6278b7fbcae037415120",9:"b3295d4914390befbf99",10:"df35ee9de62c50cdc6eb",11:"d0725b11939656aef083",12:"7213ac9b1784cc20392d"}[e]+".js";var f=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,i,u,d=0,s=[];d<r.length;d++)i=r[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)u=o(o.s=a[d]);return u};var r={},t={15:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"acd984b18aa7925b3036",1:"cd8911fae63b93bb26df",2:"89fb871e93406857b217",3:"9052654534b3cf1e2617",4:"4e4a73089e411fcc4956",5:"cf18de8ec97605087978",6:"a7f8a076881c826bf057",7:"d2ca391d27760dce0507",8:"6278b7fbcae037415120",9:"b3295d4914390befbf99",10:"df35ee9de62c50cdc6eb",11:"d0725b11939656aef083",12:"7213ac9b1784cc20392d"}[e]+".js";var f=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -54,6 +54,7 @@ import cardConfig from '@/components/active-config/card-config.vue';
:limitRate="'5/4'"
:limitFlag="3"
v-model="activeInfoData.playBillUrl"
@returnName="returnName"
> </single-upload>
</el-form-item>
<el-form-item class="m-t-50">
......@@ -102,7 +103,9 @@ export default {
return {
activeInfoData: {
appletTitle: '',
playBillUrl: ''
playBillUrl: '',
fileName: '',
},
rules: {
appletTitle: [{ required: true, message: '请输入页面标题', trigger: 'blur' }],
......@@ -112,6 +115,13 @@ export default {
},
methods: {
/**
* 返回文件名
*/
returnName(name) {
const that = this;
that.activeInfoData.fileName= name;
},
/**
* 上一步
*/
submitBack() {
......@@ -142,7 +152,8 @@ export default {
let para = {
activityId: that.activeInfoData.activityId,
playBillUrl: that.activeInfoData.playBillUrl,
appletTitle: that.activeInfoData.appletTitle
appletTitle: that.activeInfoData.appletTitle,
fileName: !!that.activeInfoData.fileName? that.activeInfoData.fileName: ''
};
postRequest('/sharing-core-web/edit-activity-applet', para)
.then(res => {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-11-20 13:44:22
* @LastEditors: 无尘
* @LastEditTime: 2019-12-12 10:07:03
* @LastEditTime: 2019-12-18 19:10:14
-->
<!--
单个上传组件
......@@ -14,6 +14,7 @@
:limitFlag="limitFlag"
:width="width"
:height="height"
@returnName="returnName"
v-model="imgsrc">
</single-upload>
import singleUpload from '@/components/single-upload.vue';
......@@ -131,6 +132,7 @@ export default {
const that = this;
if (res.errorCode == 1) {
that.$emit('input', res.result.url);
that.$emit('returnName', res.result.name);
} else {
errMsg.errorMsg(res);
}
......@@ -164,7 +166,7 @@ export default {
that.$message.error(`图片宽度必须≥${that.width}px,宽高比≤${that.limitRate}!`);
reject();
}
console.log(width/height > 5/4)
// console.log(width/height > 5/4)
if (that.limitFlag == 3 && (width < that.width || width/height > 5/4) ){
that.$message.error(`图片宽度必须≥${that.width}px,宽高比≤5/4!`);
reject();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment