小程序评论页面制作

pull/68/head
Suk1No 1 month ago
parent b1f0793768
commit 3377bb4a87

@ -49,7 +49,7 @@
<view class="bottom">
<view @click="cancel(res,index)" v-if="res.status == '0'" class="exchange btn">
</view>
<view v-if="res.status == '2'" class="evaluate btn"></view>
<view @click="commentBtn" v-if="res.status == '2'" class="evaluate btn"></view>
</view>
</view>
<u-loadmore :status="loadStatus[index]" bgColor="#f2f2f2"></u-loadmore>
@ -58,6 +58,12 @@
</swiper-item>
</swiper>
</view>
<u-modal confirm-color="#F3AF28" :content-style="{padding: '10px'}" :show-cancel-button='true' title="评论"
:zoom="false" v-model="show" @confirm='confirmBtn' @cancel="cancelBtn">
<view style="height: 100px;">
<textarea placeholder="请输入评论" auto-height />
</view>
</u-modal>
</view>
</template>
@ -73,6 +79,12 @@
ref,
computed
} from 'vue'
//
const show = ref(false)
//
const commentBtn = () => {
show.value = true
}
const tabs = ref(null);
const orderList = ref([
[],
@ -198,6 +210,16 @@
}
});
}
//
const confirmBtn = () => {
console.log('确定')
show.value = false
}
//
const cancelBtn = () => {
console.log('取消')
show.value = false
}
onReady(() => {
getOrderList(0);
})

Loading…
Cancel
Save