登录方式重构

This commit is contained in:
Aaron
2021-07-19 19:37:35 +08:00
parent 79305d7497
commit b196b5237d
21 changed files with 858 additions and 323 deletions

View File

@ -38,8 +38,8 @@
<text class="num" v-text="bargainHelpCount.remainingPrice"></text>
</view>
<view class="acea-row row-middle">
<view class="successNum" v-text="'原价' + goodsDetail.price"></view>
<view class="successNum" v-text="'已有' + bargainSumCount + '人砍价成功'"></view>
<view class="successNum" v-text="`原价:${goodsDetail.price || 0}`"></view>
<view class="successNum" v-text="`已有${bargainSumCount || 0}人砍价成功`"></view>
</view>
</view>
</view>
@ -51,9 +51,9 @@
<!-- 砍价进度条下的金额 -->
<view class="balance acea-row row-between-wrapper">
<view v-text="'已砍' + bargainHelpCount.alreadyPrice + '元'"></view>
<view v-text="`已砍${bargainHelpCount.alreadyPrice || 0}元`"></view>
<view v-if="bargainHelpCount.price === 0">砍价成功</view>
<view v-else v-text="'还剩' + bargainHelpCount.price + '元'"></view>
<view v-else v-text="`还剩${bargainHelpCount.price || 0}元`"></view>
</view>
<!-- 砍价成功:-->

View File

@ -213,7 +213,10 @@ export default {
height: 210rpx;
position: fixed;
left: 0;
top: 0;
/* #ifdef H5 */
top: 80rpx;
/* #endif */
z-index: 1;
}
@ -222,7 +225,10 @@ export default {
height: 120rpx;
position: fixed;
left: 0;
top: 0;
/* #ifdef H5 */
top: 80rpx;
/* #endif */
z-index: 3;
overflow: hidden;
}

View File

@ -7,11 +7,11 @@
<view class="tui-price__box">
<view class="tui-goods-price">
<view class="tui-size-24">¥</view>
<view class="tui-price-large">{{ storeCombination.price.split('.')[0] }}</view>
<view class="tui-size-24">.{{ storeCombination.price.split('.')[1] }}</view>
<view class="tui-price-large">{{ storeCombination.price.split('.')[0] || 0 }}</view>
<view class="tui-size-24">.{{ storeCombination.price.split('.')[1] || 0 }}</view>
<!-- <text>已拼2020件</text> -->
</view>
<view class="tui-price-tag">{{ storeCombination.people }}人团</view>
<view class="tui-price-tag">{{ storeCombination.people || 0 }}人团</view>
</view>
</view>
</view>
@ -96,15 +96,14 @@ export default {
}
},
},
mounted: function() {
var that = this
mounted() {
let url = handleQrCode()
if (url) {
that.pinkId = url.pinkId
this.pinkId = url.pinkId
} else {
that.pinkId = that.$yroute.query.id
this.pinkId = this.$yroute.query.id
}
that.getCombinationPink()
this.getCombinationPink()
},
methods: {
pay: function() {

View File

@ -18,22 +18,21 @@
name: "Poster",
components: {},
props: {},
data: function () {
data () {
return {
status: true,
id: 0,
image: ""
};
},
mounted: function () {
var that = this;
var id = that.$yroute.query.id;
var type = that.$yroute.query.type;
that.id = id;
mounted () {
var id = this.$yroute.query.id;
var type = this.$yroute.query.type;
this.id = id;
if (type == 2) {
that.getBargainPoster();
this.getBargainPoster();
} else {
that.getCombinationPoster();
this.getCombinationPoster();
}
},
methods: {