|
|
|
@ -53,7 +53,7 @@ |
|
|
|
<view class="footer flex bg-white fixed"> |
|
|
|
|
|
|
|
<template> |
|
|
|
<view class="right-buy br60 white m-r-20 m-l-10 md" @tap="showSpecFun(2)">{{ btnText.red }}</view> |
|
|
|
<view class="right-buy br60 white m-r-20 m-l-10 md" @click="doFun()" >{{ btnText.red }}</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
</view> |
|
|
|
@ -176,6 +176,37 @@ team_min_price |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...mapActions([ 'wxShare']), |
|
|
|
doFun(){ |
|
|
|
console.log(1111) |
|
|
|
const { |
|
|
|
goodsType, |
|
|
|
isLogin |
|
|
|
} = this |
|
|
|
if (!isLogin) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/login/login' |
|
|
|
}); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
//免费下载 |
|
|
|
if(goodsType == 0){ |
|
|
|
uni.downloadFile({ |
|
|
|
url: this.goodsDetail.path, //仅为示例,并非真实的资源 |
|
|
|
success: (res) => { |
|
|
|
if (res.statusCode === 200) { |
|
|
|
console.log('下载成功'); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}else if(goodsType == 1){ //vip会员开通页面 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/user/vip' |
|
|
|
}); |
|
|
|
}else if(goodsType == 2){ //下单购买页面 |
|
|
|
console.log('购买页') |
|
|
|
} |
|
|
|
}, |
|
|
|
changeActive(index) { |
|
|
|
this.isTouchStart = false |
|
|
|
|
|
|
|
|