Commit 2cf686cc by 严立

LL - 客户审查初版

parent 38d785c8
...@@ -11,6 +11,7 @@ Page({ ...@@ -11,6 +11,7 @@ Page({
bannerImage: App.globalData.appResourcesBase + 'campsite/campsite-header.png', bannerImage: App.globalData.appResourcesBase + 'campsite/campsite-header.png',
campsiteDescribe: [], campsiteDescribe: [],
average: 0,
}, },
onLoad: function (options) { onLoad: function (options) {
...@@ -22,6 +23,7 @@ Page({ ...@@ -22,6 +23,7 @@ Page({
this.setShopInfo(3, 1) this.setShopInfo(3, 1)
this.queryCampsiteDescribe() this.queryCampsiteDescribe()
this.queryActivity() this.queryActivity()
this.queryEvaluate()
}, },
setSideHeight: function () { setSideHeight: function () {
...@@ -86,6 +88,24 @@ Page({ ...@@ -86,6 +88,24 @@ Page({
}) })
}, },
queryEvaluate: function () {
let that = this
let shopInfo = wx.getStorageSync('shopInfoBuffer')
App.request({
url: 'v1/appraise/getOfficeAppraise',
params: {
'officeId': shopInfo.id
}
}).then((response) => {
let funcData = response.data
let funcAverage = Math.floor(funcData.environmentalEvaluation + funcData.productEvaluatio + funcData.serviceEvaluation) / 3
console.log(funcAverage)
this.setData({
average: funcAverage
})
})
},
onEvaluateMore: function () { onEvaluateMore: function () {
wx.navigateTo({ url: '/pages/campsite/evaluate/evaluate' }) wx.navigateTo({ url: '/pages/campsite/evaluate/evaluate' })
}, },
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view class="row cb ac"> <view class="row cb ac">
<view class="other_evaluate row ac"> <view class="other_evaluate row ac">
<image class="other_evaluate_title" src="../home/image/evaluate-title.png"></image> <image class="other_evaluate_title" src="../home/image/evaluate-title.png"></image>
<block wx:for="{{5}}" wx:for-index="index" wx:for-item="item" wx:key="index"> <block wx:for="{{average}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<image class="other_evaluate_start" src="{{imageBase + 'icon/star-1.png'}}"></image> <image class="other_evaluate_start" src="{{imageBase + 'icon/star-1.png'}}"></image>
</block> </block>
<image class="other_evaluate_more" src="../home/image/evaluate.png" bindtap="onEvaluateMore"></image> <image class="other_evaluate_more" src="../home/image/evaluate.png" bindtap="onEvaluateMore"></image>
......
...@@ -11,6 +11,7 @@ Page({ ...@@ -11,6 +11,7 @@ Page({
bannerImage: App.globalData.appResourcesBase + 'campsite/campsite-header.png', bannerImage: App.globalData.appResourcesBase + 'campsite/campsite-header.png',
campsiteDescribe: [], campsiteDescribe: [],
average: 0,
}, },
onLoad: function (options) { onLoad: function (options) {
...@@ -22,6 +23,7 @@ Page({ ...@@ -22,6 +23,7 @@ Page({
this.setShopInfo(3, 1) this.setShopInfo(3, 1)
this.queryCampsiteDescribe() this.queryCampsiteDescribe()
this.queryActivity() this.queryActivity()
this.queryEvaluate()
}, },
setSideHeight: function () { setSideHeight: function () {
...@@ -86,6 +88,24 @@ Page({ ...@@ -86,6 +88,24 @@ Page({
}) })
}, },
queryEvaluate: function () {
let that = this
let shopInfo = wx.getStorageSync('shopInfoBuffer')
App.request({
url: 'v1/appraise/getOfficeAppraise',
params: {
'officeId': shopInfo.id
}
}).then((response) => {
let funcData = response.data
let funcAverage = Math.floor(funcData.environmentalEvaluation + funcData.productEvaluatio + funcData.serviceEvaluation) / 3
console.log(funcAverage)
this.setData({
average: funcAverage
})
})
},
onEvaluateMore: function () { onEvaluateMore: function () {
wx.navigateTo({ url: '/pages/campsite/evaluate/evaluate' }) wx.navigateTo({ url: '/pages/campsite/evaluate/evaluate' })
}, },
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view class="row cb ac"> <view class="row cb ac">
<view class="other_evaluate row ac"> <view class="other_evaluate row ac">
<image class="other_evaluate_title" src="./image/evaluate-title.png"></image> <image class="other_evaluate_title" src="./image/evaluate-title.png"></image>
<block wx:for="{{5}}" wx:for-index="index" wx:for-item="item" wx:key="index"> <block wx:for="{{average}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<image class="other_evaluate_start" src="{{imageBase + 'icon/star-1.png'}}"></image> <image class="other_evaluate_start" src="{{imageBase + 'icon/star-1.png'}}"></image>
</block> </block>
<image class="other_evaluate_more" src="./image/evaluate.png" bindtap="onEvaluateMore"></image> <image class="other_evaluate_more" src="./image/evaluate.png" bindtap="onEvaluateMore"></image>
......
...@@ -148,10 +148,7 @@ Page({ ...@@ -148,10 +148,7 @@ Page({
onEnter: function () { onEnter: function () {
if (!App.userIsRegister()) return if (!App.userIsRegister()) return
if (!this.inspectForm()) return if (!this.inspectForm()) return
App.ui.showToast({ App.ui.showToast({ iconType: 'loading', title: '正在提交', })
iconType: 'loading',
title: '正在提交',
})
let funcEnterInfo = this.data.enterInfo let funcEnterInfo = this.data.enterInfo
let funcEnterInfoCustom = this.data.enterInfoCustom let funcEnterInfoCustom = this.data.enterInfoCustom
...@@ -176,12 +173,14 @@ Page({ ...@@ -176,12 +173,14 @@ Page({
'smClub': { id: this.data.clubInfo.id } 'smClub': { id: this.data.clubInfo.id }
} }
}).then((response) => { }).then((response) => {
console.log('then')
App.ui.hideToast() App.ui.hideToast()
wx.setStorageSync('tempBackInfo', 'winEnter') wx.setStorageSync('tempBackInfo', 'winEnter')
wx.navigateBack() wx.navigateBack({
event: {
'type': 'onReload',
}
})
}).catch((response) => { }).catch((response) => {
console.log('catch')
App.ui.showToast({ App.ui.showToast({
'iconType': 'error', 'iconType': 'error',
'title': response.message 'title': response.message
......
...@@ -11,7 +11,9 @@ Page({ ...@@ -11,7 +11,9 @@ Page({
], ],
tabIndex: 0, tabIndex: 0,
clubList: [], clubInfoList: [],
enterClubIdList: [],
enterClubStateList: [],
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
...@@ -28,7 +30,6 @@ Page({ ...@@ -28,7 +30,6 @@ Page({
onShow: function () { onShow: function () {
let funcBackInfo = wx.getStorageSync('tempBackInfo') let funcBackInfo = wx.getStorageSync('tempBackInfo')
console.log('show', funcBackInfo)
switch (funcBackInfo) { switch (funcBackInfo) {
case 'winEstablish': case 'winEstablish':
this.setData({ this.setData({
...@@ -46,6 +47,14 @@ Page({ ...@@ -46,6 +47,14 @@ Page({
} }
}, },
onReload: function () {
console.log('onReload')
this.setData({
pageIndex: 1
})
this.queryEnterClubList()
},
/** /**
* 设置俱乐部分类 tab * 设置俱乐部分类 tab
* @function * @function
...@@ -72,20 +81,48 @@ Page({ ...@@ -72,20 +81,48 @@ Page({
tabItem: this.data.tabItem.concat(funcList) tabItem: this.data.tabItem.concat(funcList)
}) })
this.queryClub(0) this.queryEnterClubList()
console.log(this.data.tabItem)
}).catch((response) => { }).catch((response) => {
console.log(response) console.log(response)
}) })
}, },
/** /**
* 查询我加入的
* @function
* @param
* @returns
*/
queryEnterClubList: function () {
App.request({
url: 'v3/club/getMyJoinClubs',
params: {
'pageNo': 1,
'pageSize': -1,
}
}).then((response) => {
let funcData = response.data.list
let funcEnterClubIdList = []
let funcEnterClubStateList = []
for (let i = 0, l = funcData.length; i < l; i++) {
funcEnterClubIdList.push(funcData[i].clubId)
funcEnterClubStateList.push(Number(funcData[i].state))
}
this.setData({
enterClubIdList: funcEnterClubIdList,
enterClubStateList: funcEnterClubStateList,
})
this.queryClubInfoList()
})
},
/**
* 查询俱乐部列表 * 查询俱乐部列表
* @function * @function
* @param {object} - funcEvent * @param
* @returns * @returns
*/ */
queryClub: function () { queryClubInfoList: function () {
App.request({ App.request({
url: 'v3/club/getClubList', url: 'v3/club/getClubList',
params: { params: {
...@@ -104,19 +141,23 @@ Page({ ...@@ -104,19 +141,23 @@ Page({
'name': funcData[i].name, 'name': funcData[i].name,
'describe': funcData[i].summary, 'describe': funcData[i].summary,
'member': funcData[i].memberNum, 'member': funcData[i].memberNum,
'state': 2,
'isOwner': Number(funcData[i].owner) === 0 ? false : true 'isOwner': Number(funcData[i].owner) === 0 ? false : true
} }
let funcEnterClubListIndex = this.data.enterClubIdList.indexOf(funcItem.id)
if (0 <= funcEnterClubListIndex) {
funcItem.state = this.data.enterClubStateList[funcEnterClubListIndex]
}
funcList.push(funcItem) funcList.push(funcItem)
} }
console.log(funcList)
this.setData({ this.setData({
clubList: this.data.clubList.concat(funcList) clubInfoList: this.data.pageIndex === 1 ? funcList : this.data.clubInfoList.concat(funcList)
}) })
}).catch((response) => {}) }).catch((response) => {})
}, },
/** /**
* 创建俱乐部 * 创建俱乐部
* @function * @function
...@@ -197,10 +238,10 @@ Page({ ...@@ -197,10 +238,10 @@ Page({
let funcItem = funcEvent.detail let funcItem = funcEvent.detail
this.setData({ this.setData({
tabIndex: funcItem.index, tabIndex: funcItem.index,
clubList: [], clubInfoList: [],
pageIndex: 1, pageIndex: 1,
}) })
this.queryClub() this.queryClubInfoList()
}, },
/** /**
...@@ -220,16 +261,14 @@ Page({ ...@@ -220,16 +261,14 @@ Page({
* @returns * @returns
*/ */
onReachBottom: function () { onReachBottom: function () {
console.log('onReachBottom')
this.setData({ this.setData({
pageIndex: this.data.pageIndex + 1 pageIndex: this.data.pageIndex + 1
}) })
this.queryClub() this.queryClubInfoList()
}, },
eventNavChangeHeight: function (funcEvent) { eventNavChangeHeight: function (funcEvent) {
console.log(funcEvent)
let funcNavHeight = funcEvent.detail.navHeight let funcNavHeight = funcEvent.detail.navHeight
this.setData({ this.setData({
bannerCreatTop: funcNavHeight + 30 * wx.getStorageSync('unitProportion') bannerCreatTop: funcNavHeight + 30 * wx.getStorageSync('unitProportion')
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</view> </view>
<view class="club-list"> <view class="club-list">
<block wx:for="{{clubList}}" wx:for-item="item" wx:for-index="index" wx:key="index"> <block wx:for="{{clubInfoList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class="club-item row" data-item="{{item}}" bindtap="onClubDetail"> <view class="club-item row" data-item="{{item}}" bindtap="onClubDetail">
<view class="club-logo"> <view class="club-logo">
<image src="{{item.logo}}"></image> <image src="{{item.logo}}"></image>
...@@ -56,7 +56,9 @@ ...@@ -56,7 +56,9 @@
</view> </view>
<view class="club-info-other row cb ac"> <view class="club-info-other row cb ac">
<text>{{item.member + '成员'}}</text> <text>{{item.member + '成员'}}</text>
<button data-item="{{item}}" catchtap="onEnterClub">申请加入</button> <button class="club_info_other_apply" wx:if="{{item.state === 0}}" data-item="{{item}}">已申请</button>
<button class="club_info_other_enter" wx:if="{{item.state === 1}}" data-item="{{item}}">已加入</button>
<button class="club_info_other_submit" wx:if="{{item.state === 2}}" data-item="{{item}}" catchtap="onEnterClub">申请加入</button>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -153,7 +153,20 @@ ...@@ -153,7 +153,20 @@
color: #959DA9; color: #959DA9;
} }
.club-info-other > button { .club_info_other_apply,
.club_info_other_enter {
width: 120rpx;
height: 56rpx;
border-radius: 2px;
background: #C8E1EC;
font-size: 22rpx;
font-weight: 500;
line-height: 56rpx;
color: #FFFFFF;
}
.club_info_other_submit {
width: 120rpx; width: 120rpx;
height: 56rpx; height: 56rpx;
border-radius: 2px; border-radius: 2px;
......
...@@ -6,6 +6,8 @@ Page({ ...@@ -6,6 +6,8 @@ Page({
clubInfo: {}, clubInfo: {},
clubActivity: [], clubActivity: [],
enterClubIdList: [],
enterClubStateList: [],
examineRemark: '', examineRemark: '',
winEnter: false, // 加入提交提示 winEnter: false, // 加入提交提示
...@@ -29,7 +31,7 @@ Page({ ...@@ -29,7 +31,7 @@ Page({
'isOwner': false 'isOwner': false
}, },
}) })
this.queryClubInfo() this.queryEnterClubList()
this.queryActivity() this.queryActivity()
}, },
...@@ -49,6 +51,40 @@ Page({ ...@@ -49,6 +51,40 @@ Page({
} }
}, },
onReload: function () {
console.log('onReload')
this.queryEnterClubList()
},
/**
* 查询我加入的
* @function
* @param
* @returns
*/
queryEnterClubList: function () {
App.request({
url: 'v3/club/getMyJoinClubs',
params: {
'pageNo': 1,
'pageSize': -1,
}
}).then((response) => {
let funcData = response.data.list
let funcEnterClubIdList = []
let funcEnterClubStateList = []
for (let i = 0, l = funcData.length; i < l; i++) {
funcEnterClubIdList.push(funcData[i].clubId)
funcEnterClubStateList.push(Number(funcData[i].state))
}
this.setData({
enterClubIdList: funcEnterClubIdList,
enterClubStateList: funcEnterClubStateList,
})
this.queryClubInfo()
})
},
/** /**
* 查询俱乐部信息 * 查询俱乐部信息
* @function * @function
...@@ -63,17 +99,23 @@ Page({ ...@@ -63,17 +99,23 @@ Page({
} }
}).then((response) => { }).then((response) => {
let funcData = response.data let funcData = response.data
let funcItem = {
'id': funcData.clubId,
'logo': funcData.logo,
'cover': funcData.cover,
'name': funcData.name,
'describe': funcData.summary,
'member': funcData.memberNum,
'content': funcData.content,
'state': 2,
'isOwner': Number(funcData.owner) === 0 ? false : true
}
let funcEnterClubListIndex = this.data.enterClubIdList.indexOf(funcItem.id)
if (0 <= funcEnterClubListIndex) {
funcItem.state = this.data.enterClubStateList[funcEnterClubListIndex]
}
this.setData({ this.setData({
clubInfo: { clubInfo: funcItem
'id': funcData.clubId,
'logo': funcData.logo,
'cover': funcData.cover,
'name': funcData.name,
'describe': funcData.summary,
'member': funcData.memberNum,
'content': funcData.content,
'isOwner': Number(funcData.owner) === 0 ? false : true
}
}) })
}).catch((response) => {}) }).catch((response) => {})
}, },
......
...@@ -94,7 +94,15 @@ ...@@ -94,7 +94,15 @@
<image mode="widthFix" src="./image/enter-rule.png"></image> <image mode="widthFix" src="./image/enter-rule.png"></image>
</view> </view>
<m-button-bottom text="申请加入" bindclick="onEnterClub"></m-button-bottom> <block wx:if="{{clubInfo.state === 0}}">
<m-button-bottom text="已申请" isEnable="{{false}}"></m-button-bottom>
</block>
<block wx:if="{{clubInfo.state === 1}}">
<m-button-bottom text="已加入" isEnable="{{false}}"></m-button-bottom>
</block>
<block wx:if="{{clubInfo.state === 2}}">
<m-button-bottom text="申请加入" bindclick="onEnterClub"></m-button-bottom>
</block>
</view> </view>
<!-- 俱乐部加入权限提醒 --> <!-- 俱乐部加入权限提醒 -->
......
...@@ -152,9 +152,6 @@ ...@@ -152,9 +152,6 @@
<!-- 商店 --> <!-- 商店 -->
<view class="shop"> <view class="shop">
<view class="shop-name">
<image src="{{resourcesBase + 'commodity/home/shop-title-2.png'}}"></image>
</view>
<view class="shop-title col"> <view class="shop-title col">
<text>累计消费</text> <text>累计消费</text>
<text>兑换特色产品</text> <text>兑换特色产品</text>
......
...@@ -66,7 +66,12 @@ Page({ ...@@ -66,7 +66,12 @@ Page({
'address': funcData[i].address, 'address': funcData[i].address,
'isDefault': Boolean(Number(funcData[i].defaultFlag)), 'isDefault': Boolean(Number(funcData[i].defaultFlag)),
} }
funcList.push(funcItem)
if (funcItem.isDefault) {
funcList.unshift(funcItem)
} else {
funcList.push(funcItem)
}
} }
// 在积分商城下单时,通过比对新增地址的信息,来获取新增地址的 id。 // 在积分商城下单时,通过比对新增地址的信息,来获取新增地址的 id。
......
...@@ -3,7 +3,6 @@ let App = getApp() ...@@ -3,7 +3,6 @@ let App = getApp()
Page({ Page({
data: { data: {
options: {}, options: {},
isDoing: false,
instructions: false, instructions: false,
swiperCurrent: 0, swiperCurrent: 0,
showCodePopup: false, showCodePopup: false,
...@@ -36,6 +35,7 @@ Page({ ...@@ -36,6 +35,7 @@ Page({
}, },
onLoad: function (options) { onLoad: function (options) {
console.log(options)
this.setData({ this.setData({
options: options, options: options,
activityId: options.activityId, activityId: options.activityId,
...@@ -89,7 +89,7 @@ Page({ ...@@ -89,7 +89,7 @@ Page({
'integral': funcResponse.integral, 'integral': funcResponse.integral,
'instructions': funcResponse.particulars, 'instructions': funcResponse.particulars,
'expireTime': funcResponse.expireTime.replace(/-/g, '.').replace('~', '-'), //订单有效期 'expireTime': funcResponse.expireTime.replace(/-/g, '.').replace('~', '-'), //订单有效期
// 'wxRequest': funcResponse.wxRequest, 'wxRequest': funcResponse.wxRequest,
} }
// 电影 // 电影
...@@ -127,8 +127,6 @@ Page({ ...@@ -127,8 +127,6 @@ Page({
goodsList: funcGoodsList, goodsList: funcGoodsList,
}) })
// 等待支付时间计时
if (funcOrderInfo.state == 0) this.setPayCouponInfo(funcOrderInfo.submitTime)
this.setData({ this.setData({
orderInfo: funcOrderInfo, orderInfo: funcOrderInfo,
shopInfo: funcShopInfo, shopInfo: funcShopInfo,
...@@ -165,6 +163,16 @@ Page({ ...@@ -165,6 +163,16 @@ Page({
// 再次下单 // 再次下单
onOrderAgain: function () { onOrderAgain: function () {
let funcShopInfoBuffer = App.getShopInfo(this.data.shopInfo.id)
if (funcShopInfoBuffer.appId === 0) {
wx.navigateTo({ url: '/pages/club/home/home' })
} else {
wx.navigateTo({ url: '/pages/play/activity/activity' })
}
return
let funcUrl = '' let funcUrl = ''
let funcGoodsType = this.data.orderInfo.goodsType let funcGoodsType = this.data.orderInfo.goodsType
let funcShopAppId = App.getShopInfo(this.data.shopInfo.id).appId let funcShopAppId = App.getShopInfo(this.data.shopInfo.id).appId
...@@ -220,6 +228,7 @@ Page({ ...@@ -220,6 +228,7 @@ Page({
}, },
// 去支付 // 去支付
onOrderPay: function (event) { onOrderPay: function (event) {
let funcThis = this
// 数据校验不通过 // 数据校验不通过
let wxRequest = this.data.orderInfo.wxRequest let wxRequest = this.data.orderInfo.wxRequest
// 待支付返回的wx支付参数 // 待支付返回的wx支付参数
...@@ -231,7 +240,13 @@ Page({ ...@@ -231,7 +240,13 @@ Page({
signType: wxRequest.signType, signType: wxRequest.signType,
paySign: wxRequest.paySign, paySign: wxRequest.paySign,
success(res) { success(res) {
this.queryOrderDetail() funcThis.queryOrderDetail()
wx.emit({
event: {
type: 'onReload',
receivePage: 'pages/mine/appointment/appointment',
}
})
}, },
fail(res) { } fail(res) { }
}) })
...@@ -260,10 +275,6 @@ Page({ ...@@ -260,10 +275,6 @@ Page({
App.ui.showToast({ App.ui.showToast({
'iconType': 'loading', 'iconType': 'loading',
'title': '处理中', 'title': '处理中',
'duration': 60000
})
this.setData({
isDoing: true,
}) })
App.request({ App.request({
url: 'v1/activity/doCancel', url: 'v1/activity/doCancel',
...@@ -273,31 +284,18 @@ Page({ ...@@ -273,31 +284,18 @@ Page({
} }
}).then((response) => { }).then((response) => {
App.ui.hideToast() App.ui.hideToast()
this.setData({
isDoing: false,
})
App.ui.showToast({ App.ui.showToast({
'iconType': 'success', 'iconType': 'success',
'title': type == 1 ? '订单删除成功' : '订单取消成功' 'title': type == 1 ? '订单删除成功' : '订单取消成功',
}) ending: () => {
setTimeout(function () {
if (type == 1) {
// 删除操作
wx.navigateBack({ wx.navigateBack({
delta: 1 event: {
}) type: 'onReload'
}
wx.setStorageSync('option-appointment', 'refresh')
} else {
// 取消操作
let state = `orderInfo.state`
this.setData({
isDoing: false,
[state]: -1
}) })
} }
}, 2000) })
}).catch((response) => { }).catch((response) => {
App.ui.showToast({ App.ui.showToast({
'iconType': 'error', 'iconType': 'error',
......
...@@ -71,6 +71,22 @@ Page({ ...@@ -71,6 +71,22 @@ Page({
} }
}, },
onReload: function () {
this.setData({
pageNo: 1,
pageSize: 10,
data: [],
activityList: [],
})
let type = this.data.option.tab ? 1 * this.data.option.tab : 0
if (type === 0) {
this.queryActivityList()
} else {
this.getList(type)
}
},
queryActivityList: function () { queryActivityList: function () {
wx.setStorageSync('option-appointment', '') wx.setStorageSync('option-appointment', '')
App.ui.showToast({ App.ui.showToast({
......
<m-toast></m-toast> <m-toast></m-toast>
<m-dialog></m-dialog> <m-dialog></m-dialog>
<m-nav titleText="我的俱乐部" styleIndex="{{1}}"></m-nav> <m-nav titleText="入会审核" styleIndex="{{1}}"></m-nav>
<view class="tab"> <view class="tab">
<m-tab item="{{tabItem}}" classTabList="row cb tab_list" bindtabChange="eventTabChange"></m-tab> <m-tab item="{{tabItem}}" classTabList="row cb tab_list" bindtabChange="eventTabChange"></m-tab>
......
...@@ -103,6 +103,11 @@ ...@@ -103,6 +103,11 @@
width: 750rpx; width: 750rpx;
height: 146rpx; height: 146rpx;
padding: 0 40rpx; padding: 0 40rpx;
background: #FFFFFF;
}
.pass_item_line:last-child {
display: none;
} }
.pass_item_avatar { .pass_item_avatar {
......
...@@ -190,6 +190,7 @@ Page({ ...@@ -190,6 +190,7 @@ Page({
}, },
// 去支付 // 去支付
onOrderPay: function (event) { onOrderPay: function (event) {
let funcThis = this
// 数据校验不通过 // 数据校验不通过
let wxRequest = this.data.orderInfo.wxRequest let wxRequest = this.data.orderInfo.wxRequest
// 待支付返回的wx支付参数 // 待支付返回的wx支付参数
...@@ -201,7 +202,13 @@ Page({ ...@@ -201,7 +202,13 @@ Page({
signType: wxRequest.signType, signType: wxRequest.signType,
paySign: wxRequest.paySign, paySign: wxRequest.paySign,
success(res) { success(res) {
this.queryOrderDetail() funcThis.queryOrderDetail()
wx.emit({
event: {
type: 'onReload',
receivePage: 'pages/mine/order/order',
}
})
}, },
fail(res) {} fail(res) {}
}) })
......
...@@ -72,7 +72,6 @@ Page({ ...@@ -72,7 +72,6 @@ Page({
'shopId': funcData[i].officeId, 'shopId': funcData[i].officeId,
} }
funcList.push(funcItem) funcList.push(funcItem)
funcList.push(funcItem)
} }
this.setData({ this.setData({
recentActivitiesList: funcList recentActivitiesList: funcList
......
...@@ -97,7 +97,7 @@ Page({ ...@@ -97,7 +97,7 @@ Page({
movieInfo.priceSpecialText = App.modular.utils.formatAmount(movieInfo.ownerPrice), // 业主价文本格式 movieInfo.priceSpecialText = App.modular.utils.formatAmount(movieInfo.ownerPrice), // 业主价文本格式
movieInfo.priceText = App.modular.utils.formatAmount(movieInfo.visitorPrice), movieInfo.priceText = App.modular.utils.formatAmount(movieInfo.visitorPrice),
movieInfo.tags = movieInfo.tags.replace(/( )?热映影片( )?/, ' ').split(' ') movieInfo.tags = movieInfo.tags
......
page { page {
min-height: 100vh;
background-color: #1C1C25; background-color: #1C1C25;
} }
.contaniner {
flex-grow: 1;
}
/* 状态筛选菜单 */ /* 状态筛选菜单 */
.status { .status {
z-index: 2; z-index: 2;
position: fixed;
left: 0;
width: 750rpx; width: 750rpx;
height: 120rpx;
background-color: #1C1C25; background-color: #1C1C25;
border-bottom: 1rpx #3A3A40 solid; border-bottom: 1rpx #3A3A40 solid;
} }
.status-item { .status-item {
flex: 1; flex: 1;
height: 120rpx; height: 60rpx;
font-size: 26rpx; font-size: 26rpx;
font-weight: 400; font-weight: 400;
line-height: 36rpx; line-height: 36rpx;
...@@ -23,12 +25,16 @@ page { ...@@ -23,12 +25,16 @@ page {
} }
.status-item-active { .status-item-active {
height: 120rpx;
color: #fff; color: #fff;
height: 60rpx;
font-weight: 600; font-weight: 600;
border-bottom: 4rpx #fff solid; border-bottom: 4rpx #fff solid;
} }
.status-item-inactive {
height: 60rpx;
}
.movie-wrapper { .movie-wrapper {
position: relative; position: relative;
width: 670rpx; width: 670rpx;
...@@ -159,39 +165,12 @@ page { ...@@ -159,39 +165,12 @@ page {
letter-spacing: 3rpx; letter-spacing: 3rpx;
line-height: 44rpx; line-height: 44rpx;
} }
.movie-week-title {
position: relative;
margin: 0 8rpx;
padding: 8rpx 40rpx 4rpx;
}
.star-left {
position: absolute;
left: 0;
bottom: 0;
width: 36rpx;
height: 8rpx;
}
.star-right {
position: absolute;
right: 0;
top: 0;
width: 68rpx;
height: 40rpx;
}
.line {
width: 80rpx;
height: 1rpx;
background: #3A3A40;
}
.all-movie-wrapper { .all-movie-wrapper {
position: relative; position: relative;
width: 670rpx; width: 670rpx;
height: 366rpx; height: 366rpx;
margin: 80rpx auto 0; margin: 72rpx 40rpx 8rpx 40rpx;
padding: 32rpx 32rpx 32rpx 278rpx; padding: 32rpx 32rpx 32rpx 278rpx;
background: #272734; background: #272734;
border-radius: 4rpx; border-radius: 4rpx;
...@@ -206,6 +185,7 @@ page { ...@@ -206,6 +185,7 @@ page {
border-radius: 4rpx; border-radius: 4rpx;
} }
.footer-img { .footer-img {
flex-grow: 1;
width: 750rpx; width: 750rpx;
height: 150rpx; height: 150rpx;
margin-top: 64rpx; margin-top: 64rpx;
...@@ -233,4 +213,47 @@ page { ...@@ -233,4 +213,47 @@ page {
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
}
/* 全部热映 */
.hitmovie_special_wrap {
margin: 60rpx 0 0 0;
}
.hitmovie_special {
display: inline-block;
width: 100%;
color: #C2C7CF;
}
.hitmovie_special_line {
display: inline-block;
min-width: 80rpx;
height: 1px;
margin: 0 48rpx;
background: #292931;
}
.hitmovie_special_title_wrap {
position: relative;
}
.hitmovie_special_title {
color: #C2C7CF;
}
.hitmovie_special_title_ornament:nth-child(1) {
position: absolute;
left: -40rpx;
bottom: 0;
width: 36rpx;
height: 8rpx;
}
.hitmovie_special_title_ornament:nth-child(3) {
position: absolute;
right: -40rpx;
bottom: 0;
width: 68rpx;
height: 40rpx;
} }
\ No newline at end of file
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"enableEngineNative": false,
"useIsolateContext": true, "useIsolateContext": true,
"useCompilerModule": true, "useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false, "userConfirmedUseCompilerModuleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"enableEngineNative": false,
"minifyWXSS": true "minifyWXSS": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
......
...@@ -26,9 +26,10 @@ function emit (wxObject) { ...@@ -26,9 +26,10 @@ function emit (wxObject) {
let funcReceivePagePath = object.event.receivePage let funcReceivePagePath = object.event.receivePage
if (funcPageList.length > 1) { if (funcPageList.length > 1) {
for (let i = funcPageList.length - 1; 0 <= i; i--) { for (let i = funcPageList.length - 1; 0 <= i; i--) {
if (funcPageList[i].route === funcReceivePagePath) { if (funcPageList[i].route === funcReceivePagePath) {
funcPageList[i].onCatchNewEvent(object.event) funcPageList[i].onCatchNewEvent(object.event)
console.log(funcPageList[i][object.event.type])
if (typeof funcPageList[i][object.event.type] === 'function' ) funcPageList[i][object.event.type]() if (typeof funcPageList[i][object.event.type] === 'function' ) funcPageList[i][object.event.type]()
break break
} }
...@@ -50,12 +51,13 @@ function navigateBack (wxObject) { ...@@ -50,12 +51,13 @@ function navigateBack (wxObject) {
console.log('[extend api] navigateBack', object) console.log('[extend api] navigateBack', object)
if (object && object.event && inspectEventFormat(object.event)) { if (object && object.event && inspectEventFormat(object.event)) {
let funcPageList = getCurrentPages() let funcPageList = getCurrentPages()
let funcReceivePagePath = object.event.receivePage ? object.event.receivePage : funcPageList[funcPageList.length - 1].route let funcReceivePagePath = object.event.receivePage ? object.event.receivePage : funcPageList[funcPageList.length - 2].route
if (funcPageList.length > 1) { if (funcPageList.length > 1) {
for (let i = funcPageList.length - 1; 0 <= i; i--) { for (let i = funcPageList.length - 1; 0 <= i; i--) {
if (funcPageList[i].route === funcReceivePagePath) { if (funcPageList[i].route === funcReceivePagePath) {
funcPageList[i].onCatchNewEvent(object.event) funcPageList[i].onCatchNewEvent(object.event)
console.log(funcPageList[i])
if (typeof funcPageList[i][object.event.type] === 'function' ) funcPageList[i][object.event.type]() if (typeof funcPageList[i][object.event.type] === 'function' ) funcPageList[i][object.event.type]()
break break
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment