Procházet zdrojové kódy

评论关闭配置

xhj před 2 roky
rodič
revize
1815f385e6

+ 14 - 5
card/evaluate/evaluate.vue

@@ -20,10 +20,10 @@
 				</view>
 			</view>
 		</view>
-		<view class="det">
+		<view class="det" v-if="config.IS_SHOW_COMMENT_CARD==1 || config.IS_UPLOAD_IMG_EVALUATE_CARD==1">
 			<view class="tits ddflex">我的评价<text>{{evaluateText.length}}/300</text></view>
-			<textarea v-model="evaluateText" maxlength="300" placeholder="评价描述" placeholder-class="placeholder" class="texts"></textarea>
-			<view class="imgbox dflex">
+			<textarea v-if="config.IS_SHOW_COMMENT_CARD==1" v-model="evaluateText" maxlength="300" placeholder="评价描述" placeholder-class="placeholder" class="texts"></textarea>
+			<view class="imgbox dflex" v-if="config.IS_UPLOAD_IMG_EVALUATE_CARD==1">
 				<view class="imgs" v-for="(item,index) in picList" :key="index">
 					<image :src="item" mode="aspectFill" class="img" @click="preview(picList,index)"></image>
 					<image src="../../static/pages/images/close3.png" class="clear" @click="delPic(index)"></image>
