tianyi 3 weeks ago
parent
commit
76fabb80a4
  1. 53
      pages/index/index.vue

53
pages/index/index.vue

@ -513,7 +513,17 @@
</view>
</view>
</uni-popup>
<!-- 参团成功提示弹出层 -->
<uni-popup ref="tishiPopup" background-color="#fff">
<view class="tishi-popup">
<view class="tishi-copy">
<view class="tishi-copy-title">抢单成功</view>
<view class="tishi-copy-desc">
点击下方<text class="tishi-copy-highlight">"配送"</text>按钮即可开始送单啦
</view>
</view>
</view>
</uni-popup>
<tab-bar ref="tabBar" :width="width" @tab-index="changeIndex" :currentIndex="currentIndex"></tab-bar>
</view>
</template>
@ -964,7 +974,7 @@
if (res.code == 200) {
that.resetSwipeOrder();
if (!uni.getStorageSync('worker') && res.result != null) {
that.tui.toast(res.message + '点击下方"配送"即可开始送单啦!');
this.$refs.tishiPopup.open()
uni.setStorageSync('worker', res.result)
}else{
that.tui.toast(res.message);
@ -2742,4 +2752,43 @@
font-weight: 700;
color: #000;
}
.tishi-popup{
background:url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/629843c61a014d69bf3a1195f51a898b.png') no-repeat;
width: 300px;
height: 285px;
box-sizing: border-box;
background-size: 100% 100%;
position: relative;
text-align: center;
}
.tishi-copy {
position: absolute;
top: 72px;
left: 46px;
width: 194px;
}
.tishi-copy-title {
color: #21443c;
font-size: 16px;
font-weight: 900;
line-height: 23px;
letter-spacing: 0.2px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.tishi-copy-desc {
margin-top: 13px;
color: #6d7d78;
font-size: 14px;
font-weight: 700;
line-height: 21px;
letter-spacing: 0.1px;
}
.tishi-copy-highlight {
color: #ff7043;
font-weight: 900;
}
</style>
Loading…
Cancel
Save