|
@@ -8,7 +8,7 @@
|
|
|
<view class="item" v-for="(item, idx) in dataInfo.categoryList" :key="idx"
|
|
|
:style="`color: ${color2}; background-color: ${color6};`">{{item.categoryName}}</view>
|
|
|
</view>
|
|
|
- <view class="shareBtn" :style="`background-color: ${color1};`" @click="toShareCard(dataInfo)">
|
|
|
+ <view class="shareBtn" :style="`background-color: ${color1};`" @click="toShareCard(2)">
|
|
|
<image class="icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_share.png" mode="aspectFit"></image>
|
|
|
<text>分享项目</text>
|
|
|
</view>
|
|
@@ -34,13 +34,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="sectionD">
|
|
|
+ <view class="sectionD" >
|
|
|
<image class="icon" src="https://dm.static.elab-plus.com/yezhu/icon_hongbao.png" mode="aspectFit"></image>
|
|
|
<view class="midSection">
|
|
|
<view class="name">邀请好友注册</view>
|
|
|
<view class="value">完成邀请,可获得¥{{dataInfo.registAmount}}/人</view>
|
|
|
</view>
|
|
|
- <view class="invitationBtn">邀请好友</view>
|
|
|
+ <view class="invitationBtn" @click="toShareCard(1)">邀请好友</view>
|
|
|
</view>
|
|
|
|
|
|
<backHome></backHome>
|
|
@@ -217,11 +217,16 @@
|
|
|
return parseFloat(val / 10000).toFixed(2) + '万'
|
|
|
},
|
|
|
|
|
|
- toShareCard(item,type=2){
|
|
|
- uni.navigateTo({
|
|
|
- url:'../shareCardPage/shareCardPage?page='+item.xcxPage+"&projectId="+item.projectId+"&type="+type
|
|
|
- })
|
|
|
- },
|
|
|
+ toShareCard(type){
|
|
|
+ if(getApp().globalData.userId){
|
|
|
+ let href = location.origin+location.pathname;
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../shareCardPage/shareCardPage?page='+href+"&projectId="+this.projectId+"&type="+type
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.$emit('unLogin')
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
backAction() {
|
|
|
uni.navigateBack({
|