| | |
| | | import { |
| | | getPayInfo |
| | | } from '../../factory/WexinAppPayFactory.js' |
| | | import { |
| | | loginByOpenId |
| | | } from '../user/sessionApi.js'; |
| | | // #endif |
| | | |
| | | |
| | |
| | | * @param {*} _that |
| | | * @param {*} _data |
| | | */ |
| | | export function payFeeWechat(_that, _data,_successUrl) { |
| | | if(!_successUrl ){ |
| | | export function payFeeWechat(_that, _data, _successUrl) { |
| | | if (!_successUrl) { |
| | | _successUrl = "/pages/successPage/successPage?msg=支付成功&objType=3003"; |
| | | } |
| | | wx.showLoading({ |
| | |
| | | return; |
| | | } |
| | | wx.showToast({ |
| | | title: "缴费失败"+res.data.msg, |
| | | title: "缴费失败" + res.data.msg, |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | |
| | | * @param {Object} _data |
| | | * @param {Object} _successUrl |
| | | */ |
| | | export function cashierPayFee(_that, _data,_successUrl) { |
| | | if(!_successUrl ){ |
| | | export function cashierPayFee(_that, _data, _successUrl) { |
| | | if (!_successUrl) { |
| | | _successUrl = "/pages/successPage/successPage?msg=支付成功&objType=3003"; |
| | | } |
| | | wx.showLoading({ |
| | |
| | | //动态数据 |
| | | success: function(res) { |
| | | wx.hideLoading(); |
| | | console.log('=====res=====', res); |
| | | if (res.data.code == '0') { |
| | | let data = res.data; //成功情况下跳转 |
| | | let data = res.data; |
| | | // uni.navigateTo({ |
| | | // url: data.qrCode |
| | | // }) |
| | | uni.navigateTo({ |
| | | url: '/pages/fee/webview?url=' + encodeURIComponent(data.qrCode) |
| | | }); |
| | | |
| | | |
| | | // let data = res.data; //成功情况下跳转 |
| | | // #ifdef MP-WEIXIN |
| | | uni.requestPayment({ |
| | | 'timeStamp': data.timeStamp, |
| | | 'nonceStr': data.nonceStr, |
| | | 'package': data.package, |
| | | 'signType': data.signType, |
| | | 'paySign': data.sign, |
| | | 'success': function(res) { |
| | | uni.navigateTo({ |
| | | url: _successUrl |
| | | }) |
| | | }, |
| | | 'fail': function(res) { |
| | | console.log('fail:' + JSON.stringify(res)); |
| | | _that.banButton = false; |
| | | } |
| | | }); |
| | | // #endif |
| | | // #ifdef H5 |
| | | WexinPayFactory.wexinPay(data, function() { |
| | | uni.navigateTo({ |
| | | url: _successUrl |
| | | }) |
| | | }); |
| | | // uni.requestPayment({ |
| | | // 'timeStamp': data.timeStamp, |
| | | // 'nonceStr': data.nonceStr, |
| | | // 'package': data.package, |
| | | // 'signType': data.signType, |
| | | // 'paySign': data.sign, |
| | | // 'success': function(res) { |
| | | // uni.navigateTo({ |
| | | // url: _successUrl |
| | | // }) |
| | | // }, |
| | | // 'fail': function(res) { |
| | | // console.log('fail:' + JSON.stringify(res)); |
| | | // _that.banButton = false; |
| | | // } |
| | | // }); |
| | | // // #endif |
| | | // // #ifdef H5 |
| | | // WexinPayFactory.wexinPay(data, function() { |
| | | // uni.navigateTo({ |
| | | // url: _successUrl |
| | | // }) |
| | | // }); |
| | | // #endif |
| | | |
| | | return; |
| | |
| | | return; |
| | | } |
| | | wx.showToast({ |
| | | title: "缴费失败"+res.data.msg, |
| | | title: "缴费失败" + res.data.msg, |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | <template> |
| | | <view> |
| | | <view class="home_list"> |
| | | <!-- <view class="home_list"> |
| | | <view class="home_item" v-for="(item,index) in home_list" :key="index" @click="to(item)"> |
| | | <image :src="item.src"></image> |
| | | <view class="text">{{item.name}}</view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> --> |
| | | |
| | | <view class="serve_box"> |
| | | |
| | | <view class="serve_title">功能服务<text class="more" @click="more()">更多</text></view> |
| | |
| | | getCommunityQrCode, |
| | | getCommunityId |
| | | } from '@/api/community/communityApi.js'; |
| | | |
| | | import {queryNotices} from '@/api/index/indexApi.js'; |
| | | |
| | | import { |
| | | queryNotices |
| | | } from '@/api/index/indexApi.js'; |
| | | |
| | | export default { |
| | | name: "indexMenu", |
| | |
| | | serve_list: [], |
| | | callPropertyModal: false, |
| | | property: {}, |
| | | noticeText:'暂无公告', |
| | | noticeText: '暂无公告', |
| | | new_list: [{ |
| | | src: this.imgUrl + '/h5/images/serve/new1.png', |
| | | name: '报事报修', |
| | |
| | | ownerAuth: true |
| | | }, |
| | | ], |
| | | this.serve_list = [{ |
| | | name: '生活缴费', |
| | | src: this.imgUrl + '/h5/images/serve/1.png', |
| | | href: '/pages/fee/oweFee', |
| | | ownerAuth: true |
| | | }, |
| | | this.serve_list = [ |
| | | // { |
| | | // name: '生活缴费', |
| | | // src: this.imgUrl + '/h5/images/serve/1.png', |
| | | // href: '/pages/fee/oweFee', |
| | | // ownerAuth: true |
| | | // }, |
| | | { |
| | | name: '房屋费', |
| | | name: '缴物业费', |
| | | src: this.imgUrl + '/h5/images/serve/5.png', |
| | | href: '/pages/fee/roomFeeListNew', |
| | | ownerAuth: true |
| | | }, |
| | | { |
| | | name: '车位费', |
| | | name: '缴停车费', |
| | | src: this.imgUrl + '/h5/images/serve/9.png', |
| | | href: '/pages/fee/payParkingFeeList', |
| | | ownerAuth: true |
| | | }, |
| | | { |
| | | name: '一键开门', |
| | | src: this.imgUrl + '/h5/images/serve/8.png', |
| | | href: '/pages/machine/openDoor', |
| | | ownerAuth: true |
| | | name: '投诉建议', |
| | | src: this.imgUrl + '/h5/images/serve/12.png', |
| | | href: '/pages/complaint/complaint', |
| | | ownerAuth: false |
| | | }, |
| | | // { |
| | | // name: '一键开门', |
| | | // src: this.imgUrl + '/h5/images/serve/8.png', |
| | | // href: '/pages/machine/openDoor', |
| | | // ownerAuth: true |
| | | // }, |
| | | // { |
| | | // name: '人脸识别', |
| | | // src: this.imgUrl + '/h5/images/serve/8.png', |
| | |
| | | clientType: 'H5' |
| | | }).then((_notices) => { |
| | | let _notice = ""; |
| | | for(let _nIndex = 0;_nIndex < _notices.length; _nIndex++){ |
| | | _notice +=("【公告"+(_nIndex+1)+"】"+_notices[_nIndex].title+"; "); |
| | | for (let _nIndex = 0; _nIndex < _notices.length; _nIndex++) { |
| | | _notice += ("【公告" + (_nIndex + 1) + "】" + _notices[_nIndex].title + "; "); |
| | | } |
| | | that.noticeText = _notice; |
| | | }); |
| | |
| | | url: '/pages/homemaking/homemaking' |
| | | }) |
| | | }, |
| | | _toNoticePage:function(){ |
| | | _toNoticePage: function() { |
| | | this.vc.navigateTo({ |
| | | url: '/pages/notice/index' |
| | | }); |
| | |
| | | <template> |
| | | <view> |
| | | <view class="active_box"> |
| | | <view class="active_title">社区活动</view> |
| | | <view class="active_title">社区公告</view> |
| | | <view class="active_list"> |
| | | <!--:scroll-left="scrollLeft"--> |
| | | <scroll-view scroll-x class="bg-white nav" scroll-with-animation> |
| | |
| | | |
| | | // #ifndef H5 |
| | | //服务器域名 小程序 或者 app 时 后端地址 |
| | | // const baseUrl = 'https://wuye.yhupai.com/'; |
| | | const baseUrl = 'http://192.168.31.137:8008/'; |
| | | const baseUrl = 'https://zxshlx.com/'; |
| | | // const baseUrl = 'http://192.168.31.137:8008/'; |
| | | // const baseUrl = 'http://localhost:3000/'; |
| | | // #endif |
| | | |
| | | let commonBaseUrl = 'https://wuye.yhupai.com/'; |
| | | let commonBaseUrl = 'https://zxshlx.com/'; |
| | | |
| | | |
| | | //商城的url |
| | |
| | | { |
| | | "navigationBarTitleText" : "" |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/fee/webview", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "" |
| | | } |
| | | } |
| | | ], |
| | | "tabBar": { |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="flex flex-direction"> |
| | | <!-- <view class="flex flex-direction"> |
| | | <button @click="_applyParking()" class="cu-btn line-blue margin-tb-sm lg">申请车位</button> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | url:'/pages/car/carDetail?carId='+_car.memberId |
| | | }) |
| | | }, |
| | | _applyParking: function() { |
| | | uni.navigateTo({ |
| | | url: '/pages/car/applyparking' |
| | | }) |
| | | } |
| | | // _applyParking: function() { |
| | | // uni.navigateTo({ |
| | | // url: '/pages/car/applyparking' |
| | | // }) |
| | | // } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <view class="block__title">基本信息</view> |
| | | <view class="cu-form-group"> |
| | | <view class="title">姓名</view> |
| | | <input v-model="name" placeholder="请输入成员名称"></input> |
| | | <input v-model="name" placeholder="必填,请输入成员名称"></input> |
| | | </view> |
| | | <view class="cu-form-group"> |
| | | <view class="title">身份证</view> |
| | | <input v-model="idCard" placeholder="请输入身份证" ></input> |
| | | <input v-model="idCard" placeholder="选填,请输入身份证" ></input> |
| | | </view> |
| | | <view class="cu-form-group"> |
| | | <view class="title">性别</view> |
| | |
| | | </view> |
| | | |
| | | <view class="solid-top flex justify-end margin-top padding-top-sm padding-bottom-sm"> |
| | | <button class="cu-btn sm bg-green " @click="_deleteOwnerMember(item)">修改</button> |
| | | <button class="cu-btn sm bg-red " @click="_deleteOwnerMember(item)">删除</button> |
| | | </view> |
| | | </view> |
| New file |
| | |
| | | <template> |
| | | <view> |
| | | <web-view :src="url"></web-view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | url: '' |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | | // 从 URL 中获取参数 |
| | | this.url = options.url ? decodeURIComponent(options.url) : ''; |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | /* 样式可选 */ |
| | | </style> |