Commit a0181d1d authored by pengguangpu's avatar pengguangpu

添加首页;

parent 2c2350a2
{
"pages": [
"pages/poster/poster",
"pages/index/index",
"pages/home/home",
"pages/poster/poster",
"pages/waitoperate/waitoperate",
"pages/landscan/landscan",
"pages/payresult/payresult"
......
......@@ -20,5 +20,4 @@
</view>
</view>
</view>
\ No newline at end of file
/* home样式 */
.homePage {
......@@ -6,7 +5,7 @@
flex-direction: column;
width: 100%;
height: 100%;
background: #F3F7F9;
background: white;
/* border: 2px solid red; */
}
......@@ -26,28 +25,13 @@
width: auto;
}
.homeBodyView {
position: relative;
width: 100%;
height: 100%;
background: #ffffff;
.homeItemView {
width: 174rpx;
height: 148rpx;
/* border: 2px solid red; */
}
.homeGridItem {
/* box-sizing: border-box; */
display: flex;
flex-direction: column;
width: 96rpx;
align-items: center;
margin-top: 15rpx;
margin-bottom: 15rpx;
margin-left: 38rpx;
margin-right: 38rpx;
}
.homeItemImage {
width: 96rpx;
height: 96rpx;
}
.homeItemText {
......@@ -55,17 +39,30 @@
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: rgba(0, 0, 0, 1);
line-height: 27rpx;
/* line-height: 27rpx; */
margin: 0 auto;
margin-top: 12rpx;
}
.homeBodyView {
position: relative;
width: 100%;
height: 100%;
/* background: #ffffff; */
/* border: 2px solid red; */
}
.homeItemImage {
width: 96rpx;
height: 96rpx;
}
/**
支付结果页样式css
*/
.topView {
position: relative;
width: 768rpx;
......
This diff is collapsed.
......@@ -145,14 +145,14 @@ Page({
});
context.goPage('payresult');
} else if(res.action == ACTION_GET_ACCOUNT){
} else if (res.action == ACTION_GET_ACCOUNT) {
context.setData({
storeName:res.data.storeName
storeName: res.data.storeName
});
}
}
});
},
onHide() {
// 页面隐藏
......@@ -182,7 +182,7 @@ Page({
};
},
getAccountInfo(){
getAccountInfo() {
my.ix.sendBuddyMessage({
target: getApp().globalData.frontScreenAppId,
data: {
......@@ -200,6 +200,78 @@ Page({
});
},
/**首页相关 */
/**立即收款 */
onHomeCashierImmediatelyClicked() {
},
/**
* 兑换
*/
onHomeExchangeClicked() {
},
/**
* 海报
*/
onHomePosterClicked() {
},
/**
* 退款
*/
onHomeRefundClicked() {
},
/**
* 打印上一单
*/
onHomePrintLastOrderClicked() {
},
/**
* 核验
*/
onHomeVerifyClicked() {
},
/**
* 提货
*/
onHomePickUpGoodsClicked() {
},
/**日结 */
onHomeDayCheckClicked() {
},
/**关于系统(实际上是关于应用) */
onHomeAboutAppClicked() {
},
/**
* 系统设置
*/
onHomeSysSettingClicked() {
},
/**
* 应用设置
*/
onHomeAppSettingClicked() {
},
/**payresult页面逻辑方法 */
onReprint() {
//通知前屏重新打印
......@@ -423,15 +495,15 @@ Page({
})
},
waitOperateBack(){
waitOperateBack() {
//直接返回到扫码页面,并且通知前屏返回
this.goPage('landscan');
my.ix.sendBuddyMessage({
target: getApp().globalData.frontScreenAppId,
data: {
action:ACTION_GO_SCAN,
data:null
action: ACTION_GO_SCAN,
data: null
},
success: (res) => {
console.log("通知前屏跳转到结算页面 成功 ===》" + JSON.stringify(res));
......
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 to comment