Browse Source

上传

master
前端-胡立永 7 months ago
parent
commit
f442419f02
13 changed files with 19 additions and 376 deletions
  1. +0
    -3
      pages.json
  2. +8
    -6
      pages/index/center.vue
  3. +11
    -7
      pages/index/order.vue
  4. +0
    -360
      pages_order/order/refundsOrExchange.vue
  5. BIN
      static/image/center/1.png
  6. BIN
      static/image/center/10.png
  7. BIN
      static/image/center/2.png
  8. BIN
      static/image/center/4.png
  9. BIN
      static/image/center/5.png
  10. BIN
      static/image/center/6.png
  11. BIN
      static/image/center/7.png
  12. BIN
      static/image/center/8.png
  13. BIN
      static/image/center/9.png

+ 0
- 3
pages.json View File

@ -60,9 +60,6 @@
{ {
"path": "product/productDetail" "path": "product/productDetail"
}, },
{
"path": "order/refundsOrExchange"
},
{ {
"path": "auth/wxLogin" "path": "auth/wxLogin"
}, },


+ 8
- 6
pages/index/center.vue View File

@ -62,7 +62,7 @@
<view class="order"> <view class="order">
<view class="box"> <view class="box">
<view class="boxs">
<view class="boxs" @click="$utils.navigateTo('/pages/index/order?type=1')">
<image src="../../static/image/center/13.png" mode="aspectFill" /> <image src="../../static/image/center/13.png" mode="aspectFill" />
<view>待付款</view> <view>待付款</view>
</view> </view>
@ -76,7 +76,7 @@
</view> </view>
<view class="boxs"> <view class="boxs">
<image src="../../static/image/center/16.png" mode="aspectFill" /> <image src="../../static/image/center/16.png" mode="aspectFill" />
<view>已发</view>
<view>待收</view>
</view> </view>
<view class="boxs"> <view class="boxs">
<image src="../../static/image/center/17.png" mode="aspectFill" /> <image src="../../static/image/center/17.png" mode="aspectFill" />
@ -95,9 +95,11 @@
<view class="cell-bottom"> <view class="cell-bottom">
<uv-cell-group> <uv-cell-group>
<uv-cell icon="share" title="我的邀请码" :isLink="true" arrow-direction="right" /> <uv-cell icon="share" title="我的邀请码" :isLink="true" arrow-direction="right" />
<uv-cell icon="share" title="我的推荐" :isLink="true" arrow-direction="right " @click="$utils.navigateTo('/pages_order/mine/recommend')" />
<uv-cell icon="share" title="联系客服" :isLink="true" arrow-direction="right " />
<uv-cell icon="share" title="我的地址" :isLink="true" arrow-direction="right " />
<uv-cell icon="share" title="我的推荐" :isLink="true" arrow-direction="right"
@click="$utils.navigateTo('/pages_order/mine/recommend')" />
<uv-cell icon="share" title="联系客服" :isLink="true" arrow-direction="right" />
<uv-cell icon="share" title="我的地址" :isLink="true" arrow-direction="right"
@click="$utils.navigateTo('/pages_order/mine/address')"/>
</uv-cell-group> </uv-cell-group>
</view> </view>
@ -347,7 +349,7 @@
width: 100%; width: 100%;
justify-content: space-around; justify-content: space-around;
padding: 70rpx 0 90rpx; padding: 70rpx 0 90rpx;
} }
} }


+ 11
- 7
pages/index/order.vue View File

