Browse Source

小程序统一无权限页

cxmo 1 year ago
parent
commit
44868d540a

+ 1 - 1
pages-question/answerDetail.vue

@@ -250,7 +250,7 @@
 				<view class="auth-text" v-if="noAuthInfo.type==='contact'">
 				{{noAuthInfo.name||''}}:<text @click="handleCallPhone(noAuthInfo.mobile+'')">{{noAuthInfo.mobile||''}}</text>
 				</view>
-				<view class="apply" @click="handleGoApply" v-else>立即申请</view>
+				<view class="global-btn-yellow-change btn" @click="handleGoApply" v-else>立即申请</view>
 			</view>
     </template>
 

+ 1 - 1
pages-question/answerList.vue

@@ -82,7 +82,7 @@
 				<view class="auth-text" v-if="noAuthInfo.type==='contact'">
 				{{noAuthInfo.name||''}}:<text @click="handleCallPhone(noAuthInfo.mobile+'')">{{noAuthInfo.mobile||''}}</text>
 				</view>
-				<view class="apply" @click="handleGoApply" v-else>立即申请</view>
+				<view class="global-btn-yellow-change btn" @click="handleGoApply" v-else>立即申请</view>
 			</view>
     </template>
     <!-- 弹窗 -->

+ 18 - 6
pages-report/chapterList.vue

@@ -58,12 +58,12 @@
                 <image class="img" src="https://hzstatic.hzinsights.com/static/icon/hzyb/activity_no_auth.png" mode="widthFix" />
                 <view class="apply-box" v-if="info.permission_check.type=='apply'">
                     <view>您暂无权限查看报告,若想查看请申请开通</view>
-                    <view class="btn" @click="handleGoApply">立即申请</view>
+                    <view class="global-btn-yellow-change btn" @click="handleGoApply">立即申请</view>
                 </view>
                 <view class="apply-box" v-else>
                     <view>您暂无权限查看报告 </view>
                     <view>若想查看请联系对口销售:{{info.permission_check.name}}</view>
-                    <view class="btn">立即联系</view>
+                    <view class="global-btn-yellow-change btn" @click="handleCall">立即联系</view>
                 </view>
             </view>
         </view>
