Commit bb048abd by chenwq

删除搜索框组件并重构搜索功能,优化页面布局和样式

1 parent 3fd46045
import api from '../request/http' import api from '../request/http'
module.exports = { module.exports = {
/**获取商城首页商品数据 */ /**获取发拍单列表 */
getGoodsStockroomList(data) { getAuctionList(data) {
return api.post({ return api.post({
method: 'scrm.api.shopmall.app.platform.goods.stockroom.page', method: '/rest/audit/page',
...data ...data
}) })
}, },
......
// components/SearchBox/SearchBox.js // components/SearchBox/SearchBox.js
Component({ Component({
/**
* 组件的属性列表
*/
properties: { properties: {
placeholder: { placeholder: {
type: String, type: String,
value: '请输入搜索内容' value: '请输入搜索内容'
}, },
value: { value: {
type: null, type: String,
value: '' value: ''
}, },
searchType: { searchType: {
type: Number, type: Number,
value: 1 value: 1
},
inputAlign: {
type: String,
value: 'left' // 输入位置可配置: left, center, right
} }
}, },
data: {},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: { methods: {
input(e) { input(e) {
let { let { value } = e.detail;
value this.setData({ value });
} = e.detail
this.setData({
value
})
}, },
blur(e){ blur(e){
let {value} = this.data let { value } = this.data;
this.setData({ this.setData({ value });
value
})
}, },
clear() { clear() {
this.setData({ this.setData({ value: '' }, () => {
value: '' this.triggerEvent('search', '');
}, () => { });
this.triggerEvent('search', '')
})
}, },
confirm(e) { confirm(e) {
let { let { value } = e?.detail || {};
value this.triggerEvent('search', value);
} = e?.detail
this.triggerEvent('search', value)
}, },
search(e) { search(e) {
let { let { value } = e.currentTarget.dataset;
value this.triggerEvent('search', value);
} = e.currentTarget.dataset
this.triggerEvent('search', value)
} }
} }
})
\ No newline at end of file \ No newline at end of file
});
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<icon type="search" size="20"></icon> <icon type="search" size="20"></icon>
</view> </view>
<input type="text" bindinput="input" bindblur="blur" value="{{value}}" placeholder-class="input-placeholder" <input type="text" bindinput="input" bindblur="blur" value="{{value}}" placeholder-class="input-placeholder"
placeholder="{{placeholder}}" confirm-type="search" class="input" bindconfirm="confirm" /> placeholder="{{placeholder}}" confirm-type="search" class="input" bindconfirm="confirm" style="text-align: {{inputAlign}}" />
<block wx:if="{{value}}"> <block wx:if="{{value}}">
<view class="clear-box" bindtap="clear"> <view class="clear-box" bindtap="clear">
<icon type="clear" size="20" class="icon"></icon> <icon type="clear" size="20" class="icon"></icon>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.search-box { .search-box {
height: 72rpx; height: 72rpx;
box-sizing: border-box; box-sizing: border-box;
background-color: #F9F7F7; background-color: transparent;
padding: 0 24rpx; padding: 0 24rpx;
} }
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
.type-1 { .type-1 {
padding: 0 6rpx; padding: 0 6rpx;
border-radius: 36px; border-radius: 36rpx;
background: #FFFFFF; background: #FFFFFF;
} }
...@@ -42,14 +42,14 @@ ...@@ -42,14 +42,14 @@
width: calc(100% - 130rpx); width: calc(100% - 130rpx);
font-size: 28rpx; font-size: 28rpx;
} }
.input-box .clear-box{ .input-box .clear-box {
width: 58rpx; width: 58rpx;
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.input-box .clear-box .icon{ .input-box .clear-box .icon {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
opacity: .7; opacity: .7;
......
...@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport ...@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; }; var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } }; var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; }; var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
__DEFINE__(1776758170754, function(require, module, exports) { __DEFINE__(1776908340016, function(require, module, exports) {
/* /*
* @Descripttion: api封装类 * @Descripttion: api封装类
* @version: 1.0.0 * @version: 1.0.0
...@@ -225,8 +225,8 @@ class GlMapApi { ...@@ -225,8 +225,8 @@ class GlMapApi {
} }
if (!exports.__esModule) Object.defineProperty(exports, "__esModule", { value: true });exports.default = GlMapApi; if (!exports.__esModule) Object.defineProperty(exports, "__esModule", { value: true });exports.default = GlMapApi;
}, function(modId) {var map = {"./request":1776758170755}; return __REQUIRE__(map[modId], modId); }) }, function(modId) {var map = {"./request":1776908340017}; return __REQUIRE__(map[modId], modId); })
__DEFINE__(1776758170755, function(require, module, exports) { __DEFINE__(1776908340017, function(require, module, exports) {
/* /*
* @Descripttion: 定义一个Request类,用于封装请求高德地图API的方法 * @Descripttion: 定义一个Request类,用于封装请求高德地图API的方法
* @version: 1.0.0 * @version: 1.0.0
...@@ -340,8 +340,8 @@ class Request { ...@@ -340,8 +340,8 @@ class Request {
} }
if (!exports.__esModule) Object.defineProperty(exports, "__esModule", { value: true });exports.default = Request; if (!exports.__esModule) Object.defineProperty(exports, "__esModule", { value: true });exports.default = Request;
}, function(modId) { var map = {"./lib/md5":1776758170756,"./lib/qs":1776758170757,"./constants":1776758170758,"./helper":1776758170759}; return __REQUIRE__(map[modId], modId); }) }, function(modId) { var map = {"./lib/md5":1776908340018,"./lib/qs":1776908340019,"./constants":1776908340020,"./helper":1776908340021}; return __REQUIRE__(map[modId], modId); })
__DEFINE__(1776758170756, function(require, module, exports) { __DEFINE__(1776908340018, function(require, module, exports) {
(function () { (function () {
...@@ -1017,7 +1017,7 @@ __DEFINE__(1776758170756, function(require, module, exports) { ...@@ -1017,7 +1017,7 @@ __DEFINE__(1776758170756, function(require, module, exports) {
} }
})(); })();
}, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); })
__DEFINE__(1776758170757, function(require, module, exports) { __DEFINE__(1776908340019, function(require, module, exports) {
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
...@@ -1658,7 +1658,7 @@ module.exports = { ...@@ -1658,7 +1658,7 @@ module.exports = {
}); });
}, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); })
__DEFINE__(1776758170758, function(require, module, exports) { __DEFINE__(1776908340020, function(require, module, exports) {
/* /*
* @Descripttion: 常量类 * @Descripttion: 常量类
* @version: 1.0.0 * @version: 1.0.0
...@@ -1671,7 +1671,7 @@ __DEFINE__(1776758170758, function(require, module, exports) { ...@@ -1671,7 +1671,7 @@ __DEFINE__(1776758170758, function(require, module, exports) {
if (!exports.__esModule) Object.defineProperty(exports, "__esModule", { value: true });var MAP_OPTIONS = exports.MAP_OPTIONS = { domain: 'https://restapi.amap.com', KEY: '373bd88fa36ebc0247d60281386b6cec', SECRET: 'a2a93fa04721a36819d86b71cb31fe41' }; if (!exports.__esModule) Object.defineProperty(exports, "__esModule", { value: true });var MAP_OPTIONS = exports.MAP_OPTIONS = { domain: 'https://restapi.amap.com', KEY: '373bd88fa36ebc0247d60281386b6cec', SECRET: 'a2a93fa04721a36819d86b71cb31fe41' };
}, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); })
__DEFINE__(1776758170759, function(require, module, exports) { __DEFINE__(1776908340021, function(require, module, exports) {
/* /*
* @Descripttion:帮助类 * @Descripttion:帮助类
* @version: 1.0.0 * @version: 1.0.0
...@@ -1684,7 +1684,7 @@ __DEFINE__(1776758170759, function(require, module, exports) { ...@@ -1684,7 +1684,7 @@ __DEFINE__(1776758170759, function(require, module, exports) {
if (!exports.__esModule) Object.defineProperty(exports, "__esModule", { value: true });var isMiniprogram = exports.isMiniprogram = !window; if (!exports.__esModule) Object.defineProperty(exports, "__esModule", { value: true });var isMiniprogram = exports.isMiniprogram = !window;
}, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); }) }, function(modId) { var map = {}; return __REQUIRE__(map[modId], modId); })
return __REQUIRE__(1776758170754); return __REQUIRE__(1776908340016);
})() })()
//miniprogram-npm-outsideDeps=["./stringify","./parse","./formats","./utils"] //miniprogram-npm-outsideDeps=["./stringify","./parse","./formats","./utils"]
//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport ...@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; }; var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } }; var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; }; var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
__DEFINE__(1776758170760, function(require, module, exports) { __DEFINE__(1776908340022, function(require, module, exports) {
Object.defineProperty(exports, '__esModule', { value: true }); Object.defineProperty(exports, '__esModule', { value: true });
...@@ -171,7 +171,7 @@ exports.enableBoundaryChecking = enableBoundaryChecking; ...@@ -171,7 +171,7 @@ exports.enableBoundaryChecking = enableBoundaryChecking;
exports['default'] = index; exports['default'] = index;
}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); }) }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
return __REQUIRE__(1776758170760); return __REQUIRE__(1776908340022);
})() })()
//miniprogram-npm-outsideDeps=[] //miniprogram-npm-outsideDeps=[]
//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map
\ No newline at end of file \ No newline at end of file
{ {
"usingComponents": { "navigationBarTitleText": "发拍管理",
"tab": "/components/Tab/Tab",
"search-box": "./components/SearchBox/SearchBox",
"enable-wallet": "/components/EnableWallet/EnableWallet"
},
"navigationStyle": "custom", "navigationStyle": "custom",
"backgroundColor": "#F9F7F7" "backgroundColor": "#F3F7FF",
"usingComponents": {
"navigation-bar": "/components/NavigationBar/NavigationBar",
"search-box": "/components/SearchBox/SearchBox",
"van-tabs": "@vant/weapp/tabs/index",
"van-tab": "@vant/weapp/tab/index",
"glsx-image": "/components/image/index"
}
} }
/* pages/tab/index/pages/index/index.wxss */ .navigation-bar {
page { .page-title {
background-color: #F3F7FF; font-size: 36rpx;
} font-weight: 500;
.page-title { }
text-align: center;
font-size: 36rpx;
font-weight: 600;
color: rgba(0, 0, 0, 0.9);
} }
.navigation { .navigation {
...@@ -17,212 +13,237 @@ page { ...@@ -17,212 +13,237 @@ page {
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/uplus-fapai-mp/index/index_bg.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/uplus-fapai-mp/index/index_bg.png');
} }
::-webkit-scrollbar { .bg-top {
width: 0;
height: 0;
color: transparent;
}
.bg {
width: 100%; width: 100%;
height: 480rpx; position: absolute;
position: fixed;
left: 0; left: 0;
top: 0; top: 0;
z-index: -1; z-index: -1;
glsx-image {
width: 100%;
display: block;
}
} }
.container-box {
height: 100vh; .content {
overflow: hidden; display: flex;
flex-direction: column;
} }
.container { .header-box {
box-sizing: border-box; background-color: transparent;
z-index: 100;
position: relative; position: relative;
overflow: auto; --tabs-nav-background-color: transparent;
.points-box { --tabs-bottom-bar-color: #2F6DFA;
margin: 8rpx 20rpx 0 0;
.search-wrap {
padding: 10rpx 0;
}
}
.list-scroll {
padding: 20rpx;
box-sizing: border-box;
}
.card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 30rpx;
margin-bottom: 24rpx;
.card-header {
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
justify-content: flex-end; margin-bottom: 20rpx;
.points-btn {
box-sizing: border-box; .left-info {
min-width: 210rpx; font-size: 24rpx;
height: 68rpx; color: #999999;
background: #ffffff;
border-radius: 34rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
padding: 0 12rpx 0 20rpx; .divider {
.icon { margin: 0 16rpx;
display: inline-block; color: #EEEEEE;
width: 28rpx;
height: 28rpx;
margin-right: 6rpx;
}
.points-num {
display: inline-block;
color: #ff334f;
font-size: 44rpx;
font-weight: 700;
} }
} }
.arrow-icon {
margin-left: 10rpx;
margin-bottom: 6rpx;
filter: drop-shadow(0.5px 0 0 #f4776d) drop-shadow(0 0.5px 0 #f4776d);
}
}
.layout { .status-tag {
width: 100%; font-size: 24rpx;
box-sizing: border-box; padding: 4rpx 12rpx;
background-image: linear-gradient(180deg, #ffffffb3 0%, #ffffff 100rpx); border-radius: 4rpx;
border-radius: 24rpx 24rpx 0 0;
padding: 20rpx 0;
border: 2rpx solid #ffffff;
border-bottom: 0;
backdrop-filter: blur(2000rpx);
.notic-box {
box-sizing: border-box;
margin: 0 20rpx 16rpx 20rpx;
width: calc(100% - 40rpx);
height: 64rpx;
background-size: 100% 64rpx;
border-radius: 16rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
padding: 0 14rpx 0 20rpx; .circle {
position: relative; width: 8rpx;
.text-container { height: 8rpx;
width: calc(100% - 100rpx); border-radius: 50%;
height: 40rpx; margin-right: 8rpx;
overflow: hidden;
white-space: nowrap;
position: relative;
.text {
color: #ffffff;
font-size: 24rpx;
font-weight: 500;
display: inline-block;
position: absolute;
}
} }
.detail-btn {
flex-shrink: 0; &.status-1 { color: #999999; background: #F5F5F5; .circle { background: #999999; } }
width: 80rpx; &.status-2 { color: #FF8F1F; background: rgba(255,143,31,0.1); .circle { background: #FF8F1F; } }
height: 44rpx; &.status-3 { color: #2F6DFA; background: rgba(47,109,250,0.1); .circle { background: #2F6DFA; } }
background: #fff0ed; &.status-4 { color: #00B578; background: rgba(0,181,120,0.1); .circle { background: #00B578; } }
border-radius: 12rpx; &.status-5 { color: #E34D59; background: rgba(227,77,89,0.1); .circle { background: #E34D59; } }
margin-left: 8rpx; &.status-6 { color: #999999; background: #F5F5F5; .circle { background: #999999; } }
display: flex; }
align-items: center; }
box-sizing: border-box;
justify-content: space-between; .card-title {
padding-left: 10rpx; font-size: 32rpx;
text { color: #333333;
font-size: 20rpx; font-weight: 600;
color: #f75454; line-height: 44rpx;
font-weight: 500; margin-bottom: 16rpx;
} }
.arrow-icon {
margin: 0 6rpx 6rpx; .specs {
filter: drop-shadow(0.5px 0 0 #f4776d) drop-shadow(0 0.5px 0 #f4776d); font-size: 24rpx;
} color: #666666;
margin-bottom: 30rpx;
.spec-item {
display: inline-block;
margin-right: 16rpx;
padding-right: 16rpx;
position: relative;
&:not(:last-child)::after {
content: '';
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 2rpx;
height: 20rpx;
background: #EEEEEE;
} }
} }
.special-sale-box { }
padding: 0 20rpx;
background: #f8f9fc; .info-grid {
.item { display: flex;
width: 100%; justify-content: space-between;
height: 340rpx; background: #F9F9F9;
margin-bottom: 20rpx; border-radius: 8rpx;
border-radius: 24rpx; padding: 24rpx;
overflow: hidden; margin-bottom: 24rpx;
position: relative;
.item-name { .grid-item {
position: absolute; flex: 1;
top: 0;
left: 0; .label {
color: #ffffff; font-size: 22rpx;
font-weight: bold; color: #999999;
font-size: 24rpx; margin-bottom: 8rpx;
display: flex; }
.item-name-left {
width: 24rpx; .value {
height: 60rpx; font-size: 28rpx;
background: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-left.png") color: #333333;
no-repeat; font-weight: 500;
background-size: 100% 100%;
} &.price {
.item-name-middle { color: #E34D59;
background: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-middle.png") font-size: 36rpx;
no-repeat;
background-size: 100% 100%; .unit {
padding: 6rpx 0; font-size: 24rpx;
} }
.item-name-right { .unit-w {
width: 48rpx; font-size: 24rpx;
height: 60rpx;
background: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-right.png")
no-repeat;
background-size: 100% 100%;
} }
} }
&:last-child {
margin-bottom: 0;
}
} }
} }
.goods-content { }
.card-footer {
display: flex;
justify-content: flex-end;
padding-top: 24rpx;
border-top: 2rpx solid #F5F5F5;
gap: 20rpx;
.btn {
min-width: 152rpx;
height: 64rpx;
border-radius: 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
padding: 0 32rpx;
box-sizing: border-box; box-sizing: border-box;
background: #f8f9fc;
.goods-box { &.default-btn {
background: #ffffff; border: 2rpx solid #E5E5E5;
border-radius: 24rpx 24rpx 0 0; color: #333333;
width: 100%; }
box-sizing: border-box;
overflow: hidden; &.primary-btn {
margin-top: 8rpx; background: #2F6DFA;
.nothing { color: #FFFFFF;
text-align: center;
color: #7a8299;
.icon {
margin: 20rpx auto;
width: 320rpx;
height: 300rpx;
}
}
.end {
text-align: center;
color: #858a94;
}
} }
} }
} }
} }
.sticky { .nothing {
background: #f8f9fc; text-align: center;
padding-top: 298rpx;
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
.icon {
width: 240rpx;
height: 204rpx;
margin: 0 auto 20rpx;
}
}
.loading-text {
text-align: center;
color: #999999;
font-size: 24rpx;
padding: 20rpx 0 40rpx;
} }
.btn-box { .fab-btn {
position: fixed; position: fixed;
bottom: 0; right: 32rpx;
left: 0; bottom: calc(env(safe-area-inset-bottom) + 120rpx);
width: 100%; width: 112rpx;
height: 100rpx; height: 112rpx;
background-color: #fff; border-radius: 50%;
background: #2F6DFA;
box-shadow: 0 8rpx 16rpx rgba(47, 109, 250, 0.3);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
.add-icon {
width: 48rpx;
height: 48rpx;
}
}
.flex-between {
display: flex;
justify-content: space-between;
align-items: center;
} }
.btn-box .btn {
margin: 6rpx calc(var(--margin) * 2); .text-ellipsis-2 {
background-color: var(--btnColor); display: -webkit-box;
height: 88rpx; -webkit-box-orient: vertical;
font-weight: 500; -webkit-line-clamp: 2;
color: #fff; overflow: hidden;
font-size: 32rpx;
border-radius: 20rpx;
} }
\ No newline at end of file \ No newline at end of file
<view class="navigation-bar"> <view class="layout">
<!-- 导航栏 --> <view class="bg-top">
<view class="navigation"> <glsx-image src="/index/index_bg.png" mode="widthFix"></glsx-image>
<navigation-bar
page-title="发拍管理"
custom="{{true}}"
navStyle="{{navStyle}}"
bindnavbarReady="navbarReady"
>
<view class="page-title">发拍管理</view>
</navigation-bar>
</view> </view>
</view> <navigation-bar
<block wx:if="{{navHeight}}"> page-title="发拍管理"
<view class="container-box"> custom="{{true}}"
<view class="container" style="height: calc(100vh - {{navHeight}}px);margin-top: {{navHeight}}px;"> navStyle="{{navStyle}}"
<scroll-view bindnavbarReady="navbarReady"
scroll-y >
enable-back-to-top <view class="page-title text-center">发拍管理</view>
refresher-enabled="{{ true }}" </navigation-bar>
bindrefresherrefresh="refreshPage"
bindscrolltolower="scrollonReachBottom" <view class="content" style="margin-top: {{navHeight}}px;">
class="list" <view class="header-box">
style="height:100%;" <!-- 搜索栏 -->
refresher-threshold="104" <view class="search-wrap">
refresher-triggered="{{ triggered }}" <search-box placeholder="搜索车辆品牌/牌号/申请单号" bindsearch="onSearch" inputAlign="left"></search-box>
> </view>
<view class="layout">
<!-- 商品 --> <!-- Tabs -->
<block> <van-tabs active="{{ status }}" bind:change="onTabChange" color="#2F6DFA" title-active-color="#2F6DFA" sticky offset-top="{{navHeight + 54}}">
<view class="goods-content"> <van-tab title="全部" name=""></van-tab>
<view class="sticky"> <van-tab title="草稿" name="1"></van-tab>
<search-box placeholder="搜索商品" bindsearch="handleSearch"> <van-tab title="待拍卖" name="2"></van-tab>
</search-box> <van-tab title="拍卖中" name="3"></van-tab>
<view class="tab" style="top:{{padding_bottom }}px;"> <van-tab title="交易成功" name="4"></van-tab>
<tab <van-tab title="流拍" name="5"></van-tab>
tab="{{tab}}" <van-tab title="已下架" name="6"></van-tab>
bindchange="changeTab" </van-tabs>
index="{{curTab.index}}" </view>
>
</tab> <scroll-view
</view> scroll-y
</view> enable-back-to-top
<view class="goods-box"> refresher-enabled="{{ true }}"
<block wx:if="{{goodsList.length}}"> bindrefresherrefresh="onRefresh"
<!-- <goods list="{{goodsList}}" bindjoin="handleAddToCart"> </goods> --> bindscrolltolower="onLoadMore"
<view class="end" wx:if="{{pages == pageNum}}">到底了~</view> refresher-triggered="{{ isRefreshing }}"
</block> class="list-scroll"
<block wx:else> style="height: calc(100vh - {{navHeight}}px - 180rpx);"
<view class="nothing"> >
<view class="icon"> <block wx:if="{{list.length}}">
<glsx-image webp src="/cart/nothing-icon.png" /> <view class="card" wx:for="{{list}}" wx:key="id">
</view> <view class="card-header flex-between">
暂无商品 <view class="left-info">
</view> <text class="no">{{item.publishNo}}</text>
</block> <text class="divider" wx:if="{{item.publishNo && (item.provinceName || item.cityName)}}">|</text>
</view> <text class="loc">{{item.provinceName}}{{item.cityName}}</text>
</view>
<view class="status-tag status-{{item.status}}">
<text class="circle"></text>
<text>{{statusMap[item.status]}}</text>
</view>
</view>
<view class="card-title text-ellipsis-2">
{{item.carBrandName || ''}}{{item.carSeriesName || ''}}{{item.carTypeName || ''}}
</view>
<view class="specs">
<text class="spec-item" wx:if="{{item.licensePlate}}">{{item.licensePlate}}</text>
<text class="spec-item" wx:if="{{item.displacement}}">{{item.displacement}}</text>
<text class="spec-item" wx:if="{{item.transmissionType || item.transmissionType === 0}}">{{item.transmissionType === 1 ? '手动' : (item.transmissionType === 2 ? '自动' : '其他')}}</text>
</view>
<view class="info-grid">
<view class="grid-item">
<view class="label">保留价</view>
<view class="value price"><text class="unit">¥</text>{{item.reservePrice || '0.00'}}<text class="unit-w"> 万</text></view>
</view> </view>
</block> <view class="grid-item">
<view class="label">里程</view>
<view class="value">{{item.mileage || '0'}}万公里</view>
</view>
<view class="grid-item">
<view class="label">申请时间</view>
<view class="value">{{item.submitTimeStr || item.createTimeStr || '--'}}</view>
</view>
</view>
<view class="card-footer" wx:if="{{item.status}}">
<view class="btn default-btn" bindtap="viewDetail" data-id="{{item.id}}">查看</view>
<view class="btn primary-btn" wx:if="{{item.status == 2}}" bindtap="offlineCar" data-id="{{item.id}}">下架车辆</view>
</view>
</view> </view>
</scroll-view> <view class="loading-text">{{isLastPage ? '到底了~' : '加载中...'}}</view>
</view> </block>
<block wx:else>
<view class="nothing">
<view class="icon">
<glsx-image webp src="/common/empty-icon.png" />
</view>
暂无申请
</view>
</block>
</scroll-view>
</view>
<view class="fab-btn" bindtap="addAuction">
<glsx-image src="/index/add.png" class="add-icon"></glsx-image>
</view> </view>
</block>
<view class="btn-box isFullSucreen">
<view class="btn text-center" bindtap="jump">点击</view>
</view> </view>
<glsx-privacy appletName="优加发拍"> <glsx-privacy appletName="优加发拍"></glsx-privacy>
</glsx-privacy>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!