Commit 88b9e790 by caoyanzhi

Merge branch 'feature/3.0节前需求-短信打开小程序'

parents 5c564311 ddeb3ba9
......@@ -104,9 +104,9 @@
<template v-if="transferLink.type != 2">
<el-input-number v-model="transferLink.dayNum" :min="getMin" :max="getMax" controls-position="right" style="width: 90px"></el-input-number>
<span class="transfer-link-uint"></span>
<span class="transfer-link-tip">{{ transferLink.type == 0 ? `不能大于${getMax}天` : `大于${getMin - 1}天` }}</span>
<span class="transfer-link-tip">{{ transferLink.type == 0 ? `不能大于${getMax}天` : `大于${getMin - 1}且小于等于${getMax}` }}</span>
</template>
<p class="transfer-link-tip">长期有效链接(>31天,包含永久有效链接)每个小程序只支持十万,建议商品详情/礼品详情等非永久页面生成短期有效链接(≤31天)。</p>
<p class="transfer-link-tip">长期有效链接(>31且≤365,包含永久有效链接)每个小程序只支持十万,建议商品详情/礼品详情等非永久页面生成短期有效链接(≤31天)。</p>
</el-form-item>
</el-form>
<template slot="footer">
......@@ -194,7 +194,15 @@ export default {
return this.transferLink.type == 0 ? 1 : 32;
},
getMax() {
return this.transferLink.type == 0 ? 31 : Infinity;
let max = 31;
if (this.transferLink.type == 0) {
max = 31;
} else if (this.transferLink.type == 1) {
max = 365;
} else {
max = Infinity;
}
return max;
}
},
created() {
......@@ -279,9 +287,6 @@ export default {
this.loading = true;
const { type, dayNum } = this.transferLink;
const requestData = { type, dayNum, pageLink: JSON.stringify(this.selectLink.linkData) };
if (type == 2) {
delete requestData.dayNum;
}
getTransferLink(requestData, false, false, 'post')
.then(res => {
this.insertLink.link = res.result;
......
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