优化规格选择
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user