diff --git a/src/views/order/component/order.vue b/src/views/order/component/order.vue index 2205b5f..a81baaf 100644 --- a/src/views/order/component/order.vue +++ b/src/views/order/component/order.vue @@ -123,8 +123,8 @@ onUnmounted(() => { - 重置 + :clearable="false" style="width: 10rem; margin: 0 0 0 1rem" /> +
diff --git a/src/views/user/component/detail.vue b/src/views/user/component/detail.vue index 7b232f9..a53d658 100644 --- a/src/views/user/component/detail.vue +++ b/src/views/user/component/detail.vue @@ -39,7 +39,7 @@ const toPay = () => { }); payRef.value.drawer = true; } -const paySuccess = (e=null) => { +const paySuccess = (e = null) => { getUserInfo(); // mitt.emit('re-load-user-list', e ? true : false); } @@ -66,27 +66,27 @@ const cancelUserShip = () => { updateShip.value = false; } -const updateLable = ref(false); -const userLable = ref([]); -const getLableList = () => { - userLabelListApi().then(res => { - userLable.value = res.data.lists; - }) -} -getLableList() -const updateUserLable = () => { - userLabelUpdateApi({ - id: formData.value.id, - label_id: formData.value.label_id - }).then(res => { - ElMessage.success('修改成功'); - formData.value.label_name = userLable.value.find(item => item.label_id == formData.value.label_id)?.label_name; - updateLable.value = false; - }) -} -const cancelLable = () => { - updateLable.value = false; -} +// const updateLable = ref(false); +// const userLable = ref([]); +// const getLableList = () => { +// userLabelListApi().then(res => { +// userLable.value = res.data.lists; +// }) +// } +// getLableList() +// const updateUserLable = () => { +// userLabelUpdateApi({ +// id: formData.value.id, +// label_id: formData.value.label_id +// }).then(res => { +// ElMessage.success('修改成功'); +// formData.value.label_name = userLable.value.find(item => item.label_id == formData.value.label_id)?.label_name; +// updateLable.value = false; +// }) +// } +// const cancelLable = () => { +// updateLable.value = false; +// } const addressInfo = ref({ @@ -272,14 +272,14 @@ const onOutAll = () => { // onOutPut(); } // 发送短信验证码 -const onSendCode = ()=>{ +const onSendCode = () => { console.log('发送短信验证码'); ElMessage.success("验证码已发送"); } // 出库 const onOutPut = () => { - if(outForm.value.code == '') return ElMessage.error("请输入验证码") + if (outForm.value.code == '') return ElMessage.error("请输入验证码") userProductStorageSupplyApi({ uid: formData.value.id, info: info @@ -291,7 +291,7 @@ const onOutPut = () => { }) } -const getUserInfo = ()=>{ +const getUserInfo = () => { userDetailApi({ id: formData.value.id }).then(({ data }) => { @@ -301,6 +301,20 @@ const getUserInfo = ()=>{ }) } +// 成为会员 +const dialogFormShip = ref(false); +const shipForm = ref({ + user_ship: '', + limit: '', + money: '', +}) +const onUpdateShip = ()=>{ + console.log('变化', shipForm.value.money); +} +const changeShip = (e)=>{ + console.log('changeShip', shipForm.value.user_ship, e); +} + onMounted(() => { mitt.on("set-user-detail", (res) => { formData.value = res; @@ -405,7 +419,7 @@ onUnmounted(() => {
-
用户标签:
@@ -435,7 +449,7 @@ onUnmounted(() => { 取消
-
+ -->
用户地址:
{ @click="updateAddress">确认 取消
+ 成为会员 -
供销经营礼包首次购买1000元以上成为行业会员
+
@@ -483,8 +498,8 @@ onUnmounted(() => {
- - + + + + + + + + + + + + + + + + + + + + + + @@ -681,6 +724,13 @@ onUnmounted(() => { margin: 0.5rem; } } + + .big-btn { + margin-top: 1rem; + width: 100%; + height: 3rem; + border-radius: 3rem; + } } .footer { @@ -717,5 +767,15 @@ onUnmounted(() => { /* 防止输入框在聚焦时出现阴影或特殊样式 */ box-shadow: none; } + + .ship-input{ + width: 100%; + text-align: center; + font-size: 2rem; + border: 0.2rem solid #67c23a !important; + padding: 1rem 0 !important; + color: #67c23a; + border-radius: 0.5rem; + } }