-
1App.vue
-
42common/styles/iconfont.css
-
12common/styles/theme.css
-
12components/lf-waterfall/lf-waterfall.vue
-
27pages.json
-
45pages/channel/index.vue
-
8pages/collect/index.vue
-
9pages/goodsDetail/index.vue
-
44pages/index/index.vue
-
12pages/message/index.vue
-
16pages/order/apply_refund.vue
-
9pages/order/confirm_order.vue
-
4pages/order/order.vue
-
26pages/order/order_details.vue
-
241pages/order/refund_detail.vue
-
10pages/order/unpay_details.vue
-
6pages/payState/paystate.vue
-
43pages/user/user.vue
-
BINstatic/center/about.png
-
BINstatic/center/collect-active.png
-
BINstatic/center/collect.png
-
BINstatic/center/feedback.png
-
BINstatic/center/home.png
-
BINstatic/center/loginout.png
-
BINstatic/center/message.png
-
BINstatic/center/order.png
-
BINstatic/center/pay-fail.png
-
BINstatic/center/pay-success.png
-
BINstatic/center/problem.png
-
BINstatic/center/refresh.png
-
BINstatic/center/scan.png
-
BINstatic/center/service.png
-
BINstatic/center/share.png
-
BINstatic/center/shop-logo.png
-
BINstatic/center/suggestion.png
-
BINstatic/images/jieson.png
-
BINstatic/images/other.png
-
BINstatic/images/plane_ticket.png
-
BINstatic/images/strategy.png
-
BINstatic/images/travel.png
-
BINstatic/tabbar/find-active.png
-
BINstatic/tabbar/find.png
-
BINstatic/tabbar/home-active.png
-
BINstatic/tabbar/home.png
-
BINstatic/tabbar/my-active.png
-
BINstatic/tabbar/my.png
-
BINstatic/tabbar/order-active.png
-
BINstatic/tabbar/order.png
-
BINstatic/tabbar/recomm-active.png
-
BINstatic/tabbar/recomm.png
-
10uview-ui/components/u-lazy-load/u-lazy-load.vue
@ -0,0 +1,42 @@ |
|||||
|
@font-face { |
||||
|
font-family: "lf-iconfont"; /* Project id 2651793 */ |
||||
|
src: url('//at.alicdn.com/t/font_2651793_erp3vwlpk0v.woff2?t=1625725821604') format('woff2'), |
||||
|
url('//at.alicdn.com/t/font_2651793_erp3vwlpk0v.woff?t=1625725821604') format('woff'), |
||||
|
url('//at.alicdn.com/t/font_2651793_erp3vwlpk0v.ttf?t=1625725821604') format('truetype'); |
||||
|
} |
||||
|
|
||||
|
.lf-iconfont { |
||||
|
font-family: "lf-iconfont" !important; |
||||
|
font-size: 16px; |
||||
|
font-style: normal; |
||||
|
-webkit-font-smoothing: antialiased; |
||||
|
-moz-osx-font-smoothing: grayscale; |
||||
|
} |
||||
|
|
||||
|
.lf-icon-xiangyou:before { |
||||
|
content: "\e6d8"; |
||||
|
} |
||||
|
|
||||
|
.lf-icon-dui:before { |
||||
|
content: "\e64d"; |
||||
|
} |
||||
|
|
||||
|
.lf-icon-jia:before { |
||||
|
content: "\e606"; |
||||
|
} |
||||
|
|
||||
|
.lf-icon-dui1:before { |
||||
|
content: "\e609"; |
||||
|
} |
||||
|
|
||||
|
.lf-icon-weixin:before { |
||||
|
content: "\e61c"; |
||||
|
} |
||||
|
|
||||
|
.lf-icon-cuowu:before { |
||||
|
content: "\e60c"; |
||||
|
} |
||||
|
|
||||
|
.lf-icon-tongzhi:before { |
||||
|
content: "\e60d"; |
||||
|
} |
||||
@ -0,0 +1,241 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view class="lf-bg-white lf-p-t-30 lf-p-b-30 lf-p-l-32 lf-p-r-32"> |
||||
|
<view class="lf-row-between"> |
||||
|
<image src="../../static/logo.png" mode="aspectFill" style="width: 240rpx; height: 240rpx;border-radius: 20rpx;"></image> |
||||
|
<view class="flex-sub padding-left-sm"> |
||||
|
<view class="bref-box lf-font-32 lf-color-333 lf-line-2" style="height: 88rpx;line-height: 44rpx;"> |
||||
|
南澳站·潮玩旅游胜地 身处亚热带风情/玩转南澳 |
||||
|
</view> |
||||
|
<view class="flex lf-m-t-25 align-center text-center"> |
||||
|
<text class="block lf-color-gray lf-font-24" style="line-height: 40rpx;">数量</text> |
||||
|
<text class="lf-m-l-10 lf-color-gray lf-font-24">x 1</text> |
||||
|
</view> |
||||
|
|
||||
|
<view class="flex align-center text-center lf-m-t-25"> |
||||
|
<lf-price :price="599.00" /> |
||||
|
<view class="lf-m-l-20 lf-line-through lf-color-gray"> |
||||
|
599.00 |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<self-line/> |
||||
|
<view class="bg-white padding-lr"> |
||||
|
<view class="cu-bar lf-border-bottom"> |
||||
|
<text class="lf-color-555 lf-font-28">可退金额</text> |
||||
|
<text class="text-price lf-font-36 lf-color-price">549.00</text> |
||||
|
</view> |
||||
|
<view class="cu-bar flex justify-between align-center text-center"> |
||||
|
<text class="lf-color-555 lf-font-28">订单编号</text> |
||||
|
<view> |
||||
|
<text class="lf-font-28 text-black1">2368492461046128742764</text> |
||||
|
<!-- <text class="text-orange lf-font-28" @click="copy(2368492461046128742764)">复制</text> --> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
<self-line/> |
||||
|
<view class="bg-white lf-m-b-6"> |
||||
|
<view class="lf-p-t-30 lf-p-l-32 lf-p-r-32 lf-p-b-36"> |
||||
|
<view class="lf-font-28 lf-color-black lf-m-b-20 lf-font-bold">退款说明</view> |
||||
|
<view>南澳站·潮玩旅游胜地 身处亚热带风情/玩转南澳南澳站·潮玩旅游胜地 身处亚热带风情/玩转南澳南澳站·潮玩旅游胜地 身处亚热带风情/玩转南澳</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
<view class="cu-form-group solid-bottom" style="padding-bottom: 20rpx;" v-if="img_list.length != 0"> |
||||
|
<view class="grid col-4 grid-square flex-sub"> |
||||
|
<view style="width: 212rpx;height: 212rpx;border-radius: 10rpx;" class="bg-img" v-for="(item,index) of img_list" :key="index"> |
||||
|
<image :src="item.path" @tap="showImg(index)" style="width: 216rpx;height: 216rpx;" mode="aspectFill"></image> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<!-- 修饰专用 --> |
||||
|
<view style="height: 120rpx; width: 100%;"></view> |
||||
|
<view class="btn-bottom solid-top1"> |
||||
|
<view class="padding-lr lf-p-t-10 lf-p-b-10 bg-white flex justify-between align-center shadow"> |
||||
|
<view class="flex align-center"> |
||||
|
<text class="lf-font-24 lf-font-555">实付款:</text> |
||||
|
<lf-price :price="549.00" /> |
||||
|
</view> |
||||
|
|
||||
|
<button class="btn" @tap="submit"> |
||||
|
<text class="lf-font-32 text-white">等待审核</text> |
||||
|
</button> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
hostImg: '', |
||||
|
img_list: [{path: 'https://t7.baidu.com/it/u=2168645659,3174029352&fm=193&f=GIF'}], // 反馈问题图片 |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
checkImgInfo(tempFilePath, suc){ |
||||
|
uni.getImageInfo({ |
||||
|
src: tempFilePath, |
||||
|
success (res) { |
||||
|
let type = res.type; |
||||
|
console.log('checkImgInfo...', type); |
||||
|
if(type == 'png' || type == 'jpeg' || type == 'jpg'){ |
||||
|
suc && suc(true); |
||||
|
} else { |
||||
|
suc && suc(false); |
||||
|
} |
||||
|
}, |
||||
|
fail(err) { |
||||
|
suc && suc(false); |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
// 选择图片 |
||||
|
ChooseImage(e) { |
||||
|
let that = this; |
||||
|
uni.chooseImage({ |
||||
|
count: 1, |
||||
|
sizeType: ['original'], // 可以指定是原图original还是压缩图compressed ,默认二者都有 |
||||
|
sourceType: ['album', 'camera'], // album 从相册选图,camera 使用相机,默认二者都有 |
||||
|
success: res => { |
||||
|
that.hostImg = res.tempFilePaths[0]; |
||||
|
let tempFile = res.tempFiles.shift(); |
||||
|
let tempFilePath = res.tempFilePaths.shift(); |
||||
|
that.checkImgInfo(tempFilePath, (res) => { |
||||
|
// 过滤不是图片不是png、jpeg 格式 |
||||
|
if(res){ |
||||
|
if(tempFile.size > 10000000){ |
||||
|
uni.showModal({ |
||||
|
title: '', |
||||
|
content: '您选择的图片过大:'+ (tempFile.size / 1024000).toFixed(2) +"M,请点击确定重新上传", |
||||
|
success: res2 => { |
||||
|
if(res2.confirm){ |
||||
|
uni.chooseImage({ |
||||
|
count: 1, |
||||
|
sizeType: ['compressed'], |
||||
|
sourceType: ['album', 'camera'], |
||||
|
success: (res3) => { |
||||
|
let tempFilePath = res3.tempFilePaths.shift(); |
||||
|
that.is_wx_reduce = true; |
||||
|
that.img_list.push(tempFilePath); |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
} else{ |
||||
|
that.img_list.push(tempFilePath); |
||||
|
} |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
title: '', |
||||
|
content: '选择的图片须为jpg、jpeg或png格式', |
||||
|
showCancel: false, |
||||
|
confirmColor: '#1697EE' |
||||
|
}) |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
// 上传图片到服务器 |
||||
|
upload(url){ |
||||
|
let that = this; |
||||
|
let uploads = []; |
||||
|
// 商品banner图上传 |
||||
|
if (that.img_list.length > 0) { |
||||
|
for (let i = 0; i < that.img_list.length; i++) { |
||||
|
let upload_img = new Promise((resolve, reject) => { |
||||
|
that.uploadFile(that.img_list[i], (res) => { |
||||
|
resolve(res); |
||||
|
}, (err) => { |
||||
|
reject(err); |
||||
|
}); |
||||
|
}) |
||||
|
uploads.push(upload_img); |
||||
|
} |
||||
|
} |
||||
|
if(uploads.length == 0) { |
||||
|
that.realSubmitInfo([]); |
||||
|
return |
||||
|
} |
||||
|
Promise.all(uploads).then((result) => { |
||||
|
console.log('图片上传...', result) |
||||
|
let img_url_list = []; |
||||
|
if(result.length > 0){ |
||||
|
img_url_list = JSON.stringify(result); |
||||
|
} |
||||
|
if(img_url_list) { |
||||
|
that.realSubmitInfo(img_url_list); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
}).catch(err => { |
||||
|
console.log(err) |
||||
|
that.is_publish = false; // 恢复提交按钮 |
||||
|
uni.showModal({ |
||||
|
title: '', |
||||
|
content: '图片上传失败,请重新提交', |
||||
|
confirmColor: '#1697EE' |
||||
|
}) |
||||
|
}) |
||||
|
}, |
||||
|
// 预览图片 |
||||
|
showImg(index) { |
||||
|
this.$u.throttle(() => { |
||||
|
let goods_banner = this.img_list || []; |
||||
|
let banners = goods_banner.map(item => item); |
||||
|
uni.previewImage({ |
||||
|
urls: banners, |
||||
|
current: index |
||||
|
}) |
||||
|
}, 200); |
||||
|
}, |
||||
|
|
||||
|
// 删除图片 |
||||
|
DelImg(index) { |
||||
|
uni.showModal({ |
||||
|
title: '提示', |
||||
|
content: '即将取消上传这张图片,请确认?', |
||||
|
success: e => { |
||||
|
if (!e.confirm) return; |
||||
|
this.img_list.splice(index, 1); |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
// 点击复制 |
||||
|
copy(text) { |
||||
|
uni.setClipboardData({ |
||||
|
data: text |
||||
|
}); |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
.btn{ |
||||
|
margin: 0; |
||||
|
padding: 0; |
||||
|
width: 212rpx; |
||||
|
height: 82rpx; |
||||
|
background-color: #777777; |
||||
|
color: #FFFFFF; |
||||
|
line-height: 80rpx; |
||||
|
font-size: 32rpx; |
||||
|
border-radius: 41rpx; |
||||
|
} |
||||
|
.bref-box { |
||||
|
text-overflow: -o-ellipsis-lastline; |
||||
|
overflow: hidden; |
||||
|
text-overflow: ellipsis; |
||||
|
display: -webkit-box; |
||||
|
-webkit-line-clamp: 2; |
||||
|
-webkit-box-orient: vertical; |
||||
|
} |
||||
|
</style> |
||||
|
After Width: 50 | Height: 50 | Size: 1.7 KiB |
|
Before Width: 75 | Height: 75 | Size: 1.4 KiB After Width: 50 | Height: 50 | Size: 986 B |
|
Before Width: 75 | Height: 75 | Size: 2.4 KiB After Width: 50 | Height: 50 | Size: 1.6 KiB |
|
After Width: 50 | Height: 50 | Size: 1.4 KiB |
|
Before Width: 75 | Height: 75 | Size: 2.2 KiB |
|
Before Width: 75 | Height: 75 | Size: 2.3 KiB |
|
After Width: 50 | Height: 50 | Size: 811 B |
|
Before Width: 75 | Height: 75 | Size: 1.4 KiB After Width: 50 | Height: 50 | Size: 1.1 KiB |
|
After Width: 200 | Height: 200 | Size: 9.3 KiB |
|
After Width: 200 | Height: 200 | Size: 9.7 KiB |
|
Before Width: 75 | Height: 75 | Size: 2.7 KiB |
|
After Width: 30 | Height: 30 | Size: 1.1 KiB |
|
Before Width: 75 | Height: 75 | Size: 1.0 KiB |
|
Before Width: 75 | Height: 75 | Size: 2.3 KiB After Width: 50 | Height: 50 | Size: 1.2 KiB |
|
Before Width: 75 | Height: 75 | Size: 1.4 KiB After Width: 50 | Height: 50 | Size: 1.5 KiB |
|
Before Width: 90 | Height: 90 | Size: 2.9 KiB |
|
Before Width: 75 | Height: 75 | Size: 1.8 KiB |
|
After Width: 40 | Height: 40 | Size: 1.4 KiB |
|
After Width: 41 | Height: 41 | Size: 1.1 KiB |
|
After Width: 41 | Height: 40 | Size: 1.6 KiB |
|
After Width: 40 | Height: 40 | Size: 2.1 KiB |
|
After Width: 40 | Height: 40 | Size: 2.0 KiB |
|
After Width: 48 | Height: 48 | Size: 840 B |
|
After Width: 48 | Height: 48 | Size: 875 B |
|
Before Width: 63 | Height: 63 | Size: 1.9 KiB After Width: 48 | Height: 48 | Size: 1.0 KiB |
|
Before Width: 63 | Height: 63 | Size: 1.8 KiB After Width: 48 | Height: 48 | Size: 1.0 KiB |
|
Before Width: 63 | Height: 63 | Size: 2.3 KiB After Width: 48 | Height: 48 | Size: 1.4 KiB |
|
Before Width: 63 | Height: 63 | Size: 2.3 KiB After Width: 48 | Height: 48 | Size: 1.4 KiB |
|
Before Width: 63 | Height: 63 | Size: 1.6 KiB |
|
Before Width: 63 | Height: 63 | Size: 1.5 KiB |
|
After Width: 48 | Height: 48 | Size: 971 B |
|
After Width: 48 | Height: 48 | Size: 1009 B |