|
@@ -49,6 +49,11 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="cu-list grid col-3 no-border margin-top">
|
|
|
+ <view class="cu-item text-center" @click="showAgent">
|
|
|
+ <image class="myicon" :src="$getImageUrl('static/images/applet/broker/agent.png')"
|
|
|
+ style="width: 50rpx;height: 50rpx;"></image>
|
|
|
+ <text>门店信息</text>
|
|
|
+ </view>
|
|
|
<view class="cu-item text-center" @click="goNavPage('/pages/broker/broker')">
|
|
|
<image class="myicon" :src="$getImageUrl('static/images/applet/broker/code.png')"
|
|
|
style="width: 50rpx;height: 50rpx;"></image>
|
|
@@ -66,6 +71,22 @@
|
|
|
<text>悬赏报备记录</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="cu-modal" :class="modalName=='agentModal'?'show':''">
|
|
|
+ <view class="cu-dialog">
|
|
|
+ <view class="cu-bar bg-white justify-end">
|
|
|
+ <view class="content">我的门店</view>
|
|
|
+ <view class="action" @tap="hideModal">
|
|
|
+ <text class="cuIcon-close text-red"></text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="padding-xl text-left text-lg">
|
|
|
+ <view>门店名:{{statistics.agent.title}}</view>
|
|
|
+ <view class="margin-top-sm">联系人:{{statistics.agent.realname}}</view>
|
|
|
+ <view class="margin-top-sm">电话:{{statistics.agent.mobile}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -81,14 +102,15 @@
|
|
|
income: 0,
|
|
|
user: 0,
|
|
|
worker: 0,
|
|
|
+ agent: {},
|
|
|
},
|
|
|
+ modalName: '',
|
|
|
};
|
|
|
},
|
|
|
onLoad: function() {
|
|
|
_this = this;
|
|
|
_this.userinfo = uni.getStorageSync('userinfo') || false;
|
|
|
_this.brokerinfo = uni.getStorageSync('brokerinfo') || false;
|
|
|
- console.log("经纪人", _this.brokerinfo)
|
|
|
if (_this.userinfo === false || _this.brokerinfo === false) {
|
|
|
uni.reLaunch({
|
|
|
url: "/pages/my/my"
|
|
@@ -134,6 +156,12 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ hideModal: function(e) {
|
|
|
+ _this.modalName = null;
|
|
|
+ },
|
|
|
+ showAgent: function() {
|
|
|
+ _this.modalName = "agentModal";
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
income_title() {
|