ソースを参照

1. 加入入网认证

MONSTER-ygh 1 年間 前
コミット
547df26316
2 ファイル変更57 行追加3 行削除
  1. 29 2
      pages/index/index.vue
  2. 28 1
      pages/me/index.vue

+ 29 - 2
pages/index/index.vue

@@ -9,7 +9,7 @@
 				:is-left="false"
 				:customNavbarInfo='{}'>
 					<view slot="right">
-						<image @click="getRetailQrcode()" style="width: 44rpx;height: 44rpx;" :src="fengxiang" mode=""></image>
+						<image v-if="isShowQrcode" @click="getRetailQrcode()" style="width: 44rpx;height: 44rpx;" :src="fengxiang" mode=""></image>
 					</view>
 				</customNavbar>
 				<u-search 
@@ -60,6 +60,19 @@
 		</view>
 		<!-- 我的分享码  -->
 		<customPromotionCode ref="customPromotionCode" />
+		<!-- 入网认证  -->
+		<u-modal 
+		:show="show" 
+		:title="title1" 
+		:content='content'
+		cancelText='取消'
+		confirmText='去认证'
+		showCancelButton
+		confirmColor='#ED0000'
+		@confirm='networkConfirm'
+		@cancel='networkCancel'
+		@close='networkCancel'
+		></u-modal>
 	</view>
 </template>
 
@@ -74,7 +87,13 @@
 				loading: false,
 				statusBarHeight: 0, // 状态栏安全距离
 				retailIndex: [], // 剧目列表
-				fengxiang: this.$commonConfig.staticUrl+'index/fengxiang.png'
+				fengxiang: this.$commonConfig.staticUrl+'index/fengxiang.png',
+				
+				// 入网认证
+				isShowQrcode: false, // 是否展示 推广码
+				show: true,
+				title1:'入网提示',
+				content:'你还未进行银联支付入网签约认证,请先完成签约认证!',
 			}
 		},
 		onLoad() {
@@ -187,6 +206,14 @@
 					console.error("e===",e)
 				}
 			},
+			
+			/** 入网认证  */
+			networkConfirm() {
+				this.show = false
+			},
+			networkCancel() {
+				this.show = false
+			},
 		}
 	}
 </script>

+ 28 - 1
pages/me/index.vue

@@ -32,7 +32,7 @@
 				v-for="(item,index) in tool"
 				:key="index"
 				@click="navigateToFun(item)"
-				v-if="(withdrawInfo.allowWithdraw == 1 && item.title=='余额提现')||item.title!='余额提现'"
+				v-if="(withdrawInfo.allowWithdraw == 1 && item.title=='余额提现')||item.title=='邀请统计'||(isShowQrcode && item.title=='我的推广码')"
 				>
 					<image 
 					class="me-tool-item-icon"
@@ -54,6 +54,19 @@
 		</view>
 		<!-- 我的分享码  -->
 		<customPromotionCode ref="customPromotionCode" />
+		<!-- 入网认证  -->
+		<u-modal 
+		:show="show" 
+		:title="title1" 
+		:content='content'
+		cancelText='取消'
+		confirmText='去认证'
+		showCancelButton
+		confirmColor='#ED0000'
+		@confirm='networkConfirm'
+		@cancel='networkCancel'
+		@close='networkCancel'
+		></u-modal>
 	</view>
 </template>
 
@@ -73,6 +86,12 @@
 				],
 				userInfo: {},
 				withdrawInfo: {},
+				
+				// 入网认证
+				isShowQrcode: false, // 是否展示 推广码
+				show: true,
+				title1:'入网提示',
+				content:'你还未进行银联支付入网签约认证,请先完成签约认证!',
 			}
 		},
 	
@@ -231,6 +250,14 @@
 				});
 				//window.history.replaceState(null, null, document.URL); // 保留此行代码
 			},
+			
+			/** 入网认证  */
+			networkConfirm() {
+				this.show = false
+			},
+			networkCancel() {
+				this.show = false
+			},
 		}
 	}
 </script>