From fcb63aea1d951a75ebc14829c7cbdbd577886624 Mon Sep 17 00:00:00 2001 From: itgaojian163 Date: Wed, 11 Jun 2025 11:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AF=E8=91=97=E5=95=86=E5=93=81=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 3 +- app.wxss | 22 + components/empty/empty.js | 23 - components/empty/empty.json | 4 - components/empty/empty.wxml | 5 - components/empty/empty.wxss | 24 - .../fui-bottom-popup/fui-bottom-popup.js | 40 -- .../fui-bottom-popup/fui-bottom-popup.json | 3 - .../fui-bottom-popup/fui-bottom-popup.wxml | 5 - .../fui-bottom-popup/fui-bottom-popup.wxss | 36 -- components/mp-html/index.js | 152 ----- components/mp-html/index.json | 1 - components/mp-html/index.wxml | 4 - components/mp-html/index.wxss | 11 - components/mp-html/node/node.js | 147 ----- components/mp-html/node/node.json | 1 - components/mp-html/node/node.wxml | 34 -- components/mp-html/node/node.wxss | 157 ----- components/mp-html/parser.js | 537 ------------------ components/page-loading/page-loading.js | 24 - components/page-loading/page-loading.wxml | 4 - components/page-loading/page-loading.wxss | 55 -- .../shop/publishCopyright/publishCopyright.js | 29 +- .../publishCopyright/publishCopyright.wxml | 206 +++---- .../publishCopyright/publishCopyright.wxss | 52 +- pages/shop/sellGoods/sellGoods.js | 13 +- pages/shop/sellGoods/sellGoods.wxml | 1 + pages/shop/sellGoods/sellGoods.wxss | 25 + pages/shop/sellGoodsDetail/sellGoodsDetail.js | 66 +++ .../shop/sellGoodsDetail/sellGoodsDetail.json | 1 - .../shop/sellGoodsDetail/sellGoodsDetail.wxml | 2 + .../shop/sellGoodsDetail/sellGoodsDetail.wxss | 1 + project.private.config.json | 2 +- static/style/icon.wxss | 9 +- utils/comm.wxs | 30 +- 35 files changed, 331 insertions(+), 1398 deletions(-) delete mode 100644 components/empty/empty.js delete mode 100644 components/empty/empty.json delete mode 100644 components/empty/empty.wxml delete mode 100644 components/empty/empty.wxss delete mode 100755 components/fui-bottom-popup/fui-bottom-popup.js delete mode 100755 components/fui-bottom-popup/fui-bottom-popup.json delete mode 100755 components/fui-bottom-popup/fui-bottom-popup.wxml delete mode 100755 components/fui-bottom-popup/fui-bottom-popup.wxss delete mode 100644 components/mp-html/index.js delete mode 100644 components/mp-html/index.json delete mode 100644 components/mp-html/index.wxml delete mode 100644 components/mp-html/index.wxss delete mode 100644 components/mp-html/node/node.js delete mode 100644 components/mp-html/node/node.json delete mode 100644 components/mp-html/node/node.wxml delete mode 100644 components/mp-html/node/node.wxss delete mode 100644 components/mp-html/parser.js delete mode 100644 components/page-loading/page-loading.js delete mode 100644 components/page-loading/page-loading.wxml delete mode 100644 components/page-loading/page-loading.wxss create mode 100644 pages/shop/sellGoodsDetail/sellGoodsDetail.js rename components/page-loading/page-loading.json => pages/shop/sellGoodsDetail/sellGoodsDetail.json (54%) create mode 100644 pages/shop/sellGoodsDetail/sellGoodsDetail.wxml create mode 100644 pages/shop/sellGoodsDetail/sellGoodsDetail.wxss diff --git a/app.json b/app.json index c9b29ca..3069966 100644 --- a/app.json +++ b/app.json @@ -32,7 +32,8 @@ "pages/shop/sellGoods/sellGoods", "pages/shop/purchaseGoods/purchaseGoods", "pages/shop/betrayGoods/betrayGoods", - "pages/shop/goodsDetail/goodsDetail" + "pages/shop/goodsDetail/goodsDetail", + "pages/shop/sellGoodsDetail/sellGoodsDetail" ], "window": { "navigationBarTextStyle": "black", diff --git a/app.wxss b/app.wxss index c695ccb..7b59f14 100644 --- a/app.wxss +++ b/app.wxss @@ -118,6 +118,7 @@ swiper-item { padding: var(--page-padding) var(--page-padding) 50rpx; width: 100%; box-sizing: border-box; + z-index: 1; } .bottom-btn-green { @@ -135,6 +136,27 @@ swiper-item { color: var(--text-brown-color); } +.bottom-btn-blue { + background-color: var(--btn-blue-color); + color: var(--white-color); + font-size: 16px; + height: 80rpx; + line-height: 80rpx; + border-radius: 5px; + text-align: center; +} + +.bottom-btn-blue:active { + background-color: var(--btn-blue-color-active); + color: var(--white-color); +} + +.bottom-btn-blue.active { + background-color: var(--gray-bg-color); + color: var(--text-brown-color); +} + + .ml-10 { margin-left: 10rpx; } diff --git a/components/empty/empty.js b/components/empty/empty.js deleted file mode 100644 index 9fe184b..0000000 --- a/components/empty/empty.js +++ /dev/null @@ -1,23 +0,0 @@ -// components/empty/empty.js -Component({ - /** - * 组件的属性列表 - */ - properties: { - - }, - - /** - * 组件的初始数据 - */ - data: { - - }, - - /** - * 组件的方法列表 - */ - methods: { - - } -}) diff --git a/components/empty/empty.json b/components/empty/empty.json deleted file mode 100644 index 7e37c03..0000000 --- a/components/empty/empty.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "component": true, - "usingComponents": {} -} \ No newline at end of file diff --git a/components/empty/empty.wxml b/components/empty/empty.wxml deleted file mode 100644 index 5c056ae..0000000 --- a/components/empty/empty.wxml +++ /dev/null @@ -1,5 +0,0 @@ - - - - 暂无数据 - \ No newline at end of file diff --git a/components/empty/empty.wxss b/components/empty/empty.wxss deleted file mode 100644 index d7792cf..0000000 --- a/components/empty/empty.wxss +++ /dev/null @@ -1,24 +0,0 @@ -/* components/empty/empty.wxss */ -.data-empty { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - text-align: center; - align-self: center; - - position: fixed; - top: 50%; - left: 50%; - transform: translateX(-50%)translateY(-50%); -} - -.data-empty image { - width: 180rpx; - height: 120rpx; -} - -.data-empty .hint { - margin-top: 30rpx; - font-size: 32rpx; -} \ No newline at end of file diff --git a/components/fui-bottom-popup/fui-bottom-popup.js b/components/fui-bottom-popup/fui-bottom-popup.js deleted file mode 100755 index 59351fc..0000000 --- a/components/fui-bottom-popup/fui-bottom-popup.js +++ /dev/null @@ -1,40 +0,0 @@ -Component({ - properties: { - show: { - type: Boolean, - value: false - }, - //背景颜色 - background: { - type: String, - value: '#fff' - }, - //圆角 - radius: { - type: Number, - optionalTypes: [String], - value: 24 - }, - zIndex: { - type: Number, - optionalTypes: [String], - value: 1001 - }, - //点击遮罩 是否可关闭 - maskClosable: { - type: Boolean, - value: true - }, - maskBackground: { - type: String, - value: 'rgba(0,0,0,.6)' - } - }, - methods: { - handleClose(e) { - if (!this.data.maskClosable) return; - this.triggerEvent('close', {}); - }, - stop(e) {} - } -}) \ No newline at end of file diff --git a/components/fui-bottom-popup/fui-bottom-popup.json b/components/fui-bottom-popup/fui-bottom-popup.json deleted file mode 100755 index 32640e0..0000000 --- a/components/fui-bottom-popup/fui-bottom-popup.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "component": true -} \ No newline at end of file diff --git a/components/fui-bottom-popup/fui-bottom-popup.wxml b/components/fui-bottom-popup/fui-bottom-popup.wxml deleted file mode 100755 index 81c5a4a..0000000 --- a/components/fui-bottom-popup/fui-bottom-popup.wxml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/components/fui-bottom-popup/fui-bottom-popup.wxss b/components/fui-bottom-popup/fui-bottom-popup.wxss deleted file mode 100755 index e352b42..0000000 --- a/components/fui-bottom-popup/fui-bottom-popup.wxss +++ /dev/null @@ -1,36 +0,0 @@ -.fui-bottom__popup-wrap { - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - z-index: 1001; - display: flex; - flex-direction: row; - align-items: flex-end; - justify-content: center; - transition: all ease-in-out .2s; - visibility: hidden; - opacity: 0; - overflow: hidden; -} - -.fui-bottom__popwrap-show { - opacity: 1; - visibility: visible; -} - -.fui-bottom__popup { - width: 100%; - transform: translate3d(0, 100%, 0); - transition: all 0.3s ease-in-out; - min-height: 20rpx; - padding-bottom: constant(safe-area-inset-bottom); - padding-bottom: env(safe-area-inset-bottom); - flex: 1; - overflow: hidden; -} - -.fui-bottom__popup-show { - transform: translate3d(0, 0, 0); -} \ No newline at end of file diff --git a/components/mp-html/index.js b/components/mp-html/index.js deleted file mode 100644 index d2cfa0a..0000000 --- a/components/mp-html/index.js +++ /dev/null @@ -1,152 +0,0 @@ -"use strict"; - -function e(e, t, n) { - return t in e ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = n, e -} -/*! - * mp-html v2.5.0 - * https://github.com/jin-yufeng/mp-html - * - * Released under the MIT license - * Author: Jin Yufeng - */ -var t = require("./parser"), - n = []; -Component({ - data: { - nodes: [] - }, - properties: { - containerStyle: String, - content: { - type: String, - value: "", - observer: function (e) { - this.setContent(e) - } - }, - copyLink: { - type: Boolean, - value: !0 - }, - domain: String, - errorImg: String, - lazyLoad: Boolean, - loadingImg: String, - pauseVideo: { - type: Boolean, - value: !0 - }, - previewImg: { - type: null, - value: !0 - }, - scrollTable: Boolean, - selectable: null, - setTitle: { - type: Boolean, - value: !0 - }, - showImgMenu: { - type: Boolean, - value: !0 - }, - tagStyle: Object, - useAnchor: null - }, - created: function () { - this.plugins = []; - for (var e = n.length; e--;) this.plugins.push(new n[e](this)) - }, - detached: function () { - this._hook("onDetached") - }, - methods: { - in: function (e, t, n) { - e && t && n && (this._in = { - page: e, - selector: t, - scrollTop: n - }) - }, - navigateTo: function (t, n) { - var i = this; - return new Promise(function (o, r) { - if (!i.data.useAnchor) return void r(Error("Anchor is disabled")); - var a = wx.createSelectorQuery().in(i._in ? i._in.page : i).select((i._in ? i._in.selector : "._root") + (t ? "".concat(">>>", "#").concat(t) : "")).boundingClientRect(); - i._in ? a.select(i._in.selector).scrollOffset().select(i._in.selector).boundingClientRect() : a.selectViewport().scrollOffset(), a.exec(function (t) { - if (!t[0]) return void r(Error("Label not found")); - var a = t[1].scrollTop + t[0].top - (t[2] ? t[2].top : 0) + (n || parseInt(i.data.useAnchor) || 0); - i._in ? i._in.page.setData(e({}, i._in.scrollTop, a)) : wx.pageScrollTo({ - scrollTop: a, - duration: 300 - }), o() - }) - }) - }, - getText: function (e) { - var t = ""; - return function e(n) { - for (var i = 0; i < n.length; i++) { - var o = n[i]; - if ("text" === o.type) t += o.text.replace(/&/g, "&"); - else if ("br" === o.name) t += "\n"; - else { - var r = "p" === o.name || "div" === o.name || "tr" === o.name || "li" === o.name || "h" === o.name[0] && o.name[1] > "0" && o.name[1] < "7"; - r && t && "\n" !== t[t.length - 1] && (t += "\n"), o.children && e(o.children), r && "\n" !== t[t.length - 1] ? t += "\n" : "td" !== o.name && "th" !== o.name || (t += "\t") - } - } - }(e || this.data.nodes), t - }, - getRect: function () { - var e = this; - return new Promise(function (t, n) { - wx.createSelectorQuery().in(e).select("._root").boundingClientRect().exec(function (e) { - return e[0] ? t(e[0]) : n(Error("Root label not found")) - }) - }) - }, - pauseMedia: function () { - for (var e = (this._videos || []).length; e--;) this._videos[e].pause() - }, - setPlaybackRate: function (e) { - this.playbackRate = e; - for (var t = (this._videos || []).length; t--;) this._videos[t].playbackRate(e) - }, - setContent: function (e, n) { - var i = this; - this.imgList && n || (this.imgList = []), this._videos = []; - var o = {}, - r = new t(this).parse(e); - if (n) - for (var a = this.data.nodes.length, s = r.length; s--;) o["nodes[".concat(a + s, "]")] = r[s]; - else o.nodes = r; - if (this.setData(o, function () { - i._hook("onLoad"), i.triggerEvent("load") - }), this.data.lazyLoad || this.imgList._unloadimgs < this.imgList.length / 2) { - var l = 0, - c = function e(t) { - t && t.height || (t = {}), t.height === l ? i.triggerEvent("ready", t) : (l = t.height, setTimeout(function () { - i.getRect().then(e).catch(e) - }, 350)) - }; - this.getRect().then(c).catch(c) - } else this.imgList._unloadimgs || this.getRect().then(function (e) { - i.triggerEvent("ready", e) - }).catch(function () { - i.triggerEvent("ready", {}) - }) - }, - _hook: function (e) { - for (var t = n.length; t--;) this.plugins[t][e] && this.plugins[t][e]() - }, - _add: function (e) { - e.detail.root = this - } - } -}); \ No newline at end of file diff --git a/components/mp-html/index.json b/components/mp-html/index.json deleted file mode 100644 index 36b626e..0000000 --- a/components/mp-html/index.json +++ /dev/null @@ -1 +0,0 @@ -{"component":true,"usingComponents":{"node":"./node/node"}} \ No newline at end of file diff --git a/components/mp-html/index.wxml b/components/mp-html/index.wxml deleted file mode 100644 index 9b84cb1..0000000 --- a/components/mp-html/index.wxml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/components/mp-html/index.wxss b/components/mp-html/index.wxss deleted file mode 100644 index d1fbe4d..0000000 --- a/components/mp-html/index.wxss +++ /dev/null @@ -1,11 +0,0 @@ -._root { - padding: 1px 0; - overflow-x: auto; - overflow-y: hidden; - -webkit-overflow-scrolling: touch -} - -._select { - -webkit-user-select: text; - user-select: text -} \ No newline at end of file diff --git a/components/mp-html/node/node.js b/components/mp-html/node/node.js deleted file mode 100644 index e97ca31..0000000 --- a/components/mp-html/node/node.js +++ /dev/null @@ -1,147 +0,0 @@ -"use strict"; - -function t(t, e) { - var r = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var i = Object.getOwnPropertySymbols(t); - e && (i = i.filter(function (e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable - })), r.push.apply(r, i) - } - return r -} - -function e(e) { - for (var i = 1; i < arguments.length; i++) { - var o = null != arguments[i] ? arguments[i] : {}; - i % 2 ? t(Object(o), !0).forEach(function (t) { - r(e, t, o[t]) - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : t(Object(o)).forEach(function (t) { - Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(o, t)) - }) - } - return e -} - -function r(t, e, r) { - return e in t ? Object.defineProperty(t, e, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : t[e] = r, t -} -Component({ - data: { - ctrl: {}, - // isiOS: wx.getSystemInfoSync().system.includes("iOS") - isiOS: wx.getDeviceInfo().system.includes("iOS") - }, - properties: { - childs: Array, - opts: Array - }, - options: { - addGlobalClass: !0 - }, - attached: function () { - this.triggerEvent("add", this, { - bubbles: !0, - composed: !0 - }) - }, - methods: { - noop: function () {}, - getNode: function (t) { - try { - for (var e = t.split("_"), r = this.data.childs[e[0]], i = 1; i < e.length; i++) r = r.children[e[i]]; - return r - } catch (t) { - return { - text: "", - attrs: {}, - children: [] - } - } - }, - play: function (t) { - var r = t.target.dataset.i, - i = this.getNode(r); - if (this.root.triggerEvent("play", { - source: i.name, - attrs: e(e({}, i.attrs), {}, { - src: i.src[this.data.ctrl[r] || 0] - }) - }), this.root.data.pauseVideo) { - for (var o = !1, s = t.target.id, a = this.root._videos.length; a--;) this.root._videos[a].id === s ? o = !0 : this.root._videos[a].pause(); - if (!o) { - var n = wx.createVideoContext(s, this); - n.id = s, this.root.playbackRate && n.playbackRate(this.root.playbackRate), this.root._videos.push(n) - } - } - }, - imgTap: function (t) { - var e = this.getNode(t.target.dataset.i); - if (e.a) return this.linkTap(e.a); - if (!e.attrs.ignore && (this.root.triggerEvent("imgtap", e.attrs), this.root.data.previewImg)) { - var r = this.root.imgList[e.i]; - wx.previewImage({ - showmenu: this.root.data.showImgMenu, - current: r, - urls: this.root.imgList - }) - } - }, - imgLoad: function (t) { - var e, i = t.target.dataset.i, - o = this.getNode(i); - o.w ? (this.data.opts[1] && !this.data.ctrl[i] || -1 === this.data.ctrl[i]) && (e = 1) : e = t.detail.width, e && this.setData(r({}, "ctrl." + i, e)), this.checkReady() - }, - checkReady: function () { - var t = this; - this.root.data.lazyLoad || (this.root.imgList._unloadimgs -= 1, this.root.imgList._unloadimgs || setTimeout(function () { - t.root.getRect().then(function (e) { - t.root.triggerEvent("ready", e) - }).catch(function () { - t.root.triggerEvent("ready", {}) - }) - }, 350)) - }, - linkTap: function (t) { - var e = t.currentTarget ? this.getNode(t.currentTarget.dataset.i) : {}, - r = e.attrs || t, - i = r.href; - this.root.triggerEvent("linktap", Object.assign({ - innerText: this.root.getText(e.children || []) - }, r)), i && ("#" === i[0] ? this.root.navigateTo(i.substring(1)).catch(function () {}) : i.split("?")[0].includes("://") ? this.root.data.copyLink && wx.setClipboardData({ - data: i, - success: function () { - return wx.showToast({ - title: "链接已复制" - }) - } - }) : wx.navigateTo({ - url: i, - fail: function () { - wx.switchTab({ - url: i, - fail: function () {} - }) - } - })) - }, - mediaError: function (t) { - var e = t.target.dataset.i, - i = this.getNode(e); - if ("video" === i.name || "audio" === i.name) { - var o = (this.data.ctrl[e] || 0) + 1; - if (o > i.src.length && (o = 0), o < i.src.length) return this.setData(r({}, "ctrl." + e, o)) - } else "img" === i.name && (this.data.opts[2] && this.setData(r({}, "ctrl." + e, -1)), this.checkReady()); - this.root && this.root.triggerEvent("error", { - source: i.name, - attrs: i.attrs, - errMsg: t.detail.errMsg - }) - } - } -}); \ No newline at end of file diff --git a/components/mp-html/node/node.json b/components/mp-html/node/node.json deleted file mode 100644 index 36f7ff7..0000000 --- a/components/mp-html/node/node.json +++ /dev/null @@ -1 +0,0 @@ -{"component":true,"usingComponents":{"node":"./node"}} \ No newline at end of file diff --git a/components/mp-html/node/node.wxml b/components/mp-html/node/node.wxml deleted file mode 100644 index 8548380..0000000 --- a/components/mp-html/node/node.wxml +++ /dev/null @@ -1,34 +0,0 @@ - - var e = { abbr: !0, b: !0, big: !0, code: !0, del: !0, em: !0, i: !0, ins: !0, label: !0, q: !0, small: !0, span: !0, strong: !0, sub: !0, sup: !0 }; module.exports = function (n, i) { return e[n] || -1 !== (i || "").indexOf("inline") }; - -