@ -3,11 +3,13 @@
<navbar <navbar
title="订单中心" title="订单中心"
leftClick
@leftClick="$utils.navigateBack"
/> />
<uv-tabs :list="tabs" <uv-tabs :list="tabs"
:activeStyle="{color : '#FD5100', fontWeight : 600}"
lineColor="#FD5100"
:activeStyle="{color : '#A3D250', fontWeight : 600}"
lineColor="#A3D250"
lineHeight="8rpx" lineHeight="8rpx"
lineWidth="50rpx" lineWidth="50rpx"
@click="clickTabs"></uv-tabs> @click="clickTabs"></uv-tabs>
@ -76,7 +78,6 @@
</view> </view>
</view> </view>
<tabber select="2"/>
</view> </view>
</template> </template>
@ -96,16 +97,19 @@
name: '全部' name: '全部'
}, },
{ {
name: '租赁押金'
name: '待付款'
}, },
{ {
name: '水洗租赁'
name: '已付款'
}, },
{ {
name: '破损换货'
name: '待发货'
}, },
{ {
name: '退货退款'
name: '待收货'
},
{
name: '已完成'
} }
], ],
queryParams: { queryParams: {


+ 0
- 360
pages_order/order/refundsOrExchange.vue View File

@ -1,360 +0,0 @@
<template>
<view class="refundsOrExchange">
<navbar :title="title[titleIndex]" leftClick @leftClick="$utils.navigateBack"/>
<view class="frame">
<!-- 商品简介 -->
<view class="itme1" @click="openSpPopup">
<view class="left">
<img src="../../static/image/center/1.png" alt="" style="width: 100%;height: 100%;">
</view>
<view class="center">
<view>{{ commodity.title }}</view>
<view>{{ commodity.smallTitle }}</view>
</view>
<view class="right">×{{ commodity.total }}</view>
</view>
<!--<commoditySelect ></commoditySelect>-->
<!-- 申请类型&申请原因 -->
<view class="item2">
<view class="type">
<span>申请类型</span>
<span>退货退款</span>
</view>
<uv-line></uv-line>
<view class="reason">
<view>申请原因</view>
<view>
<uv-input placeholder="请输入申请原因" border="none" clearable></uv-input>
</view>
</view>
</view>
<!-- 退货数量&申请金额-->
<view class="item3">
<view class="type">
<span>{{ titleIndex == 0 ? '退货数量' : '换货数量' }}</span>
<span>
<uv-number-box :min="1" :max="100"></uv-number-box>
</span>
</view>
<uv-line v-if='titleIndex == 0 ? true :false'></uv-line>
<view class="reason" v-if='titleIndex == 0 ? true :false'>
<view>申请原因</view>
<view>
<uv-input disabled placeholder="$" border="none" clearable></uv-input>
</view>
</view>
</view>
<!-- 申请说明 -->
<view class="item4">
<view>申请说明(选填)</view>
<view>
<uv-input placeholder="请您详细填写申请说明" border="none" clearable></uv-input>
</view>
<view>
<uv-upload :fileList="fileList" :maxCount="5" multiple width="150rpx" height="150rpx"
@delete="deleteImage" @afterRead="afterRead" :previewFullImage="true"></uv-upload>
</view>
</view>
<!-- 联系电话 -->
<view class="item5">
<view class="phone">
<view>联系电话</view>
<view>
<uv-input placeholder="请输入联系电话" border="none" clearable></uv-input>
</view>
</view>
</view>
</view>
<!-- 底部按钮 -->
<!--商品选择-->
<uv-popup ref="spPopup" :round="30">
<commoditySelect
:commodityList="commodityList"
@selectSp="selectCommodity"
/>
</uv-popup>
</view>
</template>
<script>
import commoditySelect from "../components/commodity/commoditySelect.vue"
export default {
onLoad(option) {
this.titleIndex = option.index
},
components: {
commoditySelect
},
data() {
return {
titleIndex: 0,
title: ['申请换货', '申请退货'],
fileList: [],
bottomBtnStyle: {
color: '#FFF',
backgroundColor: '#fd5100',
fontSize: '34rpx',
text: '提交申请',
width: '400rpx',
height: '80rpx',
borderRadius: '100rpx',
bottom: '40rpx'
},
commodityList: [
{
title: '商品名称',
smallTitle: '产品规格:120*4*75【桌子尺寸】',
total:1,
},
{
title: '商品名称1',
smallTitle: '产品规格:120*4*75【桌子尺寸】',
total:1,
},
{
title: '商品名称2',
smallTitle: '产品规格:120*4*75【桌子尺寸】',
total:1,
}
],
commodity: {
title: '商品名称',
smallTitle: '产品规格:120*4*75【桌子尺寸】',
total:1,
},
}
},
mounted() {
},
methods: {
openSpPopup() {
this.$refs.spPopup.open('bottom');
},
// 退
selectCommodity(e) {
console.log(e, "selectCommodity--e")
this.commodity = e
this.$refs.spPopup.close()
},
confirm() {
console.log("===");
},
deleteImage(e) {
this.fileList.splice(e.index, 1)
},
afterRead(e) {
let self = this
e.file.forEach(file => {
self.$Oss.ossUpload(file.url).then(url => {
self.fileList.push({
url
})
})
})
},
}
}
</script>
<style lang="scss" scoped>
* {
box-sizing: border-box;
}
.refundsOrExchange {
.frame {
display: flex;
flex-direction: column;
gap: 30rpx;
width: 100%;
padding-top: 40rpx;
background-color: #f5f5f5;
.itme1 {
display: flex;
height: 200rpx;
background-color: #ffffff;
.left {
padding: 40rpx;
width: 20%;
border-radius: 10rpx;
background-color: #ffffff;
}
.center {
display: flex;
flex-direction: column;
justify-content: center;
gap: 20rpx;
width: 60%;
padding: 0rpx 0 0 20rpx;
background-color: #ffffff;
// view
> view:first-of-type {
font-size: 36rpx;
color: #333;
}
// view
> view:nth-of-type(2) {
font-size: 28rpx;
color: #666666;
}
}
.right {
display: flex;
justify-content: center;
align-items: center;
width: 10%;
color: #666666;
background-color: #ffffff;
}
}
.item2 {
width: 100vw;
.type {
display: flex;
align-items: center;
background-color: #FFF;
height: 80rpx;
padding: 0 0 0 20rpx;
> span:nth-of-type(1) {
width: 30%;
}
> span:nth-of-type(2) {
width: 70%;
}
}
.reason {
display: flex;
align-items: center;
background-color: #FFF;
height: 80rpx;
// margin: 10rpx 0 0 0;
padding: 10rpx 0 0 20rpx;
> view:nth-of-type(1) {
width: 30%;
}
> view:nth-of-type(2) {
width: 70%;
padding: 0 20rpx 0 0;
}
}
}
.item3 {
width: 100vw;
.type {
display: flex;
align-items: center;
background-color: #FFF;
height: 80rpx;
padding: 0 0 0 20rpx;
> span:nth-of-type(1) {
width: 70%;
}
> span:nth-of-type(2) {
width: 30%;
}
}
.reason {
display: flex;
align-items: center;
background-color: #FFF;
height: 80rpx;
// margin: 10rpx 0 0 0;
padding: 10rpx 0 0 20rpx;
> view:nth-of-type(1) {
width: 30%;
}
> view:nth-of-type(2) {
width: 70%;
padding: 0 20rpx 0 0;
}
}
}
.item4 {
display: flex;
flex-direction: column;
padding: 10rpx 0 0 20rpx;
background-color: #FFF;
> view:nth-of-type(1) {
background-color: #FFF;
}
> view:nth-of-type(2) {
margin: 10rpx 0 10rpx 0;
background-color: #FFF;
}
}
.item5 {
display: flex;
flex-direction: column;
padding: 0 0 0 20rpx;
background-color: #FFF;
.phone {
display: flex;
align-items: center;
background-color: #FFF;
height: 80rpx;
// margin: 10rpx 0 0 0;
padding: 10rpx 0 0 20rpx;
> view:nth-of-type(1) {
width: 30%;
}
> view:nth-of-type(2) {
width: 70%;
padding: 0 20rpx 0 0;
}
}
}
}
}
</style>

BIN
static/image/center/1.png View File

Before After
Width: 51  |  Height: 49  |  Size: 1.2 KiB

BIN
static/image/center/10.png View File

Before After
Width: 355  |  Height: 158  |  Size: 45 KiB

BIN
static/image/center/2.png View File

Before After
Width: 112  |  Height: 126  |  Size: 6.1 KiB

BIN
static/image/center/4.png View File

Before After
Width: 52  |  Height: 49  |  Size: 1.7 KiB

BIN
static/image/center/5.png View File

Before After
Width: 64  |  Height: 64  |  Size: 2.8 KiB

BIN
static/image/center/6.png View File

Before After
Width: 63  |  Height: 50  |  Size: 2.1 KiB

BIN
static/image/center/7.png View File

Before After
Width: 64  |  Height: 64  |  Size: 2.4 KiB

BIN
static/image/center/8.png View File

Before After
Width: 64  |  Height: 64  |  Size: 2.5 KiB

BIN
static/image/center/9.png View File

Before After
Width: 56  |  Height: 48  |  Size: 2.1 KiB

Loading…
Cancel
Save