Skip to content

Commit

Permalink
chores: render origin list
Browse files Browse the repository at this point in the history
  • Loading branch information
thuongtruong1009 committed May 5, 2022
1 parent b0ff33f commit 7c8f246
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pages/seller/product/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ meta:

<script setup>
import { removeItemByIndex } from '~/utils/arrayHandle'
import countries from '~/shared/countries'
useHead({
title: 'seller | new product',
})
const goBack = () => {
history.back()
}
const categoryList1 = ref([1, 2])
const categoryList2 = ref([1, 2])
const discountList = ref([1])
Expand Down Expand Up @@ -132,8 +138,8 @@ const discountList = ref([1])
<div>
<label>Origin</label>
<select name="origin">
<option value="vn">
VietNam
<option v-for="(country, i) in countries" :key="i" :value="country">
{{ country }}
</option>
</select>
</div>
Expand Down Expand Up @@ -378,7 +384,7 @@ const discountList = ref([1])
</form>
</div>
<div class="flex justify-end text-md gap-5">
<button class="inline rounded-md bg-white hover:bg-[#F6F6F6] px-3 py-1.5 text-gray-600 border-1 border-[#e9e9e9] flex items-center gap-1">
<button class="inline rounded-md bg-white hover:bg-[#F6F6F6] px-3 py-1.5 text-gray-600 border-1 border-[#e9e9e9] flex items-center gap-1" @click="goBack">
<IARemove />Cancel
</button>
<button class="inline rounded-md bg-[#EE4D2D] hover:bg-[#E54A2B] px-3 py-1.25 text-white border-1 border-[#e9e9e9] flex items-center gap-1">
Expand Down

0 comments on commit 7c8f246

Please sign in to comment.