优化规格选择

This commit is contained in:
gyq
2024-03-14 15:58:56 +08:00
parent d83b593db1
commit dc306aeff0
5 changed files with 28 additions and 45 deletions

View File

@@ -123,9 +123,15 @@ async function checkPayStauts() {
try {
const res = await queryOrder({ orderId: props.orderId })
if (res.status == 'closed') {
ElMessage.success('支付成功')
emits('success')
return
} if (res.status == 'paying') {
ElMessage.warning('用户支付中...')
return
} else {
ElMessage.error(res.payRemark || '支付失败!')
return
}
} catch (error) {
console.log(error)

View File

@@ -56,7 +56,7 @@
</template>
<script setup>
import { ref, onMounted } from 'vue'
import { ref } from 'vue'
import _ from 'lodash'
import skuModal from '@/components/skuModal.vue'
@@ -76,7 +76,7 @@ const emit = defineEmits(['success'])
const skuModalRef = ref(null)
const shopListType = ref('img')
const shopListType = ref('text')
const categoryId = ref('')
const categorys = ref([])
@@ -172,7 +172,7 @@ async function productqueryCommodityInfoAjax() {
categoryId: categoryId.value,
commdityName: commdityName.value,
page: 1,
pageSize: 1000,
pageSize: 500,
masterId: props.masterId
})
goodsList.value = res
@@ -195,6 +195,22 @@ defineExpose({
</script>
<style scoped lang="scss">
.loading_wrap {
display: flex;
justify-content: center;
padding: 20px 0;
color: #999;
.loading {
display: flex;
align-items: center;
.icon {
font-size: 20px;
}
}
}
.popover_wrap {
display: flex;
flex-wrap: wrap;

View File

@@ -105,8 +105,8 @@ const rules = reactive({
const submitHandle = () => {
formRef.value.validate(async (valid) => {
if (valid) {
loading.value = true;
store.userlogin(form).then((res) => {
loading.value = true;
ElMessage.success("登录成功");
setTimeout(() => {
router.replace({