Parcourir la source

修改tdesign版本

elis il y a 2 ans
Parent
commit
b3a5a4fdd4

+ 3 - 0
.gitignore

@@ -43,3 +43,6 @@ nbdist/
 !*/build/*.html
 !*/build/*.xml
 nngkxxdp/src/main/resources/static/naqwzsjtj/naqwzsjtj/node_modules
+nngkxxdp/src/main/resources/static/nnzwminiapp/miniprogram_npm
+nngkxxdp/src/main/resources/static/nnzwminiapp/node_modules
+nngkxxdp/src/main/resources/static/nnzwminiapp/project.config.json

+ 3 - 2
nngkxxdp/src/main/resources/static/nnzwminiapp/app.json

@@ -1,5 +1,7 @@
 {
 	"pages": [
+		"pages/ZCWDK/index/index",
+    	"pages/ZCWDK/add/add",
 		"pages/nais/nais",
 		"pages/index/index",
 		"pages/dataCenterZWTJ/dataCenterZWTJ",
@@ -15,7 +17,7 @@
 		"pages/publics/publics",
 		"pages/dataCenter/dataCenter",
 		"pages/dataCenterXXTJ/dataCenterXXTJ",
-		"pages/ZCWDK/index/index",
+		
 		"pages/ZCWDK/info/info",
 		"pages/yxnaJfq/yxnaJfq",
 		"pages/yxnaJfh/yxnaJfh",
@@ -28,7 +30,6 @@
 		"navigationBarTitleText": "Weixin",
 		"navigationBarTextStyle": "black"
 	},
-	
 	"tabBar": {
 		"custom": true,
 		"color": "#999",

+ 7 - 7
nngkxxdp/src/main/resources/static/nnzwminiapp/package-lock.json

@@ -5,7 +5,7 @@
   "packages": {
     "": {
       "dependencies": {
-        "tdesign-miniprogram": "^0.22.0-beta.0"
+        "tdesign-miniprogram": "^0.21.2"
       }
     },
     "node_modules/dayjs": {
@@ -14,9 +14,9 @@
       "integrity": "sha512-CAdX5Q3YW3Gclyo5Vpqkgpj8fSdLQcRuzfX6mC6Phy0nfJ0eGYOeS7m4mt2plDWLAtA4TqTakvbboHvUxfe4iA=="
     },
     "node_modules/tdesign-miniprogram": {
-      "version": "0.22.0-beta.0",
-      "resolved": "https://registry.npmjs.org/tdesign-miniprogram/-/tdesign-miniprogram-0.22.0-beta.0.tgz",
-      "integrity": "sha512-pKge05XA6yVaaAC5okhHW9C3ZLpwrd9Ye/P2VnGec5Sd41v5s8xCFM3kCBVTJtmM2Dhy0BJSd0CVpXUly1yuXQ==",
+      "version": "0.21.2",
+      "resolved": "https://registry.npmjs.org/tdesign-miniprogram/-/tdesign-miniprogram-0.21.2.tgz",
+      "integrity": "sha512-kvP1hVg9K871epciw8nht5DZcQqTFxmQ5czSwLm7kLXqBYAnq7vF5cj+gbE1/6FYS6c7ENaDvVY+lr2Wnl90ag==",
       "dependencies": {
         "dayjs": "^1.10.7"
       }
@@ -29,9 +29,9 @@
       "integrity": "sha512-CAdX5Q3YW3Gclyo5Vpqkgpj8fSdLQcRuzfX6mC6Phy0nfJ0eGYOeS7m4mt2plDWLAtA4TqTakvbboHvUxfe4iA=="
     },
     "tdesign-miniprogram": {
-      "version": "0.22.0-beta.0",
-      "resolved": "https://registry.npmjs.org/tdesign-miniprogram/-/tdesign-miniprogram-0.22.0-beta.0.tgz",
-      "integrity": "sha512-pKge05XA6yVaaAC5okhHW9C3ZLpwrd9Ye/P2VnGec5Sd41v5s8xCFM3kCBVTJtmM2Dhy0BJSd0CVpXUly1yuXQ==",
+      "version": "0.21.2",
+      "resolved": "https://registry.npmjs.org/tdesign-miniprogram/-/tdesign-miniprogram-0.21.2.tgz",
+      "integrity": "sha512-kvP1hVg9K871epciw8nht5DZcQqTFxmQ5czSwLm7kLXqBYAnq7vF5cj+gbE1/6FYS6c7ENaDvVY+lr2Wnl90ag==",
       "requires": {
         "dayjs": "^1.10.7"
       }

+ 1 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/package.json

@@ -1,5 +1,5 @@
 {
   "dependencies": {
-    "tdesign-miniprogram": "^0.22.0-beta.0"
+    "tdesign-miniprogram": "^0.21.2"
   }
 }

+ 66 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/ZCWDK/add/add.js

@@ -0,0 +1,66 @@
+// pages/ZCWDK/add/add.js
+Page({
+
+	/**
+	 * 页面的初始数据
+	 */
+	data: {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面加载
+	 */
+	onLoad(options) {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面初次渲染完成
+	 */
+	onReady() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面显示
+	 */
+	onShow() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面隐藏
+	 */
+	onHide() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面卸载
+	 */
+	onUnload() {
+
+	},
+
+	/**
+	 * 页面相关事件处理函数--监听用户下拉动作
+	 */
+	onPullDownRefresh() {
+
+	},
+
+	/**
+	 * 页面上拉触底事件的处理函数
+	 */
+	onReachBottom() {
+
+	},
+
+	/**
+	 * 用户点击右上角分享
+	 */
+	onShareAppMessage() {
+
+	}
+})

