diff --git a/jiuyi2/api/mine.js b/jiuyi2/api/mine.js index 38c664c7..1b08a2d9 100644 --- a/jiuyi2/api/mine.js +++ b/jiuyi2/api/mine.js @@ -297,6 +297,61 @@ const mine = { method: 'POST', }) }, + + /** + * 账号解冻 + * @param {Object} param + */ + getWalletBillList(param) { + return util.request({ + url: '/user/walletTransaction/list', + data: param.data, + query: param.query, + method: 'GET', + load: true, + }) + }, + + /** + * 支付宝提现 + * @param {Object} param + */ + getToAlipay(param) { + return util.request({ + url: '/user/alipay/withdraw', + data: param.data, + query: param.query, + method: 'POST', + load: true, + }) + }, + + /** + * 银行卡提现 + * @param {Object} param + */ + getToBank(param) { + return util.request({ + url: '/user/alipay/withdrawToBankCard', + data: param.data, + query: param.query, + method: 'POST', + load: true, + }) + }, + + /** + * 获取提现配置 + * @param {Object} param + */ + getPayConfig(param) { + return util.request({ + url: '/user/alipay/getPayConfig', + data: param.data, + query: param.query, + method: 'GET', + }) + }, } export default mine \ No newline at end of file diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index efd8ba89..4336ad84 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -7,7 +7,10 @@ const config = { // #endif // #ifndef H5 host: 'http://91f.xyz:8080', +<<<<<<< HEAD // host: 'https://1a880cd5.r24.cpolar.top/', +======= +>>>>>>> 409f137e8990b13381bdbe7efca7eec9a3cfc89e // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/common/js/util.js b/jiuyi2/common/js/util.js index 7034117b..b82f96e0 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(/ { item.MsgTime = handleDate(item.MsgTime) - let type = item.Type == 1 ? `C2C${item.To_Account}` : `GROUP${item.GroupId}`; + let type = item.type == 'C2C' ? `C2C${item.To_Account}` : `GROUP${item.GroupId}`; uni.$chat.getConversationProfile(type).then(rs => { let res = rs.data.conversation; item.chatText = res.lastMessage.messageForShow; item.unreadCount = res.unreadCount; - if (item.Type == 1) { + if (item.type == 'C2C') { item.avatar = res.userProfile.avatar; item.name = res.userProfile.nick; - } else if (item.Type == 2) { + } else if (item.type == 'GROUP') { item.avatar = res.groupProfile.avatar; item.name = res.groupProfile.name; item.num = res.groupProfile.memberCount; @@ -256,7 +256,7 @@ function delMsg(item) { return } - let conversationId = item.Type == 1 ? `C2C${item.userID}` : `GROUP${item.groupID}`; + let conversationId = item.type == 'C2C' ? `C2C${item.userID}` : `GROUP${item.groupID}`; uni.$chat.deleteConversation(conversationId).then(rs => { getList() @@ -274,7 +274,7 @@ function setRead(item) { return } - let conversationId = item.Type == 1 ? `C2C${item.userID}` : `GROUP${item.groupID}`; + let conversationId = item.type == 'C2C' ? `C2C${item.userID}` : `GROUP${item.groupID}`; uni.$chat.setMessageRead({ conversationID: conversationId, }).then(rs => { diff --git a/jiuyi2/components/public/editor/editor.vue b/jiuyi2/components/public/editor/editor.vue index 5fe46120..47a9317f 100644 --- a/jiuyi2/components/public/editor/editor.vue +++ b/jiuyi2/components/public/editor/editor.vue @@ -7,6 +7,7 @@ getCurrentInstance, defineProps, defineEmits, + defineExpose, } from 'vue' // 工具库 import util from '@/common/js/util' @@ -16,6 +17,11 @@ const { proxy } = getCurrentInstance() + const props = defineProps({ + modelValue: String + }) + // + const emit = defineEmits(['update:modelValue']); // 编辑器内容 const formats = reactive({}) // 编辑器上下文对象 @@ -31,17 +37,33 @@ const colorKey = ref('forecolor') onMounted(() => { - // 初始化 + // 创建编辑器上下文对象 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() @@ -57,14 +79,13 @@ * @param {Object} event */ function handleEditor(event) { - console.log('format', event.target.dataset) let { name, value } = event.target.dataset if (!name) return editorCtx.value.format(name, value) - } + } /** * 编辑器状态被变化 @@ -157,6 +178,16 @@ } }) } + + // 富文本编辑 + function handleEditorInput(event) { + emit('update:modelValue', event.detail.html) + } + + defineExpose({ + init, + getEditorContents, + }) \ No newline at end of file diff --git a/jiuyi2/pages/merchant/order/index.vue b/jiuyi2/pages/merchant/order/index.vue deleted file mode 100644 index bed50595..00000000 --- a/jiuyi2/pages/merchant/order/index.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - - \ No newline at end of file diff --git a/jiuyi2/pages/merchant/specifications/index.vue b/jiuyi2/pages/merchant/specifications/index.vue deleted file mode 100644 index 4f7292cc..00000000 --- a/jiuyi2/pages/merchant/specifications/index.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - - - \ No newline at end of file diff --git a/jiuyi2/pages/merchant/specifications/jy-specifications-card/index.vue b/jiuyi2/pages/merchant/specifications/jy-specifications-card/index.vue deleted file mode 100644 index 7afb47d1..00000000 --- a/jiuyi2/pages/merchant/specifications/jy-specifications-card/index.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - \ No newline at end of file diff --git a/jiuyi2/pages/mine/setting/binding.vue b/jiuyi2/pages/mine/setting/binding.vue index 37a740d7..9ad9c3f8 100644 --- a/jiuyi2/pages/mine/setting/binding.vue +++ b/jiuyi2/pages/mine/setting/binding.vue @@ -91,6 +91,7 @@ data, }).then(rs => { if (rs.code == 200) { + uni.$emit('updateBindingAccount') // detail[bindItem.value.key] = bindItem.value.value // diff --git a/jiuyi2/pages/mine/setting/safeCenter.vue b/jiuyi2/pages/mine/setting/safeCenter.vue index 220b6e48..8945a367 100644 --- a/jiuyi2/pages/mine/setting/safeCenter.vue +++ b/jiuyi2/pages/mine/setting/safeCenter.vue @@ -65,7 +65,7 @@ - 解冻账号 + 账号解冻 风险解除后,可选择解除冻结 diff --git a/jiuyi2/pages/mine/setting/setting.vue b/jiuyi2/pages/mine/setting/setting.vue index 4afb4cf2..525f795e 100644 --- a/jiuyi2/pages/mine/setting/setting.vue +++ b/jiuyi2/pages/mine/setting/setting.vue @@ -173,7 +173,7 @@