Compare commits
2 Commits
a06c2c78e9
...
0cdc28c1ec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0cdc28c1ec | ||
|
|
db42cc974c |
@@ -172,6 +172,36 @@ const managesGoodsExtends = id => {
|
||||
})
|
||||
}
|
||||
|
||||
// 通证权益 搜索页面
|
||||
const searchUrl = (apiUrl,data) => {
|
||||
return request({
|
||||
url : apiUrl,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 商品分类
|
||||
const goodsCategory = () => {
|
||||
return request({
|
||||
url : 'mall/categories'
|
||||
})
|
||||
}
|
||||
|
||||
// 企业行业分类
|
||||
const companyCategory = () => {
|
||||
return request({
|
||||
url : 'companies/industry'
|
||||
})
|
||||
}
|
||||
|
||||
// 商品分类搜索-默认关键字
|
||||
const randgoodsUrl = (apiUrl, data) => {
|
||||
return request({
|
||||
url: apiUrl,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
mall,
|
||||
list,
|
||||
@@ -193,5 +223,9 @@ export {
|
||||
managesTracedTo,
|
||||
managesCoupons,
|
||||
managesGoodsPut,
|
||||
managesGoodsExtends
|
||||
managesGoodsExtends,
|
||||
searchUrl,
|
||||
goodsCategory,
|
||||
companyCategory,
|
||||
randgoodsUrl
|
||||
}
|
||||
|
||||
@@ -54,4 +54,5 @@ export {
|
||||
editInfo,
|
||||
putShop,
|
||||
deleteShop
|
||||
|
||||
}
|
||||
|
||||
@@ -63,12 +63,10 @@ const companiesCode = () => {
|
||||
}
|
||||
|
||||
// 退货单列表
|
||||
const storeReturn = (state) => {
|
||||
const storeReturn = (data) => {
|
||||
return request({
|
||||
url: 'manages/refunds',
|
||||
data: {
|
||||
state
|
||||
}
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -110,12 +108,10 @@ const storeAudit = (refund_id, data) => {
|
||||
}
|
||||
|
||||
// 提货单列表
|
||||
const storeDeliver = (state) => {
|
||||
const storeDeliver = (data) => {
|
||||
return request({
|
||||
url: 'manages/shipments',
|
||||
data: {
|
||||
state
|
||||
}
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="returnCont">
|
||||
<block v-if="list.length > 0">
|
||||
<view class="returnList" v-for="(item, index) in list" :key="index">
|
||||
<view class="MallRefundsTemplate">
|
||||
<view class="top">
|
||||
@@ -35,6 +35,10 @@
|
||||
<view v-else class="nowPay" @click="$Router.push({name: 'storeOrderDetails', params: {id: item.refund_id, type: 'return'}})">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view v-else class="pack-center">
|
||||
<image src="/static/icons/order-null.png"></image>
|
||||
<view>{{toast}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -50,7 +54,12 @@
|
||||
return new Array
|
||||
}
|
||||
},
|
||||
listType: ''
|
||||
listType: '',
|
||||
// 列表空提示
|
||||
toast : {
|
||||
type : String,
|
||||
default : '暂无订单数据 -_-!'
|
||||
}
|
||||
},
|
||||
created() {}
|
||||
}
|
||||
@@ -225,4 +234,18 @@
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
// 暂无订单
|
||||
.pack-center {
|
||||
text-align: center;
|
||||
font-size: $title-size-sm;
|
||||
color: $text-gray;
|
||||
padding-top: 50%;
|
||||
image {
|
||||
width: $uni-img-size-lg * 2;
|
||||
height:$uni-img-size-lg * 2;
|
||||
border-radius: $uni-border-radius-circle;
|
||||
margin-bottom: $margin;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
28
pages.json
28
pages.json
@@ -464,6 +464,13 @@
|
||||
"navigationBarTitleText": "选择权证分类",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/goods/goodsClassify",
|
||||
"name": "goodsClassify",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品分类",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/goods/add",
|
||||
"name": "GoodsMagAdd",
|
||||
@@ -471,6 +478,27 @@
|
||||
"navigationBarTitleText": "发布权证",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/goods/chain",
|
||||
"name": "GoodsChain",
|
||||
"style": {
|
||||
"navigationBarTitleText": "区块链证书",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/goods/attestation",
|
||||
"name": "GoodsAttestation",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品认证",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/goods/tracedTo",
|
||||
"name": "GoodstracedTo",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品溯源",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/coupons/index",
|
||||
"name": "Coupons",
|
||||
|
||||
@@ -247,7 +247,7 @@
|
||||
onRightBtn(e){
|
||||
switch(e.index){
|
||||
case 0:
|
||||
this.$Router.push({name: 'Search'})
|
||||
this.$Router.push({name: 'Search', params: {type: this.tabIndex}})
|
||||
break
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,22 +1,264 @@
|
||||
<template>
|
||||
<view>
|
||||
搜索
|
||||
<view class="top">
|
||||
<view class="search">
|
||||
<input class="search-input" type="text" focus @input="onInput" :placeholder="nameVal" />
|
||||
<view class="search-btn" @click="searchClick">搜索</view>
|
||||
</view>
|
||||
<view class="tabs">
|
||||
<view class="tabs-item" @click="onTabs">
|
||||
{{searchType == 0 ? '价格' : '信用值'}}
|
||||
<image
|
||||
class="icon"
|
||||
mode="widthFix" :src="require(marketType == 'asc' ? '@/static/icons/market_icon_low.png': '@/static/icons/market_icon_high.png')"
|
||||
/>
|
||||
</view>
|
||||
<view class="tabs-item" v-if="searchType == 0" @click="pageUrl">全部分类 <image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode=""></image></view>
|
||||
<view class="tabs-item" v-if="searchType == 1" @click="companyOpne">{{companyName}} <image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode=""></image></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="lists">
|
||||
<!-- 优选商品 -->
|
||||
<goods-list :list="searchArr" priceType="CNY" v-if="searchType == 0" />
|
||||
|
||||
<!-- 商家 -->
|
||||
<industry-list :list="searchArr" v-if="searchType == 1"/>
|
||||
</view>
|
||||
|
||||
<!-- 分页 -->
|
||||
<uni-load-more :status="pageStatus" :iconSize="16" v-if="searchArr.length > 0"></uni-load-more>
|
||||
|
||||
<!-- 企业分类弹出 -->
|
||||
<view class="companyBack" :class="companyShow ? 'active' : ''"></view>
|
||||
<view class="companyPopup" :class="companyShow ? 'active' : ''">
|
||||
<view class="nowrap companyPopup-label" :class="{'show': item.industry_id == companyId}" v-for="(item, index) in categoryArr" :key="index" @click="companyList(item.industry_id, index)">
|
||||
{{item.title}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchUrl, companyCategory, randgoodsUrl } from '@/apis/interfaces/goods'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
nameVal : '',
|
||||
searchArr : [],
|
||||
searchType : '0', // 分类 0位商品 1为企业
|
||||
marketType : 'asc', // 排序
|
||||
categoryArr : [], // 分类数组--企业
|
||||
companyId : '', // 分类数组--企业id
|
||||
companyName : '选择行业',
|
||||
companyShow : false,
|
||||
|
||||
// 分页
|
||||
pageStatus : '',
|
||||
page : 1
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.searchType = this.$Route.query.type
|
||||
// 商品分类默认关键字 type=0为商品列表; type=1为企业列表
|
||||
let wechaUrl = '' // 定义接口来源名称
|
||||
if (this.searchType == '0') wechaUrl = 'mall/randgoods' //商品关键字
|
||||
if (this.searchType == '1') wechaUrl = 'companies/rand' //商品关键字
|
||||
randgoodsUrl(wechaUrl, {
|
||||
type: 1
|
||||
}).then(res => {
|
||||
this.nameVal = res.name
|
||||
})
|
||||
|
||||
// 企业分类数据
|
||||
if(this.searchType == '1'){
|
||||
companyCategory().then(res => {
|
||||
this.categoryArr = res
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 列表数据
|
||||
getList() {
|
||||
// type=0为商品列表; type=1为企业列表
|
||||
let wechaUrl = '' // 定义接口来源名称
|
||||
if (this.searchType == '0') wechaUrl = 'mall/goods'// 商品列表
|
||||
if (this.searchType == '1') wechaUrl = 'companies/lists' //企业列表
|
||||
|
||||
searchUrl(wechaUrl, {
|
||||
page : this.goodsPage,
|
||||
order_by : this.marketType,
|
||||
industry_id : this.companyId,
|
||||
name : this.nameVal
|
||||
}).then(res => {
|
||||
if(res.page.current === 1){
|
||||
this.searchArr = []
|
||||
}
|
||||
this.searchArr = this.searchArr.concat(res.data)
|
||||
this.goodsPage = res.page.current
|
||||
this.pageStatus = res.page.has_more ? 'more': 'noMore'
|
||||
})
|
||||
},
|
||||
|
||||
// 输入关键词
|
||||
onInput(val) {
|
||||
this.nameVal = val.detail.value
|
||||
},
|
||||
|
||||
// 搜索
|
||||
searchClick() {
|
||||
// 获取列表
|
||||
this.getList();
|
||||
},
|
||||
|
||||
// 筛选产品
|
||||
onTabs(e){
|
||||
this.marketType = this.marketType == 'asc' ? 'desc': 'asc'
|
||||
this.getList()
|
||||
},
|
||||
|
||||
// 商品分类跳转
|
||||
pageUrl() {
|
||||
this.$Router.push({name: 'goodsClassify'})
|
||||
},
|
||||
|
||||
// 查看企业行业
|
||||
companyOpne(){
|
||||
this.companyShow = !this.companyShow
|
||||
},
|
||||
|
||||
// 筛选企业列表
|
||||
companyList(id, index) {
|
||||
this.companyId = id
|
||||
this.companyName = this.categoryArr[index].title
|
||||
this.companyShow = false
|
||||
// 获取全局列表
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
|
||||
// 下拉加载
|
||||
onReachBottom() {
|
||||
if(this.pageStatus == 'more'){
|
||||
this.pageStatus = 'loading'
|
||||
this.goodsPage += 1
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
<style lang="scss" scoped>
|
||||
.top{
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 9;
|
||||
width: 100%;
|
||||
height: 180rpx;
|
||||
.search {
|
||||
background: white;
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
padding: 20rpx $padding 0;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
.search-input {
|
||||
padding: 0 $padding;
|
||||
box-sizing: border-box;
|
||||
height: 60rpx;
|
||||
background-color: #f7f7f7;
|
||||
font-size: $title-size-m;
|
||||
border-radius: 80rpx;
|
||||
flex: 1;
|
||||
margin-right: $margin;
|
||||
}
|
||||
.search-btn {
|
||||
line-height: 60rpx;
|
||||
color: #e93340;
|
||||
}
|
||||
}
|
||||
.tabs{
|
||||
background: white;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
height: 80rpx;
|
||||
margin-bottom: 20rpx;
|
||||
box-sizing: border-box;
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
.tabs-item{
|
||||
font-size: $title-size-m;
|
||||
color: $text-gray;
|
||||
.icon{
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
vertical-align: middle;
|
||||
margin-left: $margin / 3;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
&.show{
|
||||
color: $text-price;
|
||||
}
|
||||
.tabs-item-arrow {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 列表
|
||||
.lists{
|
||||
padding: 180rpx 0 $padding;
|
||||
}
|
||||
|
||||
// 企业弹出
|
||||
.companyBack,
|
||||
.companyPopup {
|
||||
position: fixed;
|
||||
top: 200rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.companyBack {
|
||||
height: calc(100% - 200rpx);
|
||||
background-color: rgba(0,0,0,.2);
|
||||
display: none;
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.companyPopup {
|
||||
height: 45%;
|
||||
overflow: hidden;
|
||||
overflow-y: scroll;
|
||||
border-top: 1rpx solid #f1f1f1;
|
||||
background-color: #FFFFFF;
|
||||
padding: $padding - 10 $padding;
|
||||
display: none;
|
||||
box-sizing: border-box;
|
||||
.companyPopup-label {
|
||||
width: calc(25% - 20rpx);
|
||||
font-size: $title-size-sm - 2;
|
||||
display: inline-block;
|
||||
height: 60rpx;
|
||||
line-height: 58rpx;
|
||||
border: 1rpx solid #F8F8F8;
|
||||
background-color: #FFFFFF;
|
||||
margin: 10rpx;
|
||||
text-align: center;
|
||||
&.show {
|
||||
color: #e93340;
|
||||
border-color: #efd3d3;
|
||||
background-color: #fef9f9;
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
},
|
||||
created() {
|
||||
managesCategory().then(res => {
|
||||
console.log(res)
|
||||
this.loding = false
|
||||
this.category = res
|
||||
})
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
:readonly="true"
|
||||
color="#ddd"
|
||||
active-color="#c82626"
|
||||
:value="2.5"
|
||||
:value="goodsObj.company.star"
|
||||
:size="14"
|
||||
/>
|
||||
</view>
|
||||
@@ -69,7 +69,7 @@
|
||||
<label class="title">说明</label>
|
||||
特价商品不可与优惠券叠加使用
|
||||
</view>
|
||||
<view class="size-item nowrap">
|
||||
<view class="size-item nowrap" v-if="goodsObj.services.length > 0">
|
||||
<label class="title">服务</label>
|
||||
<view class="goods-serve" @click="serveOpne">
|
||||
<image class="goods-serve-img" src="../../static/icons/goods_buy.png" mode="aspectFill"></image>
|
||||
@@ -408,7 +408,7 @@
|
||||
.goods-serve-img {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-top: 24rpx;
|
||||
margin-top: 26rpx;
|
||||
}
|
||||
.goods-serve-name {
|
||||
margin: 0 30rpx 0 20rpx;
|
||||
|
||||
95
pages/goods/goodsClassify.vue
Normal file
95
pages/goods/goodsClassify.vue
Normal file
@@ -0,0 +1,95 @@
|
||||
<template>
|
||||
<view class="content-flex" v-if="!loding">
|
||||
<scroll-view class="stair" scroll-y>
|
||||
<view class="stair-item" :class="{'show': stairIndex == index}" v-for="(item, index) in category" :key="index" @click="stairIndex = index">{{item.name}}</view>
|
||||
<view class="ios-bottom"></view>
|
||||
</scroll-view>
|
||||
<scroll-view class="second" scroll-y>
|
||||
<view class="second-item" v-for="(item, index) in category[stairIndex].children" :key="index" @click="$Router.push({name: 'goodsList', params: {id: item.category_id}})">
|
||||
{{item.name}}<uni-icons class="arrow-icon" type="arrowright" color="#999" size="14"></uni-icons>
|
||||
</view>
|
||||
<view class="ios-bottom"></view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { goodsCategory } from '@/apis/interfaces/goods'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
loding : true,
|
||||
category : [],
|
||||
stairIndex : 0,
|
||||
secondIndex : 0
|
||||
};
|
||||
},
|
||||
created() {
|
||||
goodsCategory().then(res => {
|
||||
this.loding = false
|
||||
this.category = res
|
||||
})
|
||||
},
|
||||
methods:{}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content-flex{
|
||||
background-color: white;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
font-size: $title-size-m;
|
||||
.stair{
|
||||
background: #F5F5F5;
|
||||
width: 240rpx;
|
||||
.stair-item{
|
||||
text-align: center;
|
||||
padding: 0 $padding;
|
||||
line-height: 90rpx;
|
||||
color: $text-gray;
|
||||
@extend .nowrap;
|
||||
&.show{
|
||||
position: relative;
|
||||
background: white;
|
||||
color: $text-price;
|
||||
font-weight: bold;
|
||||
&::before{
|
||||
position: absolute;
|
||||
height: 40rpx;
|
||||
width: 5rpx;
|
||||
background: $text-price;
|
||||
content: " ";
|
||||
left: 0;
|
||||
top: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.second{
|
||||
width: calc(100% - 240rpx);
|
||||
.second-item{
|
||||
position: relative;
|
||||
padding: 0 ($padding + 80) 0 $padding;
|
||||
line-height: 90rpx;
|
||||
color: $text-gray;
|
||||
.arrow-icon{
|
||||
position: absolute;
|
||||
right: $padding;
|
||||
}
|
||||
&::after{
|
||||
position: absolute;
|
||||
height: 1rpx;
|
||||
content: ' ';
|
||||
background: $border-color;
|
||||
left: $padding;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
&:first-child::after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -45,6 +45,7 @@
|
||||
|
||||
getList(){
|
||||
list({
|
||||
category_cid: this.$Route.query.id,
|
||||
order_by : this.tabIndex == 1 ? this.marketType: ''
|
||||
}).then(res=>{
|
||||
this.goods = res.data
|
||||
|
||||
@@ -56,9 +56,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
console.log(this.$Route.query.id)
|
||||
managesTracedTo(this.$Route.query.id).then(res=>{
|
||||
console.log(res)
|
||||
this.list = res.list
|
||||
this.info = res
|
||||
})
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
</scroll-view>
|
||||
|
||||
<!-- 订单列表 -->
|
||||
<store-order v-if="returnInfo.length > 0" :list="returnInfo" listType="deliver" />
|
||||
<store-order :list="returnInfo" listType="deliver" />
|
||||
|
||||
<view v-else class="pack-center">
|
||||
<image src="../../static/icons/order-null.png"></image>
|
||||
<view>您还没有相关订单</view>
|
||||
</view>
|
||||
<!-- 分页 -->
|
||||
<uni-load-more :status="pageStatus" :iconSize="16" v-if="returnInfo.length > 0"></uni-load-more>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -26,7 +24,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
returnInfo : '' ,// 列表
|
||||
returnInfo : [] ,// 列表
|
||||
navList : [{
|
||||
name : '待发货',
|
||||
state : '1'
|
||||
@@ -41,7 +39,11 @@
|
||||
state : '4'
|
||||
}
|
||||
],
|
||||
selectNavId : '1'
|
||||
selectNavId : '1',
|
||||
|
||||
// 分页
|
||||
pageStatus : '',
|
||||
page : 1
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -53,9 +55,16 @@
|
||||
methods: {
|
||||
// 退货单列表
|
||||
returnData(){
|
||||
storeDeliver(this.selectNavId).then(res=>{
|
||||
console.log(res)
|
||||
this.returnInfo = res.data
|
||||
storeDeliver({
|
||||
state: this.selectNavId,
|
||||
page : this.goodsPage
|
||||
}).then(res=>{
|
||||
if(res.page.current === 1){
|
||||
this.returnInfo = []
|
||||
}
|
||||
this.returnInfo = this.returnInfo.concat(res.data)
|
||||
this.goodsPage = res.page.current
|
||||
this.pageStatus = res.page.has_more ? 'more': 'noMore'
|
||||
})
|
||||
},
|
||||
|
||||
@@ -92,6 +101,18 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 下拉加载
|
||||
onReachBottom() {
|
||||
if(this.pageStatus == 'more'){
|
||||
this.pageStatus = 'loading'
|
||||
if(this.selectNavId === '1') {
|
||||
this.goodsPage += 1
|
||||
// 获取退货单列表
|
||||
this.returnData();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<view class="statusBar-box">
|
||||
<image class="logo" :src="company.logo" mode="aspectFill"></image>
|
||||
<view class="company">
|
||||
<view class="name">{{company.name}}<image @click="$Router.push({name: 'Basics'})" class="name-img" src="../../static/icons/store_icon_pen.png" mode="aspectFill"></image></view>
|
||||
<view class="name">{{company.name}}<image v-if="!employee" @click="$Router.push({name: 'Basics'})" class="name-img" src="../../static/icons/store_icon_pen.png" mode="aspectFill"></image></view>
|
||||
<view class="tool">
|
||||
<view class="faith"><image class="faith-img" src="../../static/icons/store_icon_row.png" mode="aspectFill"></image>诚信{{company.faith}}</view>
|
||||
<view class="btn"><image class="btn-img" src="../../static/icons/store_icon_icon.png" mode="aspectFill"></image>{{company.identity}}</view>
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
</scroll-view>
|
||||
|
||||
<!-- 订单列表 -->
|
||||
<store-order v-if="returnInfo.length > 0" :list="returnInfo" />
|
||||
<store-order :list="returnInfo" />
|
||||
|
||||
<view v-else class="pack-center">
|
||||
<image src="../../static/icons/order-null.png"></image>
|
||||
<view>您还没有相关订单</view>
|
||||
</view>
|
||||
<!-- 分页 -->
|
||||
<uni-load-more :status="pageStatus" :iconSize="16" v-if="returnInfo.length > 0"></uni-load-more>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -26,7 +24,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
returnInfo : '' ,// 列表
|
||||
returnInfo : [] ,// 列表
|
||||
navList : [{
|
||||
name : '待审核',
|
||||
id : 'apply'
|
||||
@@ -49,7 +47,11 @@
|
||||
id : 'completed'
|
||||
}
|
||||
],
|
||||
selectNavId : 'apply'
|
||||
selectNavId : 'apply',
|
||||
|
||||
// 分页
|
||||
pageStatus : '',
|
||||
page : 1
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -61,8 +63,16 @@
|
||||
methods: {
|
||||
// 退货单列表
|
||||
returnData(){
|
||||
storeReturn(this.selectNavId).then(res=>{
|
||||
this.returnInfo = res.data
|
||||
storeReturn({
|
||||
state: this.selectNavId,
|
||||
page : this.goodsPage
|
||||
}).then(res=>{
|
||||
if(res.page.current === 1){
|
||||
this.returnInfo = []
|
||||
}
|
||||
this.returnInfo = this.returnInfo.concat(res.data)
|
||||
this.goodsPage = res.page.current
|
||||
this.pageStatus = res.page.has_more ? 'more': 'noMore'
|
||||
})
|
||||
},
|
||||
|
||||
@@ -122,6 +132,18 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 下拉加载
|
||||
onReachBottom() {
|
||||
if(this.pageStatus == 'more'){
|
||||
this.pageStatus = 'loading'
|
||||
if(this.tabIndex === 'apply') {
|
||||
this.goodsPage += 1
|
||||
// 获取退货单列表
|
||||
this.returnData();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -154,18 +176,4 @@
|
||||
color: $main-color;
|
||||
}
|
||||
}
|
||||
|
||||
// 暂无订单
|
||||
.pack-center {
|
||||
text-align: center;
|
||||
font-size: $title-size-sm;
|
||||
color: $text-gray;
|
||||
padding-top: 50%;
|
||||
image {
|
||||
width: $uni-img-size-lg * 2;
|
||||
height:$uni-img-size-lg * 2;
|
||||
border-radius: $uni-border-radius-circle;
|
||||
margin-bottom: $margin;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
BIN
static/icons/search_row.png
Normal file
BIN
static/icons/search_row.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
File diff suppressed because one or more lines are too long
30133
unpackage/dist/dev/app-plus/app-service.js
vendored
30133
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
38800
unpackage/dist/dev/app-plus/app-view.js
vendored
38800
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/manifest.json
vendored
2
unpackage/dist/dev/app-plus/manifest.json
vendored
@@ -1 +1 @@
|
||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__CD19AAD","name":"易品新境","version":{"name":"1.0.0","code":"100"},"description":"易品新境为商家提供营销引流工具","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"OAuth":{},"Payment":{},"Share":{},"Geolocation":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":false,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#f5f5f5"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"safearea":{"bottom":{"offset":"none"}},"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"oauth":{"univerify":{},"weixin":{"appid":"wx222fbe58feee7819","appsecret":"3d24525a636d7573a8fae885097d5cf7","UniversalLinks":""}},"payment":{"weixin":{"__platform__":["android"],"appid":"wx222fbe58feee7819","UniversalLinks":""}},"share":{"weixin":{"appid":"wx222fbe58feee7819","UniversalLinks":""}},"maps":{},"ad":{},"geolocation":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"arguments":"{\"name\":\"\",\"path\":\"\",\"query\":\"\",\"id\":0}","allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.3","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#bababa","selectedColor":"#e93340","backgroundColor":"#FFFFFF","borderStyle":"rgba(255,255,255,0.4)","list":[{"pagePath":"pages/equity/index","text":"通证权易","iconPath":"static/tabBar/tabBar_icon_00.png","selectedIconPath":"static/tabBar/tabBar_show_00.png"},{"pagePath":"pages/market/index","text":"转让市场","iconPath":"static/tabBar/tabBar_icon_01.png","selectedIconPath":"static/tabBar/tabBar_show_01.png"},{"pagePath":"pages/store/index","text":"企业工具","iconPath":"static/tabBar/tabBar_icon_02.png","selectedIconPath":"static/tabBar/tabBar_show_02.png"},{"pagePath":"pages/property/index","text":"我的资产","iconPath":"static/tabBar/tabBar_icon_03.png","selectedIconPath":"static/tabBar/tabBar_show_03.png"}],"height":"50px","child":["lauchwebview"],"selected":0},"launch_path":"__uniappview.html"}}
|
||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__CD19AAD","name":"易品新境","version":{"name":"1.0.0","code":"100"},"description":"易品新境为商家提供营销引流工具","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"OAuth":{},"Payment":{},"Share":{},"Geolocation":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":false,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#f5f5f5"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"safearea":{"bottom":{"offset":"none"}},"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"oauth":{"univerify":{},"weixin":{"appid":"wx222fbe58feee7819","appsecret":"3d24525a636d7573a8fae885097d5cf7","UniversalLinks":""}},"payment":{"weixin":{"__platform__":["android"],"appid":"wx222fbe58feee7819","UniversalLinks":""}},"share":{"weixin":{"appid":"wx222fbe58feee7819","UniversalLinks":""}},"maps":{},"ad":{},"geolocation":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"arguments":"{\"name\":\"\",\"path\":\"\",\"query\":\"\",\"id\":0}","allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.1.18","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#bababa","selectedColor":"#e93340","backgroundColor":"#FFFFFF","borderStyle":"rgba(255,255,255,0.4)","list":[{"pagePath":"pages/equity/index","text":"通证权易","iconPath":"static/tabBar/tabBar_icon_00.png","selectedIconPath":"static/tabBar/tabBar_show_00.png"},{"pagePath":"pages/market/index","text":"转让市场","iconPath":"static/tabBar/tabBar_icon_01.png","selectedIconPath":"static/tabBar/tabBar_show_01.png"},{"pagePath":"pages/store/index","text":"企业工具","iconPath":"static/tabBar/tabBar_icon_02.png","selectedIconPath":"static/tabBar/tabBar_show_02.png"},{"pagePath":"pages/property/index","text":"我的资产","iconPath":"static/tabBar/tabBar_icon_03.png","selectedIconPath":"static/tabBar/tabBar_show_03.png"}],"height":"50px","child":["lauchwebview"],"selected":0},"launch_path":"__uniappview.html"}}
|
||||
Reference in New Issue
Block a user