+ 6 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/ZCWDK/add/add.json

@@ -0,0 +1,6 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "我要提问",
+  "navigationBarBackgroundColor": "#508ff4",
+  "navigationBarTextStyle": "white"
+}

+ 19 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/ZCWDK/add/add.wxml

@@ -0,0 +1,19 @@
+<!--pages/ZCWDK/add/add.wxml-->
+<view>
+  <view class="inputss">
+    <view style="float: left; margin-right: 20rpx; font-size: 24rpx;font-family: PingFang SC;font-weight: 400;color: #333333;">手机号: </view>
+    <input class="weui-input" style=" border-bottom: 1rpx #B8B8B8 solid;" auto-focus placeholder="请输入手机号"/>
+  </view>
+  <view class="inputss">
+    <view style="float: left; margin-right: 20rpx; font-size: 24rpx;font-family: PingFang SC;font-weight: 400;color: #333333;">部门: </view>
+    <input class="weui-input" style=" border-bottom: 1rpx #B8B8B8 solid;" auto-focus placeholder="请输入部门"/>
+  </view>
+  <view class="inputss">
+    <view style="float: left; margin-right: 20rpx; font-size: 24rpx;font-family: PingFang SC;font-weight: 400;color: #333333;">问题: </view>
+    <input class="weui-input" style=" border-bottom: 1rpx #B8B8B8 solid;" auto-focus placeholder="请输入内容"/>
+  </view>
+  <view class="btns">
+	<view class="box qx">取消</view>
+	<view class="box qr">确认</view>
+  </view>
+</view>

+ 26 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/ZCWDK/add/add.wxss

@@ -0,0 +1,26 @@
+/* pages/ZCWDK/add/add.wxss */
+
+.inputss{
+  width: 90%;
+  margin: 60rpx auto;
+}
+.btns{
+	width: 90%;
+	margin: 0 auto;
+}
+.box{
+	width: 300rpx;
+	height: 90rpx;
+	float: left;
+	line-height: 90rpx;
+	text-align: center;
+	border-radius: 10rpx;
+}
+.qx{
+	border: 1rpx solid #C5C5C5 ;
+}
+.qr{
+	background: #508FF4;
+	color: #fff;
+	margin-left: 40rpx;
+}

+ 4 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/ZCWDK/index/index.wxml

@@ -13,6 +13,10 @@
       <input class="inputText"/>
       <image src="{{imgUrl}}/wdksearchIcon.png" class="serachIcon"></image>
     </view>
+	<view class="tw">
+		<text>我要</text>
+		<text>提问</text>
+	</view>
   </view>
   <view class="body">
     <view class="title">

+ 7 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/ZCWDK/index/index.wxss

@@ -195,4 +195,11 @@ page{
   transform: translateX(3rpx);
 }
 
+.tw{
+	width: 138rpx;
+	height: 80rpx;
+	background: #CCA65E;
+	color: #fff;
+	
+}
 

+ 0 - 51
nngkxxdp/src/main/resources/static/nnzwminiapp/project.config.json

@@ -1,51 +0,0 @@
-{
-	"description": "项目配置文件",
-	"packOptions": {
-		"ignore": [],
-		"include": []
-	},
-	"setting": {
-		"bundle": false,
-		"userConfirmedBundleSwitch": false,
-		"urlCheck": true,
-		"scopeDataCheck": false,
-		"coverView": true,
-		"es6": true,
-		"postcss": true,
-		"compileHotReLoad": false,
-		"lazyloadPlaceholderEnable": false,
-		"preloadBackgroundData": false,
-		"minified": true,
-		"autoAudits": false,
-		"newFeature": false,
-		"uglifyFileName": false,
-		"uploadWithSourceMap": true,
-		"useIsolateContext": true,
-		"nodeModules": false,
-		"enhance": true,
-		"useMultiFrameRuntime": true,
-		"useApiHook": true,
-		"useApiHostProcess": true,
-		"showShadowRootInWxmlPanel": true,
-		"packNpmManually": false,
-		"enableEngineNative": false,
-		"packNpmRelationList": [],
-		"minifyWXSS": true,
-		"showES6CompileOption": false,
-		"minifyWXML": true,
-		"babelSetting": {
-			"ignore": [],
-			"disablePlugins": [],
-			"outputPath": ""
-		}
-	},
-	"compileType": "miniprogram",
-	"libVersion": "2.19.4",
-	"appid": "wx967815720b8115a4",
-	"projectname": "miniprogram-92",
-	"condition": {},
-	"editorSetting": {
-		"tabIndent": "tab",
-		"tabSize": 4
-	}
-}