新增修改-1202
parent
1b7510290d
commit
f776bb3d76
|
@ -7,7 +7,7 @@
|
||||||
</view>
|
</view>
|
||||||
<text class="name font28 clips1">{{item.name}}</text>
|
<text class="name font28 clips1">{{item.name}}</text>
|
||||||
<view class="price flex">
|
<view class="price flex">
|
||||||
<text class="text color-8c font24" v-if="item.original_price!==''">¥{{item.original_price}}</text>
|
<text class="text color-8c font24" v-if="parseFloat(item.original_price)>0" style="text-decoration: line-through;margin-right: 6rpx;">¥{{item.original_price}}</text>
|
||||||
<text class="text color-red font28">¥{{item.price}}</text>
|
<text class="text color-red font28">¥{{item.price}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -97,8 +97,4 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 5rpx;
|
margin-top: 5rpx;
|
||||||
}
|
}
|
||||||
.goods-list .price>.text:first-child{
|
|
||||||
margin-right: 6rpx;
|
|
||||||
text-decoration: line-through;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,18 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="banner-box">
|
<view class="banner-box">
|
||||||
<swiper :current="bcurrent" @change="changeBanner" :style="{height: newHeight}" :autoplay="isplay"
|
<swiper :current="bcurrent" @change="changeBanner" :style="{height: newHeight}" :autoplay="isplay" :circular="true" :interval="3000" :duration="500">
|
||||||
:circular="true" :interval="3000" :duration="500">
|
|
||||||
<swiper-item v-for="(item,index) in bannerList" :key="index">
|
<swiper-item v-for="(item,index) in bannerList" :key="index">
|
||||||
<view @tap="chooseImg(index,item.url)" class="img-box">
|
<view @tap="chooseImg(index,item.url)" class="img-box">
|
||||||
<image :style="{borderRadius:newRadius,height:newHeight}" class="img animated fadeIn"
|
<image :style="{borderRadius:newRadius,height:newHeight}" class="img animated fadeIn" :src="item.imgSrc" mode="widthFix"></image>
|
||||||
:src="item.imgSrc" mode="widthFix"></image>
|
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
<!-- 指示点 -->
|
<!-- 指示点 -->
|
||||||
<view v-if="isDot" class="dot-box" :style="{bottom:newBottom}">
|
<view v-if="isDot" class="dot-box" :style="{bottom:newBottom}">
|
||||||
<view class="item-dot" :style="{backgroundColor: bcurrent==indexd ? activec : defaultc}"
|
<view class="item-dot" :style="{backgroundColor: bcurrent==indexd ? activec : defaultc}" v-for="(itemd,indexd) in bannerList.length" :key="indexd" @tap="chooseDot(indexd)"></view>
|
||||||
v-for="(itemd,indexd) in bannerList.length" :key="indexd" @tap="chooseDot(indexd)"></view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -31,35 +28,15 @@
|
||||||
},
|
},
|
||||||
bannerList: { //默认轮播图片
|
bannerList: { //默认轮播图片
|
||||||
type: Array,
|
type: Array,
|
||||||
default: function() {
|
default: []
|
||||||
return [{
|
|
||||||
imgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',
|
|
||||||
url: '',
|
|
||||||
isVideo: false,
|
|
||||||
poster: ''
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',
|
|
||||||
url: '',
|
|
||||||
isVideo: false,
|
|
||||||
poster: ''
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',
|
|
||||||
url: '',
|
|
||||||
isVideo: false,
|
|
||||||
poster: ''
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
newHeight: { //swiper的高
|
newHeight: { //swiper的高
|
||||||
type: String,
|
type: String,
|
||||||
default: '420rpx'
|
default: '320rpx'
|
||||||
},
|
},
|
||||||
newBottom: { //指示点距离底部位置
|
newBottom: { //指示点距离底部位置
|
||||||
type: String,
|
type: String,
|
||||||
default: '18px'
|
default: '20rpx'
|
||||||
},
|
},
|
||||||
newRadius: { //图片圆角
|
newRadius: { //图片圆角
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -142,6 +119,10 @@
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.banner-box {
|
.banner-box {
|
||||||
|
width: calc(100% - 40rpx);
|
||||||
|
margin: 20rpx auto 0;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +140,7 @@
|
||||||
|
|
||||||
.dot-box {
|
.dot-box {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 36rpx;
|
bottom: 20rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
11
pages.json
11
pages.json
|
@ -4,7 +4,7 @@
|
||||||
"path": "pages/idle/idle",
|
"path": "pages/idle/idle",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "闲置",
|
"navigationBarTitleText": "闲置",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ //我的
|
{ //我的
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
"path" : "pages/goods/goods",
|
"path" : "pages/goods/goods",
|
||||||
"style" : {
|
"style" : {
|
||||||
"navigationBarTitleText": "我的发布",
|
"navigationBarTitleText": "我的发布",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ //商品详情
|
{ //商品详情
|
||||||
|
@ -56,6 +56,13 @@
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{ //反馈建议
|
||||||
|
"path" : "pages/feedback/feedback",
|
||||||
|
"style" : {
|
||||||
|
"navigationBarTitleText": "反馈建议",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
},
|
||||||
{ //小区选择
|
{ //小区选择
|
||||||
"path": "pages/estate/estate",
|
"path": "pages/estate/estate",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
|
@ -0,0 +1,70 @@
|
||||||
|
<template>
|
||||||
|
<view class="pad-x20">
|
||||||
|
<!-- 头部 -->
|
||||||
|
<status-nav :ifReturn="true" navBarTitle="反馈建议"></status-nav>
|
||||||
|
<view class="tips font28">提示:如果您有问题反馈或意见建议,都可以在下方表单提交哟!</view>
|
||||||
|
<view class="feedback background-white radius20 border-box">
|
||||||
|
<view class="title font30 color-99">反馈或建议:</view>
|
||||||
|
<textarea class="font28 radius10 border-box" v-model="feedbackMsg"></textarea>
|
||||||
|
</view>
|
||||||
|
<view class="feedback-btn background-blue radius20 font30 color-ff" @tap="submitEv">提交</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||||
|
feedbackMsg:'',// 反馈建议
|
||||||
|
flag:true, //是否可提交
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submitEv(){
|
||||||
|
if(this.flag){
|
||||||
|
this.flag = false;
|
||||||
|
this.$requst.post('/api/v1/user/feedback',{content:this.feedbackMsg}).then(res=>{
|
||||||
|
if(res.code == 0){
|
||||||
|
this.$toolAll.tools.showToast('提交成功');
|
||||||
|
// 返回
|
||||||
|
uni.navigateBack({delta:1})
|
||||||
|
}else{
|
||||||
|
this.$toolAll.tools.showToast(res.msg);
|
||||||
|
}
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.flag = true;
|
||||||
|
},2000)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.tips{
|
||||||
|
padding: 20rpx 20rpx 0;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
.feedback{
|
||||||
|
width: calc(100% - 40rpx);
|
||||||
|
margin: 20rpx auto 50rpx;
|
||||||
|
padding: 15rpx 20rpx;
|
||||||
|
}
|
||||||
|
.feedback textarea{
|
||||||
|
width: 100%;
|
||||||
|
border: 2rpx solid #f4f5f6;
|
||||||
|
margin-top: 5px;
|
||||||
|
padding: 8rpx 10px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
.feedback-btn{
|
||||||
|
width: calc(100% - 40rpx);
|
||||||
|
line-height: 80rpx;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -15,13 +15,12 @@
|
||||||
<view class="title color-8c">商品分类</view>
|
<view class="title color-8c">商品分类</view>
|
||||||
<view class="msg">{{goodsDetail.category_name}}</view>
|
<view class="msg">{{goodsDetail.category_name}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item font28 flex">
|
|
||||||
<view class="title color-8c">商品原价</view>
|
|
||||||
<view class="msg color-8c" style="text-decoration: line-through;">¥{{goodsDetail.original_price!==''?goodsDetail.original_price:'未填写'}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="item font28 flex">
|
<view class="item font28 flex">
|
||||||
<view class="title color-8c">商品售价</view>
|
<view class="title color-8c">商品售价</view>
|
||||||
<view class="msg">¥{{goodsDetail.price}}</view>
|
<view class="msg">
|
||||||
|
<text class="color-8c font24" v-if="parseFloat(goodsDetail.original_price)>0" style="text-decoration:line-through;margin-right: 6rpx;">¥{{goodsDetail.original_price}}</text>
|
||||||
|
<text class="color-red">¥{{goodsDetail.price}}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item font28 flex">
|
<view class="item font28 flex">
|
||||||
<view class="title color-8c">联系方式</view>
|
<view class="title color-8c">联系方式</view>
|
||||||
|
@ -57,6 +56,7 @@
|
||||||
isLoading:false, //是否加载完成
|
isLoading:false, //是否加载完成
|
||||||
type:'', //是否自己发布
|
type:'', //是否自己发布
|
||||||
goods_id: 0,// 商品id
|
goods_id: 0,// 商品id
|
||||||
|
flag:true, //能否上下架
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(op) {
|
onLoad(op) {
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
// 编辑
|
// 编辑
|
||||||
editEv(id){
|
editEv(id){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/idle/release?id=${id}`,
|
url:`/pages/release/release?id=${id}`,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,19 @@
|
||||||
<view class="pad-x20" v-if="isLoading">
|
<view class="pad-x20" v-if="isLoading">
|
||||||
<!-- 头部 -->
|
<!-- 头部 -->
|
||||||
<status-nav :ifReturn="true" navBarTitle="我的发布"></status-nav>
|
<status-nav :ifReturn="true" navBarTitle="我的发布"></status-nav>
|
||||||
|
<!-- 商品分类 -->
|
||||||
|
<view class="goods-cate">
|
||||||
|
<scroll-view scroll-x="true" :scroll-left="tabsScrollLeft" @scroll="scroll">
|
||||||
|
<view class="cate-list flex" id="tab_list">
|
||||||
|
<view class="cate-item background-white radius10" :class="currentIndex==-1?'background-blue color-ff':''" id="tab_item" @tap="changeCateEv(-1)">
|
||||||
|
<view class="txt font24">全部</view>
|
||||||
|
</view>
|
||||||
|
<view class="cate-item background-white radius10" :class="index==currentIndex?'background-blue color-ff':''" id="tab_item" v-for="(item,index) in cateList" :key="index" @tap="changeCateEv(index)">
|
||||||
|
<view class="txt font24">{{item.name}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
<!-- 商品列表 -->
|
<!-- 商品列表 -->
|
||||||
<goods-list :goodsList="goodsList" :isOperate="true" @changeStateEv="changeStateEv"></goods-list>
|
<goods-list :goodsList="goodsList" :isOperate="true" @changeStateEv="changeStateEv"></goods-list>
|
||||||
<!-- 没有更多 -->
|
<!-- 没有更多 -->
|
||||||
|
@ -27,11 +40,18 @@
|
||||||
total:0, //总数
|
total:0, //总数
|
||||||
isLoading:false, //是否加载完成
|
isLoading:false, //是否加载完成
|
||||||
flag:true, //改变状态
|
flag:true, //改变状态
|
||||||
|
//分类导航
|
||||||
|
cateList:[], //分类列表
|
||||||
|
currentIndex:-1,
|
||||||
|
scrollLeft:0,
|
||||||
|
tabsScrollLeft:0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
// 查询分类
|
||||||
|
this.getCateList();
|
||||||
// 查询商品列表
|
// 查询商品列表
|
||||||
this.getGoodsList();
|
this.getGoodsList(0);
|
||||||
},
|
},
|
||||||
onReachBottom(e) {
|
onReachBottom(e) {
|
||||||
if(this.goodsList.length<this.total){
|
if(this.goodsList.length<this.total){
|
||||||
|
@ -40,15 +60,92 @@
|
||||||
this.getGoodsList();
|
this.getGoodsList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
onPullDownRefresh() {
|
||||||
|
this.page = 1;
|
||||||
// 查询商品列表
|
// 查询商品列表
|
||||||
getGoodsList(){
|
this.getGoodsList();
|
||||||
|
// 关闭下拉刷新
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 查询分类
|
||||||
|
getCateList(){
|
||||||
|
if(this.page==1) this.goodsList = [];
|
||||||
|
this.$requst.get('/api/v1/goods/category').then(res=>{
|
||||||
|
if(res.code == 0){
|
||||||
|
console.log(res,'物品分类列表')
|
||||||
|
let cateArr = [];
|
||||||
|
res.data.forEach(item=>{
|
||||||
|
let obj = {
|
||||||
|
id:item.id,
|
||||||
|
name:item.title
|
||||||
|
}
|
||||||
|
cateArr.push(obj)
|
||||||
|
})
|
||||||
|
this.cateList = cateArr;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 分类选择事件
|
||||||
|
changeCateEv(index) {
|
||||||
|
if(index !== this.currentIndex){
|
||||||
|
this.currentIndex = index;
|
||||||
|
// 查询商品列表
|
||||||
|
this.page = 1;
|
||||||
|
this.goodsList = [];
|
||||||
|
this.getGoodsList(index==-1?0:this.cateList[index].id);
|
||||||
|
// 分类切换效果
|
||||||
|
if(index!==-1){
|
||||||
|
this.setTabList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 分类切换效果
|
||||||
|
setTabList() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if (this.cateList.length > 0) {
|
||||||
|
//计算左滑距离
|
||||||
|
this.setLeft()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
//计算左滑距离
|
||||||
|
setLeft() {
|
||||||
|
let lineLeft = 0;
|
||||||
|
this.getElementData('#tab_list', (data) => {
|
||||||
|
let list = data[0];
|
||||||
|
this.getElementData('#tab_item', (res) => {
|
||||||
|
let el = res[this.currentIndex]
|
||||||
|
lineLeft = el.width / 2 + (-list.left) + el.left - list.width / 2 - this.scrollLeft
|
||||||
|
this.tabsScrollLeft = this.scrollLeft + lineLeft
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取DOM距离
|
||||||
|
getElementData(el, callback) {
|
||||||
|
uni.createSelectorQuery().in(this).selectAll(el).boundingClientRect().exec((data) => {
|
||||||
|
callback(data[0]);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// 滚动
|
||||||
|
scroll(e) {
|
||||||
|
this.scrollLeft = e.detail.scrollLeft;
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询商品列表
|
||||||
|
getGoodsList(id){
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title:'加载中'
|
title:'加载中'
|
||||||
})
|
})
|
||||||
let params = {
|
let params = {
|
||||||
page:this.page,
|
page:this.page,
|
||||||
size:this.size,
|
size:this.size,
|
||||||
|
category_id:id
|
||||||
}
|
}
|
||||||
if(this.page==1) this.goodsList = [];
|
if(this.page==1) this.goodsList = [];
|
||||||
this.$requst.get('/api/v1/user/goods',params).then(res=>{
|
this.$requst.get('/api/v1/user/goods',params).then(res=>{
|
||||||
|
@ -106,6 +203,36 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
/* 分类列表 */
|
||||||
|
.goods-cate{
|
||||||
|
padding: 20rpx 20rpx 0;
|
||||||
|
margin: 0 auto;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item{
|
||||||
|
margin: 0 6rpx;
|
||||||
|
padding: 5rpx 15rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item:first-child{
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item:last-child{
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item>.img{
|
||||||
|
width: 100rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item>.img image{
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item>.txt{
|
||||||
|
line-height: 1.5;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
/* 没有更多 */
|
||||||
.no-more{
|
.no-more{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 2;
|
line-height: 2;
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
<view class="pad-x120" v-if="isLoading">
|
<view class="pad-x120" v-if="isLoading">
|
||||||
<!-- 头部 -->
|
<!-- 头部 -->
|
||||||
<status-nav :ifReturn="false" :navBarTitle="pageTitle" :estate="1" :ifCenter="false"></status-nav>
|
<status-nav :ifReturn="false" :navBarTitle="pageTitle" :estate="1" :ifCenter="false"></status-nav>
|
||||||
|
<!-- 轮播 -->
|
||||||
|
<view class="index-top">
|
||||||
|
<swiper-pu newRadius="0" :bannerList="bannerList" newHeight="320rpx" :isplay='isplay'></swiper-pu>
|
||||||
|
</view>
|
||||||
<!-- 商品列表 -->
|
<!-- 商品列表 -->
|
||||||
<goods-list :goodsList="goodsList"></goods-list>
|
<goods-list :goodsList="goodsList"></goods-list>
|
||||||
<!-- 没有更多 -->
|
<!-- 没有更多 -->
|
||||||
|
@ -13,11 +17,13 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import swiperPu from '@/components/swipers/swiper-pu';
|
||||||
import goodsList from '@/components/goods-list/goods-list.vue';
|
import goodsList from '@/components/goods-list/goods-list.vue';
|
||||||
import releaseBtn from '@/components/release-btn/release-btn.vue';
|
import releaseBtn from '@/components/release-btn/release-btn.vue';
|
||||||
import tabbar from '@/components/tabbar/tabbar';
|
import tabbar from '@/components/tabbar/tabbar';
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
|
swiperPu,
|
||||||
goodsList,
|
goodsList,
|
||||||
releaseBtn,
|
releaseBtn,
|
||||||
tabbar
|
tabbar
|
||||||
|
@ -26,6 +32,7 @@
|
||||||
return {
|
return {
|
||||||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||||
pageTitle:'', //页面标题
|
pageTitle:'', //页面标题
|
||||||
|
bannerList:[],//轮播图
|
||||||
goodsList:[], //商品列表
|
goodsList:[], //商品列表
|
||||||
category_id:0, //分类id
|
category_id:0, //分类id
|
||||||
keyword:'', //关键词
|
keyword:'', //关键词
|
||||||
|
@ -47,6 +54,8 @@
|
||||||
url:'/pages/estate/estate?estate=1'
|
url:'/pages/estate/estate?estate=1'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 获取banner列表
|
||||||
|
this.getBannerList();
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
let shareObj = {
|
let shareObj = {
|
||||||
|
@ -73,7 +82,37 @@
|
||||||
this.getGoodsList();
|
this.getGoodsList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onHide() {
|
||||||
|
clearTimeout(this.playTimer);
|
||||||
|
this.isplay =false;
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.page = 1;
|
||||||
|
// 查询商品列表
|
||||||
|
this.getGoodsList();
|
||||||
|
// 关闭下拉刷新
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取轮播图事件
|
||||||
|
getBannerList(){
|
||||||
|
this.$requst.get('/api/v1/common/slides',{position:'home-banner'}).then(res=>{
|
||||||
|
if(res.code==0){
|
||||||
|
console.log(res,'轮播图列表')
|
||||||
|
res.data.forEach(item=>{
|
||||||
|
let isVideo = false
|
||||||
|
if(item.type!='img') isVideo = true;
|
||||||
|
let banObj = {
|
||||||
|
imgSrc:item.src,
|
||||||
|
url:item.url,
|
||||||
|
isVideo:isVideo,
|
||||||
|
poster:item.src,
|
||||||
|
}
|
||||||
|
this.bannerList.push(banObj);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 查询商品列表
|
// 查询商品列表
|
||||||
getGoodsList(){
|
getGoodsList(){
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|
|
@ -50,7 +50,8 @@
|
||||||
mobile:'', //电话号
|
mobile:'', //电话号
|
||||||
listData:[
|
listData:[
|
||||||
{titele:'个人资料',imgSrc:'/static/icon-my-01.png',iconWidth:36,iconHeight:36},
|
{titele:'个人资料',imgSrc:'/static/icon-my-01.png',iconWidth:36,iconHeight:36},
|
||||||
{titele:'我的发布',imgSrc:'/static/icon-my-02.png',iconWidth:36,iconHeight:36}
|
{titele:'我的发布',imgSrc:'/static/icon-my-02.png',iconWidth:36,iconHeight:36},
|
||||||
|
{titele:'反馈建议',imgSrc:'/static/icon-my-03.png',iconWidth:36,iconHeight:36}
|
||||||
], //列表数据
|
], //列表数据
|
||||||
isLoading:false, //是否加载完成
|
isLoading:false, //是否加载完成
|
||||||
}
|
}
|
||||||
|
@ -95,6 +96,12 @@
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 2:{
|
||||||
|
uni.navigateTo({
|
||||||
|
url:`/pages/feedback/feedback`
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -8,6 +8,7 @@
|
||||||
"pages/release/release",
|
"pages/release/release",
|
||||||
"pages/login/login",
|
"pages/login/login",
|
||||||
"pages/login/disclaimers",
|
"pages/login/disclaimers",
|
||||||
|
"pages/feedback/feedback",
|
||||||
"pages/estate/estate"
|
"pages/estate/estate"
|
||||||
],
|
],
|
||||||
"subPackages": [],
|
"subPackages": [],
|
||||||
|
|
|
@ -105,11 +105,11 @@
|
||||||
/******/
|
/******/
|
||||||
/******/
|
/******/
|
||||||
/******/ // mini-css-extract-plugin CSS loading
|
/******/ // mini-css-extract-plugin CSS loading
|
||||||
/******/ var cssChunks = {"components/nothing/nothing-page":1,"components/status-nav/status-nav":1,"components/release-btn/release-btn":1,"components/tabbar/tabbar":1,"components/goods-list/goods-list":1};
|
/******/ var cssChunks = {"components/nothing/nothing-page":1,"components/status-nav/status-nav":1,"components/release-btn/release-btn":1,"components/tabbar/tabbar":1,"components/goods-list/goods-list":1,"components/swipers/swiper-pu":1};
|
||||||
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
||||||
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
||||||
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
|
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
|
||||||
/******/ var href = "" + ({"components/nothing/nothing-page":"components/nothing/nothing-page","components/status-nav/status-nav":"components/status-nav/status-nav","components/release-btn/release-btn":"components/release-btn/release-btn","components/tabbar/tabbar":"components/tabbar/tabbar","components/goods-list/goods-list":"components/goods-list/goods-list"}[chunkId]||chunkId) + ".wxss";
|
/******/ var href = "" + ({"components/nothing/nothing-page":"components/nothing/nothing-page","components/status-nav/status-nav":"components/status-nav/status-nav","components/release-btn/release-btn":"components/release-btn/release-btn","components/tabbar/tabbar":"components/tabbar/tabbar","components/goods-list/goods-list":"components/goods-list/goods-list","components/swipers/swiper-pu":"components/swipers/swiper-pu"}[chunkId]||chunkId) + ".wxss";
|
||||||
/******/ var fullhref = __webpack_require__.p + href;
|
/******/ var fullhref = __webpack_require__.p + href;
|
||||||
/******/ var existingLinkTags = document.getElementsByTagName("link");
|
/******/ var existingLinkTags = document.getElementsByTagName("link");
|
||||||
/******/ for(var i = 0; i < existingLinkTags.length; i++) {
|
/******/ for(var i = 0; i < existingLinkTags.length; i++) {
|
||||||
|
|
|
@ -81,6 +81,24 @@ var render = function() {
|
||||||
var _vm = this
|
var _vm = this
|
||||||
var _h = _vm.$createElement
|
var _h = _vm.$createElement
|
||||||
var _c = _vm._self._c || _h
|
var _c = _vm._self._c || _h
|
||||||
|
var l0 = _vm.__map(_vm.goodsList, function(item, index) {
|
||||||
|
var $orig = _vm.__get_orig(item)
|
||||||
|
|
||||||
|
var m0 = parseFloat(item.original_price)
|
||||||
|
return {
|
||||||
|
$orig: $orig,
|
||||||
|
m0: m0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
_vm.$mp.data = Object.assign(
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
$root: {
|
||||||
|
l0: l0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
var recyclableRender = false
|
var recyclableRender = false
|
||||||
var staticRenderFns = []
|
var staticRenderFns = []
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="goods-list flex data-v-108270a4"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['goodsList','',index,'id']]]]]]]}}" class="item background-white radius20 mar-s20 data-v-108270a4" bindtap="__e"><view class="cover radius20 data-v-108270a4"><image class="img data-v-108270a4" src="{{item.cover}}" mode="widthFix"></image><block wx:if="{{isOperate}}"><view data-event-opts="{{[['tap',[['changeStateEv',['$0',index],[[['goodsList','',index,'id']]]]]]]}}" class="{{['hide-btn','font24','color-ff','radius20','flex','data-v-108270a4',item.status==1?'background-8c':'background-blue']}}" catchtap="__e">{{item.status==1?'已下架':'已上架'}}</view></block></view><text class="name font28 clips1 data-v-108270a4">{{item.name}}</text><view class="price flex data-v-108270a4"><block wx:if="{{item.original_price!==''}}"><text class="text color-8c font24 data-v-108270a4">{{"¥"+item.original_price}}</text></block><text class="text color-red font28 data-v-108270a4">{{"¥"+item.price}}</text></view></view></block></view>
|
<view class="goods-list flex data-v-108270a4"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['goodsList','',index,'id']]]]]]]}}" class="item background-white radius20 mar-s20 data-v-108270a4" bindtap="__e"><view class="cover radius20 data-v-108270a4"><image class="img data-v-108270a4" src="{{item.$orig.cover}}" mode="widthFix"></image><block wx:if="{{isOperate}}"><view data-event-opts="{{[['tap',[['changeStateEv',['$0',index],[[['goodsList','',index,'id']]]]]]]}}" class="{{['hide-btn','font24','color-ff','radius20','flex','data-v-108270a4',item.$orig.status==1?'background-8c':'background-blue']}}" catchtap="__e">{{item.$orig.status==1?'已下架':'已上架'}}</view></block></view><text class="name font28 clips1 data-v-108270a4">{{item.$orig.name}}</text><view class="price flex data-v-108270a4"><block wx:if="{{item.m0>0}}"><text class="text color-8c font24 data-v-108270a4" style="text-decoration:line-through;margin-right:6rpx;">{{"¥"+item.$orig.original_price}}</text></block><text class="text color-red font28 data-v-108270a4">{{"¥"+item.$orig.price}}</text></view></view></block></view>
|
|
@ -37,8 +37,4 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 5rpx;
|
margin-top: 5rpx;
|
||||||
}
|
}
|
||||||
.goods-list .price>.text.data-v-108270a4:first-child{
|
|
||||||
margin-right: 6rpx;
|
|
||||||
text-decoration: line-through;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,275 @@
|
||||||
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/swipers/swiper-pu"],{
|
||||||
|
|
||||||
|
/***/ 140:
|
||||||
|
/*!************************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/components/swipers/swiper-pu.vue ***!
|
||||||
|
\************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./swiper-pu.vue?vue&type=template&id=4176028a&scoped=true& */ 141);
|
||||||
|
/* harmony import */ var _swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./swiper-pu.vue?vue&type=script&lang=js& */ 143);
|
||||||
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||||
|
/* harmony import */ var _swiper_pu_vue_vue_type_style_index_0_id_4176028a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./swiper-pu.vue?vue&type=style&index=0&id=4176028a&scoped=true&lang=css& */ 145);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||||
|
|
||||||
|
var renderjs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* normalize component */
|
||||||
|
|
||||||
|
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||||
|
_swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||||
|
_swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||||
|
_swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||||
|
false,
|
||||||
|
null,
|
||||||
|
"4176028a",
|
||||||
|
null,
|
||||||
|
false,
|
||||||
|
_swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||||
|
renderjs
|
||||||
|
)
|
||||||
|
|
||||||
|
component.options.__file = "components/swipers/swiper-pu.vue"
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 141:
|
||||||
|
/*!*******************************************************************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/components/swipers/swiper-pu.vue?vue&type=template&id=4176028a&scoped=true& ***!
|
||||||
|
\*******************************************************************************************************/
|
||||||
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=template&id=4176028a&scoped=true& */ 142);
|
||||||
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||||
|
|
||||||
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||||
|
|
||||||
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||||
|
|
||||||
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_template_id_4176028a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 142:
|
||||||
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||||
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/components/swipers/swiper-pu.vue?vue&type=template&id=4176028a&scoped=true& ***!
|
||||||
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||||
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||||
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||||
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||||
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||||
|
var components
|
||||||
|
var render = function() {
|
||||||
|
var _vm = this
|
||||||
|
var _h = _vm.$createElement
|
||||||
|
var _c = _vm._self._c || _h
|
||||||
|
}
|
||||||
|
var recyclableRender = false
|
||||||
|
var staticRenderFns = []
|
||||||
|
render._withStripped = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 143:
|
||||||
|
/*!*************************************************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/components/swipers/swiper-pu.vue?vue&type=script&lang=js& ***!
|
||||||
|
\*************************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=script&lang=js& */ 144);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||||
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 144:
|
||||||
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||||
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/components/swipers/swiper-pu.vue?vue&type=script&lang=js& ***!
|
||||||
|
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
var _default =
|
||||||
|
{
|
||||||
|
name: "swiper-pu",
|
||||||
|
props: {
|
||||||
|
isplay: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false },
|
||||||
|
|
||||||
|
isDot: { //是否显示指示点
|
||||||
|
type: Boolean,
|
||||||
|
default: true },
|
||||||
|
|
||||||
|
bannerList: { //默认轮播图片
|
||||||
|
type: Array,
|
||||||
|
default: [] },
|
||||||
|
|
||||||
|
newHeight: { //swiper的高
|
||||||
|
type: String,
|
||||||
|
default: '320rpx' },
|
||||||
|
|
||||||
|
newBottom: { //指示点距离底部位置
|
||||||
|
type: String,
|
||||||
|
default: '20rpx' },
|
||||||
|
|
||||||
|
newRadius: { //图片圆角
|
||||||
|
type: String,
|
||||||
|
default: '0px' },
|
||||||
|
|
||||||
|
browseP: { //是否可预览
|
||||||
|
type: Boolean,
|
||||||
|
default: false },
|
||||||
|
|
||||||
|
activec: {
|
||||||
|
type: String,
|
||||||
|
default: 'rgba(255,255,255,1)' },
|
||||||
|
|
||||||
|
defaultc: {
|
||||||
|
type: String,
|
||||||
|
default: 'rgba(255,255,255,.3)' } },
|
||||||
|
|
||||||
|
|
||||||
|
data: function data() {
|
||||||
|
return {
|
||||||
|
bcurrent: 0, // 默认当前选中项
|
||||||
|
isShowVideo: false, // 是否显示视频
|
||||||
|
autoplay: false, // 是否开启自动轮播
|
||||||
|
isVedio: uni.getStorageSync('is_vedio') // 是否是视频
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 图片点击事件
|
||||||
|
chooseImg: function chooseImg(index, url) {var _this = this;
|
||||||
|
console.log('当前banner图', index, url);
|
||||||
|
this.bcurrent = index;
|
||||||
|
if (this.browseP) {
|
||||||
|
var imgList = [];
|
||||||
|
this.bannerList.forEach(function (item) {
|
||||||
|
var nurl = '';
|
||||||
|
var obj = {};
|
||||||
|
if (_this.isVedio) {
|
||||||
|
item.url == '' ? nurl = item.imgSrc : nurl = item.url;
|
||||||
|
obj = {
|
||||||
|
url: nurl,
|
||||||
|
type: item.isVideo ? 'video' : 'image',
|
||||||
|
poster: item.poster };
|
||||||
|
|
||||||
|
} else {
|
||||||
|
nurl = item.imgSrc;
|
||||||
|
obj = {
|
||||||
|
url: nurl,
|
||||||
|
type: 'image',
|
||||||
|
poster: item.poster };
|
||||||
|
|
||||||
|
}
|
||||||
|
imgList.push(obj);
|
||||||
|
});
|
||||||
|
// 预览图片和视频
|
||||||
|
uni.previewMedia({
|
||||||
|
current: this.bcurrent,
|
||||||
|
sources: imgList });
|
||||||
|
|
||||||
|
}
|
||||||
|
if (url) {
|
||||||
|
// 有链接,跳转链接
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/".concat(url) });
|
||||||
|
|
||||||
|
console.log("/".concat(url), '跳转链接');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 切换后获取当前索引
|
||||||
|
changeBanner: function changeBanner(e) {
|
||||||
|
this.bcurrent = e.detail.current; //当前的指示点下标
|
||||||
|
// console.log(this.bcurrent);
|
||||||
|
},
|
||||||
|
// 点击当前指示点
|
||||||
|
chooseDot: function chooseDot(index) {
|
||||||
|
this.bcurrent = index;
|
||||||
|
} } };exports.default = _default;
|
||||||
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 145:
|
||||||
|
/*!*********************************************************************************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/components/swipers/swiper-pu.vue?vue&type=style&index=0&id=4176028a&scoped=true&lang=css& ***!
|
||||||
|
\*********************************************************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_style_index_0_id_4176028a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=style&index=0&id=4176028a&scoped=true&lang=css& */ 146);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_style_index_0_id_4176028a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_style_index_0_id_4176028a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||||
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_style_index_0_id_4176028a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_style_index_0_id_4176028a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_swiper_pu_vue_vue_type_style_index_0_id_4176028a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 146:
|
||||||
|
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||||
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/components/swipers/swiper-pu.vue?vue&type=style&index=0&id=4176028a&scoped=true&lang=css& ***!
|
||||||
|
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// extracted by mini-css-extract-plugin
|
||||||
|
if(false) { var cssReload; }
|
||||||
|
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
}]);
|
||||||
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/swipers/swiper-pu.js.map
|
||||||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
|
'components/swipers/swiper-pu-create-component',
|
||||||
|
{
|
||||||
|
'components/swipers/swiper-pu-create-component':(function(module, exports, __webpack_require__){
|
||||||
|
__webpack_require__('1')['createComponent'](__webpack_require__(140))
|
||||||
|
})
|
||||||
|
},
|
||||||
|
[['components/swipers/swiper-pu-create-component']]
|
||||||
|
]);
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"usingComponents": {},
|
||||||
|
"component": true
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
<view class="banner-box data-v-4176028a"><swiper style="{{'height:'+(newHeight)+';'}}" current="{{bcurrent}}" autoplay="{{isplay}}" circular="{{true}}" interval="{{3000}}" duration="{{500}}" data-event-opts="{{[['change',[['changeBanner',['$event']]]]]}}" bindchange="__e" class="data-v-4176028a"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="data-v-4176028a"><view data-event-opts="{{[['tap',[['chooseImg',[index,'$0'],[[['bannerList','',index,'url']]]]]]]}}" class="img-box data-v-4176028a" bindtap="__e"><image class="img animated fadeIn data-v-4176028a" style="{{'border-radius:'+(newRadius)+';'+('height:'+(newHeight)+';')}}" src="{{item.imgSrc}}" mode="widthFix"></image></view></swiper-item></block></swiper><block wx:if="{{isDot}}"><view class="dot-box data-v-4176028a" style="{{'bottom:'+(newBottom)+';'}}"><block wx:for="{{bannerList.length}}" wx:for-item="itemd" wx:for-index="indexd" wx:key="indexd"><view data-event-opts="{{[['tap',[['chooseDot',[indexd]]]]]}}" class="item-dot data-v-4176028a" style="{{'background-color:'+(bcurrent==indexd?activec:defaultc)+';'}}" bindtap="__e"></view></block></view></block></view>
|
|
@ -0,0 +1,32 @@
|
||||||
|
|
||||||
|
.banner-box.data-v-4176028a {
|
||||||
|
width: calc(100% - 40rpx);
|
||||||
|
margin: 20rpx auto 0;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.img-box.data-v-4176028a {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.img.data-v-4176028a {
|
||||||
|
width: 100%;
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
.dot-box.data-v-4176028a {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 20rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.item-dot.data-v-4176028a {
|
||||||
|
width: 20rpx;
|
||||||
|
height: 20rpx;
|
||||||
|
border-radius: 100%;
|
||||||
|
margin: 0 6rpx;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,234 @@
|
||||||
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/feedback/feedback"],{
|
||||||
|
|
||||||
|
/***/ 148:
|
||||||
|
/*!**************************************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/main.js?{"page":"pages%2Ffeedback%2Ffeedback"} ***!
|
||||||
|
\**************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||||
|
|
||||||
|
|
||||||
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||||
|
var _feedback = _interopRequireDefault(__webpack_require__(/*! ./pages/feedback/feedback.vue */ 149));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||||
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_feedback.default);
|
||||||
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 149:
|
||||||
|
/*!*******************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/pages/feedback/feedback.vue ***!
|
||||||
|
\*******************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./feedback.vue?vue&type=template&id=91bba7b4&scoped=true& */ 150);
|
||||||
|
/* harmony import */ var _feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./feedback.vue?vue&type=script&lang=js& */ 152);
|
||||||
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||||
|
/* harmony import */ var _feedback_vue_vue_type_style_index_0_id_91bba7b4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./feedback.vue?vue&type=style&index=0&id=91bba7b4&scoped=true&lang=css& */ 154);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||||
|
|
||||||
|
var renderjs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* normalize component */
|
||||||
|
|
||||||
|
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||||
|
_feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||||
|
_feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||||
|
_feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||||
|
false,
|
||||||
|
null,
|
||||||
|
"91bba7b4",
|
||||||
|
null,
|
||||||
|
false,
|
||||||
|
_feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||||
|
renderjs
|
||||||
|
)
|
||||||
|
|
||||||
|
component.options.__file = "pages/feedback/feedback.vue"
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 150:
|
||||||
|
/*!**************************************************************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/pages/feedback/feedback.vue?vue&type=template&id=91bba7b4&scoped=true& ***!
|
||||||
|
\**************************************************************************************************/
|
||||||
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./feedback.vue?vue&type=template&id=91bba7b4&scoped=true& */ 151);
|
||||||
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||||
|
|
||||||
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||||
|
|
||||||
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||||
|
|
||||||
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_template_id_91bba7b4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 151:
|
||||||
|
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||||
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/feedback/feedback.vue?vue&type=template&id=91bba7b4&scoped=true& ***!
|
||||||
|
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||||
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||||
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||||
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||||
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||||
|
var components
|
||||||
|
try {
|
||||||
|
components = {
|
||||||
|
statusNav: function() {
|
||||||
|
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 97))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
if (
|
||||||
|
e.message.indexOf("Cannot find module") !== -1 &&
|
||||||
|
e.message.indexOf(".vue") !== -1
|
||||||
|
) {
|
||||||
|
console.error(e.message)
|
||||||
|
console.error("1. 排查组件名称拼写是否正确")
|
||||||
|
console.error(
|
||||||
|
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||||
|
)
|
||||||
|
console.error(
|
||||||
|
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var render = function() {
|
||||||
|
var _vm = this
|
||||||
|
var _h = _vm.$createElement
|
||||||
|
var _c = _vm._self._c || _h
|
||||||
|
}
|
||||||
|
var recyclableRender = false
|
||||||
|
var staticRenderFns = []
|
||||||
|
render._withStripped = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 152:
|
||||||
|
/*!********************************************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/pages/feedback/feedback.vue?vue&type=script&lang=js& ***!
|
||||||
|
\********************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./feedback.vue?vue&type=script&lang=js& */ 153);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||||
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 153:
|
||||||
|
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||||
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/feedback/feedback.vue?vue&type=script&lang=js& ***!
|
||||||
|
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
var _default =
|
||||||
|
{
|
||||||
|
data: function data() {
|
||||||
|
return {
|
||||||
|
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||||
|
feedbackMsg: '', // 反馈建议
|
||||||
|
flag: true //是否可提交
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad: function onLoad() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submitEv: function submitEv() {var _this = this;
|
||||||
|
if (this.flag) {
|
||||||
|
this.flag = false;
|
||||||
|
this.$requst.post('/api/v1/user/feedback', { content: this.feedbackMsg }).then(function (res) {
|
||||||
|
if (res.code == 0) {
|
||||||
|
_this.$toolAll.tools.showToast('提交成功');
|
||||||
|
// 返回
|
||||||
|
uni.navigateBack({ delta: 1 });
|
||||||
|
} else {
|
||||||
|
_this.$toolAll.tools.showToast(res.msg);
|
||||||
|
}
|
||||||
|
setTimeout(function () {
|
||||||
|
_this.flag = true;
|
||||||
|
}, 2000);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} } };exports.default = _default;
|
||||||
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 154:
|
||||||
|
/*!****************************************************************************************************************!*\
|
||||||
|
!*** D:/Lee/leave-unused/pages/feedback/feedback.vue?vue&type=style&index=0&id=91bba7b4&scoped=true&lang=css& ***!
|
||||||
|
\****************************************************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_style_index_0_id_91bba7b4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./feedback.vue?vue&type=style&index=0&id=91bba7b4&scoped=true&lang=css& */ 155);
|
||||||
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_style_index_0_id_91bba7b4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_style_index_0_id_91bba7b4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||||
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_style_index_0_id_91bba7b4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_style_index_0_id_91bba7b4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_feedback_vue_vue_type_style_index_0_id_91bba7b4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 155:
|
||||||
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||||
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/feedback/feedback.vue?vue&type=style&index=0&id=91bba7b4&scoped=true&lang=css& ***!
|
||||||
|
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||||
|
/*! no static exports found */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// extracted by mini-css-extract-plugin
|
||||||
|
if(false) { var cssReload; }
|
||||||
|
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
},[[148,"common/runtime","common/vendor"]]]);
|
||||||
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/feedback/feedback.js.map
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"navigationBarTitleText": "反馈建议",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"usingComponents": {
|
||||||
|
"status-nav": "/components/status-nav/status-nav"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
<view class="pad-x20 data-v-91bba7b4"><status-nav vue-id="2d23d9a0-1" ifReturn="{{true}}" navBarTitle="反馈建议" class="data-v-91bba7b4" bind:__l="__l"></status-nav><view class="tips font28 data-v-91bba7b4">提示:如果您有问题反馈或意见建议,都可以在下方表单提交哟!</view><view class="feedback background-white radius20 border-box data-v-91bba7b4"><view class="title font30 color-99 data-v-91bba7b4">反馈或建议:</view><textarea data-event-opts="{{[['input',[['__set_model',['','feedbackMsg','$event',[]]]]]]}}" class="font28 radius10 border-box data-v-91bba7b4" value="{{feedbackMsg}}" bindinput="__e"></textarea></view><view data-event-opts="{{[['tap',[['submitEv',['$event']]]]]}}" class="feedback-btn background-blue radius20 font30 color-ff data-v-91bba7b4" bindtap="__e">提交</view></view>
|
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
.tips.data-v-91bba7b4{
|
||||||
|
padding: 20rpx 20rpx 0;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
.feedback.data-v-91bba7b4{
|
||||||
|
width: calc(100% - 40rpx);
|
||||||
|
margin: 20rpx auto 50rpx;
|
||||||
|
padding: 15rpx 20rpx;
|
||||||
|
}
|
||||||
|
.feedback textarea.data-v-91bba7b4{
|
||||||
|
width: 100%;
|
||||||
|
border: 2rpx solid #f4f5f6;
|
||||||
|
margin-top: 5px;
|
||||||
|
padding: 8rpx 10px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
.feedback-btn.data-v-91bba7b4{
|
||||||
|
width: calc(100% - 40rpx);
|
||||||
|
line-height: 80rpx;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
|
@ -122,6 +122,8 @@ var render = function() {
|
||||||
var _vm = this
|
var _vm = this
|
||||||
var _h = _vm.$createElement
|
var _h = _vm.$createElement
|
||||||
var _c = _vm._self._c || _h
|
var _c = _vm._self._c || _h
|
||||||
|
var m0 = _vm.isLoading ? parseFloat(_vm.goodsDetail.original_price) : null
|
||||||
|
|
||||||
if (!_vm._isMounted) {
|
if (!_vm._isMounted) {
|
||||||
_vm.e0 = function($event) {
|
_vm.e0 = function($event) {
|
||||||
return this.$toolAll.tools.countCustomer(_vm.goodsDetail.phone)
|
return this.$toolAll.tools.countCustomer(_vm.goodsDetail.phone)
|
||||||
|
@ -131,6 +133,15 @@ var render = function() {
|
||||||
_vm.showPhone = true
|
_vm.showPhone = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_vm.$mp.data = Object.assign(
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
$root: {
|
||||||
|
m0: m0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
var recyclableRender = false
|
var recyclableRender = false
|
||||||
var staticRenderFns = []
|
var staticRenderFns = []
|
||||||
|
@ -211,7 +222,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
|
||||||
var _default =
|
var _default =
|
||||||
{
|
{
|
||||||
data: function data() {
|
data: function data() {
|
||||||
|
@ -222,7 +232,8 @@ var _default =
|
||||||
showPhone: false, //显示电话号码
|
showPhone: false, //显示电话号码
|
||||||
isLoading: false, //是否加载完成
|
isLoading: false, //是否加载完成
|
||||||
type: '', //是否自己发布
|
type: '', //是否自己发布
|
||||||
goods_id: 0 // 商品id
|
goods_id: 0, // 商品id
|
||||||
|
flag: true //能否上下架
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad: function onLoad(op) {
|
onLoad: function onLoad(op) {
|
||||||
|
@ -288,7 +299,7 @@ var _default =
|
||||||
// 编辑
|
// 编辑
|
||||||
editEv: function editEv(id) {
|
editEv: function editEv(id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/idle/release?id=".concat(id) });
|
url: "/pages/release/release?id=".concat(id) });
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<block wx:if="{{isLoading}}"><view class="{{['data-v-f0a9f5ba',type==''?'':'pad-x120']}}"><status-nav vue-id="6db62043-1" ifReturn="{{true}}" navBarTitle="商品详情" class="data-v-f0a9f5ba" bind:__l="__l"></status-nav><view class="notice-tips color-orange font26 border-box pad-all20 flex data-v-f0a9f5ba"><image src="/static/icon-notice.png" mode="widthFix" class="data-v-f0a9f5ba"></image>交易前请务必核实对方的身份及信息!</view><view class="goods-detail data-v-f0a9f5ba"><view class="goods-info background-white pad-zy20 border-box data-v-f0a9f5ba"><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品名称</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品分类</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.category_name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品原价</view><view class="msg color-8c data-v-f0a9f5ba" style="text-decoration:line-through;">{{"¥"+(goodsDetail.original_price!==''?goodsDetail.original_price:'未填写')}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品售价</view><view class="msg data-v-f0a9f5ba">{{"¥"+goodsDetail.price}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">联系方式</view><block wx:if="{{showPhone}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="msg data-v-f0a9f5ba" bindtap="__e">{{goodsDetail.phone}}</view></block><block wx:else><view class="msg data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="see-phone color-ff font24 background-blue radius20 flex data-v-f0a9f5ba" bindtap="__e">查看联系方式</view></view></block></view></view><view class="goods-content background-white pad-all20 mar-s20 font28 border-box data-v-f0a9f5ba"><view class="goods-describe color-8c data-v-f0a9f5ba">{{goodsDetail.msg}}</view><view class="goods-img data-v-f0a9f5ba"><block wx:for="{{goodsImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><image src="{{item}}" mode="widthFix" class="data-v-f0a9f5ba"></image></block></view></view></view><block wx:if="{{type=='release'}}"><view class="detail-btns background-white border-box flex data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['changeStateEv',['$0'],['goodsDetail.id']]]]]}}" class="{{['btn','font30','color-ff','radius35','flex','data-v-f0a9f5ba',goodsDetail.status==0?'background-orange':'background-8c']}}" bindtap="__e">{{''+(goodsDetail.status==0?'已上架':'已下架')+''}}</view><view data-event-opts="{{[['tap',[['editEv',['$0'],['goodsDetail.id']]]]]}}" class="btn background-blue font30 color-ff radius35 flex data-v-f0a9f5ba" bindtap="__e">编辑</view></view></block></view></block>
|
<block wx:if="{{isLoading}}"><view class="{{['data-v-f0a9f5ba',type==''?'':'pad-x120']}}"><status-nav vue-id="6db62043-1" ifReturn="{{true}}" navBarTitle="商品详情" class="data-v-f0a9f5ba" bind:__l="__l"></status-nav><view class="notice-tips color-orange font26 border-box pad-all20 flex data-v-f0a9f5ba"><image src="/static/icon-notice.png" mode="widthFix" class="data-v-f0a9f5ba"></image>交易前请务必核实对方的身份及信息!</view><view class="goods-detail data-v-f0a9f5ba"><view class="goods-info background-white pad-zy20 border-box data-v-f0a9f5ba"><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品名称</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品分类</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.category_name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品售价</view><view class="msg data-v-f0a9f5ba"><block wx:if="{{$root.m0>0}}"><text class="color-8c font24 data-v-f0a9f5ba" style="text-decoration:line-through;margin-right:6rpx;">{{"¥"+goodsDetail.original_price}}</text></block><text class="color-red data-v-f0a9f5ba">{{"¥"+goodsDetail.price}}</text></view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">联系方式</view><block wx:if="{{showPhone}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="msg data-v-f0a9f5ba" bindtap="__e">{{goodsDetail.phone}}</view></block><block wx:else><view class="msg data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="see-phone color-ff font24 background-blue radius20 flex data-v-f0a9f5ba" bindtap="__e">查看联系方式</view></view></block></view></view><view class="goods-content background-white pad-all20 mar-s20 font28 border-box data-v-f0a9f5ba"><view class="goods-describe color-8c data-v-f0a9f5ba">{{goodsDetail.msg}}</view><view class="goods-img data-v-f0a9f5ba"><block wx:for="{{goodsImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><image src="{{item}}" mode="widthFix" class="data-v-f0a9f5ba"></image></block></view></view></view><block wx:if="{{type=='release'}}"><view class="detail-btns background-white border-box flex data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['changeStateEv',['$0'],['goodsDetail.id']]]]]}}" class="{{['btn','font30','color-ff','radius35','flex','data-v-f0a9f5ba',goodsDetail.status==0?'background-orange':'background-8c']}}" bindtap="__e">{{''+(goodsDetail.status==0?'已上架':'已下架')+''}}</view><view data-event-opts="{{[['tap',[['editEv',['$0'],['goodsDetail.id']]]]]}}" class="btn background-blue font30 color-ff radius35 flex data-v-f0a9f5ba" bindtap="__e">编辑</view></view></block></view></block>
|
|
@ -169,6 +169,19 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -189,12 +202,19 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
size: 10, //条数
|
size: 10, //条数
|
||||||
total: 0, //总数
|
total: 0, //总数
|
||||||
isLoading: false, //是否加载完成
|
isLoading: false, //是否加载完成
|
||||||
flag: true //改变状态
|
flag: true, //改变状态
|
||||||
};
|
//分类导航
|
||||||
|
cateList: [], //分类列表
|
||||||
|
currentIndex: -1,
|
||||||
|
scrollLeft: 0,
|
||||||
|
tabsScrollLeft: 0 };
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
|
// 查询分类
|
||||||
|
this.getCateList();
|
||||||
// 查询商品列表
|
// 查询商品列表
|
||||||
this.getGoodsList();
|
this.getGoodsList(0);
|
||||||
},
|
},
|
||||||
onReachBottom: function onReachBottom(e) {
|
onReachBottom: function onReachBottom(e) {
|
||||||
if (this.goodsList.length < this.total) {
|
if (this.goodsList.length < this.total) {
|
||||||
|
@ -203,21 +223,98 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
this.getGoodsList();
|
this.getGoodsList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
onPullDownRefresh: function onPullDownRefresh() {
|
||||||
|
this.page = 1;
|
||||||
// 查询商品列表
|
// 查询商品列表
|
||||||
getGoodsList: function getGoodsList() {var _this = this;
|
this.getGoodsList();
|
||||||
|
// 关闭下拉刷新
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 查询分类
|
||||||
|
getCateList: function getCateList() {var _this = this;
|
||||||
|
if (this.page == 1) this.goodsList = [];
|
||||||
|
this.$requst.get('/api/v1/goods/category').then(function (res) {
|
||||||
|
if (res.code == 0) {
|
||||||
|
console.log(res, '物品分类列表');
|
||||||
|
var cateArr = [];
|
||||||
|
res.data.forEach(function (item) {
|
||||||
|
var obj = {
|
||||||
|
id: item.id,
|
||||||
|
name: item.title };
|
||||||
|
|
||||||
|
cateArr.push(obj);
|
||||||
|
});
|
||||||
|
_this.cateList = cateArr;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// 分类选择事件
|
||||||
|
changeCateEv: function changeCateEv(index) {
|
||||||
|
if (index !== this.currentIndex) {
|
||||||
|
this.currentIndex = index;
|
||||||
|
// 查询商品列表
|
||||||
|
this.page = 1;
|
||||||
|
this.goodsList = [];
|
||||||
|
this.getGoodsList(index == -1 ? 0 : this.cateList[index].id);
|
||||||
|
// 分类切换效果
|
||||||
|
if (index !== -1) {
|
||||||
|
this.setTabList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 分类切换效果
|
||||||
|
setTabList: function setTabList() {var _this2 = this;
|
||||||
|
this.$nextTick(function () {
|
||||||
|
if (_this2.cateList.length > 0) {
|
||||||
|
//计算左滑距离
|
||||||
|
_this2.setLeft();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
//计算左滑距离
|
||||||
|
setLeft: function setLeft() {var _this3 = this;
|
||||||
|
var lineLeft = 0;
|
||||||
|
this.getElementData('#tab_list', function (data) {
|
||||||
|
var list = data[0];
|
||||||
|
_this3.getElementData('#tab_item', function (res) {
|
||||||
|
var el = res[_this3.currentIndex];
|
||||||
|
lineLeft = el.width / 2 + -list.left + el.left - list.width / 2 - _this3.scrollLeft;
|
||||||
|
_this3.tabsScrollLeft = _this3.scrollLeft + lineLeft;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取DOM距离
|
||||||
|
getElementData: function getElementData(el, callback) {
|
||||||
|
uni.createSelectorQuery().in(this).selectAll(el).boundingClientRect().exec(function (data) {
|
||||||
|
callback(data[0]);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// 滚动
|
||||||
|
scroll: function scroll(e) {
|
||||||
|
this.scrollLeft = e.detail.scrollLeft;
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询商品列表
|
||||||
|
getGoodsList: function getGoodsList(id) {var _this4 = this;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中' });
|
title: '加载中' });
|
||||||
|
|
||||||
var params = {
|
var params = {
|
||||||
page: this.page,
|
page: this.page,
|
||||||
size: this.size };
|
size: this.size,
|
||||||
|
category_id: id };
|
||||||
|
|
||||||
if (this.page == 1) this.goodsList = [];
|
if (this.page == 1) this.goodsList = [];
|
||||||
this.$requst.get('/api/v1/user/goods', params).then(function (res) {
|
this.$requst.get('/api/v1/user/goods', params).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
console.log(res, '我的发布列表');
|
console.log(res, '我的发布列表');
|
||||||
_this.total = res.data.total;
|
_this4.total = res.data.total;
|
||||||
var goodsArr = [];
|
var goodsArr = [];
|
||||||
res.data.list.forEach(function (item) {
|
res.data.list.forEach(function (item) {
|
||||||
var obj = {
|
var obj = {
|
||||||
|
@ -230,31 +327,31 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
goodsArr.push(obj);
|
goodsArr.push(obj);
|
||||||
});
|
});
|
||||||
_this.goodsList = _this.goodsList.concat(goodsArr);
|
_this4.goodsList = _this4.goodsList.concat(goodsArr);
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
_this.isLoading = true;
|
_this4.isLoading = true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// 更改显示状态
|
// 更改显示状态
|
||||||
changeStateEv: function changeStateEv(id, index) {var _this2 = this;
|
changeStateEv: function changeStateEv(id, index) {var _this5 = this;
|
||||||
if (this.flag) {
|
if (this.flag) {
|
||||||
this.flag = false;
|
this.flag = false;
|
||||||
this.$requst.post('/api/v1/goods/set-status', { id: id, status: this.goodsList[index].status == 0 ? 1 : 0 }).then(function (res) {
|
this.$requst.post('/api/v1/goods/set-status', { id: id, status: this.goodsList[index].status == 0 ? 1 : 0 }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
console.log(res, '改变状态');
|
console.log(res, '改变状态');
|
||||||
if (_this2.goodsList[index].status == 0) {
|
if (_this5.goodsList[index].status == 0) {
|
||||||
_this2.goodsList[index].status = 1;
|
_this5.goodsList[index].status = 1;
|
||||||
_this2.$toolAll.tools.showToast('已下架');
|
_this5.$toolAll.tools.showToast('已下架');
|
||||||
} else {
|
} else {
|
||||||
_this2.goodsList[index].status = 0;
|
_this5.goodsList[index].status = 0;
|
||||||
_this2.$toolAll.tools.showToast('已上架');
|
_this5.$toolAll.tools.showToast('已上架');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
_this2.flag = true;
|
_this5.flag = true;
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"navigationBarTitleText": "我的发布",
|
"navigationBarTitleText": "我的发布",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"status-nav": "/components/status-nav/status-nav",
|
"status-nav": "/components/status-nav/status-nav",
|
||||||
"goods-list": "/components/goods-list/goods-list",
|
"goods-list": "/components/goods-list/goods-list",
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<block wx:if="{{isLoading}}"><view class="pad-x20 data-v-5566b618"><status-nav vue-id="576f0adc-1" ifReturn="{{true}}" navBarTitle="我的发布" class="data-v-5566b618" bind:__l="__l"></status-nav><goods-list vue-id="576f0adc-2" goodsList="{{goodsList}}" isOperate="{{true}}" data-event-opts="{{[['^changeStateEv',[['changeStateEv']]]]}}" bind:changeStateEv="__e" class="data-v-5566b618" bind:__l="__l"></goods-list><view class="no-more mar-s20 font24 color-99 data-v-5566b618">没有更多数据了</view><release-btn vue-id="576f0adc-3" class="data-v-5566b618" bind:__l="__l"></release-btn></view></block>
|
<block wx:if="{{isLoading}}"><view class="pad-x20 data-v-5566b618"><status-nav vue-id="576f0adc-1" ifReturn="{{true}}" navBarTitle="我的发布" class="data-v-5566b618" bind:__l="__l"></status-nav><view class="goods-cate data-v-5566b618"><scroll-view scroll-x="true" scroll-left="{{tabsScrollLeft}}" data-event-opts="{{[['scroll',[['scroll',['$event']]]]]}}" bindscroll="__e" class="data-v-5566b618"><view class="cate-list flex data-v-5566b618" id="tab_list"><view class="{{['cate-item','background-white','radius10','data-v-5566b618',currentIndex==-1?'background-blue color-ff':'']}}" id="tab_item" data-event-opts="{{[['tap',[['changeCateEv',[-1]]]]]}}" bindtap="__e"><view class="txt font24 data-v-5566b618">全部</view></view><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['cate-item','background-white','radius10','data-v-5566b618',index==currentIndex?'background-blue color-ff':'']}}" id="tab_item" data-event-opts="{{[['tap',[['changeCateEv',[index]]]]]}}" bindtap="__e"><view class="txt font24 data-v-5566b618">{{item.name}}</view></view></block></view></scroll-view></view><goods-list vue-id="576f0adc-2" goodsList="{{goodsList}}" isOperate="{{true}}" data-event-opts="{{[['^changeStateEv',[['changeStateEv']]]]}}" bind:changeStateEv="__e" class="data-v-5566b618" bind:__l="__l"></goods-list><view class="no-more mar-s20 font24 color-99 data-v-5566b618">没有更多数据了</view><release-btn vue-id="576f0adc-3" class="data-v-5566b618" bind:__l="__l"></release-btn></view></block>
|
|
@ -1,4 +1,238 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* 分类列表 */
|
||||||
|
.goods-cate.data-v-5566b618{
|
||||||
|
padding: 20rpx 20rpx 0;
|
||||||
|
margin: 0 auto;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item.data-v-5566b618{
|
||||||
|
margin: 0 6rpx;
|
||||||
|
padding: 5rpx 15rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item.data-v-5566b618:first-child{
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item.data-v-5566b618:last-child{
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item>.img.data-v-5566b618{
|
||||||
|
width: 100rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item>.img image.data-v-5566b618{
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
|
}
|
||||||
|
.cate-list .cate-item>.txt.data-v-5566b618{
|
||||||
|
line-height: 1.5;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
/* 没有更多 */
|
||||||
.no-more.data-v-5566b618{
|
.no-more.data-v-5566b618{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 2;
|
line-height: 2;
|
||||||
|
|
|
@ -164,7 +164,12 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var goodsList = function goodsList() {__webpack_require__.e(/*! require.ensure | components/goods-list/goods-list */ "components/goods-list/goods-list").then((function () {return resolve(__webpack_require__(/*! @/components/goods-list/goods-list.vue */ 104));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var releaseBtn = function releaseBtn() {Promise.all(/*! require.ensure | components/release-btn/release-btn */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/release-btn/release-btn")]).then((function () {return resolve(__webpack_require__(/*! @/components/release-btn/release-btn.vue */ 111));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 118));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var swiperPu = function swiperPu() {__webpack_require__.e(/*! require.ensure | components/swipers/swiper-pu */ "components/swipers/swiper-pu").then((function () {return resolve(__webpack_require__(/*! @/components/swipers/swiper-pu */ 140));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var goodsList = function goodsList() {__webpack_require__.e(/*! require.ensure | components/goods-list/goods-list */ "components/goods-list/goods-list").then((function () {return resolve(__webpack_require__(/*! @/components/goods-list/goods-list.vue */ 104));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var releaseBtn = function releaseBtn() {Promise.all(/*! require.ensure | components/release-btn/release-btn */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/release-btn/release-btn")]).then((function () {return resolve(__webpack_require__(/*! @/components/release-btn/release-btn.vue */ 111));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 118));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -184,6 +189,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
{
|
{
|
||||||
components: {
|
components: {
|
||||||
|
swiperPu: swiperPu,
|
||||||
goodsList: goodsList,
|
goodsList: goodsList,
|
||||||
releaseBtn: releaseBtn,
|
releaseBtn: releaseBtn,
|
||||||
tabbar: tabbar },
|
tabbar: tabbar },
|
||||||
|
@ -192,6 +198,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
return {
|
return {
|
||||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||||
pageTitle: '', //页面标题
|
pageTitle: '', //页面标题
|
||||||
|
bannerList: [], //轮播图
|
||||||
goodsList: [], //商品列表
|
goodsList: [], //商品列表
|
||||||
category_id: 0, //分类id
|
category_id: 0, //分类id
|
||||||
keyword: '', //关键词
|
keyword: '', //关键词
|
||||||
|
@ -213,6 +220,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
url: '/pages/estate/estate?estate=1' });
|
url: '/pages/estate/estate?estate=1' });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// 获取banner列表
|
||||||
|
this.getBannerList();
|
||||||
},
|
},
|
||||||
onShareAppMessage: function onShareAppMessage(res) {
|
onShareAppMessage: function onShareAppMessage(res) {
|
||||||
var shareObj = {
|
var shareObj = {
|
||||||
|
@ -239,9 +248,39 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
this.getGoodsList();
|
this.getGoodsList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
onHide: function onHide() {
|
||||||
|
clearTimeout(this.playTimer);
|
||||||
|
this.isplay = false;
|
||||||
|
},
|
||||||
|
onPullDownRefresh: function onPullDownRefresh() {
|
||||||
|
this.page = 1;
|
||||||
// 查询商品列表
|
// 查询商品列表
|
||||||
getGoodsList: function getGoodsList() {var _this = this;
|
this.getGoodsList();
|
||||||
|
// 关闭下拉刷新
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 获取轮播图事件
|
||||||
|
getBannerList: function getBannerList() {var _this = this;
|
||||||
|
this.$requst.get('/api/v1/common/slides', { position: 'home-banner' }).then(function (res) {
|
||||||
|
if (res.code == 0) {
|
||||||
|
console.log(res, '轮播图列表');
|
||||||
|
res.data.forEach(function (item) {
|
||||||
|
var isVideo = false;
|
||||||
|
if (item.type != 'img') isVideo = true;
|
||||||
|
var banObj = {
|
||||||
|
imgSrc: item.src,
|
||||||
|
url: item.url,
|
||||||
|
isVideo: isVideo,
|
||||||
|
poster: item.src };
|
||||||
|
|
||||||
|
_this.bannerList.push(banObj);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 查询商品列表
|
||||||
|
getGoodsList: function getGoodsList() {var _this2 = this;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中' });
|
title: '加载中' });
|
||||||
|
|
||||||
|
@ -254,7 +293,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
this.$requst.get('/api/v1/goods/list', params).then(function (res) {
|
this.$requst.get('/api/v1/goods/list', params).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
console.log(res, '闲置商品列表');
|
console.log(res, '闲置商品列表');
|
||||||
_this.total = res.data.total;
|
_this2.total = res.data.total;
|
||||||
var goodsArr = [];
|
var goodsArr = [];
|
||||||
res.data.list.forEach(function (item) {
|
res.data.list.forEach(function (item) {
|
||||||
var obj = {
|
var obj = {
|
||||||
|
@ -266,10 +305,10 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
goodsArr.push(obj);
|
goodsArr.push(obj);
|
||||||
});
|
});
|
||||||
_this.goodsList = _this.goodsList.concat(goodsArr);
|
_this2.goodsList = _this2.goodsList.concat(goodsArr);
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
_this.isLoading = true;
|
_this2.isLoading = true;
|
||||||
});
|
});
|
||||||
} } };exports.default = _default;
|
} } };exports.default = _default;
|
||||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
{
|
{
|
||||||
"navigationBarTitleText": "闲置",
|
"navigationBarTitleText": "闲置",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"status-nav": "/components/status-nav/status-nav",
|
"status-nav": "/components/status-nav/status-nav",
|
||||||
"goods-list": "/components/goods-list/goods-list",
|
"goods-list": "/components/goods-list/goods-list",
|
||||||
"release-btn": "/components/release-btn/release-btn",
|
"release-btn": "/components/release-btn/release-btn",
|
||||||
"tabbar": "/components/tabbar/tabbar"
|
"tabbar": "/components/tabbar/tabbar",
|
||||||
|
"swiper-pu": "/components/swipers/swiper-pu"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<block wx:if="{{isLoading}}"><view class="pad-x120 data-v-48338cf4"><status-nav vue-id="be3d0f80-1" ifReturn="{{false}}" navBarTitle="{{pageTitle}}" estate="{{1}}" ifCenter="{{false}}" class="data-v-48338cf4" bind:__l="__l"></status-nav><goods-list vue-id="be3d0f80-2" goodsList="{{goodsList}}" class="data-v-48338cf4" bind:__l="__l"></goods-list><block wx:if="{{goodsList.length==total}}"><view class="no-more mar-s20 font24 color-99 data-v-48338cf4">没有更多数据了</view></block><release-btn vue-id="be3d0f80-3" class="data-v-48338cf4" bind:__l="__l"></release-btn><tabbar vue-id="be3d0f80-4" class="data-v-48338cf4" bind:__l="__l"></tabbar></view></block>
|
<block wx:if="{{isLoading}}"><view class="pad-x120 data-v-48338cf4"><status-nav vue-id="be3d0f80-1" ifReturn="{{false}}" navBarTitle="{{pageTitle}}" estate="{{1}}" ifCenter="{{false}}" class="data-v-48338cf4" bind:__l="__l"></status-nav><view class="index-top data-v-48338cf4"><swiper-pu vue-id="be3d0f80-2" newRadius="0" bannerList="{{bannerList}}" newHeight="320rpx" isplay="{{isplay}}" class="data-v-48338cf4" bind:__l="__l"></swiper-pu></view><goods-list vue-id="be3d0f80-3" goodsList="{{goodsList}}" class="data-v-48338cf4" bind:__l="__l"></goods-list><block wx:if="{{goodsList.length==total}}"><view class="no-more mar-s20 font24 color-99 data-v-48338cf4">没有更多数据了</view></block><release-btn vue-id="be3d0f80-4" class="data-v-48338cf4" bind:__l="__l"></release-btn><tabbar vue-id="be3d0f80-5" class="data-v-48338cf4" bind:__l="__l"></tabbar></view></block>
|
|
@ -210,7 +210,8 @@ var _default = {
|
||||||
mobile: '', //电话号
|
mobile: '', //电话号
|
||||||
listData: [
|
listData: [
|
||||||
{ titele: '个人资料', imgSrc: '/static/icon-my-01.png', iconWidth: 36, iconHeight: 36 },
|
{ titele: '个人资料', imgSrc: '/static/icon-my-01.png', iconWidth: 36, iconHeight: 36 },
|
||||||
{ titele: '我的发布', imgSrc: '/static/icon-my-02.png', iconWidth: 36, iconHeight: 36 }],
|
{ titele: '我的发布', imgSrc: '/static/icon-my-02.png', iconWidth: 36, iconHeight: 36 },
|
||||||
|
{ titele: '反馈建议', imgSrc: '/static/icon-my-03.png', iconWidth: 36, iconHeight: 36 }],
|
||||||
//列表数据
|
//列表数据
|
||||||
isLoading: false //是否加载完成
|
isLoading: false //是否加载完成
|
||||||
};
|
};
|
||||||
|
@ -253,6 +254,12 @@ var _default = {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/goods/goods" });
|
url: "/pages/goods/goods" });
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 2:{
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/feedback/feedback" });
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,20 @@
|
||||||
"query": "",
|
"query": "",
|
||||||
"launchMode": "default",
|
"launchMode": "default",
|
||||||
"scene": null
|
"scene": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"pathName": "pages/goods/goods",
|
||||||
|
"query": "",
|
||||||
|
"launchMode": "default",
|
||||||
|
"scene": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"pathName": "pages/feedback/feedback",
|
||||||
|
"query": "",
|
||||||
|
"launchMode": "default",
|
||||||
|
"scene": null
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in New Issue