浏览代码

feature:增加授权的web界面

zeng.chen 13 小时之前
父节点
当前提交
d7f3f0b7c0
共有 4 个文件被更改,包括 158 次插入0 次删除
  1. 137 0
      pages/pageB/authWeb/authWeb.js
  2. 5 0
      pages/pageB/authWeb/authWeb.json
  3. 3 0
      pages/pageB/authWeb/authWeb.wxml
  4. 13 0
      pages/pageB/authWeb/authWeb.wxss

文件差异内容过多而无法显示
+ 137 - 0
pages/pageB/authWeb/authWeb.js


+ 5 - 0
pages/pageB/authWeb/authWeb.json

@@ -0,0 +1,5 @@
+{
+  "usingComponents": {
+    "nav-bar": "./../../../components/navbar/navbar"
+  }
+}

+ 3 - 0
pages/pageB/authWeb/authWeb.wxml

@@ -0,0 +1,3 @@
+<!-- pages/testQQ/testQQ.wxml -->
+<nav-bar bind:goBack="_goBack" nav-bgc-class="ex-nav-bgc-class" nav-title-class="ex-nav-title-class" ex-back-pre="ex-back-pre" bind:tap="callback" navbar-data='{{nvabarData}}'></nav-bar>
+<web-view id='webView' class="content" src="{{qrcodeUrl}}" bindmessage="webChannel"></web-view>

+ 13 - 0
pages/pageB/authWeb/authWeb.wxss

@@ -0,0 +1,13 @@
+/* pages/testQQ/testQQ.wxss */
+web-view {
+	margin-top: 10%;
+	width: 100%;
+	height: 90%;
+}
+
+.btn {
+	margin-top: 0;
+	width: 100%;
+	height: 10%;
+	color: red;
+}