define({ name: "imageLink", template: `
仅支持与自营商品使用相同前端详情页的商品,部分独立详情页商品不支持该功能
选择链接 选择小程序链接
`, style: ` .el - scrollbar__wrap { overflow: scroll; width: 100 %; height: 103 %; } . el - upload-- picture - card { display: none; } . el - upload-- picture { display: none; } . help - block { font - size : 12 px; } . help - block - detail { white - space : pre - wrap; display: flex; flex - direction : column; } . location { display:flex; justify - content : flex - end; } . gutter { text - align : center; } . flex - col { display:flex; margin - top : 5 px; } . el - input - group__append, . el - input - group__prepend { padding: 0 10 px; } `, props: { form: { type: Object, default() { return {} } } }, data() { return { dialogVisible: false, plugin_goods: {}, chooseMiniLink: '', pro: false, show: false,//是否开启公众号弹窗 chooseLink: '', } }, mounted() { if (this.form.plugin_goods) { this.plugin_goods = this.form.plugin_goods; // this.$set(this.store_goods, "time_arr", [this.store_goods.start_time * 1000, this.store_goods.end_time * 1000]); // this.$set(this.store_goods, "expire_time", this.store_goods.expire_time * 1000); } }, methods: { parHref(child, confirm) { this.show = confirm; // this.form.link=child; this.plugin_goods[this.chooseLink] = child; }, //弹窗显示与隐藏的控制 changeLink(item) { this.show = item; }, showLink(name,type) { if (type === 'mini') { this.chooseMiniLink = name; this.pro = true; } else { this.chooseLink = name; this.show = true; } }, parpro(child, confirm) { this.pro = confirm; this.plugin_goods[this.chooseMiniLink] = child; }, changeprogram(item) { this.pro = item; }, pick(obj, arr) { arr.reduce((iter, val) => (val in obj && (iter[val] = obj[val]), iter), {}); }, validate() { var plugin_goods = Object.assign({}, this.plugin_goods); return { 'plugin_goods': plugin_goods, } }, }, })