交易市场支付

This commit is contained in:
唐明明
2021-11-04 11:31:50 +08:00
7 changed files with 236 additions and 210 deletions

View File

@@ -32,14 +32,14 @@
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"app-plus":{ "app-plus":{
"titleNView": { "titleNView": {
"backgroundColor": "#7c52fc", "backgroundColor": "#8b64fd",
"buttons": [{ "buttons": [{
"text": "\ue603", "text": "搜索",
"fontSrc":"/static/iconfont.ttf", "fontSize": "14",
"background": "rgba(0,0,0,0)", "color": "#fff"
"fontSize":"20"
}] }]
} }
} }
} }
}, { }, {
@@ -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": "分享",

View File

@@ -11,19 +11,16 @@
<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" @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 = []

View File

@@ -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>
@@ -765,7 +765,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;
@@ -818,7 +818,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;
@@ -833,7 +833,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;

View File

@@ -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() {
@@ -86,7 +86,9 @@
this.has_more = true this.has_more = true
this.page = 1 this.page = 1
this.goods = [] this.goods = []
this.tabIndex = '' // this.tabIndex = ''
// this.pvType = ''
// this.marketType = ''
this.getList() this.getList()
} }
} }
@@ -94,9 +96,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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -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: "知道了"
}); });

File diff suppressed because one or more lines are too long