|
|
@@ -1,5 +1,12 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
+ <view class="header-nav"
|
|
|
+ :style="{height: `calc(88rpx + ${statusBarHeight}px)`,paddingTop: statusBarHeight + 'px'}">
|
|
|
+ <u-icon name="arrow-left" size="24" @click="tosales" v-if="appToken"></u-icon>
|
|
|
+ <view class="header-title"
|
|
|
+ :style="{width:menuButtonLeft + 'px',height:menuButtonH+'px',lineHeight:menuButtonH+'px'}">
|
|
|
+ 收款</view>
|
|
|
+ </view>
|
|
|
<view class="top">
|
|
|
<view class="inner">
|
|
|
<view class="pay">
|
|
|
@@ -46,7 +53,11 @@
|
|
|
desc:"",
|
|
|
money:null,
|
|
|
wxPay: true,
|
|
|
- scanCodeDiscountAmount:''
|
|
|
+ statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
|
|
|
+ menuButtonLeft: 281,
|
|
|
+ menuButtonH: 45,
|
|
|
+ scanCodeDiscountAmount:'',
|
|
|
+ appToken:''
|
|
|
}
|
|
|
},
|
|
|
onLoad: function(options) {
|
|
|
@@ -60,6 +71,7 @@
|
|
|
// this.companyId=obj.companyId;
|
|
|
// this.companyUserId=obj.companyUserId;
|
|
|
// }
|
|
|
+ this.appToken=uni.getStorageSync('CompanyUserToken')
|
|
|
this.companyId=options.companyId;
|
|
|
this.companyUserId=options.companyUserId;
|
|
|
if(!uni.getStorageSync('AppToken')||uni.getStorageSync('AppToken')==null){
|
|
|
@@ -75,6 +87,11 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ tosales() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages_company/index"
|
|
|
+ })
|
|
|
+ },
|
|
|
onNickNameInput(e){
|
|
|
console.log(e)
|
|
|
},
|
|
|
@@ -212,6 +229,28 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
+ .header-nav {
|
|
|
+ height: 88rpx;
|
|
|
+ // @include u-flex(row, center, flex-start);
|
|
|
+ display: flex;
|
|
|
+ justify-content: start;
|
|
|
+ overflow: hidden;
|
|
|
+ background-color: #fff;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ .header-title {
|
|
|
+ text-align: center;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ padding: 0 10rpx 0 100rpx;
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 15px;
|
|
|
+ color: #000;
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ }
|
|
|
page{
|
|
|
height: 100%;
|
|
|
background-color: #f0eff4;
|