|
|
@@ -104,7 +104,12 @@
|
|
|
</view>
|
|
|
<view class="line-height"></view>
|
|
|
</scroll-view>
|
|
|
+
|
|
|
+ <view class="float-kefu" @click="kfPop">
|
|
|
+ <image src="/static/tabbar/kf.png"></image>
|
|
|
+ </view>
|
|
|
<halfLogin ref="loginCom" @success="loginSuccess"></halfLogin>
|
|
|
+ <kfService ref="kfService"></kfService>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -146,6 +151,22 @@ export default {
|
|
|
toLogin(){
|
|
|
app.$refs.loginCom.open();
|
|
|
},
|
|
|
+ async kfPop(){
|
|
|
+ if (!app.isLogin) {
|
|
|
+ app.$refs.loginCom.open();
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ var resp = await app.$api.goods.check.get();
|
|
|
+ if (resp.code == 0) {
|
|
|
+ return app.$dialog.showSuccess(resp.msg);
|
|
|
+ }
|
|
|
+ if (resp.data.user == 0) {
|
|
|
+ app.$refs.loginCom.open(2);
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ const data = uni.getStorageSync("contact");
|
|
|
+ app.$refs.kfService.open(data);
|
|
|
+ },
|
|
|
orderStatus(state) {
|
|
|
app.orderState = state
|
|
|
app.orderList = [];
|
|
|
@@ -202,6 +223,8 @@ export default {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
+.float-kefu{position: fixed;right: 20upx;bottom: 15%;width: 100upx;height: 100upx;background-color: #fff;border-radius: 100%;display: flex;align-items: center;justify-content: center;}
|
|
|
+.float-kefu image{width: 60upx;height: 60upx;}
|
|
|
.empty-body{
|
|
|
display: flex;align-items: center;justify-content: center;flex-direction: column;height: calc(100vh - 100upx);
|
|
|
.imgs{
|