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 ae2eeb6f..ab3623e9 100644 Binary files a/jiuyi2/static/customer-service1.png and b/jiuyi2/static/customer-service1.png differ diff --git a/jiuyi2/static/share2.png b/jiuyi2/static/share2.png index d12cd897..2537d1c1 100644 Binary files a/jiuyi2/static/share2.png and b/jiuyi2/static/share2.png differ diff --git a/jiuyi2/vite.config.js b/jiuyi2/vite.config.js index 5f1de332..739ef151 100644 --- a/jiuyi2/vite.config.js +++ b/jiuyi2/vite.config.js @@ -10,32 +10,32 @@ export default defineConfig({ port: 5173, proxy: { "/system": { - // target: "http://192.168.0.104:8080", + // target: "http://192.168.0.189:8080", target: "http://192.168.0.107:8080", changeOrigin: true, }, "/shopify": { - // target: "http://192.168.0.104:8080", + // target: "http://192.168.0.189:8080", target: "http://192.168.0.107:8080", changeOrigin: true, }, "/user": { - // target: "http://192.168.0.104:8080", + // target: "http://192.168.0.189:8080", target: "http://192.168.0.107:8080", changeOrigin: true, }, "/coreplay": { - // target: "http://192.168.0.104:8080", + // target: "http://192.168.0.189:8080", target: "http://192.168.0.107:8080", changeOrigin: true, }, "/file": { - // target: "http://192.168.0.104:8080", + // target: "http://192.168.0.189:8080", target: "http://192.168.0.107:8080", changeOrigin: true, }, "/video": { - // target: "http://192.168.0.104:8080", + // target: "http://192.168.0.189:8080", target: "http://192.168.0.107:8080", changeOrigin: true, },