Commit ce26168c by 杨明

fixed

1 parent fe9fd311
......@@ -36,7 +36,7 @@
<div class="service-tab">
<div class="tab-item" :class="{ active: serviceIndex == item.type }" v-for="(item, index) in serviceTabList" :key="index" @click="serviceIndex = item.type">{{ item.label }}</div>
<div class="tab-border" :style="{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"></div>
<div class="service-tip">(仅支持引用无限库存卷)</div>
<div class="service-tip">(仅支持引用无限库存券)</div>
<div class="tab-right">
<div class="refresh-btn" @click="getList">
<i class="el-icon-refresh-right"></i>
......@@ -129,7 +129,6 @@ export default {
},
watch: {
subscribe(val) {
console.log(val, 999999)
if (val) this.getGiftList(val)
},
// 'editForm.activityPrice'(newValue, oldValue) {
......@@ -174,7 +173,7 @@ export default {
if (this.routerInfo.addOrEdit == 'edit') {
this.handleSaveGift()
}
}, 1000)
}, 0)
this.getList()
})
......@@ -581,6 +580,7 @@ export default {
this.setProcess({
1: false
})
if (this.routerInfo.addOrEdit == 'edit') this.SET_STEP(3)
}
}
</script>
......
......@@ -13,7 +13,7 @@
<phoneView ref="viewForm"></phoneView>
</div>
<GLDialog class="qr-dialog" title="活动链接" mode="mid" :hasFooter="false" :before-close="handleClose" :visible.sync="isQrcodeVisible" @onOk="handleCancelConfirm">
<div class="qrcode-body-link">
<div class="qrcode-body-link" v-loading="loadingCode">
<div class="flex">
<div class="link-item" v-for="(item, index) in linkCode" :key="index">
<div class="link-item-l">
......@@ -40,7 +40,7 @@ import { mapState, mapMutations } from 'vuex'
import phoneView from './PhoneView'
import draw from '@/mixins/draw'
import marketing from '@/mixins/marketing'
import { downloadIamge } from '@/common/constant'
export default {
mixins: [draw, marketing],
components: {
......@@ -49,6 +49,7 @@ export default {
data() {
return {
isQrcodeVisible: false,
loadingCode: false,
linkCode: [
{ title: '活动二维码', name: 'qrCodeUrl' },
{ title: '注册二维码', name: 'staffLoginQrCodeUrl' }
......@@ -98,12 +99,30 @@ export default {
init() {
this.SET_INIT(true)
},
downloadIamge(url) {
downloadIamge(url)
},
handleSaveTxt(txt) {
this.$message({
message: '复制成功',
type: 'success',
customClass: 'message-Z-zinde'
})
const input = document.createElement('input')
document.body.appendChild(input)
input.setAttribute('value', txt)
input.select()
document.execCommand('Copy')
document.body.removeChild(input)
},
getDetail(id) {
this.isQrcodeVisible = true
this.loadingCode = true
this.$apis.activity.getShared({ id }).then(res => {
if (res) {
this.linkInfo = res
}
this.loadingCode = false
})
},
handleClose() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!