发布管理界面 完成列表 、删除、编辑、拒绝、同意、等功能 ,交易大厅界面优化及调整
This commit is contained in:
parent
10e260bbcc
commit
29153eeb59
43
api/release.js
Normal file
43
api/release.js
Normal file
@ -0,0 +1,43 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
/**
|
||||
* 获取发布管理转售商品列表
|
||||
* @param numType boolean true 购物车数量,false=购物车产品数量
|
||||
*/
|
||||
export function getResale(data) {
|
||||
return request.get("community/resale/lst", data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 清除发布管理转售商品
|
||||
* @param object ids
|
||||
*/
|
||||
export function getResaledelete(id) {
|
||||
return request.post('community/resale/delete/'+ id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 用户是否同意转售商品折扣价
|
||||
* @param object ids
|
||||
*/
|
||||
export function getResalecheck(id,data) {
|
||||
return request.post('community/resale/check/'+ id,data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取转售商品详情
|
||||
* @param object ids
|
||||
*/
|
||||
export function getResaleid(id) {
|
||||
return request.get('community/resale/' + id);
|
||||
}
|
@ -9,6 +9,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
|
||||
/**
|
||||
* 调货列表
|
||||
*
|
||||
@ -71,7 +72,17 @@ export function getCommunityaddCart(data) {
|
||||
//商品宝贝详情
|
||||
|
||||
export function getProductDetail(id) {
|
||||
return request.get('store/product/detail/' + id, {
|
||||
noAuth: true
|
||||
});
|
||||
return request.get('store/product/detail/' + id,
|
||||
);
|
||||
}
|
||||
//获取转售商品详情
|
||||
export function getresaleDetail(id) {
|
||||
return request.get('community/resale/' + id,
|
||||
);
|
||||
}
|
||||
|
||||
//编辑转售商品
|
||||
export function getresaleEdit(id,data) {
|
||||
return request.post('community/resale/edit/' + id,data
|
||||
);
|
||||
}
|
@ -55,19 +55,19 @@
|
||||
<view class="price">
|
||||
<span>出售价格</span>
|
||||
<input type="text" :value="item.price" placeholder="输入出售价格"
|
||||
@input="producrprice($event,i)" adjust-position=""
|
||||
@input="producrprice($event,i,item)" adjust-position=""
|
||||
placeholder-style="color: #CCCCCC;" />
|
||||
</view>
|
||||
<view class="price_num">
|
||||
<span>出售数量</span>
|
||||
<subtractive v-if='item.num==0' style="margin-top: 10rpx;margin-left: 20rpx;"
|
||||
<subtractive v-if='item.number==0' style="margin-top: 10rpx;margin-left: 20rpx;"
|
||||
class="step" :min="1" :max="item.attrValue[index].stock" :value="peicenumber"
|
||||
:isMax="true" :isMin="true" index="11" @eventChange="numberChange($event,i)">
|
||||
:isMax="true" :isMin="true" index="11" @eventChange="numberChange($event,i)" >
|
||||
</subtractive>
|
||||
|
||||
<subtractive v-else style="margin-top: 10rpx;margin-left: 20rpx;" class="step"
|
||||
:min="1" :max="item.attrValue[index].stock" :value="item.num" :isMax="true"
|
||||
:isMin="true" index="11" @eventChange="numberChange($event,i)"></subtractive>
|
||||
:min="1" :max="item.attrValue[index].stock" :value="item.number" :isMax="true"
|
||||
:isMin="true" index="11" @eventChange="numberChange($event,i)" ></subtractive>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -169,9 +169,10 @@
|
||||
},
|
||||
methods: {
|
||||
//价格
|
||||
producrprice(e, i) {
|
||||
producrprice(e, i,item) {
|
||||
|
||||
this.bought[i].price = e.detail.value
|
||||
|
||||
this.$set(item, 'check',false);
|
||||
},
|
||||
// picker修改事件
|
||||
bindPickerChange: function(e, storage, num) {
|
||||
@ -193,9 +194,10 @@
|
||||
},
|
||||
numberChange(data, i) {
|
||||
this.peicenumber = data.number;
|
||||
this.bought[i].num = data.number
|
||||
this.bought[i].number = data.number
|
||||
|
||||
},
|
||||
|
||||
tabs(index) {
|
||||
this.isActive = index
|
||||
this.$set(this.whereb, 'keyword', '');
|
||||
@ -255,7 +257,7 @@
|
||||
that.checkedArr.forEach((val, i) => {
|
||||
if (item.product_id == val.product_id) {
|
||||
that.$set(item, 'check', true);
|
||||
that.$set(item, 'num', val.num);
|
||||
that.$set(item, 'number', val.number);
|
||||
that.$set(item, 'price', val.price);
|
||||
}
|
||||
})
|
||||
@ -274,9 +276,9 @@
|
||||
this.$set(item, 'check', !item.check);
|
||||
if (item.check) {
|
||||
if (this.peicenumber == 0) {
|
||||
item.num = 1
|
||||
item.number = 1
|
||||
}
|
||||
|
||||
|
||||
if (!item.product_attr_unique) {
|
||||
item.product_attr_unique = item.attrValue[0].unique
|
||||
}
|
||||
@ -291,6 +293,7 @@
|
||||
},
|
||||
/*确定提交*/
|
||||
submit() {
|
||||
|
||||
this.$emit('getProduct', this.checkedArr);
|
||||
|
||||
},
|
||||
|
@ -585,7 +585,7 @@
|
||||
])),
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
// console.log(options)
|
||||
this.referer = options.referer
|
||||
if (options.product_type) {
|
||||
this.product_type = options.product_type
|
||||
|
@ -303,7 +303,8 @@
|
||||
<navigator v-if="orderInfo.delivery_type == 1 || orderInfo.delivery_type == 4" class='bnt cancel'
|
||||
hover-class='none' :url="'/pages/users/goods_logistics/index?orderId='+ orderInfo.order_id">查看物流
|
||||
</navigator>
|
||||
<view class='bnt b-color' @tap='confirmOrder(orderInfo)'>取件码</view>
|
||||
<!-- <view class='bnt b-color' @tap='confirmOrder(orderInfo)'>取件码</view> -->
|
||||
<view class='bnt b-color' @tap='confirmOrder(orderInfo)'>已收货</view>
|
||||
</block>
|
||||
<block v-if="orderInfo.status == 2">
|
||||
<view class="bnt cancel" @click="allRefund"
|
||||
@ -914,33 +915,33 @@
|
||||
|
||||
},
|
||||
queding() {
|
||||
uni.showModal({
|
||||
title: '取件码',
|
||||
content: item.logistics_code,
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
// console.log('用户点击确定');
|
||||
} else if (res.cancel) {
|
||||
// console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
})
|
||||
// let that = this;
|
||||
// orderTake(that.order_id).then(res => {
|
||||
// this.receivingshow = false
|
||||
// return that.$util.Tips({
|
||||
// title: '成功收货',
|
||||
// icon: 'success'
|
||||
// }, function() {
|
||||
|
||||
// that.getOrderInfo();
|
||||
// });
|
||||
// }).catch(err => {
|
||||
// this.receivingshow = false
|
||||
// return that.$util.Tips({
|
||||
// title: err
|
||||
// });
|
||||
// uni.showModal({
|
||||
// title: '取件码',
|
||||
// content: item.logistics_code,
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// // console.log('用户点击确定');
|
||||
// } else if (res.cancel) {
|
||||
// // console.log('用户点击取消');
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
let that = this;
|
||||
orderTake(that.order_id).then(res => {
|
||||
this.receivingshow = false
|
||||
return that.$util.Tips({
|
||||
title: '成功收货',
|
||||
icon: 'success'
|
||||
}, function() {
|
||||
|
||||
that.getOrderInfo();
|
||||
});
|
||||
}).catch(err => {
|
||||
this.receivingshow = false
|
||||
return that.$util.Tips({
|
||||
title: err
|
||||
});
|
||||
})
|
||||
},
|
||||
/**
|
||||
*
|
||||
|
@ -7,140 +7,223 @@
|
||||
</view>
|
||||
<!-- 审核通过 打折的拒绝、同意功能 ,调货不需要功能 -->
|
||||
<view class="content-content">
|
||||
|
||||
<view class="content-onea" v-if='this.tabTitle=="tabTwo"'>
|
||||
<view class="content-one-img">
|
||||
<image src="@/static/images/bg2.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="content-one-txt">
|
||||
<view class="one-txt-a">
|
||||
超级无敌一级棒乌龙山马龙尖茶...
|
||||
</view>
|
||||
<view class="one-txt-b">
|
||||
<view class="txt-b-a">
|
||||
¥ 100.00
|
||||
</view>
|
||||
<view class="txt-b-b">
|
||||
类型:调货
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-else-if="this.tabTitle=='tabFive'">
|
||||
<view class="content-one">
|
||||
<view class="" v-if='tabTitle=="tabTwo"' v-for="(item,i) in orderList" :key='i'>
|
||||
<view class="content-onea"
|
||||
style="margin-bottom: 23rpx;background-color: #FFFFFF; padding: 28rpx 46rpx;">
|
||||
<view class="content-one-img">
|
||||
<image src="@/static/images/bg2.png" mode="aspectFit"></image>
|
||||
<image :src="item.image" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="content-one-txt">
|
||||
<view class="one-txt-a">
|
||||
超级无敌一级棒乌龙山马龙尖茶...
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="one-txt-b">
|
||||
<view class="txt-b-a">
|
||||
¥ 100.00
|
||||
¥ {{item.discount_price}}
|
||||
</view>
|
||||
<view class="txt-b-b">
|
||||
结算价:¥100.00
|
||||
<view class="txt-b-b" v-if="item.resale_type==1">
|
||||
类型:调货
|
||||
</view>
|
||||
<view class="txt-b-b" v-else>
|
||||
类型:打折
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="">
|
||||
类型:调货
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-two_one" v-if='tabTitle=="tabOne"'>
|
||||
<view class="content-two-edit" @click="soldEdit(item) ">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- <view class="content-one">
|
||||
<view class="content-one-img">
|
||||
<image src="@/static/images/bg2.png" mode="aspectFit"></image>
|
||||
<view class="content-two-two" v-if='tabTitle=="tabTwo"'>
|
||||
<!-- <view class="content-two-delete">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-one-txt">
|
||||
<view class="one-txt-a">
|
||||
超级无敌一级棒乌龙山马龙尖茶...
|
||||
<view class="content-two-edit">
|
||||
编辑
|
||||
</view>
|
||||
-->
|
||||
</view>
|
||||
<view class="content-two-three" v-if='tabTitle=="tabThree"'>
|
||||
<view class="content-two-delete" @click="pendingDeletion(item)">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit" @click="editReviewe(item)">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-four" v-if='tabTitle=="tabFour"'>
|
||||
<view class="content-two-delete" @click="auditDelete(item)">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit" @click="auditEdit(item)">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-five" v-if='tabTitle=="tabFive"'>
|
||||
<view class="content-two-delete" @click="passDelete(item)">
|
||||
拒绝
|
||||
</view>
|
||||
|
||||
<view class="content-two-agree" @click="passagree(item)">
|
||||
同意
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view v-else-if="tabTitle=='tabFive'">
|
||||
<view class="" v-for="(item,i) in orderList" :key='i'
|
||||
style="margin-bottom: 23rpx;background-color: #FFFFFF; padding: 28rpx 46rpx;">
|
||||
<view class="content-one">
|
||||
<view class="content-one-img">
|
||||
<image :src="item.image" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="one-txt-b">
|
||||
<view class="txt-b-a">
|
||||
¥ 100.00
|
||||
<view class="content-one-txt">
|
||||
<view class="one-txt-a">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="txt-b-b">
|
||||
结算价:¥100.00
|
||||
<view class="one-txt-b">
|
||||
<view class="txt-b-a">
|
||||
¥ {{item.discount_price}}
|
||||
</view>
|
||||
<view class="txt-b-b">
|
||||
结算价:¥{{item.discount_price}}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="item.resale_type==1">
|
||||
类型:调货
|
||||
</view>
|
||||
<view v-else>
|
||||
类型:打折
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-two_one" v-if='tabTitle=="tabOne"'>
|
||||
<view class="content-two-edit" @click="soldEdit(item) ">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
<view class="">
|
||||
类型:调货
|
||||
</view>
|
||||
<view class="content-two-two" v-if='tabTitle=="tabTwo"'>
|
||||
<!-- <view class="content-two-delete">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit">
|
||||
编辑
|
||||
</view>
|
||||
-->
|
||||
</view>
|
||||
<view class="content-two-three" v-if='tabTitle=="tabThree"'>
|
||||
<view class="content-two-delete" @click="pendingDeletion(item)">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit" @click="editReviewe(item)">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-four" v-if='tabTitle=="tabFour"'>
|
||||
<view class="content-two-delete" @click="auditDelete(item)">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit" @click="auditEdit(item)">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-five" v-if='tabTitle=="tabFive"'>
|
||||
<view class="content-two-delete" @click="passDelete(item)">
|
||||
拒绝
|
||||
</view>
|
||||
|
||||
<view class="content-two-agree" @click="passagree(item)">
|
||||
同意
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view class="content-one" v-else>
|
||||
<view class="content-one-img">
|
||||
<image src="@/static/images/bg2.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="content-one-txt">
|
||||
<view class="one-txt-a">
|
||||
超级无敌一级棒乌龙山马龙尖茶...
|
||||
</view>
|
||||
<view class="one-txt-b">
|
||||
<view class="txt-b-a">
|
||||
¥ 100.00
|
||||
|
||||
|
||||
</view>
|
||||
<view v-else>
|
||||
<view class="" v-for="(item,i) in orderList" :key='i'
|
||||
style="margin-bottom: 23rpx;background-color: #FFFFFF; padding: 28rpx 46rpx;">
|
||||
<view class="content-one">
|
||||
<view class="content-one-img">
|
||||
<image :src="item.image" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="txt-b-b">
|
||||
类型:调货
|
||||
<view class="content-one-txt">
|
||||
<view class="one-txt-a">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="one-txt-b">
|
||||
|
||||
<view class="txt-b-b" v-if="item.resale_type==1">
|
||||
类型:调货
|
||||
</view>
|
||||
<view class="txt-b-b" v-else>
|
||||
类型:打折
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="content-two_one" v-if='tabTitle=="tabOne"'>
|
||||
<view class="content-two-edit" @click="soldEdit(item) ">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-two" v-if='tabTitle=="tabTwo"'>
|
||||
<!-- <view class="content-two-delete">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit">
|
||||
编辑
|
||||
</view>
|
||||
-->
|
||||
</view>
|
||||
<view class="content-two-three" v-if='tabTitle=="tabThree"'>
|
||||
<view class="content-two-delete" @click="pendingDeletion(item)">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit" @click="editReviewe(item)">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-four" v-if='tabTitle=="tabFour"'>
|
||||
<view class="content-two-delete" @click="auditDelete(item)">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit" @click="auditEdit(item)">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-five" v-if='tabTitle=="tabFive"'>
|
||||
<view class="content-two-delete" @click="passDelete(item)">
|
||||
拒绝
|
||||
</view>
|
||||
|
||||
<view class="content-two-agree" @click="passagree(item)">
|
||||
同意
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-two_one" v-if='this.tabTitle=="tabOne"'>
|
||||
|
||||
<view class="content-two-edit" @click="soldEdit">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-two" v-if='this.tabTitle=="tabTwo"'>
|
||||
<!-- <view class="content-two-delete">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit">
|
||||
编辑
|
||||
</view>
|
||||
-->
|
||||
</view>
|
||||
<view class="content-two-three" v-if='this.tabTitle=="tabThree"'>
|
||||
<view class="content-two-delete" @click="pendingDeletion">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit" @click="editReviewe">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-four" v-if='this.tabTitle=="tabFour"'>
|
||||
<view class="content-two-delete" @click="auditDelete">
|
||||
删除
|
||||
</view>
|
||||
<view class="content-two-edit" @click="auditEdit">
|
||||
编辑
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-two-five" v-if='this.tabTitle=="tabFive"'>
|
||||
<view class="content-two-delete" @click="passDlete">
|
||||
拒绝
|
||||
</view>
|
||||
|
||||
<view class="content-two-agree" @click="passagree">
|
||||
同意
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="orderList.length == 0 && this.where.page > 1">
|
||||
<view v-if="orderList.length == 0 ">
|
||||
<emptyPage title="暂无订单~"></emptyPage>
|
||||
</view>
|
||||
|
||||
@ -150,6 +233,15 @@
|
||||
<script>
|
||||
import cxNavTitle from '@/components/cx-navTitle.vue'
|
||||
import emptyPage from '@/components/emptyPage.vue';
|
||||
import {
|
||||
from
|
||||
} from 'form-data';
|
||||
import {
|
||||
getResaleid,
|
||||
getResalecheck,
|
||||
getResaledelete,
|
||||
getResale
|
||||
} from '@/api/release.js'
|
||||
export default {
|
||||
components: {
|
||||
cxNavTitle,
|
||||
@ -160,29 +252,36 @@
|
||||
activeItem: "tabOne",
|
||||
tabTitle: "",
|
||||
orderList: [],
|
||||
glist: [],
|
||||
where: {
|
||||
page: 1,
|
||||
limit: 10
|
||||
limit: 10,
|
||||
status: 1
|
||||
},
|
||||
tabs: [{
|
||||
name: "tabOne",
|
||||
label: '在售',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
name: "tabTwo",
|
||||
label: '已售出',
|
||||
value: 2,
|
||||
},
|
||||
{
|
||||
name: "tabThree",
|
||||
label: '待审核',
|
||||
value: 3,
|
||||
},
|
||||
{
|
||||
name: "tabFour",
|
||||
label: '审核未通过',
|
||||
value: 4,
|
||||
},
|
||||
{
|
||||
name: "tabFive",
|
||||
label: '审核通过',
|
||||
value: 5,
|
||||
},
|
||||
],
|
||||
}
|
||||
@ -194,53 +293,118 @@
|
||||
if (num.key == '2') {
|
||||
this.activeItem = 'tabThree'
|
||||
}
|
||||
|
||||
this.list()
|
||||
//有时进入页面需要获取默认的第一个标签做逻辑判断 -- 如下:
|
||||
// console.log(this.tabs[0])
|
||||
},
|
||||
methods: {
|
||||
tabClick(e) { //点击获取当前标签数据
|
||||
this.orderList = []
|
||||
this.activeItem = e.name; //当前class类名
|
||||
this.tabTitle = e.name; //当前选的标签名
|
||||
this.where.status = e.value
|
||||
this.list()
|
||||
},
|
||||
// 已售出 编辑
|
||||
soldEdit() {
|
||||
console.log('111111')
|
||||
let data = {
|
||||
type: 2,
|
||||
id: 260
|
||||
|
||||
}
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/trading_hall/product_details/index?key=' + encodeURIComponent(JSON.stringify(
|
||||
data))
|
||||
list() {
|
||||
getResale(this.where).then(res => {
|
||||
if (res.status = 200) {
|
||||
this.orderList.push(...res.data.list)
|
||||
}
|
||||
})
|
||||
},
|
||||
//待审核 删除
|
||||
pendingDeletion() {
|
||||
//售出 编辑
|
||||
soldEdit(item) {
|
||||
if (item.resale_type == 1) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/trading_hall/transfer_goods/index?id=' + item.community_id +
|
||||
'>ype=' + 'edit'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/trading_hall/adddiscounts/index?id=' + item.community_id +
|
||||
'>ype=' + 'edit'
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//待审核 删除
|
||||
pendingDeletion(item) {
|
||||
|
||||
getResaledelete(item.community_id).then(res => {
|
||||
this.$util.Tips({
|
||||
title: res.message,
|
||||
icon: 'success'
|
||||
})
|
||||
this.list()
|
||||
this.tabTitle = 'tabThree'
|
||||
})
|
||||
},
|
||||
//待审核 编辑
|
||||
editReviewe() {
|
||||
|
||||
editReviewe(item) {
|
||||
if (item.resale_type == 1) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/trading_hall/transfer_goods/index?id=' + item.community_id +
|
||||
'>ype=' + 'edit'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/trading_hall/adddiscounts/index?id=' + item.community_id +
|
||||
'>ype=' + 'edit'
|
||||
})
|
||||
}
|
||||
},
|
||||
// 审核未通过 删除
|
||||
auditDelete() {
|
||||
auditDelete(item) {
|
||||
|
||||
getResaledelete(item.community_id).then(res => {
|
||||
this.$util.Tips({
|
||||
title: res.message,
|
||||
icon: 'success'
|
||||
})
|
||||
this.list()
|
||||
this.tabTitle = 'tabFour'
|
||||
})
|
||||
},
|
||||
|
||||
// 审核未通过 编辑
|
||||
auditEdit() {
|
||||
|
||||
auditEdit(item) {
|
||||
if (item.resale_type == 1) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/trading_hall/transfer_goods/index?id=' + item.community_id +
|
||||
'>ype=' + 'edit'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/trading_hall/adddiscounts/index?id=' + item.community_id +
|
||||
'>ype=' + 'edit'
|
||||
})
|
||||
}
|
||||
},
|
||||
//审核通过 拒绝
|
||||
passDelete() {
|
||||
|
||||
passDelete(item) {
|
||||
getResalecheck(item.community_id, {
|
||||
"status": 2
|
||||
}).then(res => {
|
||||
this.$util.Tips({
|
||||
title: res.message,
|
||||
icon: 'success'
|
||||
})
|
||||
this.list()
|
||||
this.tabTitle = 'tabFive'
|
||||
})
|
||||
},
|
||||
//审核通过 同意
|
||||
passagree() {
|
||||
|
||||
passagree(item) {
|
||||
getResalecheck(item.community_id, {
|
||||
"status": 1
|
||||
}).then(res => {
|
||||
this.$util.Tips({
|
||||
title: res.message,
|
||||
icon: 'success'
|
||||
})
|
||||
this.list()
|
||||
this.tabTitle = 'tabFive'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -260,12 +424,12 @@
|
||||
.content-content {
|
||||
|
||||
margin-top: 21rpx;
|
||||
background: #FFFFFF;
|
||||
|
||||
margin-left: 28rpx;
|
||||
margin-right: 28rpx;
|
||||
padding: 0 46rpx;
|
||||
|
||||
padding-top: 28rpx;
|
||||
background: #FFFFFF;
|
||||
|
||||
border-radius: 14rpx 14rpx 14rpx 14rpx;
|
||||
opacity: 1;
|
||||
position: relative;
|
||||
@ -275,12 +439,13 @@
|
||||
padding-bottom: 23rpx;
|
||||
|
||||
|
||||
background-color: #FFFFFF;
|
||||
|
||||
.content-one-img {
|
||||
width: 148rpx;
|
||||
height: 148rpx;
|
||||
margin-right: 28rpx;
|
||||
border: 1px solid;
|
||||
|
||||
|
||||
|
||||
image {
|
||||
@ -328,11 +493,12 @@
|
||||
border-bottom: 1px solid #CCCCCC;
|
||||
padding-bottom: 23rpx;
|
||||
|
||||
|
||||
.content-one-img {
|
||||
width: 148rpx;
|
||||
height: 148rpx;
|
||||
margin-right: 28rpx;
|
||||
border: 1px solid;
|
||||
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
|
@ -113,7 +113,7 @@
|
||||
},
|
||||
onLoad() {
|
||||
getHotBanner('good').then(res => {
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
this.bgData = res.data
|
||||
})
|
||||
this.getArticle()
|
||||
|
@ -124,7 +124,7 @@
|
||||
</checkbox-group>
|
||||
</view>
|
||||
|
||||
<!-- <view class="popup_group_item" v-if="delivery_way.includes('2')">
|
||||
<!-- <view class="popup_group_item" v-if="delivery_way.includes('2')">
|
||||
<view class="popup_group_item_label">是否包邮</view>
|
||||
<view class="popup_group_item_value">
|
||||
<view class="popup_group_item_message">
|
||||
@ -210,12 +210,12 @@
|
||||
configMap
|
||||
} from '@/utils';
|
||||
import {
|
||||
getresaleEdit,
|
||||
getCommunitycreate,
|
||||
|
||||
getresaleDetail
|
||||
} from '@/api/trading-floor.js'
|
||||
|
||||
import {
|
||||
|
||||
getUserInfo
|
||||
} from '@/api/user.js'
|
||||
import store from '@/store';
|
||||
@ -237,7 +237,7 @@
|
||||
category_id: 0,
|
||||
video_link: '',
|
||||
is_type: 3,
|
||||
resale_type:2,
|
||||
resale_type: 2,
|
||||
product_info: []
|
||||
},
|
||||
price: 0,
|
||||
@ -289,7 +289,7 @@
|
||||
merId: '',
|
||||
delivery_way: [], // 配送方式 1 到店核销 2 快递配送
|
||||
|
||||
|
||||
type: ''
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -319,7 +319,10 @@
|
||||
onLoad(options) {
|
||||
// uni.hideTabBar()
|
||||
this.id = options.id;
|
||||
|
||||
this.type = options.gtype
|
||||
if (this.type) {
|
||||
this.list()
|
||||
}
|
||||
this.tabActive = options.type || 1;
|
||||
if (this.community_app_switch.length == 1) {
|
||||
this.tabActive = this.community_app_switch[0]
|
||||
@ -346,6 +349,25 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
list() {
|
||||
getresaleDetail(this.id).then(res => {
|
||||
if (res.data.status = 200) {
|
||||
this.formData = res.data
|
||||
this.productList = res.data.resale
|
||||
this.formData.product_info = []
|
||||
for (let i in res.data.resale) {
|
||||
this.price = Number(this.price) + (Number(res.data.resale[i].number) * Number(res.data
|
||||
.resale[i].price))
|
||||
this.delivery_way = res.data.resale[i].deliver_method.split('')
|
||||
}
|
||||
|
||||
this.getProduct(res.data.resale)
|
||||
if(res.data.video_link){
|
||||
this.tabActive=2
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getUserInfo: function() {
|
||||
let that = this;
|
||||
getUserInfo().then(res => {
|
||||
@ -369,17 +391,17 @@
|
||||
// 送货方式选择
|
||||
deliveryWayChange(obj) {
|
||||
this.delivery_way = obj.detail.value;
|
||||
if(this.formData.product_info.length>0){
|
||||
for(let i in this.formData.product_info){
|
||||
if (this.formData.product_info.length > 0) {
|
||||
for (let i in this.formData.product_info) {
|
||||
this.formData.product_info[i].deliver_method = obj.detail.value.toString();
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
this.$util.Tips({
|
||||
title: '请选择产品,再选择送货方式'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
|
||||
onLoadFun() {
|
||||
@ -552,7 +574,7 @@
|
||||
},
|
||||
/*添加宝贝*/
|
||||
addProduct() {
|
||||
|
||||
|
||||
this.$refs.associated.open();
|
||||
},
|
||||
|
||||
@ -581,15 +603,15 @@
|
||||
},
|
||||
/*获取选中的宝贝*/
|
||||
getProduct(data) {
|
||||
this.productList=[]
|
||||
this.price = 0
|
||||
this.productList = []
|
||||
this.price = 0;
|
||||
if (data.length > 0) {
|
||||
this.productList = data;
|
||||
for (let i in data) {
|
||||
this.price = Number(this.price) + (Number(data[i].num) * Number(data[i].price))
|
||||
this.price = Number(this.price) + (Number(data[i].number) * Number(data[i].price))
|
||||
this.formData.product_info.push({
|
||||
product_attr_unique: data[i].product_attr_unique,
|
||||
number: Number(data[i].num),
|
||||
number: Number(data[i].number),
|
||||
price: data[i].price
|
||||
})
|
||||
}
|
||||
@ -599,7 +621,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
this.$refs.associated.close();
|
||||
},
|
||||
|
||||
@ -631,7 +652,38 @@
|
||||
title: '保存中',
|
||||
mask: true
|
||||
})
|
||||
getCommunitycreate(value).then(res => {
|
||||
that.type == 'edit' ? getresaleEdit(that.id, value).then(res => {
|
||||
if (res.status == '200') {
|
||||
uni.hideLoading()
|
||||
that.$util.Tips({
|
||||
title: '编辑成功',
|
||||
icon: 'success'
|
||||
});
|
||||
that.formData = {
|
||||
image: [],
|
||||
content: "",
|
||||
topic_id: 0,
|
||||
category_id: 0,
|
||||
video_link: '',
|
||||
is_type: 3,
|
||||
product_info: []
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/releaseManagement/index?key=' + 2
|
||||
})
|
||||
|
||||
} else {
|
||||
that.$util.Tips({
|
||||
title: res.messge,
|
||||
icon: 'success'
|
||||
});
|
||||
}
|
||||
}).catch(err => {
|
||||
|
||||
return that.$util.Tips({
|
||||
title: err
|
||||
});
|
||||
}) : getCommunitycreate(value).then(res => {
|
||||
if (res.status == '200') {
|
||||
uni.hideLoading()
|
||||
that.$util.Tips({
|
||||
|
@ -34,10 +34,6 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -109,7 +109,7 @@
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="popup_group">
|
||||
<view class="popup_group" v-if='this.formData.product_info'>
|
||||
<view class="radio" v-if="this.formData.product_info.length>0">
|
||||
<view class="radio_label ">送货方式</view>
|
||||
<checkbox-group class="select_group flex_start" @change="deliveryWayChange">
|
||||
@ -124,7 +124,7 @@
|
||||
</checkbox-group>
|
||||
</view>
|
||||
|
||||
<!-- <view class="popup_group_item" v-if="delivery_way.includes('2')">
|
||||
<!-- <view class="popup_group_item" v-if="delivery_way.includes('2')">
|
||||
<view class="popup_group_item_label">是否包邮</view>
|
||||
<view class="popup_group_item_value">
|
||||
<view class="popup_group_item_message">
|
||||
@ -211,7 +211,8 @@
|
||||
} from '@/utils';
|
||||
import {
|
||||
getCommunitycreate,
|
||||
|
||||
getresaleDetail,
|
||||
getresaleEdit
|
||||
} from '@/api/trading-floor.js'
|
||||
|
||||
import {
|
||||
@ -237,7 +238,7 @@
|
||||
category_id: 0,
|
||||
video_link: '',
|
||||
is_type: 3,
|
||||
resale_type:1,
|
||||
resale_type: 1,
|
||||
product_info: []
|
||||
},
|
||||
price: 0,
|
||||
@ -288,7 +289,7 @@
|
||||
},
|
||||
merId: '',
|
||||
delivery_way: [], // 配送方式 1 到店核销 2 快递配送
|
||||
|
||||
type: ''
|
||||
|
||||
};
|
||||
},
|
||||
@ -319,6 +320,7 @@
|
||||
onLoad(options) {
|
||||
// uni.hideTabBar()
|
||||
this.id = options.id;
|
||||
this.type = options.gtype
|
||||
|
||||
this.tabActive = options.type || 1;
|
||||
if (this.community_app_switch.length == 1) {
|
||||
@ -330,6 +332,9 @@
|
||||
} else {
|
||||
|
||||
|
||||
}
|
||||
if (this.type) {
|
||||
this.list()
|
||||
}
|
||||
this.videoContext = uni.createVideoContext("myvideo", this);
|
||||
},
|
||||
@ -338,20 +343,34 @@
|
||||
this.formData.content = ''
|
||||
this.formData.image = []
|
||||
this.formData.topic_id = ''
|
||||
|
||||
|
||||
this.formData.video_link = ''
|
||||
this.productList = []
|
||||
this.topicName = {}
|
||||
},
|
||||
|
||||
methods: {
|
||||
list() {
|
||||
getresaleDetail(this.id).then(res => {
|
||||
if (res.data.status = 200) {
|
||||
this.formData = res.data
|
||||
this.productList = res.data.resale
|
||||
this.formData.product_info = []
|
||||
for (let i in res.data.resale) {
|
||||
this.price = Number(this.price) + (Number(res.data.resale[i].number) * Number(res.data
|
||||
.resale[i].price))
|
||||
this.delivery_way = res.data.resale[i].deliver_method.split('')
|
||||
}
|
||||
|
||||
this.getProduct(res.data.resale)
|
||||
if(res.data.video_link){
|
||||
this.tabActive=2
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getUserInfo: function() {
|
||||
let that = this;
|
||||
getUserInfo().then(res => {
|
||||
|
||||
|
||||
|
||||
this.merId = res.data.service.mer_id
|
||||
|
||||
})
|
||||
@ -369,17 +388,17 @@
|
||||
// 送货方式选择
|
||||
deliveryWayChange(obj) {
|
||||
this.delivery_way = obj.detail.value;
|
||||
if(this.formData.product_info.length>0){
|
||||
for(let i in this.formData.product_info){
|
||||
if (this.formData.product_info.length > 0) {
|
||||
for (let i in this.formData.product_info) {
|
||||
this.formData.product_info[i].deliver_method = obj.detail.value.toString();
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
this.$util.Tips({
|
||||
title: '请选择产品,再选择送货方式'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
|
||||
onLoadFun() {
|
||||
@ -552,7 +571,7 @@
|
||||
},
|
||||
/*添加宝贝*/
|
||||
addProduct() {
|
||||
|
||||
|
||||
this.$refs.associated.open();
|
||||
},
|
||||
|
||||
@ -581,17 +600,19 @@
|
||||
},
|
||||
/*获取选中的宝贝*/
|
||||
getProduct(data) {
|
||||
this.productList=[]
|
||||
|
||||
|
||||
this.productList = []
|
||||
this.price = 0;
|
||||
if (data.length > 0) {
|
||||
|
||||
|
||||
this.productList = data;
|
||||
for (let i in data) {
|
||||
console.log(Number(data[i].num) , Number(data[i].price),(Number(data[i].num) * Number(data[i].price)))
|
||||
this.price = Number(this.price) + (Number(data[i].num) * Number(data[i].price))
|
||||
|
||||
this.price = Number(this.price) + (Number(data[i].number) * Number(data[i].price))
|
||||
this.formData.product_info.push({
|
||||
product_attr_unique: data[i].product_attr_unique,
|
||||
number: Number(data[i].num),
|
||||
number: Number(data[i].number),
|
||||
price: data[i].price
|
||||
})
|
||||
}
|
||||
@ -609,11 +630,12 @@
|
||||
* 提交数据
|
||||
*/
|
||||
formSubmit: function(e) {
|
||||
// console.log(this.id)
|
||||
|
||||
|
||||
let that = this,
|
||||
|
||||
value = that.formData;
|
||||
|
||||
if (value.image.length == 0) return that.$util.Tips({
|
||||
title: '请添加图文图片'
|
||||
});
|
||||
@ -628,12 +650,43 @@
|
||||
title: '请添加话题视频'
|
||||
});
|
||||
}
|
||||
|
||||
uni.showLoading({
|
||||
title: '保存中',
|
||||
mask: true
|
||||
})
|
||||
getCommunitycreate(value).then(res => {
|
||||
|
||||
that.type == 'edit' ? getresaleEdit(that.id, value).then(res => {
|
||||
if (res.status == '200') {
|
||||
uni.hideLoading()
|
||||
that.$util.Tips({
|
||||
title: '编辑成功',
|
||||
icon: 'success'
|
||||
});
|
||||
that.formData = {
|
||||
image: [],
|
||||
content: "",
|
||||
topic_id: 0,
|
||||
category_id: 0,
|
||||
video_link: '',
|
||||
is_type: 3,
|
||||
product_info: []
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/releaseManagement/index?key=' + 2
|
||||
})
|
||||
|
||||
} else {
|
||||
that.$util.Tips({
|
||||
title: res.messge,
|
||||
icon: 'success'
|
||||
});
|
||||
}
|
||||
}).catch(err => {
|
||||
|
||||
return that.$util.Tips({
|
||||
title: err
|
||||
});
|
||||
}) : getCommunitycreate(value).then(res => {
|
||||
if (res.status == '200') {
|
||||
uni.hideLoading()
|
||||
that.$util.Tips({
|
||||
|
@ -9,7 +9,7 @@
|
||||
</view>
|
||||
<view>
|
||||
<text class='default t-color'
|
||||
v-if="addressInfo.is_default">[默认]</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.street || ''}}{{addressInfo.detail}}
|
||||
v-if="addressInfo.is_default">[默认]</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.street || ''}}{{addressInfo.detail}}{{addressInfo.brigade}}
|
||||
</view>
|
||||
</view>
|
||||
<navigator v-else :url="'/pages/users/user_address/index?cartId='+cartId" hover-class="none"
|
||||
|
@ -1,39 +1,45 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="header">
|
||||
<view class="top-header">
|
||||
<view class="search">
|
||||
<view class="search-content acea-row row-middle">
|
||||
<text class="iconfont icon-sousuo"></text>
|
||||
<input v-model="where.keyword" confirm-type="search" placeholder="请输入关键字" class="input" />
|
||||
<view class="search_btn">
|
||||
<image src="@/static/images/serchbtn.png" mode="aspectFill" @click="handleSearch"></image>
|
||||
<view class="content-header">
|
||||
<view class="header">
|
||||
<view class="top-header">
|
||||
<view class="search">
|
||||
<view class="search-content acea-row row-middle">
|
||||
<text class="iconfont icon-sousuo"></text>
|
||||
<input v-model="where.keyword" confirm-type="search" placeholder="请输入关键字" class="input" />
|
||||
<view class="search_btn">
|
||||
<image src="@/static/images/serchbtn.png" mode="aspectFill" @click="handleSearch">
|
||||
</image>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="recom">
|
||||
<view class="recom_bnt">
|
||||
<rudon-rowMenuDotDotDot :localdata="options" @change="menuAction($event)"
|
||||
style="color: #000000;">
|
||||
<view class="" style="color: #F84221;">
|
||||
{{this.recomname}}
|
||||
</view>
|
||||
<view class="recom_sym">
|
||||
<image src='@/static/images/arrow-bottom.png' mode="aspectFit"></image>
|
||||
</view>
|
||||
</rudon-rowMenuDotDotDot>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="recom">
|
||||
<view class="recom_bnt">
|
||||
<rudon-rowMenuDotDotDot :localdata="options" @change="menuAction($event)" style="color: #000000;">
|
||||
<view class="" style="color: #F84221;">
|
||||
{{this.recomname}}
|
||||
</view>
|
||||
<view class="recom_sym">
|
||||
<image src='@/static/images/arrow-bottom.png' mode="aspectFit"></image>
|
||||
</view>
|
||||
</rudon-rowMenuDotDotDot>
|
||||
<view class="type_switch">
|
||||
<view class="recom_mend" v-for="(item,i) in options" :key="i" :class="i==num?'tradcolor':''"
|
||||
@click="btntap(i)">
|
||||
{{item.text}}
|
||||
|
||||
<view :class="i==num?'tradline':''"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="type_switch">
|
||||
<view class="recom_mend" v-for="(item,i) in options" :key="i" :class="i==num?'tradcolor':''"
|
||||
@click="btntap(i)">
|
||||
{{item.text}}
|
||||
|
||||
<view :class="i==num?'tradline':''"></view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="item" v-for='(item,index) in datatlist' :key='index' @click="shopping(item)">
|
||||
@ -65,12 +71,12 @@
|
||||
|
||||
<release :isShow='visible' :bottom='true' @close="closeMadle" @cancel="cancel" @confirm="confirm"
|
||||
style="z-index: 999999!important;"></release>
|
||||
<view v-if="datatlist.length == 0||datatlist.length == 0 && where.page > 1 ">
|
||||
<emptyPage title="暂无商品信息"></emptyPage>
|
||||
|
||||
|
||||
<view class="empty_wrapper" v-if="emptyShow">
|
||||
<u-empty :show="emptyShow" mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png"></u-empty>
|
||||
</view>
|
||||
|
||||
|
||||
<u-loadmore :status="status" />
|
||||
<u-loadmore :status="status" />
|
||||
|
||||
</view>
|
||||
</template>
|
||||
@ -119,18 +125,20 @@
|
||||
],
|
||||
datatlist: [],
|
||||
recomname: '',
|
||||
emptyShow: false,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getlist()
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.status == 'nomore') return;
|
||||
this.status = 'loading';
|
||||
this.where.page = ++this.where.page;
|
||||
this.getlist(this.num)
|
||||
},
|
||||
methods: {
|
||||
onReachBottom() {
|
||||
if (this.status == 'nomore') return;
|
||||
this.status = 'loading';
|
||||
this.where.page = ++this.where.page;
|
||||
this.getlist(this.num)
|
||||
},
|
||||
|
||||
|
||||
//选择 打折 调货
|
||||
btntap(index) {
|
||||
@ -143,9 +151,7 @@
|
||||
let data = {
|
||||
type: item.resale_type,
|
||||
id: item.community_id
|
||||
|
||||
}
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/trading_hall/product_details/index?key=' + encodeURIComponent(JSON.stringify(
|
||||
data))
|
||||
@ -169,10 +175,9 @@
|
||||
|
||||
getCommunityList(this.where).then(res => {
|
||||
if (res.status == 200) {
|
||||
if (res.data.list.length < this.where.limit) {
|
||||
this.status = 'nomore'
|
||||
}
|
||||
this.datatlist = res.data.list
|
||||
this.datatlist.push(...res.data.list)
|
||||
if (res.data.list.length < this.where.limit) this.status = 'nomore'
|
||||
if (this.where.page == 1 && res.data.list.length <= 0) this.emptyShow = true
|
||||
}
|
||||
|
||||
})
|
||||
@ -182,17 +187,19 @@
|
||||
getlist(index) {
|
||||
if (this.num == 0) {
|
||||
this.where.resale_type = ''
|
||||
this.datatlist=[]
|
||||
} else if (this.num == 1) {
|
||||
this.where.resale_type = 1
|
||||
this.datatlist=[]
|
||||
} else {
|
||||
this.where.resale_type = 2
|
||||
this.datatlist=[]
|
||||
}
|
||||
getCommunityList(this.where).then(res => {
|
||||
if (res.status == 200) {
|
||||
if (res.data.list.length < this.where.limit) {
|
||||
this.status = 'nomore'
|
||||
}
|
||||
this.datatlist = res.data.list
|
||||
this.datatlist.push(...res.data.list)
|
||||
if (res.data.list.length < this.where.limit) this.status = 'nomore'
|
||||
if (this.where.page == 1 && res.data.list.length <= 0) this.emptyShow = true
|
||||
}
|
||||
|
||||
})
|
||||
@ -228,6 +235,13 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content-header {
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 8888;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -362,6 +376,7 @@
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 170rpx;
|
||||
|
||||
|
||||
.item {
|
||||
|
Loading…
x
Reference in New Issue
Block a user