diff --git a/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue b/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue index 1ef63149..3bbb589f 100644 --- a/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue +++ b/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue @@ -106,11 +106,12 @@ - + {{ row.status === '0' ? '上架' : '下架' }} 删除 + 复制链接 @@ -266,6 +267,19 @@ }) }, + copy (url) { + let oInput = document.createElement('input') + oInput.value = url + document.body.appendChild(oInput) + oInput.select() + document.execCommand('Copy') + this.$message({ + message: '已复制', + type: 'success' + }) + oInput.remove() + }, + changeStatus (status, index) { this.$set(this.form.goodsList[index], 'status', status === '0' ? '1' : '0') },