瀏覽代碼

分享给店长

twt 3 年之前
父節點
當前提交
bdbc3340bb

+ 4 - 2
operatingCompany/pages/entryReport/entered.vue

@@ -77,6 +77,7 @@
 				type:'',
 				sheetID:'',
 				editType:'',
+				Contactor:'',
 			}
 		},
 		onShow() {
@@ -91,6 +92,7 @@
 		   this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
 		   this.userInfo=uni.getStorageSync("userInfo");
 		   this.ShopName=opt.ShopName;
+		   this.Contactor=opt.Contactor;
 		   this.type=opt.type;
 		   if(this.type){
 			   this.sheetID=opt.sheetID
@@ -234,7 +236,7 @@
 						this.sheetID=res.data;
 						this.editType=2;
 						uni.navigateTo({
-							url:'opinion?sheetID='+this.sheetID
+							url:'opinion?sheetID='+this.sheetID+'&shopName='+this.ShopName+'&Contactor='+this.Contactor
 						})
 					})
 				}
@@ -314,7 +316,7 @@
 					this.sheetID=res.data;
 					console.log(this.sheetID);
 					uni.navigateTo({
-						url:'opinion?sheetID='+this.sheetID+'&type='+this.type
+						url:'opinion?sheetID='+this.sheetID+'&type='+this.type+'&shopName='+this.ShopName+'&Contactor='+this.Contactor
 					})
 				})
 			},

+ 2 - 2
operatingCompany/pages/entryReport/entryReport.vue

@@ -211,7 +211,7 @@
 				this.$store.commit('mutationsCategoryList', '');
 				this.$store.commit('mutationssuggestList', '')
 				uni.navigateTo({
-					url: 'entered?shopId=' + item.shopId + '&ShopName=' + item.ShopName
+					url: 'entered?shopId=' + item.shopId + '&ShopName=' + item.ShopName+'&Contactor='+item.Contactor
 				})
 			},
 			searchDone(e) {
@@ -356,7 +356,7 @@
 
 	/* #ifdef H5 */
 	.topView {
-		top: 44px;
+		/* top: 44px; */
 	}
 
 	/* #endif */

+ 5 - 1
operatingCompany/pages/entryReport/opinion.vue

@@ -56,11 +56,15 @@
 					}
 				],
 				sheetID:'',
+				shopName:'',
+				Contactor:'',
 			}
 		},
 		onLoad(opt) {
           //页面加载初始化生命周期函数
 		  this.sheetID=opt.sheetID;
+		  this.Contactor=opt.Contactor;
+		  this.shopName=opt.shopName;
 		  if(opt.type==3){
 			  this.suggestList=this.$store.state.suggestList;
 			  this.addOp()
@@ -130,7 +134,7 @@
 					console.log(res.data)
 					if(res.data){
 						uni.navigateTo({
-							url:'shopEvaStar?id='+res.data
+							url:'shopEvaStar?id='+res.data+'&sheetID='+this.sheetID+'&shopName='+this.shopName+'&Contactor='+this.Contactor
 						})
 					}else{
 						uni.navigateBack({

+ 42 - 9
operatingCompany/pages/entryReport/shopEvaStar.vue

@@ -17,8 +17,11 @@
 			</view>
 			<view class="topCont">
 				<view class="topContBtn" @click="goHome">回到首页</view>
-				<view class="topContBtn">查看详情</view>
-				<view class="topContBtn dz" @click="clickDz">发给店长</view>
+				<view class="topContBtn" @click="goDetail">查看详情</view>
+				<button open-type="share" class="topContBtn dz">
+					发给店长
+				</button>
+				
 			</view>
 		</view>
 		
@@ -36,18 +39,18 @@
 			</view>
 		</view>
 		<!-- 弹框 -->
-		<view class="dzTk" v-if="dzShow" @click="dzShow">
+		<view class="dzTk" v-if="dzShow" @click="dzShow=false">
 			<view class="dztkBox">
 				<view class="dzTitle">发给店主</view>
 				<image src="../../static/img/gaunbi.png" mode="" class="dzGbImg" @click.stop="dzShow=false"></image>
-				<view class="dzShop">吉安娜汽修</view>
-				<view class="dziphone">联系人:安老师</view>
+				<view class="dzShop">{{shopName}}</view>
+				<view class="dziphone">联系人:{{Contactor}}</view>
 				<view class="dzCont">
-					<view class="dzLine" @click.stop="">
+					<view class="dzLine" @click.stop="message">
 						<image src="../../static/img/icon_duanxin@2x.png" mode="" class="dzlineImg"></image>
 						<view class="dzLineTxt">短信推送</view>
 					</view>
-					<view class="dzLine" @click.stop="dzShow=false">
+					<view class="dzLine" @click.stop="message">
 						<image src="../../static/img/icon_gongzhong@2x.png" mode="" class="dzlineImg"></image>
 						<view class="dzLineTxt">公众号推送</view>
 					</view>
@@ -73,10 +76,16 @@
 				userEvaStar:0,
 				xx:0,
 				dzShow:false,
+				shopName:'',
+				detailid:'',
+				Contactor:'',
 			}
 		},
 		onLoad(opt) {
-		  this.sheetID=opt.id
+		  this.sheetID=opt.id;
+		  this.detailid=opt.sheetID;
+		  this.Contactor=opt.Contactor;
+		  this.shopName=opt.shopName;
 		  this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
 		},
 		onShow() {
@@ -91,6 +100,21 @@
 			 	url:'entryReport'
 			 }) 
 		   },
+		   goDetail(){
+			   uni.navigateTo({
+			   	url:'../reportManage/reportDetail?id='+this.detailid
+			   })
+		   },
+		   share(){
+			   
+		   },
+		   message(){
+			   uni.showToast({
+			       title: '此功能暂未开放',
+			   	   icon:'none',
+			       duration: 2000,
+			   });
+		   },
 		   goHome(){
 			 uni.navigateTo({
 			 	url:'../index/index'
@@ -121,7 +145,14 @@
 				})
 			}
 			
-		}
+		},
+		onShareAppMessage(res) {
+		    console.log(res)
+		    return {
+		      title: '报告详情',
+		      path: '/pages/reportManage/reportDetail?id='+this.id
+		    }
+		 }
 	}
 </script>
 
@@ -162,6 +193,7 @@
 		font-size: 26rpx;
 		color: #999999;
 		text-align: center;
+		padding-top: 5rpx;
 	}
 	
 	.content {
@@ -231,6 +263,7 @@
 		text-align: center;
 		font-size: 28rpx;
 		color: #3C3C3C;
+		margin: 0;
 	}
 	.competeCont{
 		margin-top: 20rpx;