Kaynağa Gözat

修改显示聊天记录

zs 1 yıl önce
ebeveyn
işleme
5bc28e4235
38 değiştirilmiş dosya ile 192 ekleme ve 64 silme
  1. 1 1
      config.js
  2. 16 16
      manifest.json
  3. 0 1
      pagesHome/friend/common/submit_1.vue
  4. 3 3
      pagesHome/friend/index.vue
  5. 67 9
      pagesMy/answer/index.vue
  6. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
  7. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  8. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/components/upload/index.js.map
  9. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/index.js.map
  10. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  11. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/index.js.map
  12. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/index.js.map
  13. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/science/index.js.map
  14. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/common/speaker_1.js.map
  15. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/common/submit_1.js.map
  16. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/index.js.map
  17. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/group/index.js.map
  18. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/other/agree.js.map
  19. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/answer/index.js.map
  20. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/basic/index.js.map
  21. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/group/index.js.map
  22. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/person/detail.js.map
  23. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/person/index.js.map
  24. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesScience/science/index.js.map
  25. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.js.map
  26. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.js.map
  27. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js.map
  28. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.js.map
  29. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-forms/components/uni-forms/uni-forms.js.map
  30. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
  31. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.js.map
  32. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-popup/components/uni-popup/uni-popup.js.map
  33. 1 1
      unpackage/dist/dev/mp-weixin/common/vendor.js
  34. 0 1
      unpackage/dist/dev/mp-weixin/pagesHome/friend/common/submit_1.js
  35. 3 3
      unpackage/dist/dev/mp-weixin/pagesHome/friend/index.js
  36. 72 0
      unpackage/dist/dev/mp-weixin/pagesMy/answer/index.js
  37. 1 1
      unpackage/dist/dev/mp-weixin/pagesMy/answer/index.wxml
  38. 1 1
      unpackage/dist/dev/mp-weixin/project.config.json

+ 1 - 1
config.js

@@ -2,7 +2,7 @@
 const wx_min = uni.getAccountInfoSync();
 // 设备信息
 const system = uni.getSystemInfoSync();
-let wx_projectkey = 'followApp';
+let wx_projectkey = 'newCourtApp';
 
 if (system.uniPlatform == 'mp-weixin') {
 	let envV = wx_min.miniProgram.envVersion;

+ 16 - 16
manifest.json

@@ -47,21 +47,21 @@
     },
     /* SDK配置 */
     "quickapp" : {},
-   /* 快应用特有相关 */
-   "mp-weixin" : {
-       /* 小程序特有相关 */
-       "appid" : "wx23c71bee5876d1b9",
-       "setting" : {
-           "urlCheck" : false,
-           "minified" : true,
-           "es6" : true,
-           "postcss" : true
-       },
-       "optimization" : {
-           "subPackages" : true
-       },
-       "lazyCodeLoading" : "requiredComponents",
-       "usingComponents" : true
-   },
+    /* 快应用特有相关 */
+    "mp-weixin" : {
+        /* 小程序特有相关 */
+        "appid" : "wx34436977cd1e02e4",
+        "setting" : {
+            "urlCheck" : false,
+            "minified" : true,
+            "es6" : true,
+            "postcss" : true
+        },
+        "optimization" : {
+            "subPackages" : true
+        },
+        "lazyCodeLoading" : "requiredComponents",
+        "usingComponents" : true
+    },
     "vueVersion" : "2"
 }

+ 0 - 1
pagesHome/friend/common/submit_1.vue

