Commit b16a4a44 by liwk

commit

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