From 8b9514d161497ff5e964dcba5550904d0ac4743d Mon Sep 17 00:00:00 2001 From: sx <2427911852@qq.com> Date: Sat, 11 Jan 2025 03:51:29 +0800 Subject: [PATCH] =?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/api/news.js | 23 + jiuyi2/api/shop.js | 69 +- jiuyi2/components/mine/payPwd.vue | 49 +- .../public/jy-commodity-address/index.vue | 86 ++- .../regionSelection/regionSelection.vue | 32 +- jiuyi2/pages.json | 23 +- jiuyi2/pages/mine/delivery-address/index.vue | 612 ++++++++++-------- jiuyi2/pages/news/addFriend.vue | 1 + jiuyi2/pages/news/chatGroup.vue | 30 +- jiuyi2/pages/news/group-chat/index.vue | 108 +++- .../components/jy-commodity-foot/index.vue | 4 +- jiuyi2/pages/shop/commodity/history.vue | 20 + jiuyi2/pages/shop/commodity/index.vue | 60 +- jiuyi2/pages/shop/continue-pay/index.vue | 1 + jiuyi2/pages/shop/settle.vue | 97 +-- jiuyi2/pages/shop/store/index.vue | 159 ++--- jiuyi2/pages/shop/store/order.vue | 173 +++++ jiuyi2/readme.md | 8 +- jiuyi2/static/customer-service1.png | Bin 352 -> 653 bytes jiuyi2/static/share2.png | Bin 245 -> 441 bytes jiuyi2/vite.config.js | 12 +- 21 files changed, 1060 insertions(+), 507 deletions(-) create mode 100644 jiuyi2/pages/shop/commodity/history.vue create mode 100644 jiuyi2/pages/shop/store/order.vue diff --git a/jiuyi2/api/news.js b/jiuyi2/api/news.js index 0e7bb9f2..ce8609ac 100644 --- a/jiuyi2/api/news.js +++ b/jiuyi2/api/news.js @@ -88,6 +88,29 @@ export const news = { }) }, + /** + * 创建群聊 + * @param {Object} param + */ + addChatGroup(param) { + return util.request({ + url: `/user/chat/group/addChatGroup`, + data: param.data, + method: 'POST', + }) + }, + + /** + * 获取群聊列表 + * @param {Object} param + */ + myGroups(param) { + return util.request({ + url: `/user/chat/group/myGroups`, + method: 'GET', + }) + }, + /** * 商品列表 * @param {Object} param diff --git a/jiuyi2/api/shop.js b/jiuyi2/api/shop.js index b41a3f70..adc6dd22 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -59,7 +59,7 @@ const shop = { }, /** - * 获取商家申请信息 + * 退还押金接口 * @param {Object} param */ outDepositsPay(param) { @@ -69,13 +69,24 @@ const shop = { }) }, + /** + * 商家发布商品 + * @param {Object} param + */ + releaseProduct(param) { + return util.request({ + url: `/shopify/`, + method: 'POST', + }) + }, + /** * 商品列表 * @param {Object} param */ getProduct(param) { return util.request({ - url: `/appProductionApi/getProductionList`, + url: `/shopify/appProductionApi/getProductionList`, method: 'GET', data: param.data }) @@ -87,7 +98,7 @@ const shop = { */ getCategory(param) { return util.request({ - url: `/appProductionApi/getProductCategory`, + url: `/shopify/appProductionApi/getProductCategory`, method: 'GET', query: param.query, }) @@ -99,11 +110,61 @@ const shop = { */ productDetail(param) { return util.request({ - url: `/appProductionApi/getProductionDetail`, + url: `/shopify/appProductionApi/getProductionDetail`, method: 'GET', query: param.query, }) }, + + /** + * 添加商品浏览记录 + * @param {Object} param + */ + addBrowsing(param) { + return util.request({ + url: `/shopify/system/addBrowsing`, + method: 'PUT', + data: param.data, + }) + }, + + /** + * 获取收货地址 + * @param {Object} param + */ + getAddressList(param) { + return util.request({ + url: `/shopify/appAddress/getList`, + method: 'GET', + query: param.query, + }) + }, + + /** + * 保存地址 + * @param {Object} param + */ + saveOrUpdate(param) { + return util.request({ + url: `/shopify/appAddress/saveOrUpdate`, + method: 'POST', + data: param.data, + }) + }, + + /** + * 删除收货地址 + * @param {Object} param + */ + removeAddressById(param) { + return util.request({ + url: `/shopify/appAddress/deleteById`, + method: 'DELETE', + query: param.query, + }) + }, + + } export default shop \ No newline at end of file diff --git a/jiuyi2/components/mine/payPwd.vue b/jiuyi2/components/mine/payPwd.vue index b3d48ca3..137d9615 100644 --- a/jiuyi2/components/mine/payPwd.vue +++ b/jiuyi2/components/mine/payPwd.vue @@ -10,16 +10,27 @@ import { useStore } from 'vuex' + // 工具库 import util from '@/common/js/util.js' + // api + import api from '@/api/index.js' // 加密 import CryptoJS from 'crypto-js'; + // + const props = defineProps({ + // 是否验证 + check: { + type: Boolean, + default: false + } + }) // const { proxy } = getCurrentInstance() - // - const emit = defineEmits(['defineEmits']) + // 触发父组件事件 + const emits = defineEmits(['confirm']) // 仓库 const store = useStore() // 密码 @@ -43,7 +54,12 @@ // 关闭弹窗 function close() { - proxy.$refs.pwdRef.open() + proxy.$refs.pwdRef.close() + + setTimeout(() => { + // 清空二级密码 + pwd.value = '' + }, 500) } // 确认 @@ -52,8 +68,31 @@ util.alert('二级密码不正确') return } - // md5加密 - emit('confirm', CryptoJS.MD5(pwd.value).toString()) + // 加密后的密码 + let password = CryptoJS.MD5(pwd.value).toString() + // + if (!props.check) { + // 验证 + emits('confirm', password) + close() + return + } + // 验证二级密码 + api.mine.checkSecondLevelCipher({ + data: { + secondLevelCipher: password, + } + }).then(rs => { + if (rs.code == 200) { + emits('confirm', password) + close() + return + } + util.alert({ + content: rs.msg, + showCancel: false, + }) + }) } // diff --git a/jiuyi2/components/public/jy-commodity-address/index.vue b/jiuyi2/components/public/jy-commodity-address/index.vue index 11ca4914..a8c03730 100644 --- a/jiuyi2/components/public/jy-commodity-address/index.vue +++ b/jiuyi2/components/public/jy-commodity-address/index.vue @@ -1,3 +1,59 @@ + + - - \ No newline at end of file diff --git a/jiuyi2/components/public/regionSelection/regionSelection.vue b/jiuyi2/components/public/regionSelection/regionSelection.vue index 4f96395a..0c00af3b 100644 --- a/jiuyi2/components/public/regionSelection/regionSelection.vue +++ b/jiuyi2/components/public/regionSelection/regionSelection.vue @@ -23,13 +23,13 @@ // 传参 const props = defineProps({ province: { - type: [String,Number], + type: [String, Number], }, city: { - type: [String,Number], + type: [String, Number], }, area: { - type: [String,Number], + type: [String, Number], }, }) // 地区 @@ -60,17 +60,17 @@ // 初始化地区下标 function initRegionIndex() { - console.log('props', props) if (props.province) { - const provinceIndex = region.findIndex(item => item.id == props.province); + const provinceIndex = region.findIndex(item => item.regionName == props.province); regionIndex[0] = provinceIndex; if (props.city) { - const cityIndex = region[provinceIndex].children.findIndex(item => item.id == props.city); + const cityIndex = region[provinceIndex].children.findIndex(item => item.regionName == props.city); regionIndex[1] = cityIndex; if (props.area) { - const areaIndex = region[provinceIndex].children[cityIndex].children.findIndex(item => item.id == + const areaIndex = region[provinceIndex].children[cityIndex].children.findIndex(item => item + .regionName == props.area); regionIndex[2] = areaIndex; } @@ -159,14 +159,16 @@ + + \ No newline at end of file diff --git a/jiuyi2/pages/shop/store/order.vue b/jiuyi2/pages/shop/store/order.vue new file mode 100644 index 00000000..0757d2e1 --- /dev/null +++ b/jiuyi2/pages/shop/store/order.vue @@ -0,0 +1,173 @@ + + + + + \ No newline at end of file diff --git a/jiuyi2/readme.md b/jiuyi2/readme.md index b7fcff28..5d1d0c16 100644 --- a/jiuyi2/readme.md +++ b/jiuyi2/readme.md @@ -59,7 +59,7 @@ updateVideo 触发视频修改 collectsVideo 收藏夹视频端 commentVideo 视频评论 deleteVideo 删除视频 - +selectAddress 选择地址 缓存 --- @@ -69,6 +69,7 @@ alarmAlt 闹铃 + gitlab --- 前端地址 @@ -376,8 +377,11 @@ call_type 通话类型 2为视频,1是音频 "likeStatus": "1" // 1 公开赞 2私有赞 0 没有赞 - type 0 非好友 1 好友 +生成订单到平台客服 平台客服去跟进订单 + + + diff --git a/jiuyi2/static/customer-service1.png b/jiuyi2/static/customer-service1.png index ae2eeb6f13e310110360145ab554f30ff3deb134..ab3623e9026c4b8ed98762ab8251a3fe5bd571d1 100644 GIT binary patch delta 635 zcmV->0)+kG0*wVBiBL{Q4GJ0x0000DNk~Le0000P0000L2nGNE0JAGa7?B|#e*!m2 zL_t(YiLI4QQW{Ydg}?IvopyH63`A#<6{ssny91~Sq#S8h0Ia~u$Wl@TSwV0GAu9;Z z04Hw;VH(r)&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