Commit ce26168c by 杨明

fixed

1 parent fe9fd311
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<div class="service-tab"> <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-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="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="tab-right">
<div class="refresh-btn" @click="getList"> <div class="refresh-btn" @click="getList">
<i class="el-icon-refresh-right"></i> <i class="el-icon-refresh-right"></i>
...@@ -129,7 +129,6 @@ export default { ...@@ -129,7 +129,6 @@ export default {
}, },
watch: { watch: {
subscribe(val) { subscribe(val) {
console.log(val, 999999)
if (val) this.getGiftList(val) if (val) this.getGiftList(val)
}, },
// 'editForm.activityPrice'(newValue, oldValue) { // 'editForm.activityPrice'(newValue, oldValue) {
...@@ -174,7 +173,7 @@ export default { ...@@ -174,7 +173,7 @@ export default {
if (this.routerInfo.addOrEdit == 'edit') { if (this.routerInfo.addOrEdit == 'edit') {
this.handleSaveGift() this.handleSaveGift()
} }
}, 1000) }, 0)
this.getList() this.getList()
}) })
...@@ -581,6 +580,7 @@ export default { ...@@ -581,6 +580,7 @@ export default {
this.setProcess({ this.setProcess({
1: false 1: false
}) })
if (this.routerInfo.addOrEdit == 'edit') this.SET_STEP(3)
} }
} }
</script> </script>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<phoneView ref="viewForm"></phoneView> <phoneView ref="viewForm"></phoneView>
</div> </div>
<GLDialog class="qr-dialog" title="活动链接" mode="mid" :hasFooter="false" :before-close="handleClose" :visible.sync="isQrcodeVisible" @onOk="handleCancelConfirm"> <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="flex">
<div class="link-item" v-for="(item, index) in linkCode" :key="index"> <div class="link-item" v-for="(item, index) in linkCode" :key="index">
<div class="link-item-l"> <div class="link-item-l">
...@@ -40,7 +40,7 @@ import { mapState, mapMutations } from 'vuex' ...@@ -40,7 +40,7 @@ import { mapState, mapMutations } from 'vuex'
import phoneView from './PhoneView' import phoneView from './PhoneView'
import draw from '@/mixins/draw' import draw from '@/mixins/draw'
import marketing from '@/mixins/marketing' import marketing from '@/mixins/marketing'
import { downloadIamge } from '@/common/constant'
export default { export default {
mixins: [draw, marketing], mixins: [draw, marketing],
components: { components: {
...@@ -49,6 +49,7 @@ export default { ...@@ -49,6 +49,7 @@ export default {
data() { data() {
return { return {
isQrcodeVisible: false, isQrcodeVisible: false,
loadingCode: false,
linkCode: [ linkCode: [
{ title: '活动二维码', name: 'qrCodeUrl' }, { title: '活动二维码', name: 'qrCodeUrl' },
{ title: '注册二维码', name: 'staffLoginQrCodeUrl' } { title: '注册二维码', name: 'staffLoginQrCodeUrl' }
...@@ -98,12 +99,30 @@ export default { ...@@ -98,12 +99,30 @@ export default {
init() { init() {
this.SET_INIT(true) 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) { getDetail(id) {
this.isQrcodeVisible = true this.isQrcodeVisible = true
this.loadingCode = true
this.$apis.activity.getShared({ id }).then(res => { this.$apis.activity.getShared({ id }).then(res => {
if (res) { if (res) {
this.linkInfo = res this.linkInfo = res
} }
this.loadingCode = false
}) })
}, },
handleClose() { handleClose() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!