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 @@
+
+
@@ -18,36 +74,12 @@
-
+
选择地址
-
-
\ 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 @@
-
- {{province.regionName}}
- {{city.regionName}}
- {{area.regionName}}
-
-
- 请选择产品所在地
-
+
+
+ {{province.regionName}}
+ {{city.regionName}}
+ {{area.regionName}}
+
+
+ 请选择产品所在地
+
+
-
+
限时直降0.5元
@@ -142,12 +171,6 @@
-
- 全场包邮
-
-
- 48h内发货
-
假一赔十
@@ -155,6 +178,12 @@
7天无理由退货
+ 全场包邮
+
+
+ 48h内发货
+
+
支持先用后付
@@ -216,14 +245,14 @@
- 家纺专营店
+ {{detail.merName}}
-
+
123关注
@@ -233,7 +262,7 @@
-
+
已
关注
@@ -247,8 +276,7 @@
-
+
diff --git a/jiuyi2/pages/shop/continue-pay/index.vue b/jiuyi2/pages/shop/continue-pay/index.vue
index ecd88964..9971a0ba 100644
--- a/jiuyi2/pages/shop/continue-pay/index.vue
+++ b/jiuyi2/pages/shop/continue-pay/index.vue
@@ -17,6 +17,7 @@
const paytype = ref('1')
// 支付方式列表
+ // 要么先用积分 要么用余额 不够的话 全部的积分和剩下的余额 在个人中心增加一个优先支付的选项
const paytypeList = [{
name: '微信支付',
value: '1',
diff --git a/jiuyi2/pages/shop/settle.vue b/jiuyi2/pages/shop/settle.vue
index 36efdb4f..7da00928 100644
--- a/jiuyi2/pages/shop/settle.vue
+++ b/jiuyi2/pages/shop/settle.vue
@@ -27,6 +27,8 @@
import util from '@/common/js/util.js'
// 选择省市区
import regionSelection from '@/components/public/regionSelection/regionSelection.vue';
+ // 二级密码验证
+ import payPwd from '@/components/mine/payPwd.vue'
//
const store = useStore()
const {
@@ -49,6 +51,8 @@
const dictList = reactive([])
// 选择下标分类
const dictIndex = ref('')
+ // 二级密码回调
+ const pwdCb = ref('')
// 用户信息
const userinfo = computed(() => {
return store.state.userinfo
@@ -60,7 +64,8 @@
})
onReady(() => {
- // proxy.$refs.regionSelectionRef.open()
+ // 测试缴纳接口
+ callPwd('depositsPay')
})
// 获取表单信息
@@ -173,24 +178,8 @@
})
}
- // 商家取消押金
- function depositsCancel() {
- api.shop.depositsCancel().then(rs => {
- if (rs.code == 200) {
- // 修改状态 变为待缴纳
- mode.code = 0
- return
- }
- util.alert({
- showCancel: false,
- content: rs.msg,
- })
- })
- }
-
// 获取文章
function getarticle() {
-
api.getArticle({
query: {
agreementId: 4,
@@ -221,9 +210,7 @@
form[key] = rs.value
break
case 2:
- console.log('form[key]', form[key])
form[key].push(rs.value)
- console.log('form[key]', form[key])
break
}
},
@@ -249,9 +236,9 @@
*/
function handleRegion(ev) {
console.log('handleRegion', ev)
- form.province = ev.province.id
- form.city = ev.city.id
- form.district = ev.area.id
+ form.province = ev.province.regionName
+ form.city = ev.city.regionName
+ form.district = ev.area.regionName
}
/**
@@ -336,24 +323,52 @@
}
// 退出缴纳押金
- function outDepositsPay() {
+ function outDepositsPayAlt() {
util.alert({
content: '确认缴纳押金并放弃商家身份?',
}).then(rs => {
- if (rs.confirm) return
- api.shop.outDepositsPay().then(rs => {
- if (rs.code == 200) {
- // 修改状态 变为待缴纳
- handleModeCode(0)
- return
- }
- util.alert({
- showCancel: false,
- content: rs.msg,
- })
+ if (!rs.confirm) return
+ // 调用二级密码
+ callPwd('outDepositsPay')
+ })
+ }
+
+ // 商家退出押金
+ function outDepositsPay() {
+ // 商家退出押金
+ api.shop.outDepositsPay().then(rs => {
+ if (rs.code == 200) {
+ // 修改状态 变为待缴纳
+ handleModeCode(0)
+ return
+ }
+ util.alert({
+ showCancel: false,
+ content: rs.msg,
})
})
}
+
+ /**
+ * 调用二级密码
+ * @param {Object} key 后续方法key
+ */
+ function callPwd(key) {
+ pwdCb.value = {
+ // 缴纳押金
+ 'depositsPay': depositsPay,
+ // 取消押金并退出商家身份
+ 'outDepositsPay': outDepositsPay,
+ } [key]
+ // 拉起弹窗
+ proxy.$refs.payPwdRef.open()
+ }
+
+ // 二级密码验证
+ function handlePayPwd() {
+ // 执行二级密码确认回调
+ pwdCb.value()
+ }
@@ -374,11 +389,11 @@
- 缴纳押金
+ 缴纳押金
- 退回押金
+ 退回押金
申请入驻
@@ -400,7 +415,7 @@
- 取消申请并退回押金
+ 取消申请并退回押金
@@ -423,7 +438,7 @@
- 退回押金
+ 退回押金
修改信息
@@ -440,7 +455,7 @@
- 退回押金并放弃商家身份
+ 退回押金并放弃商家身份
@@ -550,12 +565,14 @@
- 退回押金
+ 退回押金
申请入驻
+
+
\ 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,
},