搜索列表及商品列表筛选条件优化,及商品详情页处理服务报错原因和顶部颜色;
This commit is contained in:
@@ -342,7 +342,7 @@
|
||||
"navigationBarTitleText": "权证详情",
|
||||
"navigationBarTextStyle":"white",
|
||||
"titleNView": {
|
||||
"backgroundImage": "linear-gradient(to right, #7c52fc, #976dff)",
|
||||
"backgroundColor": "#7c52fc",
|
||||
"type": "transparent",
|
||||
"buttons": [{
|
||||
"text": "分享",
|
||||
|
||||
@@ -13,17 +13,14 @@
|
||||
<view class="tabs-item" @click="onTabs">
|
||||
<span :class="marketType === ''?'':'activess'">{{searchType == 0 ? '价格' : '信用值'}}</span>
|
||||
<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 class="tabs-item" @click="onPv">
|
||||
<span :class="pvType === ''?'':'activess'">贡献值</span>
|
||||
<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 class="tabs-item" v-if="searchType == 0" @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}}
|
||||
<view class="tabs-item" @click="pageUrl">全部分类
|
||||
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -49,8 +46,8 @@
|
||||
return {
|
||||
nameVal: '',
|
||||
searchArr: [],
|
||||
marketType: 'asc', // 排序
|
||||
pvType:'asc',
|
||||
marketType: '', // 排序
|
||||
pvType:'',
|
||||
categoryArr: [], // 分类数组--企业
|
||||
companyId: '', // 分类数组--企业id
|
||||
companyName: '选择行业',
|
||||
@@ -114,12 +111,12 @@
|
||||
// 列表数据
|
||||
getList() {
|
||||
searchUrl('mall/goods', {
|
||||
page: this.goodsPage,
|
||||
order_by: this.marketType,
|
||||
pv:this.pvType,
|
||||
page: this.goodsPage,
|
||||
industry_id: this.companyId,
|
||||
name: this.nameVal,
|
||||
is_self:this.goodsType[this.goodsTypeIndex].id,
|
||||
pv:this.pvType
|
||||
}).then(res => {
|
||||
if (this.goodsPage === 1) {
|
||||
this.searchArr = []
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<label class="title">服务</label>
|
||||
<view class="goods-serve" @click="serveOpne">
|
||||
<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>
|
||||
</view>
|
||||
@@ -215,16 +215,16 @@
|
||||
this.coupons = res.coupons
|
||||
})
|
||||
},
|
||||
onBackPress({
|
||||
from
|
||||
}) {
|
||||
if (from == 'backbutton') {
|
||||
this.$nextTick(function() {
|
||||
uniShare.hide()
|
||||
})
|
||||
return uniShare.isShow;
|
||||
}
|
||||
},
|
||||
// onBackPress({
|
||||
// from
|
||||
// }) {
|
||||
// if (from == 'backbutton' && uniShare.isShow ) {
|
||||
// this.$nextTick(function() {
|
||||
// uniShare.hide()
|
||||
// })
|
||||
// return uniShare.isShow;
|
||||
// }
|
||||
// },
|
||||
methods: {
|
||||
// 提交购买单
|
||||
buyGoods() {
|
||||
@@ -783,7 +783,7 @@
|
||||
|
||||
.coupons-left {
|
||||
background-color: #fdedee;
|
||||
color: #e1293f;
|
||||
color: #aa55ff;
|
||||
width: 190rpx;
|
||||
text-align: center;
|
||||
padding: $padding - 10 0;
|
||||
@@ -836,7 +836,7 @@
|
||||
top: 36rpx;
|
||||
width: 110rpx;
|
||||
text-align: center;
|
||||
background-color: #e1293f;
|
||||
background-color: #aa55ff;
|
||||
color: #FFFFFF;
|
||||
border-radius: 80rpx;
|
||||
font-size: 24rpx;
|
||||
@@ -851,7 +851,7 @@
|
||||
}
|
||||
|
||||
.coupons-true {
|
||||
background-image: linear-gradient(to right, #e1293f, #fd275d);
|
||||
background-image: linear-gradient(to right, #aa55ff, #aa55ff);
|
||||
color: #FFFFFF;
|
||||
border-radius: 80rpx;
|
||||
line-height: 84rpx;
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
{{goodsType[goodsTypeIndex].name}}
|
||||
<image class="tabs-item-arrow" src="@/static/icons/search_row.png" mode="" />
|
||||
</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 == 0}" @click="onTabs" data-index="0">最新</view> -->
|
||||
<view class="tabs-item" :class="{'show': tabIndex == 1 && marketType !== ''}" @click="onTabs" data-index="1">
|
||||
价格
|
||||
<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 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"
|
||||
: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="lists">
|
||||
@@ -37,14 +37,14 @@
|
||||
data() {
|
||||
return {
|
||||
tabIndex: 0,
|
||||
marketType: 'asc',
|
||||
marketType: '',
|
||||
goods: [],
|
||||
page: 1,
|
||||
has_more: true,
|
||||
isBaoDan: false, // 是否是报单,默认有id不是报单,无id是报单
|
||||
goodsType: [],
|
||||
goodsTypeIndex: 0,
|
||||
pvType:'asc'
|
||||
pvType:''
|
||||
};
|
||||
},
|
||||
onReachBottom() {
|
||||
@@ -94,9 +94,19 @@
|
||||
},
|
||||
onTabs(e) {
|
||||
let index = e.target.dataset.index
|
||||
if (index == 0 && index == this.tabIndex) return
|
||||
if (index == 1 && index == this.tabIndex) this.marketType = this.marketType == 'asc' ? 'desc' : 'asc'
|
||||
if (index == 2 && index == this.tabIndex) this.pvType = this.pvType == 'asc' ? 'desc' : 'asc'
|
||||
if (index == 0 ) {
|
||||
this.marketType = ''
|
||||
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.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()
|
||||
},
|
||||
fail: function(err) {
|
||||
console.log("fail:" + JSON.stringify(err));
|
||||
// console.log("fail:" + JSON.stringify(err))
|
||||
uni.showModal({
|
||||
content: JSON.stringify(err),
|
||||
content: '分享失败了,检查下环境呗',
|
||||
showCancel: false,
|
||||
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