zhaoxw hace 4 años
padre
commit
f8a680c6b4
Se han modificado 3 ficheros con 9 adiciones y 3 borrados
  1. 7 1
      jhlive/jhlive.nvue
  2. 1 1
      pagesMain/entrustForm.vue
  3. 1 1
      pagesMain/messageForm.vue

+ 7 - 1
jhlive/jhlive.nvue

@@ -71,8 +71,9 @@
 	// #ifdef MP-WEIXIN
 	import JhliveApp from './live-wechat';
 	//#endif
-
+    // #ifdef APP-PLUS
 	const dom = uni.requireNativePlugin('dom');
+	//#endif
 	const LOGTAG = '--JHLIVE--:';
 	const EXPIRETIME = 604800;
 
@@ -132,6 +133,7 @@
 		},
 		watch: {
 			imMsgs() {
+				// #ifdef APP-PLUS
 				setTimeout(() => {
 					const el = this.$refs.imScrollContent;
 					dom.getComponentRect(el, (e)=>{
@@ -139,6 +141,10 @@
 						// el&&dom.scrollToElement(el, {offset: -100})
 					})
 				},50);
+				//#endif
+				// #ifndef APP-PLUS
+				this.imScrollTop = 10000+ this.imMsgs.length
+				//#endif
 			}
 		},
 		methods: {

+ 1 - 1
pagesMain/entrustForm.vue

@@ -160,7 +160,7 @@
 								orderInfo:{
 									"package": res.data.packageValue,
 									"appid": res.data.appId,
-									"sign": res.data.paySign,
+									"sign": res.data.sign,
 									"partnerid": res.data.partnerId,
 									"prepayid": res.data.prepayId,
 									"noncestr": res.data.nonceStr,

+ 1 - 1
pagesMain/messageForm.vue

@@ -4,7 +4,7 @@
 			<u-cell-group :border="false">
 				<u-field type="textarea" placeholder="请输入留言" v-model="formData.leaMsgContent" label-width="0"></u-field>
 			</u-cell-group>
-			<!-- <u-upload :action="uploadUrl" max-count="5" :form-data="uploadData" @on-success="uploadSuccess" @on-error="uploadError" @on-remove="uploadRemove"></u-upl -->oad>
+			<!-- <u-upload :action="uploadUrl" max-count="5" :form-data="uploadData" @on-success="uploadSuccess" @on-error="uploadError" @on-remove="uploadRemove"></u-upload> -->
 		</view>
 		<view class="form-handle">
 			<u-button type="success" shape="circle" :ripple="true" @click="submitData" class="handle-custom">发布</u-button>