当前位置:网站首页>Qiantang Pingou source code -- Qiantang Pingou app system development source code sharing
Qiantang Pingou source code -- Qiantang Pingou app system development source code sharing
2022-06-25 12:27:00 【Procedure 15528175269】
Qiantang shopping system development source code sharing :
<template>
<div class="bargain-record" ref="container">
<div class="item" v-for="(item, index) in bargain" :key="index">
<div class="picTxt acea-row row-between-wrapper">
<div class="pictrue"><img :src="item.image" /></div>
<div class="text acea-row row-column-around">
<div class="line1">{
{ item.title }}</div>
<count-down
:is-day="true"
:tip-text="' count down '"
:day-text="' God '"
:hour-text="' when '"
:minute-text="' branch '"
:second-text="' second '"
:datatime="item.datatime"
></count-down>
<div class="money font-color-red">
Cut to <span class="symbol">¥</span
><span class="num">{
{ item.residue_price }}</span>
</div>
</div>
</div>
<div class="bottom acea-row row-between-wrapper">
<div class="purple" v-if="item.status === 1"> The activity is in progress </div>
<div class="success" v-else-if="item.status === 3"> The bargain was successful </div>
<div class="end" v-else> The event is over </div>
<div class="acea-row row-middle row-right">
<div
class="bnt cancel"
v-if="item.status === 1"
@click="getBargainUserCancel(item.bargain_id)"
>
Cancel the activity
</div>
<div
class="bnt bg-color-red"
v-if="item.status === 1"
@click="goDetail(item.bargain_id)"
>
Continue bargaining
</div>
<div class="bnt bg-color-red" v-else @click="goList"> Reopen one </div>
</div>
</div>
</div>
<Loading :loaded="status" :loading="loadingList"></Loading>
</div>
</template>
<script>
import CountDown from "@components/CountDown";
import { getBargainUserList, getBargainUserCancel } from "@api/activity";
import Loading from "@components/Loading";
export default {
name: "BargainRecord",
components: {
CountDown,
Loading
},
props: {},
data: function() {
return {
bargain: [],
status: false, // Whether the bargaining list has been obtained false Hang in the air true complete
loadingList: false, // Whether the current interface requests completion false complete true Hang in the air
page: 1, // Page number
limit: 20 // Number
};
},
mounted: function() {
this.getBargainUserList();
this.$scroll(this.$refs.container, () => {
!this.loadingList && this.getBargainUserList();
});
},
methods: {
goDetail: function(id) {
this.$router.push({
path: "/activity/dargain_detail/" + id + "/0"
});
},
goList: function() {
this.$router.push({
path: "/activity/bargain"
});
},
getBargainUserList: function() {
var that = this;
if (that.loadingList) return;
if (that.status) return;
getBargainUserList({ page: that.page, limit: that.limit })
.then(res => {
that.status = res.data.length < that.limit;
that.bargain.push.apply(that.bargain, res.data);
that.page++;
that.loadingList = false;
})
.catch(res => {
that.$dialog.error(res.msg);
});
},
getBargainUserCancel: function(bargainId) {
var that = this;
getBargainUserCancel({ bargainId: bargainId })
.then(res => {
that.$dialog.success(res.msg).then(() => {
that.status = false;
that.loadingList = false;
that.page = 1;
that.bargain = [];
that.getBargainUserList();
});
})
.catch(res => {
that.$dialog.error(res.msg);
});
}
}
};
</script>
边栏推荐
- R language uses ordinal or. The display function obtains the summary statistical information of the ordered logistic regression model (the odds ratio and its confidence interval corresponding to the v
- Thinkphp3 use phpword to modify the template and download it
- R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用summary函数获取模型汇总统计信息
- Explain AHP in human language (very detailed principle + simple tool implementation)
- 黑馬暢購商城---3.商品管理
- Rank sum ratio comprehensive evaluation method for common models in mathematical modeling
- What are redis avalanche, penetration and breakdown?
- plt.gca()画框及打标签
- 【数据中台】数据中台的OneID是个什么鬼,主数据它不香吗?
- JS to realize the calculation of discrete aggregation points
猜你喜欢

20. MVVM command binding of WPF

Dark horse shopping mall ---3 Commodity management

Full nanny tutorial of Market Research Competition (experience sharing)

Upgrade opsenssh to 8.8p1

devsecops与devops的理解与建设

The cloud native data lake has passed the evaluation and certification of the ICT Institute with its storage, computing, data management and other capabilities
![[论]Learning Dynamic and Hierarchical Traffic Spatiotemporal Features with Transformer](/img/58/d68112a3d019de66150e2f5102f436.png)
[论]Learning Dynamic and Hierarchical Traffic Spatiotemporal Features with Transformer
![[oceanbase] Introduction to oceanbase and its comparison with MySQL](/img/1c/bd2bcddb7af4647407d2bc351f5f5d.png)
[oceanbase] Introduction to oceanbase and its comparison with MySQL

An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down

ECSHOP upload video_ ECSHOP video list, video classification, video related product guide
随机推荐
黑马畅购商城---2.分布式文件存储FastDFS
An example of using dynamic datalist
Update of complex JSON in MySQL
Gradle knowledge points
Gradle知识点
R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、epiDisplay包的poisgof函数对拟合的泊松回归模型进行拟合优度检验(检验模型效果)
confluence7.4. X upgrade record
SQL function summary
Is it safe to open an account and buy stocks on the Internet?
apple 为什么要改 objc_msgSend 的类型申明
R language dplyr package filter function filters the data rows in the specified list whose contents in the dataframe data are not (not equal to one of the specified vectors)
Explain factor analysis in simple terms, with case teaching (full)
Why should Apple change objc_ Type declaration for msgsend
黑马畅购商城---1.项目介绍-环境搭建
Why can't you Ping the website but you can access it?
Is it safe to open an account and buy stocks? Who knows
R语言dplyr包summarise_at函数计算dataframe数据中多个数据列(通过向量指定)的计数个数、均值和中位数、在每个函数内部指定na.rm参数、通过list指定函数列表
2022 meisai D topic ideas sharing + translation
ECSHOP whole site custom URL supports directory type
How do super rookies get started with data analysis?