平板端快衣店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

224 lines
5.7 KiB

<template>
<view>
<cmd-nav-bar iconOne="chevron-left" @iconOne="goToInfo" :title="shopName" background-color="#fff"></cmd-nav-bar>
<view style="background: linear-gradient(90deg, #6484fa 0%, #66e8ff 100%);overflow: hidden;color:#eee;margin-top: 180rpx;">
<view class="top" ref="top">
<view class="top1">
<view class="hello-box">
<view class="hello-left">
<text
style="font-size: 40rpx;font-weight: 800;line-height: 56rpx;color: rgba(86, 132, 255, 1);">
Hi
</text>
</view>
<view class="hello-name">
{{oneShareData.shopName+'对账单'}}
</view>
<view class="hello-right"></view>
</view>
<view class="hello-text">
欢迎查看<text style="font-weight: bold;font-size: 36rpx;color: #fff;padding: 0 10rpx;">{{oneShareData.userName}}</text>的充值记录详情
</view>
</view>
</view>
</view>
<view style="display: flex;padding: 20rpx 0;border-top: 1px solid #eee;border-bottom: 1px solid #eee;">
<view class="top-box">
<view>{{oneShareData.amount>0?'充值金额':'追加欠款'}}</view>
<view style="font-size: 33rpx;font-weight: bold;color:#000;">{{Math.abs(oneShareData.amount)}}</view>
</view>
<view class="top-box">
<view>操作人</view>
<view style="font-size: 33rpx;font-weight: bold;color:#000;">{{oneShareData.createByName}}</view>
</view>
<view class="top-box">
<view>日期</view>
<view style="font-size: 33rpx;font-weight: bold;color:#000;">{{oneShareData.createTime | removeTime}}</view>
</view>
</view>
<view style="width: 95%;margin: 0 auto;line-height: 50rpx;padding: 20rpx 0;">
<view v-if="oneShareData.lastDebtAmount >= 0">
<text>之前欠款:<text style="font-weight: bold;">{{oneShareData.lastDebtAmount}}</text></text>
</view>
<view v-if="oneShareData.lastDebtAmount < 0">
<text>之前余额:<text style="font-weight: bold;">{{Math.abs(oneShareData.lastDebtAmount)}}</text></text>
</view>
<view v-if="oneShareData.balanceDue >= 0">
<text>本单后欠款:<text style="font-weight: bold;">{{oneShareData.balanceDue}}</text></text>
</view>
<view v-if="oneShareData.balanceDue < 0">
<text>本单后余额:<text style="font-weight: bold;">{{Math.abs(oneShareData.balanceDue)}}</text></text>
</view>
</view>
<view style="width: 95%;margin: 0 auto;line-height: 50rpx;padding: 20rpx 0;border-top: 1px solid #eee;">
充值时间:{{oneShareData.createTime | removeStr}}
</view>
<view style="padding: 20rpx 0;border-top: 1px solid #eee;width: 95%;margin: 0 auto;line-height: 60rpx;">
<view>{{oneShareData.shopAddress}}</view>
<view>联系电话:{{oneShareData.shopMoblie}}</view>
<view>店铺备注:{{oneShareData.shopRemark}}</view>
</view>
<view style="width:100%;color:#777;position: absolute;bottom: 20rpx;text-align: center;height: 60rpx;line-height: 60rpx;">
用快衣店进销存,开单、入库更方便
</view>
</view>
</template>
<script>
import cmdNavBar from "@/components/cmd-nav-bar/cmd-nav-bar.vue";
export default {
components: {
cmdNavBar
},
data() {
return {
oneShareData:{}
}
},
filters: {
removeStr(val) {
if (val == null) {
return "";
} else {
var dotIndex = val.indexOf('.');
if (dotIndex !== -1) {
return val.substring(0, dotIndex);
}
return val;
}
},
removeTime(val) {
if (val == null) {
return "";
} else {
var dotIndex = val.indexOf('.');
if (dotIndex !== -1) {
val = val.substring(0, dotIndex);
}
if (val.indexOf(' ') !== -1) {
val = val.substring(0, val.indexOf(' '));
}
return val;
}
}
},
onLoad(option) {
this.oneShareData = JSON.parse(option.oneShareData)
// if(uni.getStorageSync('mini_program_openid')){
// this.getToken()
// }
},
methods: {
//获取code
getToken() {
uni.login({
provider: 'weixin',
success(res) {
console.log(res.code);
this.getOpenId(res.code)
}
});
},
//获取小程序openid
getOpenId(code) {
this.tui.request("", "post", {
appid: 'wx6d7d4fb58d1502db',
secret: '3a2c8cd00926764bbd12fd7361e01f1d',
js_code: code,
grant_type: "authorization_code",
customId: ''
}, false, false).then((res) => {
this.status = 'nomore';
if (res.code == 200) {
} else {
this.tui.toast(res.message)
}
}).catch((res) => {})
},
goToInfo() {
uni.reLaunch({
url: '/pages/index/home'
})
},
}
}
</script>
<style lang="scss">
page{
width: 100;
height: 100%;
background: #fff;
}
.top-box{
flex: 1;
text-align: center;
font-size: 28rpx;
color: #777;
}
.top1 {
width: 780rpx;
height: 250rpx;
opacity: 1;
background: linear-gradient(360deg, #FAF7F7 0%, rgba(255, 255, 255, 0) 100%);
}
.hello-box {
position: absolute;
left: 42rpx;
top: 240rpx;
width: 220rpx;
height: 56rpx;
.hello-left {
width: 102rpx;
height: 56rpx;
opacity: 1;
background: #fff;
border-radius: 3px;
text-align: center;
transform: skewX(8deg);
}
.hello-right {
position: absolute;
left: 5px;
bottom: 0rpx;
width: 220rpx;
height: 2px;
opacity: 1;
background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}
.hello-name {
position: absolute;
left: 118rpx;
top: 0;
width: 400rpx;
height: 55rpx;
font-size: 32rpx;
line-height: 55rpx;
color: white;
overflow: hidden;
}
}
.hello-text {
position: absolute;
top: 320rpx;
left: 50rpx;
color: #fff;
font-size: 28rpx;
}
.top {
width: 780rpx;
height: 250rpx;
opacity: 1;
background: linear-gradient(90deg, #6484fa 0%, #66e8ff 100%);
overflow: hidden;
}
</style>