guo 3 years ago
parent
commit
47dc3b87fb

+ 26 - 29
operatingCompany/pages.json

@@ -1,20 +1,7 @@
 {
 	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
 
-		{
-			"path": "pages/shop/shopIndex/index",
-			"style": {
-				"navigationBarTitleText": "运营陪伴",
-				"navigationStyle": "custom",
-				"enablePullDownRefresh": true
-				/* "navigationBarBackgroundColor": "#FFFFFF",*/
-				/* "app-plus":{
-					"titleNView":{
-						"autoBackButton":false
-					}
-				} */
-			}
-		},
+		
 		{
 			"path": "pages/index/index",
 			"style": {
@@ -100,20 +87,20 @@
 				"enablePullDownRefresh": true
 			}
 		},
-		// {
-		// 	"path": "pages/shop/shopIndex/index",
-		// 	"style": {
-		// 		"navigationBarTitleText": "运营陪伴",
-		// 		"navigationStyle": "custom",
-		// 		"enablePullDownRefresh": true
-		// 		/* "navigationBarBackgroundColor": "#FFFFFF",*/
-		// 		/* "app-plus":{
-		// 			"titleNView":{
-		// 				"autoBackButton":false
-		// 			}
-		// 		} */
-		// 	}
-		// },
+		{
+			"path": "pages/shop/shopIndex/index",
+			"style": {
+				"navigationBarTitleText": "运营陪伴",
+				"navigationStyle": "custom",
+				"enablePullDownRefresh": true
+				/* "navigationBarBackgroundColor": "#FFFFFF",*/
+				/* "app-plus":{
+					"titleNView":{
+						"autoBackButton":false
+					}
+				} */
+			}
+		},
 		{
 			"path": "pages/shop/shopIndex/reviews",
 			"style": {
@@ -182,7 +169,17 @@
 		}
 
 
-	],
+	    ,{
+            "path" : "pages/shop/shopIndex/reviewsContent",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "点评",
+				"navigationBarBackgroundColor": "#FFFFFF",
+                "enablePullDownRefresh": false
+            }
+            
+        }
+    ],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
 		"navigationBarTitleText": "uni-app",

+ 3 - 4
operatingCompany/pages/shop/shopIndex/reviews.vue

@@ -59,8 +59,7 @@
 			
 						<!-- 星星 -->
 						
-						<!-- <uni-rate :value="3" color="#EEEEEE" active-color="#FF4F00"  :size="32" :readonly="true" /> -->
-						
+						<uni-rate v-model ="item.UserEvaStar" :max="5" color="#EEEEEE" active-color="#FF4F00"  :size="16" :margin="4" :readonly="true" />
 						
 							
 					</view>
@@ -107,7 +106,7 @@
 				shopData: [],
 				page: 1,
 				noMoreShow: false,
-				rateValue:2,
+				
 				
 			}
 		},
@@ -120,7 +119,7 @@
 			
 			goAppraise(item){
 				uni.navigateTo({
-					url:'reportDetail?id='+item.ID
+					url:'reviewsContent?sheetID='+item.ID
 				})
 			},
 			

+ 128 - 0
operatingCompany/pages/shop/shopIndex/reviewsContent.vue

@@ -0,0 +1,128 @@
+<template>
+	<view class="content">
+	
+		
+		<view class="competeCont">
+			<view class="competeContTitle">对运营经理的服务评价</view>
+			<view class="xxBox">
+				<uni-rate  v-model="xx" :max="5" color="#EEEEEE" active-color="#FF4F00"  :size="24" :margin="22"  @change="onXXChange"/>
+			</view>
+
+			<view>
+				<textarea placeholder-style="color:#CCCCCC" placeholder="请填写十字以上的评价内容~" v-model="userEvaContent" class="textareaCont"/>
+			</view>
+			<view class="submitBox">
+				<view class="submit" @click="submit">提交</view>
+			</view>
+			
+			
+		</view>
+	</view>
+</template>
+
+<script>
+	
+	export default {
+		
+		data() {
+			return {
+				sheetID:'',
+				userEvaContent:'',
+				userEvaStar:0,
+				xx:0,
+			}
+		},
+		onLoad(opt) {
+		  this.sheetID=opt.sheetID
+		  
+		},
+		onShow() {
+				
+		},
+		methods: {
+		   
+			onXXChange(e){
+				console.log(e)
+				this.userEvaStar=e.value
+			},
+			submit(){
+				
+				uni.showLoading({ });
+				
+				this.$http('accompany/SuperCheckSheet/userEva', {
+					sheetID:this.sheetID,
+					userEvaStar:this.userEvaStar,
+					userEvaContent:this.userEvaContent
+				}, 'POST').then(res => {
+				    //this.submitSuperCheckSheet()
+					uni.showToast({
+					    title: '提交成功',
+						icon:'none',
+					    duration: 2000,
+					});
+					uni.navigateBack({
+						
+					})
+				})
+			}
+			
+		}
+	}
+</script>
+
+<style scoped>
+	.content {
+		background: #F4F5F7;
+		min-height: 100vh;
+		
+	}
+
+	/* #ifdef H5 */
+	.content {
+		background: #F4F5F7;
+	
+	}
+
+	/* #endif */
+	
+	.competeCont{
+		margin-top: 20rpx;
+		background: #FFFFFF;
+		padding: 20rpx 24rpx;
+	}
+	.competeContTitle{
+		font-size: 30rpx;
+		color: #3C3C3C;
+		text-align: center;
+	}
+	.textareaCont{
+		width: 662rpx;
+		height: 200rpx;
+		background: #F4F5F7;
+		border-radius: 10rpx;
+		padding: 20rpx;
+		margin-top: 20rpx;
+		font-size: 28rpx;
+	}
+	.submit{
+		width: 420rpx;
+		height: 74rpx;
+		background: #FF4F00;
+		border-radius: 50rpx;
+		line-height: 74rpx;
+		text-align: center;
+		font-size: 30rpx;
+		color: #FFFFFF;
+	}
+	.submitBox{
+		display: flex;
+		justify-content: center;
+		padding-top: 40rpx;
+	}
+	.xxBox{
+		display: flex;
+		justify-content: center;
+		padding-top: 20rpx;
+		padding-bottom: 20rpx;
+	}
+</style>

BIN
operatingCompany/static/img/report_icon_star_def@2x.png


BIN
operatingCompany/static/img/report_icon_star_per@2x.png