@@ -63,7 +63,6 @@
 			more() {
 				const that = this;
 				that.ismore = !that.ismore;
-				that.isRecorder = false
 				setTimeout(() => {
 					that.getElementHeight();
 				}, 10)

+ 3 - 3
pagesHome/friend/index.vue

@@ -103,7 +103,7 @@
 				list: [],
 				total: 0,
 				skip: 0,
-				limit: 6,
+				limit: 20,
 				page: 0,
 				record: '', // 全局唯一录音管理区
 				inrecord: false, // 是否处于录音状态
@@ -242,12 +242,12 @@
 			onRecorderchange() {
 				const that = this
 				if (that.isRecorder) {
-					that.isRecorder = false
+					that.$set(that, `isRecorder`, false);
 				} else {
 					uni.authorize({
 						scope: 'scope.record',
 						success: res => {
-							that.isRecorder = true
+							that.$set(that, `isRecorder`, true);
 						}
 					})
 				}

+ 67 - 9
pagesMy/answer/index.vue

@@ -7,13 +7,14 @@
 			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
 				<view class="list-scroll-view">
 					<view class="list" v-for="(item, index) in list" :key="index" @tap="toInfo(item)">
-						1111
+						111
 					</view>
 					<view class="is_bottom" v-if="is_bottom">
 						<text>{{config.bottom_title||'到底了!'}}</text>
 					</view>
 				</view>
 			</scroll-view>
+			<button class="button" type="primary" size="mini" @tap.stop="toPay()">支付</button>
 		</view>
 	</view>
 </template>
@@ -91,6 +92,63 @@
 					});
 				}
 			},
+			// 支付
+			async toPay() {
+				const that = this;
+				// 支付信息
+				uni.request({
+					url: `https://broadcast.waityou24.cn/wechat/api/pay/payOrder`,
+					method: 'POST',
+					data: {
+						config: 'newCourtApp',
+						money: 0.01,
+						openid: 'wx34436977cd1e02e4',
+						order_no: String(Date.now())
+					},
+					header: {},
+					success: (res) => {
+						console.log(res);
+						// if (pay.errcode == '0' && pay.data.paySign) {
+						// 	// 微信支付
+						// 	uni.showLoading({
+						// 		title: '加载中'
+						// 	})
+						// 	uni.requestPayment({
+						// 		"provider": "wxpay",
+						// 		...pay.data,
+						// 		success: function(res) {
+						// 			uni.showToast({
+						// 				title: '支付成功',
+						// 				icon: 'none'
+						// 			})
+						// 		},
+						// 		fail: function(err) {
+						// 			uni.showToast({
+						// 				title: `支付失败`,
+						// 				icon: 'none'
+						// 			})
+						// 		},
+						// 		complete: function() {
+						// 			uni.hideLoading();
+						// 			that.clearPage();
+						// 			that.search()
+						// 		}
+						// 	})
+						// } else {
+						// 	uni.showToast({
+						// 		title: pay.errmsg || '错误信息',
+						// 		icon: 'none'
+						// 	})
+						// }
+					},
+					fail: (err) => {
+						uni.showToast({
+							title: '请求接口失败',
+							icon: 'fail',
+						});
+					},
+				});
+			},
 			// 输入框
 			toInput(e) {
 				const that = this;
@@ -148,13 +206,13 @@
 		flex-direction: column;
 		width: 100vw;
 		height: 100vh;
-	
+
 		.one {
 			display: flex;
 			justify-content: center;
 			align-items: center;
 			padding: 2vw;
-	
+
 			input {
 				width: 100%;
 				padding: 2vw;
@@ -163,13 +221,13 @@
 				border-radius: 5px;
 			}
 		}
-	
+
 		.two {
 			position: relative;
 			flex-grow: 1;
 			background-color: var(--f9Color);
 			margin: 2vw 0 0 0;
-	
+
 			.list {
 				display: flex;
 				background-color: var(--mainColor);
@@ -180,24 +238,24 @@
 			}
 		}
 	}
-	
+
 	.scroll-view {
 		position: absolute;
 		top: 0;
 		left: 0;
 		right: 0;
 		bottom: 0;
-	
+
 		.list-scroll-view {
 			display: flex;
 			flex-direction: column;
 		}
 	}
