浏览代码

h5条件编译

hmp 4 年之前
父节点
当前提交
210536face
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 6 1
      pages/checkstand/index.vue
  2. 2 1
      pages/mine/mine.vue

+ 6 - 1
pages/checkstand/index.vue

@@ -32,7 +32,7 @@
 			</view>
 		</u-modal>
 
-		<u-modal v-model="modalShow" :showCancelButton="true" @cancel="payOfh5" @confirm="jumpLDT" cancel-text="直接付款"
+		<u-modal v-model="modalShow" :mask-close-able="true" :showCancelButton="true" @cancel="payOfh5" @confirm="jumpLDT" cancel-text="直接付款"
 			confirm-color="#FF9447" confirmText="去联兑通支付" content="去联兑通小程序付款会有更多优惠哟~"></u-modal>
 	</view>
 </template>
@@ -60,6 +60,8 @@
 			} else {
 				this.shopId = options.id
 			}
+			
+			// #ifdef  MP-WEIXIN
 			//如果是新用户通过微信支付扫码进入此页面,跳回首页
 			if (this.$isEmpty(this.vuex_userId)) {
 				uni.reLaunch({
@@ -67,6 +69,9 @@
 				})
 				return
 			}
+			// #endif
+			
+			
 			
 			if (this.$isEmpty(this.shopId)) {
 				this.$dialog.showModal('商户id不能为空', false).then(() => {

+ 2 - 1
pages/mine/mine.vue

@@ -226,13 +226,14 @@
 				//获取数据
 				this.init()
 				
+				// #ifdef  MP-WEIXIN
 				//处理跳回收银台的情况
 				if (!this.$isEmpty(this.query)) {
 					uni.redirectTo({
 						url:"/pages/checkstand/index?query="+this.query
 					})
 				}
-				
+				// #endif
 			},
 			async login(e){
 				if (this.$isEmpty(this.vuex_userId)) {