张文飞 3 years ago
parent
commit
13ee2e9591
3 changed files with 62 additions and 4 deletions
  1. 9 0
      pages.json
  2. 9 4
      pages/homePage/homePage.vue
  3. 44 0
      pages/shareCardPage/shareCardPage.vue

+ 9 - 0
pages.json

@@ -74,6 +74,15 @@
 			    "enablePullDownRefresh": false
 			}
 		}
+        ,{
+            "path" : "pages/shareCardPage/shareCardPage",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",

+ 9 - 4
pages/homePage/homePage.vue

@@ -83,7 +83,7 @@
 			</view>
 			<view class="content_tuiguang">
 				<view class="content_tuiguang_city">
-					<text class="city_num">{{userInfo.taskCount}}个</text>
+					<text class="city_num">{{userInfo.taskCount||0}}个</text>
 					<text class="city_num_desc">推广任务</text>
 					<view class="city_list">
 						<text class="city_name">城市</text>
@@ -93,7 +93,7 @@
 
 				</view>
 				<view class="content_tuiguang_money">
-					<text class="money_num">¥{{userInfo.surplusTaskAmount}}</text>
+					<text class="money_num">¥{{userInfo.surplusTaskAmount||0}}</text>
 					<text class="money_num_des">剩余任务金额</text>
 					<view class="money_list">
 						<text class="money_name">类型</text>
@@ -142,7 +142,7 @@
 						</view>
 						<text class="house_desc">{{item.shareRemark}}</text>
 					</view>
-					<view class="item_share">
+					<view class="item_share" @click="toShareCard">
 						<image class="icon_share" src="https://dm.static.elab-plus.com/yezhu/icon_small_share.png"
 							mode=""></image>
 						<text class="icon_text">分享</text>
@@ -285,7 +285,7 @@
 				})
 				if (ret.data.success) {
 				   let single = ret.data.single||null;//:0待审核1通过2拒绝
-					if(single){
+					if(single.approvalStatus==0||single.approvalStatus==1){
 						uni.navigateTo({
 							url: '../certificationResultPage/certificationResultPage'
 						})
@@ -307,6 +307,11 @@
 					this.clickCount--;
 				}
 			},
+			toShareCard(){
+				uni.navigateTo({
+					url:'../shareCardPage/shareCardPage'
+				})
+			}
 		},
 		components: {
 			levelView

+ 44 - 0
pages/shareCardPage/shareCardPage.vue

@@ -0,0 +1,44 @@
+<template>
+	<view>
+		<image class="shareCard" :src="shareUrl" mode=""></image>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				shareUrl:"",
+			};
+		},
+		created() {
+			this.getShareCard();
+		},
+		methods:{
+			async  getShareCard(){
+				let ret = await this.$myRequest({
+					url: "/share/shareCard",
+					data: {
+						"head": "",
+						"name": "",
+						"page": "",
+						"parmas": "",
+						"projectId": "",
+						"projectImage": "",
+						"taskId": 0
+					}
+				})
+				if (ret.data.success) {
+					 
+				}
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+.shareCard{
+	width: 490rpx;
+	height: 872rpx;
+}
+</style>