-	
+
 	.is_bottom {
 		width: 100%;
 		text-align: center;
-	
+
 		text {
 			padding: 2vw 0;
 			display: inline-block;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/components/upload/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/science/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/common/speaker_1.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/common/submit_1.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/group/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/other/agree.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/answer/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/basic/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/group/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/person/detail.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/person/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesScience/science/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-forms/components/uni-forms/uni-forms.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-popup/components/uni-popup/uni-popup.js.map


+ 1 - 1
unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -20018,7 +20018,7 @@ exports.default = void 0;
 var wx_min = uni.getAccountInfoSync();
 // 设备信息
 var system = uni.getSystemInfoSync();
-var wx_projectkey = 'followApp';
+var wx_projectkey = 'newCourtApp';
 if (system.uniPlatform == 'mp-weixin') {
   var envV = wx_min.miniProgram.envVersion;
 }

+ 0 - 1
unpackage/dist/dev/mp-weixin/pagesHome/friend/common/submit_1.js

@@ -212,7 +212,6 @@ var _default = {
     more: function more() {
       var that = this;
       that.ismore = !that.ismore;
-      that.isRecorder = false;
       setTimeout(function () {
         that.getElementHeight();
       }, 10);

+ 3 - 3
unpackage/dist/dev/mp-weixin/pagesHome/friend/index.js

@@ -270,7 +270,7 @@ var _default = {
       list: [],
       total: 0,
       skip: 0,
-      limit: 6,
+      limit: 20,
       page: 0,
       record: '',
       // 全局唯一录音管理区
@@ -466,12 +466,12 @@ var _default = {
     onRecorderchange: function onRecorderchange() {
       var that = this;
       if (that.isRecorder) {
-        that.isRecorder = false;
+        that.$set(that, "isRecorder", false);
       } else {
         uni.authorize({
           scope: 'scope.record',
           success: function success(res) {
-            that.isRecorder = true;
+            that.$set(that, "isRecorder", true);
           }
         });
       }

+ 72 - 0
unpackage/dist/dev/mp-weixin/pagesMy/answer/index.js

@@ -168,6 +168,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
 //
 //
 //
+//
 var _default = {
   data: function data() {
     return {
@@ -303,6 +304,77 @@ var _default = {
         }, _callee4);
       }))();
     },
+    // 支付
+    toPay: function toPay() {
+      var _this2 = this;
+      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
+        var that;
+        return _regenerator.default.wrap(function _callee5$(_context5) {
+          while (1) {
+            switch (_context5.prev = _context5.next) {
+              case 0:
+                that = _this2; // 支付信息
+                uni.request({
+                  url: "https://broadcast.waityou24.cn/wechat/api/pay/payOrder",
+                  method: 'POST',
+                  data: {
+                    config: 'newCourtApp',
+                    money: 0.01,
+                    openid: 'wx34436977cd1e02e4',
+                    order_no: String(Date.now())
+                  },
+                  header: {},
+                  success: function success(res) {
+                    console.log(res);
+                    // if (pay.errcode == '0' && pay.data.paySign) {
+                    // 	// 微信支付
+                    // 	uni.showLoading({
+                    // 		title: '加载中'
+                    // 	})
+                    // 	uni.requestPayment({
+                    // 		"provider": "wxpay",
+                    // 		...pay.data,
+                    // 		success: function(res) {
+                    // 			uni.showToast({
+                    // 				title: '支付成功',
+                    // 				icon: 'none'
+                    // 			})
+                    // 		},
+                    // 		fail: function(err) {
+                    // 			uni.showToast({
+                    // 				title: `支付失败`,
+                    // 				icon: 'none'
+                    // 			})
+                    // 		},
+                    // 		complete: function() {
+                    // 			uni.hideLoading();
+                    // 			that.clearPage();
+                    // 			that.search()
+                    // 		}
+                    // 	})
+                    // } else {
+                    // 	uni.showToast({
+                    // 		title: pay.errmsg || '错误信息',
+                    // 		icon: 'none'
+                    // 	})
+                    // }
+                  },
+
+                  fail: function fail(err) {
+                    uni.showToast({
+                      title: '请求接口失败',
+                      icon: 'fail'
+                    });
+                  }
+                });
+              case 2:
+              case "end":
+                return _context5.stop();
+            }
+          }
+        }, _callee5);
+      }))();
+    },
     // 输入框
     toInput: function toInput(e) {
       var that = this;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesMy/answer/index.wxml


+ 1 - 1
unpackage/dist/dev/mp-weixin/project.config.json

@@ -19,7 +19,7 @@
   },
   "compileType": "miniprogram",
   "libVersion": "3.1.3",
-  "appid": "wx23c71bee5876d1b9",
+  "appid": "wx34436977cd1e02e4",
   "projectname": "follow_applet",
   "condition": {
     "miniprogram": {