@@ -56,15 +56,24 @@ export default {
 			musicScore: 0,
 			evaluateText: '',
 			picList: [],
-			bindType: ''
+			bindType: '',
+			config:{}
 		};
 	},
 
 	onLoad(options) {
 		this.id = options.id;
+		this.getAbout()
 	},
 
 	methods: {
+		getAbout() {
+			var _this = this;
+		
+			req.getRequest('/api/other/config', {}, function(res) {
+				_this.config = res;
+			});
+		},
 		addRecordScores(index) {
 			this.recordScore = (parseInt(index) + 1)*2;
 		},
@@ -135,7 +144,7 @@ export default {
 			if(!form.bindId) return req.msg('id不能为空')
 			if(!form.specialityScore) return req.msg('请进行专业评分')
 			if(!form.serveScore) return req.msg('请进行服务评分')
-			if(!form.content) return req.msg('请填写评价描述')
+			if(!form.content&&this.config.IS_SHOW_COMMENT_CARD==1) return req.msg('请填写评价描述')
 			
 			req.postRequest('/api/evaluate/save', form, () => {
 				req.msg('评价成功', () => {

+ 18 - 5
components/service-contact/index.vue

@@ -23,6 +23,7 @@
 <script>
 	const app = getApp();
 	const req = require("../../utils/request.js");
+	const QQMapWX = require("../../utils/qqmap.js");
 
 	export default {
 		data() {
@@ -41,26 +42,38 @@
 
 		mounted() {
 			this.userInfo = req.getStorage('userInfo')
-			this.getRecommendCard()
+			QQMapWX.initMap();
+			req.getLocation(res => {
+				const to = {
+					latitude: res.latitude,
+					longitude: res.longitude
+				};
+				this.getRecommendCard(to)
+			});
 		},
 
 		methods: {
 			// 获取推荐销售
-			getRecommendCard() {
+			getRecommendCard(loction) {
+				let params = loction
 				if(this.userId){
-					req.getRequest('/api/user/userInfoById', {userId:this.userId}, res => {
+					params.userId = this.userId
+					req.getRequest('/api/user/userInfoById', params, res => {
 						if(res.visitingCardDTO){
 							this.recommendCard = res.visitingCardDTO
 							this.loading = false
 						}else{
-							req.getRequest('/api/visiting/card/recommendCardInfo', {shareSaleNo:req.getStorage("shareId")?req.getStorage("shareId"):null}, res => {
+							params.shareSaleNo = req.getStorage("shareId")?req.getStorage("shareId"):null
+							delete params.userId
+							req.getRequest('/api/visiting/card/recommendCardInfo', params, res => {
 								this.recommendCard = res
 								this.loading = false
 							})
 						}
 					})
 				}else{
-					req.getRequest('/api/visiting/card/recommendCardInfo', {shareSaleNo:req.getStorage("shareId")?req.getStorage("shareId"):null}, res => {
+					params.shareSaleNo = req.getStorage("shareId")?req.getStorage("shareId"):null
+					req.getRequest('/api/visiting/card/recommendCardInfo', params, res => {
 						this.recommendCard = res
 						this.loading = false
 					})

+ 108 - 7
mine/help/help.css

@@ -1,8 +1,109 @@
 /* mine/help/help.wxss */
-page{padding-bottom: 120rpx;}
-.tit{padding: 20rpx 30rpx;font-size: 24rpx;color: #999;}
-.list{background: #fff;padding: 0 30rpx;}
-.list .li{border-bottom: 2rpx solid #f7f7f7;line-height: 98rpx;padding-right: .25rpx;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;font-size: 26rpx;color: #333;position: relative;}
-.list .li:last-child{border-bottom: none;}
-.rico{width: 14rpx;height: 24rpx;position: absolute;top: 50%;transform: translateY(-50%);right: 0;}
-.zixun{background: var(--mina);height: 100rpx !important;line-height: 100rpx !important;font-size: 36rpx;color: #fff;text-align: center;position: fixed;left: 0;bottom: 0;right: 0;}
+page {
+	padding-bottom: 120rpx;
+}
+
+.tit {
+	padding: 20rpx 30rpx;
+	font-size: 24rpx;
+	color: #999;
+}
+
+.list {
+	background: #fff;
+	padding: 0 30rpx;
+}
+
+.list .li {
+	border-bottom: 2rpx solid #f7f7f7;
+	line-height: 98rpx;
+	padding-right: .25rpx;
+	text-overflow: ellipsis;
+	white-space: nowrap;
+	overflow: hidden;
+	font-size: 26rpx;
+	color: #333;
+	position: relative;
+}
+
+.list .li:last-child {
+	border-bottom: none;
+}
+
+.rico {
+	width: 14rpx;
+	height: 24rpx;
+	position: absolute;
+	top: 50%;
+	transform: translateY(-50%);
+	right: 0;
+}
+
+
+.zixun-btn{
+	position: fixed;
+	left: 0;
+	bottom: 0;
+	right: 0;
+	height: 100rpx !important;
+	line-height: 100rpx !important;
+}
+.zixun {
+	background: var(--mina);
+	height: 100rpx !important;
+	line-height: 100rpx !important;
+	font-size: 36rpx;
+	color: #fff;
+	text-align: center;
+}
+.gfqw{
+	border-left: 2rpx solid #fff;
+	height: 100rpx !important;
+    line-height: 100rpx !important;
+    font-size: 36rpx;
+	text-align: center;
+	background: var(--mina);
+	color: #fff;
+}
+
+
+/* 邀请码弹窗 */
+.ceng2{position: fixed;top: 0;left: 0;right: 0;bottom: 0;background-color: rgba(0,0,0,.5);z-index: 99;}
+.code-pop{
+	position: fixed;
+	top:50%;
+	left:50%;
+	transform: translate(-50%,-50%);
+	width: 574rpx;
+	background: #FFFFFF;
+	border-radius: 20rpx 20rpx 20rpx 20rpx;
+	z-index: 100;
+}
+.code-text{
+	line-height: 41rpx;
+	color: #151515;
+	font-size: 28rpx;
+	margin: 51rpx 47rpx 50rpx;
+	text-align: center;
+}
+.code-content image{
+	width: 365rpx;
+	height: 365rpx;
+	margin: 50rpx auto 30rpx;
+}
+.code-btn{
+	padding: 25rpx;
+	text-align: center;
+	font-size: 28rpx;
+	color: #2A82FD;
+	border-top: 1px solid #E9E9E9;
+}
+
+.pop-scroll{
+	max-height: 750rpx;
+	overflow: scroll;
+	padding: 30rpx;
+}
+.pop-scroll::-webkit-scrollbar {
+	display: none;
+}

+ 32 - 4
mine/help/help.vue

@@ -8,7 +8,26 @@
 		  </block>
 		</view>
 		<!-- <button class="zixun" open-type="contact">咨询客服</button> -->
-		<contact-button class-name="zixun" button-text="咨询客服"></contact-button>
+		<view class="ddflex zixun-btn">
+			<view class="fflex">
+				<contact-button class-name="zixun" button-text="咨询客服"></contact-button>
+			</view>
+			<view class="fflex gfqw" v-if="config.WECOM_CODE" @click="isShowCodePop = true">添加官方企微</view>
+		</view>
+		
+		
+		<view class="ceng2" v-if="isShowCodePop" @click="isShowCodePop = false" @touchmove.stop.prevent="()=>{}">
+		</view>
+		<view :class="'code-pop ' +(config.greyTheme==1?'grayTheme':'')" v-if="isShowCodePop">
+			<view class="code-content">
+				<image :src="config.WECOM_CODE"
+					show-menu-by-longpress="true"></image>
+				<view style="text-align: center;font-size: 24rpx;color: #999;margin-bottom: 50rpx;">长按识别微信二维码</view>
+			</view>
+			<view class="code-btn" @click="isShowCodePop = false">
+				取消
+			</view>
+		</view>
 	</view>
 </template>
 
@@ -25,7 +44,9 @@
 					limit: 15
 				},
 				pageList: [],
-				isLoad: true
+				isLoad: true,
+				config:{},
+				isShowCodePop:false
 			};
 		},
 
@@ -38,7 +59,7 @@
 			if (options.scene) {
 				this.scene = options.scene;
 			}
-
+			this.getAbout()
 			// await this.loadCodeParams();
 		},
 		onReachBottom() {
@@ -63,7 +84,14 @@
 					});
 				});
 			},
-
+			getAbout() {
+				var _this = this;
+			
+				req.getRequest('/api/other/config', {}, function(res) {
+					_this.config = res;
+				});
+			},
+			
 			getData() {
 				// req.getRequest('/api/help/center', {}, data => {
 				// 	if (data) {

+ 5 - 2
office/detail/detail.vue

@@ -202,10 +202,13 @@
 			</view>
 		</view>
 		<view class="bot ddflex" v-if="!isShowReply">
-			<view class="c-ipt fflex ddflex" @click="showReply()">
+			<view class="c-ipt fflex ddflex" @click="showReply()" v-if="config.IS_SHOW_COMMENT_HUATI==1">
 				<image src="../static/images/pl_ico.png"></image>
 				<view class="ipt">说点什么吧</view>
 			</view>
+			<view class="fflex ddflex" v-else>
+				
+			</view>
 			<!-- <view class="bot-btn" @click="submitFabulous(5)">
 				<image :src="'../static/images/' + (detail.isCollection == 1 ? 'collect_h' : 'collect') + '.png'"></image>
 				<view>收藏</view>
@@ -215,7 +218,7 @@
 				<view>点赞</view>
 				<text class="num">{{ detail.count.fabulousCount < 99 ? detail.count.fabulousCount : '99+' }}</text>
 			</view>
-			<view class="bot-btn" @click="showReply()">
+			<view class="bot-btn" @click="config.IS_SHOW_COMMENT_HUATI==1?showReply():''">
 				<image src="../static/images/comment.png"></image>
 				<view>评论</view>
 				<text class="num">{{ detail.count.commentCount < 99 ? detail.count.commentCount : '99+' }}</text>

+ 10 - 1
pages/user/user.vue

@@ -167,7 +167,7 @@
 					</view>
 			
 					<view class="box mlist">
-						<view class="li ddflex">
+						<view class="li ddflex" v-if="!config.INTELLIGENT_CUSTOMER_SERVICE">
 							<view class="fflex">
 								<contact-button class-name="ddflex" img-url="/static/images/lxkf.png"
 									img-style='width: 49rpx;height: 49rpx;margin: 0 25rpx 0 0;' button-text="联系客服"
@@ -175,6 +175,11 @@
 							</view>
 							<image src="../../static/pages/images/more.png" class="rico"></image>
 						</view>
+						<navigator class="li ddflex" @click="toKf()" hover-class="none" v-else>
+							<image src="/static/images/lxkf.png" class="mico" mode="aspectFit"></image>
+							<view class="fflex">智能客服</view>
+							<image src="../../static/pages/images/more.png" class="rico"></image>
+						</navigator>
 						<navigator class="li ddflex" url="/mine/help/help" hover-class="none">
 							<image src="/static/images/bzzx.png" class="mico" mode="aspectFit"></image>
 							<view class="fflex">帮助中心</view>
@@ -522,6 +527,10 @@
 				}else{
 					this.jumpUrl('card/create/create')
 				}
+			},
+			// 智能客服
+			toKf(){
+				this.jumpUrl('pages/web/web?url='+encodeURIComponent(this.config.INTELLIGENT_CUSTOMER_SERVICE));
 			}
 		},
 		created() {

+ 1 - 1
topic/content/content.vue

@@ -17,7 +17,7 @@
 				</view>
 			</view>
 			<view style="font-size: 24rpx;color: #999999;line-height: 36rpx;padding: 0 30rpx;">
-				本文仅代表作者观点,版权归原创者所有,如需转载请在文中注明来源及作者名字
+				部分素材来源:中国人寿寿险app、国寿e店、云助理等
 			</view>
 			<view class="operate dflex">
 				<view class="zan dflex">

+ 1 - 1
topics/detail/detail.vue

@@ -151,7 +151,7 @@
 			<image :src="picUrlss + 'empty_jl.png'"></image>
 			<text>暂无动态</text>
 		</view>
-		<view class="create" @click="createJump('/office/news/news?topicId=' + topicId)">
+		<view class="create" v-if="config.is_show_create_btn == 1" @click="createJump('/office/news/news?topicId=' + topicId)">
 			<image style="display: block;" src="../../static/images/create.png"></image>
 			发帖
 		</view>