搜索列表及商品列表筛选条件优化,及商品详情页处理服务报错原因和顶部颜色;
This commit is contained in:
@@ -342,7 +342,7 @@
|
|||||||
"navigationBarTitleText": "权证详情",
|
"navigationBarTitleText": "权证详情",
|
||||||
"navigationBarTextStyle":"white",
|
"navigationBarTextStyle":"white",
|
||||||
"titleNView": {
|
"titleNView": {
|
||||||
"backgroundImage": "linear-gradient(to right, #7c52fc, #976dff)",
|
"backgroundColor": "#7c52fc",
|
||||||
"type": "transparent",
|
"type": "transparent",
|
||||||
"buttons": [{
|
"buttons": [{
|
||||||
"text": "分享",
|
"text": "分享",
|
||||||
|
|||||||
@@ -13,17 +13,14 @@
|
|||||||
<view class="tabs-item" @click="onTabs">
|
<view class="tabs-item" @click="onTabs">
|
||||||
<span :class="marketType === ''?'':'activess'">{{searchType == 0 ? '价格' : '信用值'}}</span>
|
<span :class="marketType === ''?'':'activess'">{{searchType == 0 ? '价格' : '信用值'}}</span>
|
||||||
<image class="icon" mode="widthFix"
|
<image class="icon" mode="widthFix"
|
||||||
:src="require(marketType == 'asc' ? '@/static/icons/market_icon_low.png': '@/static/icons/market_icon_high.png')" />
|
:src="require(marketType == 'asc' ? '@/static/icons/market_icon_low.png':marketType == '' ? '@/static/icons/market_icon_null.png': '@/static/icons/market_icon_high.png')" />
|
||||||
</view>
|
</view>
|
||||||
<view class="tabs-item" @click="onPv">
|
<view class="tabs-item" @click="onPv">
|
||||||
<span :class="pvType === ''?'':'activess'">贡献值</span>
|
<span :class="pvType === ''?'':'activess'">贡献值</span>
|
||||||
<image class="icon" mode="widthFix"
|
<image class="icon" mode="widthFix"
|
||||||
:src="require(pvType == 'asc' ? '@/static/icons/market_icon_low.png': '@/static/icons/market_icon_high.png')" />
|
:src="require(pvType == 'asc' ? '@/static/icons/market_icon_low.png': pvType == '' ? '@/static/icons/market_icon_null.png': '@/static/icons/market_icon_high.png')" />
|
||||||
</view>
|
</view>
|
||||||
<view class="tabs-item" v-if="searchType == 0" @click="pageUrl">全部分类
|
<view class="tabs-item" @click="pageUrl">全部分类
|
||||||
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
|
||||||
</view>
|
|
||||||
<view class="tabs-item" v-if="searchType == 1" @click="companyOpne">{{companyName}}
|
|
||||||
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -49,8 +46,8 @@
|
|||||||
return {
|
return {
|
||||||
nameVal: '',
|
nameVal: '',
|
||||||
searchArr: [],
|
searchArr: [],
|
||||||
marketType: 'asc', // 排序
|
marketType: '', // 排序
|
||||||
pvType:'asc',
|
pvType:'',
|
||||||
categoryArr: [], // 分类数组--企业
|
categoryArr: [], // 分类数组--企业
|
||||||
companyId: '', // 分类数组--企业id
|
companyId: '', // 分类数组--企业id
|
||||||
companyName: '选择行业',
|
companyName: '选择行业',
|
||||||
@@ -114,12 +111,12 @@
|
|||||||
// 列表数据
|
// 列表数据
|
||||||
getList() {
|
getList() {
|
||||||
searchUrl('mall/goods', {
|
searchUrl('mall/goods', {
|
||||||
page: this.goodsPage,
|
|
||||||
order_by: this.marketType,
|
order_by: this.marketType,
|
||||||
|
pv:this.pvType,
|
||||||
|
page: this.goodsPage,
|
||||||
industry_id: this.companyId,
|
industry_id: this.companyId,
|
||||||
name: this.nameVal,
|
name: this.nameVal,
|
||||||
is_self:this.goodsType[this.goodsTypeIndex].id,
|
is_self:this.goodsType[this.goodsTypeIndex].id,
|
||||||
pv:this.pvType
|
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (this.goodsPage === 1) {
|
if (this.goodsPage === 1) {
|
||||||
this.searchArr = []
|
this.searchArr = []
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
<label class="title">服务</label>
|
<label class="title">服务</label>
|
||||||
<view class="goods-serve" @click="serveOpne">
|
<view class="goods-serve" @click="serveOpne">
|
||||||
<image class="goods-serve-img" src="../../static/icons/goods_buy.png" mode="aspectFill"></image>
|
<image class="goods-serve-img" src="../../static/icons/goods_buy.png" mode="aspectFill"></image>
|
||||||
<view class="nowrap goods-serve-name"><textv-for="(item, index) in goodsObj.services">{{item.name}}</text></view>
|
<view class="nowrap goods-serve-name"><text v-for="(item, index) in goodsObj.services" :key='item.service_id'>{{item.name}}</text></view>
|
||||||
<image class="goods-serve-img" src="../../static/icons/goods_spot.png" mode="aspectFill">
|
<image class="goods-serve-img" src="../../static/icons/goods_spot.png" mode="aspectFill">
|
||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
@@ -215,16 +215,16 @@
|
|||||||
this.coupons = res.coupons
|
this.coupons = res.coupons
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onBackPress({
|
// onBackPress({
|
||||||
from
|
// from
|
||||||
}) {
|
// }) {
|
||||||
if (from == 'backbutton') {
|
// if (from == 'backbutton' && uniShare.isShow ) {
|
||||||
this.$nextTick(function() {
|
// this.$nextTick(function() {
|
||||||
uniShare.hide()
|
// uniShare.hide()
|
||||||
})
|
// })
|
||||||
return uniShare.isShow;
|
// return uniShare.isShow;
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
// 提交购买单
|
// 提交购买单
|
||||||
buyGoods() {
|
buyGoods() {
|
||||||
@@ -783,7 +783,7 @@
|
|||||||
|
|
||||||
.coupons-left {
|
.coupons-left {
|
||||||
background-color: #fdedee;
|
background-color: #fdedee;
|
||||||
color: #e1293f;
|
color: #aa55ff;
|
||||||
width: 190rpx;
|
width: 190rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: $padding - 10 0;
|
padding: $padding - 10 0;
|
||||||
@@ -836,7 +836,7 @@
|
|||||||
top: 36rpx;
|
top: 36rpx;
|
||||||
width: 110rpx;
|
width: 110rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #e1293f;
|
background-color: #aa55ff;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
border-radius: 80rpx;
|
border-radius: 80rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
@@ -851,7 +851,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.coupons-true {
|
.coupons-true {
|
||||||
background-image: linear-gradient(to right, #e1293f, #fd275d);
|
background-image: linear-gradient(to right, #aa55ff, #aa55ff);
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
border-radius: 80rpx;
|
border-radius: 80rpx;
|
||||||
line-height: 84rpx;
|
line-height: 84rpx;
|
||||||
|
|||||||
@@ -6,16 +6,16 @@
|
|||||||
{{goodsType[goodsTypeIndex].name}}
|
{{goodsType[goodsTypeIndex].name}}
|
||||||
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
||||||
</view>
|
</view>
|
||||||
<view class="tabs-item" :class="{'show': tabIndex == 0}" @click="onTabs" data-index="0">最新</view>
|
<!-- <view class="tabs-item" :class="{'show': tabIndex == 0}" @click="onTabs" data-index="0">最新</view> -->
|
||||||
<view class="tabs-item" :class="{'show': tabIndex == 1}" @click="onTabs" data-index="1">
|
<view class="tabs-item" :class="{'show': tabIndex == 1 && marketType !== ''}" @click="onTabs" data-index="1">
|
||||||
价格
|
价格
|
||||||
<image class="icon" mode="widthFix"
|
<image class="icon" mode="widthFix"
|
||||||
:src="require(marketType == 'asc' ? '@/static/icons/market_icon_low.png': '@/static/icons/market_icon_high.png')" />
|
:src="require(marketType == 'asc' ? '@/static/icons/market_icon_low.png': marketType === ''? '@/static/icons/market_icon_null.png':'@/static/icons/market_icon_high.png')" />
|
||||||
</view>
|
</view>
|
||||||
<view class="tabs-item" :class="{'show': tabIndex == 2}" @click="onTabs" data-index="2">
|
<view class="tabs-item" :class="{'show': tabIndex == 2 && pvType !== ''}" @click="onTabs" data-index="2">
|
||||||
贡献值
|
贡献值
|
||||||
<image class="icon" mode="widthFix"
|
<image class="icon" mode="widthFix"
|
||||||
:src="require(pvType == 'asc' ? '@/static/icons/market_icon_low.png': '@/static/icons/market_icon_high.png')" />
|
:src="require(pvType == 'asc' ? '@/static/icons/market_icon_low.png': pvType === ''? '@/static/icons/market_icon_null.png':'@/static/icons/market_icon_high.png')" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="lists">
|
<view class="lists">
|
||||||
@@ -37,14 +37,14 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tabIndex: 0,
|
tabIndex: 0,
|
||||||
marketType: 'asc',
|
marketType: '',
|
||||||
goods: [],
|
goods: [],
|
||||||
page: 1,
|
page: 1,
|
||||||
has_more: true,
|
has_more: true,
|
||||||
isBaoDan: false, // 是否是报单,默认有id不是报单,无id是报单
|
isBaoDan: false, // 是否是报单,默认有id不是报单,无id是报单
|
||||||
goodsType: [],
|
goodsType: [],
|
||||||
goodsTypeIndex: 0,
|
goodsTypeIndex: 0,
|
||||||
pvType:'asc'
|
pvType:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
@@ -94,9 +94,19 @@
|
|||||||
},
|
},
|
||||||
onTabs(e) {
|
onTabs(e) {
|
||||||
let index = e.target.dataset.index
|
let index = e.target.dataset.index
|
||||||
if (index == 0 && index == this.tabIndex) return
|
if (index == 0 ) {
|
||||||
if (index == 1 && index == this.tabIndex) this.marketType = this.marketType == 'asc' ? 'desc' : 'asc'
|
this.marketType = ''
|
||||||
if (index == 2 && index == this.tabIndex) this.pvType = this.pvType == 'asc' ? 'desc' : 'asc'
|
this.pvType = ''
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (index == 1 ) {
|
||||||
|
this.marketType = this.marketType == 'asc' ? 'desc' : 'asc'
|
||||||
|
this.pvType = ''
|
||||||
|
}
|
||||||
|
if (index == 2 ) {
|
||||||
|
this.pvType = this.pvType === 'asc'? 'desc' : 'asc'
|
||||||
|
this.marketType = ''
|
||||||
|
}
|
||||||
|
|
||||||
this.tabIndex = index
|
this.tabIndex = index
|
||||||
this.has_more = true
|
this.has_more = true
|
||||||
|
|||||||
BIN
static/icons/market_icon_null.png
Normal file
BIN
static/icons/market_icon_null.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
@@ -31,9 +31,9 @@ class UniShare extends UniImageMenu{
|
|||||||
super.hide()
|
super.hide()
|
||||||
},
|
},
|
||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
console.log("fail:" + JSON.stringify(err));
|
// console.log("fail:" + JSON.stringify(err))
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: JSON.stringify(err),
|
content: '分享失败了,检查下环境呗',
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
confirmText: "知道了"
|
confirmText: "知道了"
|
||||||
});
|
});
|
||||||
|
|||||||
8312
unpackage/dist/dev/app-plus/app-service.js
vendored
8312
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user