@@ -137,6 +137,13 @@ export default {
 		uni.$off('chapterAudioSet')
 	},
     methods: {
+        handleCall(){
+            uni.makePhoneCall({
+                phoneNumber: this.info.permission_check.mobile,
+                success: (result) => {},
+                fail: (error) => {}
+            })
+        },
         // 关闭提示
         closeAttention(){
             if(this.info.report_info.classify_name_first=='晨报'||!this.info.auth_ok) return
@@ -578,14 +585,14 @@ export default {
         }
         .no-auth-box{
             text-align: center;
-            font-size: 32rpx;
-            color: #E3B377;
+            font-size: $global-font-size-lg;
+            /* color: #E3B377; */
             img{
                 width: 100%;
                 margin-bottom: 50rpx;
             }
             .btn{
-                width: 90%;
+                /* width: 90%;
                 margin-left: auto;
                 margin-right: auto;
                 line-height: 80rpx;
@@ -593,7 +600,12 @@ export default {
                 border-radius: 4rpx;
                 color: #fff;
                 margin-top: 100rpx;
-                display: block;
+                display: block; */
+                width: 380rpx;
+                line-height: 70rpx;
+                margin-left: auto;
+                margin-right: auto;
+                margin-top: 40rpx;
             }
         }
     }

+ 31 - 12
pages-sandTable/sandTable.vue

@@ -5,24 +5,23 @@
 		<block v-if="noAuthor ==1 && isFinished">
 			<view class="sandTable-noAuthor">
 				<block v-if="!applyer.hasApply">
-					<image :src="globalImgUrls.sandBoxNoAuthor" mode="aspectFit"></image>
-					<text style="margin-top: 48rpx;">您暂无权限查看沙盘推演</text>
-					<text style="margin-top: 20rpx;">若想查看可以申请开通</text>
-					<button @click="toApply">立即申请</button>
+					<image class="img" :src="globalImgUrls.activityNoAuth" mode="widthFix"></image>
+					<view style="margin-bottom:15px;">您暂无权限查看沙盘推演</view>
+					<view style="margin-bottom:15px">若想查看可以申请开通</view>
+					<view  class="global-btn-yellow-change btn" @click="toApply" style="margin-top:30px">立即申请</view>
 				</block>
 				<block v-else>
-					<image class="img-wait" :src="globalImgUrls.chartWait" mode="widthFix" 
-					style="width: 186rpx;margin-top: 200rpx;width: 186rpx;margin-bottom: 50rpx;"></image>
-					<text style="margin-bottom:15px">您已提交申请</text>
-					<text>请等待销售人员与您联系</text>
+					<image class="img-wait" :src="globalImgUrls.chartWait" mode="widthFix" ></image>
+					<view style="margin-bottom:15px">您已提交申请</view>
+					<view>请等待销售人员与您联系</view>
 				</block>
 			</view>
 		</block>
 		<block v-if="noAuthor ==2 && isFinished">
 			<view class="sandTable-noAuthor">
-				<image :src="globalImgUrls.sandBoxNoAuthor" mode="aspectFit"></image>
-				<text style="margin-top: 48rpx;">您暂无权限查看沙盘推演</text>
-				<text style="margin: 20rpx 0 6rpx 0;">若想查看请联系对口销售</text>
+				<image class="img" :src="globalImgUrls.activityNoAuth" mode="widthFix"></image>
+				<view style="margin-bottom:15px;">您暂无权限查看沙盘推演</view>
+				<view style="margin-bottom:15px">若想查看可以申请开通</view>
 				<view>
 					<text>{{salesData.name}}:</text><text class="sales-mobile" @click="callToSales">{{salesData.phone}}</text>
 				</view>
@@ -553,7 +552,7 @@
 		padding-bottom: 0;
 		// 无权限
 		.sandTable-noAuthor{
-			display: flex;
+			/* display: flex;
 			flex-direction: column;
 			align-items: center;
 			height: 100vh;
@@ -566,6 +565,26 @@
 				font-weight: 400;
 				font-size: 28rpx;
 				color: #999999;
+			} */
+			background-color: #fff;
+			padding: 34rpx;
+			text-align: center;
+			font-size: $global-font-size-lg;
+			.img{
+				width: 100%;
+				margin-bottom: 50rpx;
+			}
+			.img-wait{
+				margin-top: 200rpx;
+				width: 186rpx;
+				margin-bottom: 50rpx;
+			}
+			.btn{
+				width: 380rpx;
+				line-height: 70rpx;
+				margin-left: auto;
+				margin-right: auto;
+				margin-top: 40rpx;
 			}
 			.sales-mobile{
 				color: #E3B377;

+ 1 - 1
pages/question/question.vue

@@ -121,7 +121,7 @@
 				<view class="auth-text" v-if="noAuthInfo.type==='contact'">
 				{{noAuthInfo.name||''}}:<text @click="handleCallPhone(noAuthInfo.mobile+'')">{{noAuthInfo.mobile||''}}</text>
 				</view>
-				<view class="apply" @click="handleGoApply" v-else>立即申请</view>
+				<view class="global-btn-yellow-change btn" @click="handleGoApply" v-else>立即申请</view>
 			</view>
 		</template>
 		<!-- 弹窗 -->

+ 13 - 1
style/common.scss

@@ -179,14 +179,26 @@ view{
     display: flex;
     flex-direction: column;
     align-items: center;
+    font-size: $global-font-size-lg;
     .auth-text{
-        color:#999999;
+        /* color:#999999; */
         text-align: center;
         text{
             margin-left: 15rpx;
             color:#E6B77D;
         }
     }
+    .img{
+        width: 100%;
+        margin-bottom: 50rpx;
+    }
+    .btn{
+        width: 380rpx;
+        line-height: 70rpx;
+        margin-left: auto;
+        margin-right: auto;
+        margin-top: 40rpx;
+    }
     .apply{
         margin-top: 40rpx;
         width:390rpx;