Authored by yyq

invoice

... ... @@ -2,7 +2,7 @@
"pages": [
"pages/index/index",
"pages/userCenter/userCenter",
"pages/goodsCollect/goodsCollect",
"pages/goodsCollect/goodsCollect",
"pages/addressManager/addressManager",
"pages/orders/orders",
"pages/orders/orderDetail/orderDetail",
... ... @@ -31,7 +31,11 @@
"pages/choosecountry/choosecountry",
"pages/bindPhoneNumber/bindPhoneNumber",
"pages/envelopesActivity/envelopesActivity",
"pages/goodsList/brandStore"
"pages/goodsList/brandStore",
"pages/cart/ensure/ensure",
"pages/cart/invoice/invoice",
"pages/home/address/list",
],
"window": {
"backgroundTextStyle": "light",
... ... @@ -53,7 +57,7 @@
},
{
"pagePath": "pages/classify/category",
"text": "分类",
"text": "分类",
"iconPath": "static/images/X_pl_ic_n@3x.png",
"selectedIconPath": "static/images/X_pl_ic_h@3x.png"
},
... ... @@ -65,4 +69,4 @@
}
]
}
}
\ No newline at end of file
}
... ...
@font-face {
font-family: 'iconfont';
src: url(data:font/truetype;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTYMQP7kAAA30AAAAHEdERUYAKQAYAAAN1AAAAB5PUy8yVudOdwAAAVgAAABWY21hcIGAjW8AAAH4AAABkmdhc3D//wADAAANzAAAAAhnbHlmqQoHWgAAA7QAAAbsaGVhZBEdXK0AAADcAAAANmhoZWEIcAQmAAABFAAAACRobXR4QdEHtwAAAbAAAABIbG9jYQ38C+AAAAOMAAAAJm1heHABIgBjAAABOAAAACBuYW1lKeYRVQAACqAAAAKIcG9zdKDSCP8AAA0oAAAAoQABAAAAAQAAPOvdo18PPPUACwQAAAAAANa2DFgAAAAA1rYMWAAA/4AEkgOAAAAACAACAAAAAAAAAAEAAAOA/4AAXASTAAAAAASSAAEAAAAAAAAAAAAAAAAAAAASAAEAAAASAFcABgAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQQIAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZF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pY29uZm9udAAAUgBlAGcAdQBsAGEAcgAAUmVndWxhcgAAaQBjAG8AbgBmAG8AbgB0AABpY29uZm9udAAAaQBjAG8AbgBmAG8AbgB0AABpY29uZm9udAAAVgBlAHIAcwBpAG8AbgAgADEALgAwAABWZXJzaW9uIDEuMAAAaQBjAG8AbgBmAG8AbgB0AABpY29uZm9udAAARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgAAR2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0LgAAaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAaHR0cDovL2ZvbnRlbGxvLmNvbQAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAQACAFsBAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgAOAQ8GZHVpaGFvDXJvdW5kLWNoZWNrZWQEZWRpdANjaGEJd2Fybi1maWxsBmJvdHRvbQVyaWdodAN0b3AEbGVmdAVyb3VuZAhsb2NhdGlvbgZkZWxldGUGd2VuaGFvBndlY2hhdAAAAAAAAf//AAIAAQAAAAwAAAAWAAAAAgABAAMAEgABAAQAAAACAAAAAAAAAAEAAAAA1aQnCAAAAADWt1SFAAAAANa3VIU=) format('truetype');
font-weight: normal;
font-style: normal;
}
... ... @@ -29,6 +29,8 @@
.icon-warn-fill:before { content: "\e60e"; }
.icon-wenhao:before { content: "\e699"; }
.icon-plus:before { content: "\e867"; }
.icon-location:before { content: "\e67c"; }
... ...
... ... @@ -7,6 +7,18 @@ Page({
address: '国家广告产业园5栋17楼有货传媒',
address_id: 'fJiLEJHJXpTHDSEJnxM6kQ=='
},
goodsList: [
{
goods_images: 'http://img11.static.yhbimg.com/goodsimg/2017/07/26/14/011b6a77d9e4105c50811faba17ed72466.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/80',
goods_type: 'gift',
product_name: 'HIPANDA 男太空棉警示线长款羽绒服黑色',
factory_goods_name: '黑色',
size_name: 'L',
sales_price: '999.00',
buy_number: '1',
warnTip: '不支持7天退换货'
}
],
deliveryWayText: '普通快递:运费¥0',
deliveryWayEditStatus: false,
deliveryWayList: [
... ... @@ -128,7 +140,41 @@ Page({
}
},
toggleInvoiceWrap(e) {
this.setData({invoiceNeedStatus: e.detail.value});
let data = {invoiceNeedStatus: e.detail.value};
if (!this.data.invoiceInfo) {
data.invoiceInfo = {
invoiceType: 2,
invoiceCompany: false,
invoiceTitle: '',
invoiceTitleShow: '个人',
invoiceContent: 12,
taxNumber: '',
receiver: this.userTel || ''
}
}
this.setData(data);
},
changeInvoiceInfo() {
let skey = `invoice${Date.parse(new Date())}`;
try {
wx.setStorageSync(skey, this.data.invoiceInfo);
} catch (e) {
console.log('invoice info setStorageSync error');
}
this.navigateTo(`/pages/cart/invoice/invoice?skey=${skey}`);
},
changeInvoiceCallback(invoice) {
if (!invoice.invoiceCompany && !invoice.invoiceTitle) {
invoice.invoiceTitleShow = '个人';
} else {
invoice.invoiceTitleShow = invoice.invoiceTitle;
}
this.setData({invoiceInfo: invoice});
},
submitOrder() {
console.log('submitOrder');
... ...
... ... @@ -22,23 +22,26 @@
</view>
<view class="split-line"></view>
<view class="goods-list">
<view class="goods-list" wx:for="{{goodsList}}" wx:key="unique">
<view class="goods-item">
<image class="thumb" src="http://img11.static.yhbimg.com/goodsimg/2017/07/26/14/011b6a77d9e4105c50811faba17ed72466.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/80"></image>
</view>
<view class="goods-item">
<image class="thumb" src="http://img11.static.yhbimg.com/goodsimg/2017/07/26/14/011b6a77d9e4105c50811faba17ed72466.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/80"></image>
<image class="thumb" src="{{item.goods_images}}"></image>
<view class="goods-type price-gift-tag" wx:if="{{item.goods_type === 'price_gift'}}">
<text>加价购</text>
</view>
<view class="goods-type gift-tag" wx:if="{{item.goods_type === 'gift'}}">
<text>赠品</text>
</view>
<view class="name-price">
<text class="name item-left">HIPANDA 男太空棉警示线长款羽绒服黑色</text>
<text class="price item-right red">¥ 799.00</text>
<text class="name item-left">{{item.product_name}}</text>
<text class="price item-right red">¥ {{item.sales_price}}</text>
</view>
<view class="color-size-num">
<text class="color-size item-left">颜色:黑色 尺码:L</text>
<text class="num item-right">x 1</text>
<text class="color-size item-left">颜色:{{item.factory_goods_name}} 尺码:{{item.size_name}}</text>
<text class="num item-right">x {{item.buy_number}}</text>
</view>
<view class="warn-tip red">
<view class="warn-tip red" wx:if="{{item.warnTip}}">
<text class="iconfont icon-warn-fill"></text>
<text class="tip">不支持七天退换货</text>
<text class="tip">{{item.warnTip}}</text>
</view>
</view>
</view>
... ... @@ -47,7 +50,7 @@
<view class="choose-item delivery-way">
配送方式
<view class="change-btn" bindtap="toggleDeliveryWayList">
<text>{{deliveryWayText}}</text>
<text class="btn-text">{{deliveryWayText}}</text>
<text class="iconfont {{deliveryWayEditStatus ? 'icon-top' : 'icon-bottom'}}"></text>
</view>
</view>
... ... @@ -60,7 +63,7 @@
<view class="choose-item delivery-time">
送货时间
<view class="change-btn" bindtap="toggleDeliveryTimeList">
<text>{{deliveryTimeText}}</text>
<text class="btn-text">{{deliveryTimeText}}</text>
<text class="iconfont {{deliveryTimeEditStatus ? 'icon-top' : 'icon-bottom'}}"></text>
</view>
</view>
... ... @@ -76,8 +79,8 @@
</view>
<view wx:if="{{invoiceNeedStatus}}" class="choose-item invoice">
发票信息
<view class="change-btn">
<text>{{invoiceName}}</text>
<view class="change-btn" bindtap="changeInvoiceInfo">
<text class="btn-text">{{invoiceInfo.invoiceType === 2 ? '电子发票' : '纸质发票'}} - {{invoiceInfo.invoiceTitleShow}}</text>
<text class="iconfont icon-right"></text>
</view>
</view>
... ...
... ... @@ -135,6 +135,27 @@
left: 0;
}
.goods-item .goods-type {
width: 150rpx;
height: 30rpx;
line-height: 30rpx;
font-size: 20rpx;
background-color: #444;
color: #fff;
text-align: center;
position: absolute;
left: 0;
bottom: 20rpx;
}
.goods-item .price-gift-tag {
background-color: #85c45c;
}
.goods-item .gift-tag {
background-color: #fc1261;
}
.goods-list .goods-item .name-price {
font-size: 28rpx;
height: 80rpx;
... ... @@ -192,6 +213,16 @@
vertical-align: middle;
}
.choose-wrap .change-btn .btn-text {
width: 400rpx;
display: inline-block;
vertical-align: top;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.choose-wrap .edit-wrap {
background-color: #f0f0f0;
font-size: 28rpx;
... ...
Page({
data: {
invocesType: 2
},
onLoad(options) {
if (!options.skey) {
return;
}
this.tryToDo(() => {
let invoice = wx.getStorageSync(options.skey) || {};
this.setData(invoice);
this.defaultReceiver = invoice.reciver;
});
this.tryToDo(() => {
wx.removeStorage({key: options.skey});
});
},
tryToDo(fn) {
try {
fn();
} catch (e) {
console.log(JSON.stringify(e));
}
},
validateInvoceInfo() {
const info = this.data || {};
const receiver = this.defaultReceiver;
let isPass = true;
if (info.invoiceCompany && (!info.invoiceTitle || !info.taxNumber)) {
isPass = false;
}
if (isPass && info.invocesType * 1 === 2) {
if (!info.receiver) {
isPass = false;
} else if (info.receiver !== receiver && !/^[0-9]{11,18}$/.test(info.receiver)) {
isPass = false;
}
}
if (isPass !== this.data.canSubmit) {
this.setData({canSubmit: isPass});
}
return isPass;
},
showInvoceNotice() {
wx.showModal({
title: '发票须知',
content: '1、发票金额不含优惠券/有货币/红包/优惠券/优惠码/运费,只包含商品实付金额;\r\n2、电子发票是税务局认可的、有效的收付款凭证,其法律效力、基本用途及使用规则同纸质发票,如需纸质发票可自行下载打印;',
confirmText:'我知道了',
showCancel:false
});
},
changeTitleType(e) {
let isCompany = e.currentTarget.dataset.type === 'company';
if (isCompany !== this.data.invoiceCompany) {
this.setData({invoiceCompany: isCompany});
this.validateInvoceInfo();
}
},
changeTitle(e) {
this.data.invoiceTitle = e.detail.value;
this.validateInvoceInfo();
},
changeTaxNumber(e) {
this.data.taxNumber = e.detail.value;
this.validateInvoceInfo();
},
changeReceiver(e) {
this.data.receiver = e.detail.value;
this.validateInvoceInfo();
},
invoiceSubmit() {
if (!this.validateInvoceInfo()) {
return;
}
let currentPages = getCurrentPages();
if (currentPages.length > 1 && currentPages[currentPages.length - 2].changeInvoiceCallback) {
currentPages[currentPages.length - 2].changeInvoiceCallback(this.data);
}
wx.navigateBack({delta: 1});
}
})
... ...
{
"navigationBarTitleText": "发票信息"
}
... ...
<view class="contailer">
<view class="invoice-type">
<view>发票类型 电子发票
<text class="iconfont icon-wenhao notice-btn" catchtap="showInvoceNotice"></text>
</view>
<view class="tip">
<text class="iconfont icon-warn-fill"></text>
<text>电子发票与纸质发票具备同等法律效力,可支持报销入账</text>
</view>
</view>
<view class="invoice-title">发票信息</view>
<view class="invoice-info">
<view class="title-type">
<text class="iconfont {{invoiceCompany ? 'icon-round' : 'icon-round-checked'}}" data-type="personal" catchtap="changeTitleType"></text>
<text class="type-name" data-type="personal" catchtap="changeTitleType">个人</text>
<text class="iconfont {{invoiceCompany ? 'icon-round-checked' : 'icon-round'}}" data-type="company" catchtap="changeTitleType"></text>
<text class="type-name" data-type="company" catchtap="changeTitleType">单位</text>
</view>
<view class="info-item">
<text class="left-cell">发票抬头</text>
<input class="right-cell" placeholder="{{invoiceCompany ? '请输入单位名称' : '个人(可修改)'}}" data-name="reciver" maxlength="18" bindinput="changeTitle" value="{{invoiceTitle}}"/>
</view>
<view class="info-item {{invoiceCompany ? '' : 'hide'}}">
<text class="left-cell">税号</text>
<input class="right-cell" placeholder="请输入正确的纳税人识别号" data-name="reciver" maxlength="18" bindinput="changeTaxNumber" value="{{taxNumber}}"/>
</view>
</view>
<view class="invoice-title">收票人信息</view>
<view class="invoice-reciver">
<text class="left-cell">手机号</text>
<input class="right-cell" placeholder="可通过手机号在发票服务平台查询" data-name="reciver" maxlength="18" type="number" bindinput="changeReceiver" value="{{receiver}}"/>
</view>
<button class="submit-btn {{canSubmit ? '' : 'disabled'}}" bindtap="invoiceSubmit">确认</button>
</view>
... ...
page {
display: block;
min-height: 100%;
background-color: #f0f0f0;
}
.contailer {
font-size: 32rpx;
}
.invoice-type {
background-color: #fff;
padding: 20rpx 30rpx;
margin-top: 20rpx;
}
.invoice-type .notice-btn {
float: right;
font-size: 32rpx;
color: #888;
display: inline-block;
padding-left: 40rpx;
}
.invoice-type .tip {
font-size: 24rpx;
margin-top: 16rpx;
color: #888;
}
.invoice-type .tip .iconfont {
margin-right: 6rpx;
}
.invoice-title {
line-height: 90rpx;
padding: 0 30rpx;
}
.invoice-info,
.invoice-reciver {
line-height: 80rpx;
padding-left: 30rpx;
background-color: #fff;
}
.invoice-info .title-type > text {
display: inline-block;
}
.invoice-info .title-type .iconfont {
font-size: 34rpx;
}
.invoice-info .title-type .type-name {
padding: 0 16rpx;
margin-right: 40rpx;
}
.invoice-info .info-item {
border-top: 1rpx solid #e0e0e0;
overflow: hidden;
}
.invoice-info .right-cell,
.invoice-reciver .right-cell {
float: right;
font-size: 24rpx;
width: 540rpx;
margin-right: 30rpx;
height: 80rpx;
}
.invoice-info .hide {
display: none;
}
.submit-btn {
height: 80rpx;
margin: 50rpx 30rpx;
background-color: #444;
color: #fff;
}
.submit-btn.disabled {
background-color: #999;
}
... ...