|
|
@@ -13,7 +13,7 @@
|
|
|
<view class="app-price app-bold" v-if="data.priceType == 1">
|
|
|
<text>¥</text>
|
|
|
<text class="app-size-34">{{
|
|
|
- data.price ? parseFloat(data.price) : 0
|
|
|
+ data.price ? parseFloat(data.price).toFixed(2) : 0
|
|
|
}}</text>
|
|
|
</view>
|
|
|
<view class="tui-pro-titbox">
|
|
|
@@ -212,25 +212,26 @@ export default {
|
|
|
// #endif
|
|
|
},
|
|
|
goChat(){
|
|
|
- if(parseInt(this.loginInfo.id) <= 0){
|
|
|
- this.$msg("数据异常,请稍后再试");
|
|
|
+ if(isNaN(parseInt(this.loginInfo.id))){
|
|
|
+ this.$msg("登录用户数据异常,请稍后再试");
|
|
|
return;
|
|
|
}
|
|
|
- if(parseInt(this.customId) <= 0){
|
|
|
- this.$msg("数据异常,请稍后再试");
|
|
|
+ if(isNaN(parseInt(this.customId))){
|
|
|
+ this.$msg("客户数据异常,请稍后再试");
|
|
|
return;
|
|
|
}
|
|
|
- if(parseInt(this.shopInfo.shopAdminId) <= 0){
|
|
|
- this.$msg("数据异常,请稍后再试");
|
|
|
- return;
|
|
|
- }
|
|
|
- if(parseInt(this.shopInfo.shopId) <= 0){
|
|
|
- this.$msg("数据异常,请稍后再试");
|
|
|
+ // if(isNaN(parseInt(this.shopInfo.shopAdminId))){ // 无需 staffId
|
|
|
+ // this.$msg("门店员工数据异常,请稍后再试");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ if(isNaN(parseInt(this.shopInfo.shopId))){
|
|
|
+ this.$msg("门店数据异常,请稍后再试");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
this.$util.pageTo({
|
|
|
url: "/pages/chat/chatPage",
|
|
|
- query: { userId: this.loginInfo.id, customId: this.customId, staffId: this.shopInfo.shopAdminId, shopId: this.shopInfo.shopId, name: this.loginInfo.name, avatar: this.loginInfo.avatar }
|
|
|
+ query: { userId: this.loginInfo.id, customId: this.customId, staffId: 0, shopId: this.shopInfo.shopId, name: this.loginInfo.name, avatar: this.loginInfo.avatar }
|
|
|
});
|
|
|
}
|
|
|
},
|