Commit 09bb006f by 严立

LL - 确认订单静态

parent 88f2e258
...@@ -9,7 +9,7 @@ App({ ...@@ -9,7 +9,7 @@ App({
globalData: { globalData: {
appImageBase: '../../../image/', appImageBase: '../../../image/',
appResourcesBase: 'https://sm-web.meiqicloud.com/userfiles/appResources/', appResourcesBase: 'https://sm-web.meiqicloud.com/userfiles/appResourcesS2/',
token: '', token: '',
refreshToken: '', refreshToken: '',
userInfo: null, userInfo: null,
......
{ {
"pages": [ "pages": [
"pages/pay/order-input/order-input",
"pages/home/home/home", "pages/home/home/home",
"pages/home/dynamic/dynamic", "pages/home/dynamic/dynamic",
"pages/home/dynamic-detail/dynamic-detail", "pages/home/dynamic-detail/dynamic-detail",
...@@ -40,7 +42,8 @@ ...@@ -40,7 +42,8 @@
"pages/mine/question/question", "pages/mine/question/question",
"pages/mine/question-more/question-more", "pages/mine/question-more/question-more",
"pages/pay/home/home", "pages/pay/home/home",
"pages/pay/order-input/order-input",
"pages/pay/order-detail/order-detail", "pages/pay/order-detail/order-detail",
"pages/pay/coupon/coupon", "pages/pay/coupon/coupon",
"pages/pay/coupon-input/coupon-input", "pages/pay/coupon-input/coupon-input",
......
let App = getApp()
Page({ Page({
data: { data: {
orderType: '年卡', imageBase: App.globalData.appImageBase,
orderType: 6, // 1 - 年卡/月卡,2 - 次票, 3 - SPA, 4 - 文创, 5 - 餐品, 6 - 活动, 7 - 观影
buyContent: '',
buyPass: [
App.globalData.appResourcesBase + 'pay/content-pass-1.png'
],
required: false, required: false,
isOld: true, isOld: true,
showNotice: false, showNotice: false,
...@@ -10,21 +20,80 @@ Page({ ...@@ -10,21 +20,80 @@ Page({
formName: '', formName: '',
formPhone: '', formPhone: '',
formIdNum: '', formIdNum: '',
isSubmit: false isSubmit: false,
// 购买内容
buyContentCover: '',
buyContentTitle: '肌底补水保湿焕肤提华SPA套餐SPA套餐',
buyContentTime: '周一至周日 10:00-12:00',
buyContentAmount: '36.00',
// 购买清单
shoppingCartList: [{
cover: '',
name: 'aaaaa',
quantity: 12,
price: '60.50',
}, {
cover: '',
name: 'aaaaa',
quantity: 12,
price: '60.50',
}],
noticeText: '购买须知',
// 预约选择组件属性
entryDate: '',
entryStartDate: '',
entryEndDate: '',
// 数量选择组件属性
quantityTitle: '选择购买数量',
quantityError: '每笔订单购买数量上限为20',
quantityTipText: '剩余库存',
quantityTipNumber: 0,
quantity: 0,
quantityMax: 20,
quantityMin: 0,
// 购买人员信息
contactTitle: '填写购票人信息',
contactName: '',
contactPhone: '',
// 立即支付
payAmount: '59.00',
// 以下变量均为界面控制
winBuyContent: false, // 购买内容
winShoppingCart: false, // 购买清单
winNotice: false, // 购买须知
winNoticeTip: false, // 购买提示
winEntry: false, // 预约选择
winQuantity: false, // 数量选择
winContact: false, // 联系信息
winRegister: false, // 注册信息
winButtonPay: false, // 立即支付
winButtonAppointment: false, // 确认预约
}, },
onLoad() { onLoad() {
if (this.data.orderType === '年卡') { // this.setData({
let formItem = {} // buyContent: this.data.buyPass[0]
let formList = [] // })
formItem.name = '姓名'
formItem.phone = '手机号' // if (this.data.orderType === '年卡') {
formItem.idNum = '身份证' // let formItem = {}
formList.push(formItem) // let formList = []
this.setData({ // formItem.name = '姓名'
formItem, // formItem.phone = '手机号'
formList // formItem.idNum = '身份证'
}) // formList.push(formItem)
} // this.setData({
// formItem,
// formList
// })
// }
}, },
handleNotice() { handleNotice() {
let showNotice = true let showNotice = true
...@@ -58,7 +127,7 @@ Page({ ...@@ -58,7 +127,7 @@ Page({
formList formList
}) })
}, },
onInputBlur: function (event) { onInputBlur: function(event) {
console.log(event) console.log(event)
let funcType = event.target.dataset.type let funcType = event.target.dataset.type
let funcValue = event.detail.value let funcValue = event.detail.value
...@@ -82,7 +151,7 @@ Page({ ...@@ -82,7 +151,7 @@ Page({
} }
this.inspectForm() this.inspectForm()
}, },
inspectForm: function () { inspectForm: function() {
console.log(1) console.log(1)
if (this.data.formName === '') { if (this.data.formName === '') {
this.setData({ this.setData({
...@@ -130,4 +199,19 @@ Page({ ...@@ -130,4 +199,19 @@ Page({
isSubmit: true isSubmit: true
}) })
}, },
onQuantityCut: function () {
this.setData({
quantity: this.data.quantity - 1
})
},
onQuantityAdd: function () {
this.setData({
quantity: this.data.quantity + 1
}) })
},
})
\ No newline at end of file
{ {
"usingComponents": { "usingComponents": {},
"Tips": "../../components/Tips/Tips", "navigationStyle": "default",
"Blank": "../../components/Blank/Blank" "navigationBarTextStyle": "black",
}, "navigationBarTitleText": "确认订单",
"navigationBarTitleText": "确认订单" "navigationBarBackgroundColor": "#FFFFFF"
} }
\ No newline at end of file
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