Commit b16a4a44 by liwk

commit

1 parent e573edaf
...@@ -65,9 +65,11 @@ export default { ...@@ -65,9 +65,11 @@ export default {
this.showToast('请长按海报保存') this.showToast('请长按海报保存')
}, },
share () { share () {
console.log(this)
let { currentItem, apiName, activityData } = this let { currentItem, apiName, activityData } = this
let flag = apiName != 'shopmallApi' let flag = apiName != 'shopmallApi'
// if (currentItem.userId) {
// } else {
window.$wx.shareAppMessage({ window.$wx.shareAppMessage({
imgUrl: flag ? currentItem.shareImgUrl : currentItem.goodsImage, imgUrl: flag ? currentItem.shareImgUrl : currentItem.goodsImage,
title: flag ? currentItem.name : currentItem.goodsName, title: flag ? currentItem.name : currentItem.goodsName,
...@@ -75,7 +77,7 @@ export default { ...@@ -75,7 +77,7 @@ export default {
}).then(res => { }).then(res => {
this.showToast('发送成功') this.showToast('发送成功')
}) })
// }
} }
} }
} }
......
...@@ -98,9 +98,9 @@ export default { ...@@ -98,9 +98,9 @@ export default {
onSelect ({ type, className }) { onSelect ({ type, className }) {
let { currentItem, apiName, activityData } = this let { currentItem, apiName, activityData } = this
switch (type) { switch (type) {
/**分享微信 */
case 1: case 1:
let { userId } = currentItem let { userId } = currentItem
/**卡券分享微信 */
if (apiName == 'couponApi' || apiName == 'boutiquecouponApi') { if (apiName == 'couponApi' || apiName == 'boutiquecouponApi') {
let { id, couponName } = currentItem let { id, couponName } = currentItem
const desc = '您的专属服务顾问为您发来了优惠券,请点击领取~' const desc = '您的专属服务顾问为您发来了优惠券,请点击领取~'
...@@ -142,10 +142,15 @@ export default { ...@@ -142,10 +142,15 @@ export default {
} }
this.cancel() this.cancel()
break; break;
/**分享海报 */
case 2: case 2:
if (className) return if (className) {
this.showToast('无对应内容')
return
}
this.showPoster = true this.showPoster = true
break; break;
/**复制 */
case 3: case 3:
let { id } = currentItem let { id } = currentItem
this.showLoading() this.showLoading()
......
...@@ -102,12 +102,12 @@ const actions = { ...@@ -102,12 +102,12 @@ const actions = {
} }
} else { } else {
/**没有账号 */ /**没有账号 */
window.location.href = `${url}common/nothing` // window.location.href = `${url}common/nothing`
} }
} else { } else {
/**账号过期 (暂时没有字段判断是否过期) */ /**账号过期 (暂时没有字段判断是否过期) */
Notify(message) Notify(message)
window.location.href = `${url}common/overdue` // window.location.href = `${url}common/overdue`
} }
}) })
} else { } else {
......
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
methods: { methods: {
getList_0 (pageNum) { getList_0 (pageNum) {
let { list } = this let { list } = this
boutiquecouponApi.getBoutiqueCouponList({ currentPage: pageNum }).then(res => { boutiquecouponApi.getBoutiqueCouponList({ pageNum }).then(res => {
console.log('精品礼券', res) console.log('精品礼券', res)
this.flag = true this.flag = true
this.list = list.concat(res.list) this.list = list.concat(res.list)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!