当前位置:网站首页>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>
边栏推荐
- Ten commandments of self-learning in machine learning
- The cloud native data lake has passed the evaluation and certification of the ICT Institute with its storage, computing, data management and other capabilities
- Thinkphp3 count ` *'problem
- Arm immediate
- Is it safe to open an account and buy stocks? Who knows
- The R language cartools package divides data, the scale function scales data, and the NaiveBayes function of e1071 package constructs a naive Bayesian model
- SQL function summary
- Tidb common commands
- ECSHOP whole site custom URL supports directory type
- Why can't you Ping the website but you can access it?
猜你喜欢

Windows下MySQL的安装和删除

Why do we do autocorrelation analysis? Explain application scenarios and specific operations

Dark horse shopping mall ---8 Microservice gateway and JWT token

ECSHOP quickly purchases goods, simplifies the shopping process, and improves the user experience through one-step shopping

Upgrade opsenssh to 8.8p1

15. Notes on the button style of WPF

ECSHOP commodity wholesale multi attribute multi specification multi inventory batch purchase ECSHOP wholesale plug-in ECSHOP multi attribute order

黑马畅购商城---3.商品管理

flutter常用命令及问题

What are redis avalanche, penetration and breakdown?
随机推荐
A commonly used statistical modeling method -- difference analysis
apple 为什么要改 objc_msgSend 的类型申明
sklearnex 让你的 sklearn 机器学习模型训练快得飞起?
Learning notes 2022 overview | automatic graph machine learning, describing AGML methods, libraries and directions
R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、epiDisplay包的poisgof函数对拟合的泊松回归模型进行拟合优度检验(检验模型效果)
Network | indicators and test methods to measure the quality of the network
ECSHOP commodity page multi-attribute batch purchase plug-ins ECSHOP wholesale plug-ins multi-attribute order placing, multi-attribute batch purchase of commodities
MYSQL中对复杂JSON的更新
2022 meisai D topic ideas sharing + translation
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
Today, I will explain to you what is DFI and its development prospects
黑马畅购商城---8.微服务网关Gateway和Jwt令牌
Arm immediate
黑馬暢購商城---3.商品管理
Uncover gaussdb (for redis): comprehensive comparison of CODIS
plt.gca()画框及打标签
Gradle knowledge points
How to use SPSS to do grey correlation analysis? Quick grasp of hand-to-hand Teaching
JS monitors the width and height changes of div
Image tagging to obtain the coordinates of the image in the ImageView