From 38c39e193006f51b97c1605f4fdb8527b37feb29 Mon Sep 17 00:00:00 2001
From: sx <2427911852@qq.com>
Date: Thu, 20 Feb 2025 15:48:53 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jiuyi2/components/public/editor/editor.vue | 8 +++++---
jiuyi2/pages/release/commodity.vue | 2 +-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/jiuyi2/components/public/editor/editor.vue b/jiuyi2/components/public/editor/editor.vue
index 5fe46120..94e059e3 100644
--- a/jiuyi2/components/public/editor/editor.vue
+++ b/jiuyi2/components/public/editor/editor.vue
@@ -16,6 +16,8 @@
const {
proxy
} = getCurrentInstance()
+
+ const emits = defineEmits(['update:modelValue']);
// 编辑器内容
const formats = reactive({})
// 编辑器上下文对象
@@ -57,7 +59,6 @@
* @param {Object} event
*/
function handleEditor(event) {
- console.log('format', event.target.dataset)
let {
name,
value
@@ -220,8 +221,9 @@
-
+
diff --git a/jiuyi2/pages/release/commodity.vue b/jiuyi2/pages/release/commodity.vue
index 82f3559a..b212da98 100644
--- a/jiuyi2/pages/release/commodity.vue
+++ b/jiuyi2/pages/release/commodity.vue
@@ -327,7 +327,7 @@
-
+
From c4a23be60c90e4067632e95af119cc5d897e73bd Mon Sep 17 00:00:00 2001
From: sx <2427911852@qq.com>
Date: Fri, 21 Feb 2025 10:03:50 +0800
Subject: [PATCH 2/3] =?UTF-8?q?2025.02.20=20=E5=B7=A5=E4=BD=9C=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jiuyi2/common/js/config.js | 1 -
jiuyi2/common/js/util.js | 10 ++--
jiuyi2/components/public/editor/editor.vue | 45 +++++++++++++---
jiuyi2/manifest.json | 4 +-
jiuyi2/pages/login/freezeAccount.vue | 2 +-
jiuyi2/pages/login/unfreezeAccount.vue | 2 +-
jiuyi2/pages/mine/setting/safeCenter.vue | 2 +-
jiuyi2/pages/mine/setting/usePay.vue | 1 -
jiuyi2/pages/mine/switch-accounts/index.vue | 1 -
jiuyi2/pages/release/commodity.vue | 57 +++++++++++++++++++--
jiuyi2/pages/shop/commodity/index.vue | 5 +-
jiuyi2/pages/shop/store/commodities.vue | 23 ++++++++-
jiuyi2/readme.md | 2 +-
jiuyi2/vite.config.js | 3 +-
14 files changed, 128 insertions(+), 30 deletions(-)
diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js
index 6522293b..d9448b2f 100644
--- a/jiuyi2/common/js/config.js
+++ b/jiuyi2/common/js/config.js
@@ -7,7 +7,6 @@ const config = {
// #endif
// #ifndef H5
host: 'http://91f.xyz:8080',
- host: 'https://b433d23.r24.cpolar.top/',
// #endif
// 支付方式配置
payType: {
diff --git a/jiuyi2/common/js/util.js b/jiuyi2/common/js/util.js
index ff57358a..76099e25 100644
--- a/jiuyi2/common/js/util.js
+++ b/jiuyi2/common/js/util.js
@@ -260,11 +260,11 @@ const util = {
})
},
- // 替换图片的宽度为最大宽度100% (移动端解析html富文本专用)
- imgReplace(value, th) {
- if (!th) {
- value = value.replace(/
/ig, '
')
.replace(/
{
- // 初始化
+ // 创建编辑器上下文对象
onEditorReady()
})
- // 初始化
+ // 创建编辑器上下文对象
function onEditorReady() {
uni.createSelectorQuery().select('#editor').context((res) => {
editorCtx.value = res.context
}).exec()
}
+ // 初始化编辑器上下文对象
+ function init(html) {
+ editorCtx.value.setContents({
+ html,
+ })
+ }
+
+ // 获取内容
+ function getEditorContents() {
+ editorCtx.value.getContents({
+ success: rs => {
+ return rs
+ }
+ })
+ }
+
// 撤销
function undo() {
editorCtx.value.undo()
@@ -65,7 +85,7 @@
} = event.target.dataset
if (!name) return
editorCtx.value.format(name, value)
- }
+ }
/**
* 编辑器状态被变化
@@ -158,6 +178,16 @@
}
})
}
+
+ // 富文本编辑
+ function handleEditorInput(event) {
+ emit('update:modelValue', event.detail.html)
+ }
+
+ defineExpose({
+ init,
+ getEditorContents,
+ })
@@ -221,9 +251,8 @@
-
+
diff --git a/jiuyi2/manifest.json b/jiuyi2/manifest.json
index 5ecd2de4..216590c9 100644
--- a/jiuyi2/manifest.json
+++ b/jiuyi2/manifest.json
@@ -2,8 +2,8 @@
"name" : "九亿",
"appid" : "__UNI__08B31BC",
"description" : "",
- "versionName" : "1.0.6",
- "versionCode" : 1006,
+ "versionName" : "1.0.7",
+ "versionCode" : 1007,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/jiuyi2/pages/login/freezeAccount.vue b/jiuyi2/pages/login/freezeAccount.vue
index 57ae4670..67a67585 100644
--- a/jiuyi2/pages/login/freezeAccount.vue
+++ b/jiuyi2/pages/login/freezeAccount.vue
@@ -1,6 +1,6 @@
-
+
+
+ {{item.name}}
+
+
+
-
-
- 使用积分支付
+
+
+
+
+
+ {{item.reason}}
- ¥
- 1000
+ {{item.amount}}
- 2024.12.07 17:00
-
+
+
+ 明细类型
+ {{item.typeName}}
+
+
+
+ 交易时间
+ {{item.createTime}}
+
+
+
+ 订单流水
+ {{item.transactionId}}
+
+
+
+
+
查看详情
@@ -45,14 +166,49 @@
\ No newline at end of file
diff --git a/jiuyi2/readme.md b/jiuyi2/readme.md
index 20f473c9..111c7cca 100644
--- a/jiuyi2/readme.md
+++ b/jiuyi2/readme.md
@@ -64,6 +64,8 @@ selectAddress 选择地址
updateOrderList 更新订单列表
updateOrderDetail 更新订单详情
updateUserProduct 更新用户商品
+updateBindingAccount 更新绑定账号
+selectBindingBank 选择绑定的银行卡
缓存
---