|
|
@@ -2,14 +2,14 @@
|
|
|
<view class="center">
|
|
|
<view class="head">
|
|
|
<view class="left">
|
|
|
- <image :src="$globalData.publicUrl+infoData.cPortrait" mode=""></image>
|
|
|
+ <image :src="$globalData.publicUrl + infoData.cPortrait" mode=""></image>
|
|
|
</view>
|
|
|
<view class="middle">
|
|
|
<view class="name">
|
|
|
- {{infoData.cNickName}}
|
|
|
+ {{ infoData.cNickName || infoData.cName }}
|
|
|
</view>
|
|
|
<view class="address">
|
|
|
- {{address}}
|
|
|
+ {{ infoData.address }} {{ infoData.name }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="right" @click="goAddress">
|
|
|
@@ -74,27 +74,43 @@
|
|
|
其他功能
|
|
|
</view>
|
|
|
<view class="fun_box">
|
|
|
- <view class="function" @click="goOrder">
|
|
|
- <image src="/static/other/order.png" mode=""></image>
|
|
|
- <span class="order_num" v-if="orderNum>0">{{orderNum}}</span>
|
|
|
- 订单
|
|
|
- </view>
|
|
|
- <view class="function" @click="goFree">
|
|
|
- <image src="/static/other/set.png" mode=""></image>
|
|
|
- 设置免车费
|
|
|
- </view>
|
|
|
- <view class="function" @click="goEdit">
|
|
|
- <image src="/static/other/edit.png" mode=""></image>
|
|
|
- 编辑资料
|
|
|
- </view>
|
|
|
- <view class="function" @click="qrCodeShow">
|
|
|
- <image src="/static/other/code.png" mode=""></image>
|
|
|
- 我的分销码
|
|
|
- </view>
|
|
|
- <view class="function" @click="qrCodeShow">
|
|
|
- <image src="/static/other/contract.png" mode=""></image>
|
|
|
- 合同签订
|
|
|
- </view>
|
|
|
+ <u-grid :border="false" col="5">
|
|
|
+ <u-grid-item>
|
|
|
+ <view class="function" @click="goOrder">
|
|
|
+ <u-badge absolute
|
|
|
+ :value="orderNum"
|
|
|
+ :offset="[-4, -10]"
|
|
|
+ :customStyle="{ zIndex: 1 }"
|
|
|
+ ></u-badge>
|
|
|
+ <image src="/static/other/icon-order.png" mode=""></image>
|
|
|
+ <text>订单</text>
|
|
|
+ </view>
|
|
|
+ </u-grid-item>
|
|
|
+ <u-grid-item>
|
|
|
+ <view class="function" @click="goFree">
|
|
|
+ <image src="/static/other/icon-set.png" mode=""></image>
|
|
|
+ <text>设置免车费</text>
|
|
|
+ </view>
|
|
|
+ </u-grid-item>
|
|
|
+ <u-grid-item>
|
|
|
+ <view class="function" @click="goEdit">
|
|
|
+ <image src="/static/other/icon-edit.png" mode=""></image>
|
|
|
+ <text>编辑资料</text>
|
|
|
+ </view>
|
|
|
+ </u-grid-item>
|
|
|
+ <u-grid-item>
|
|
|
+ <view class="function" @click="qrCodeShow">
|
|
|
+ <image src="/static/other/icon-code.png" mode=""></image>
|
|
|
+ <text>我的分销码</text>
|
|
|
+ </view>
|
|
|
+ </u-grid-item>
|
|
|
+ <u-grid-item>
|
|
|
+ <view class="function" @click="qrCodeShow">
|
|
|
+ <image src="/static/other/icon-contract.png" mode=""></image>
|
|
|
+ <text>合同签订</text>
|
|
|
+ </view>
|
|
|
+ </u-grid-item>
|
|
|
+ </u-grid>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="work">
|
|
|
@@ -167,7 +183,6 @@
|
|
|
infoData: {},
|
|
|
cJsId: '',
|
|
|
onLine: '',
|
|
|
- address: '',
|
|
|
orderNum: 0,
|
|
|
isAddBlank: false,
|
|
|
active: 0,
|
|
|
@@ -209,7 +224,6 @@
|
|
|
getMerchantData(params).then(res => {
|
|
|
if (res.data.code == 200 && res.data.data) {
|
|
|
this.cJsId = res.data.data.id
|
|
|
- this.address = res.data.data.name
|
|
|
this.infoData = res.data.data
|
|
|
if (res.data.data.nStatus2 == '-1') { //未上岗
|
|
|
this.isWork = false
|
|
|
@@ -271,30 +285,13 @@
|
|
|
// 更换位置
|
|
|
goAddress() {
|
|
|
let str = uni.$u.queryParams({
|
|
|
+ id: this.cJsId,
|
|
|
name: this.infoData.cNickName,
|
|
|
phone: this.infoData.cPhone
|
|
|
});
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/address/virtual${str}`
|
|
|
});
|
|
|
- return;
|
|
|
- uni.chooseLocation({
|
|
|
- success: res => {
|
|
|
- this.address = res.address;
|
|
|
-
|
|
|
- let params = {
|
|
|
- name: res.name,
|
|
|
- address: this.address,
|
|
|
- latitude: res.latitude,
|
|
|
- longitude: res.longitude,
|
|
|
- cOpenId: uni.getStorageSync('wx_copenid')
|
|
|
- }
|
|
|
- // 更新商户的位置
|
|
|
- getJsLocation(params).then(res => {
|
|
|
- this.getData();
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
},
|
|
|
// 报警
|
|
|
onWarning() {
|
|
|
@@ -651,33 +648,16 @@
|
|
|
|
|
|
.fun_box {
|
|
|
width: 100%;
|
|
|
- display: flex;
|
|
|
- justify-content: space-around;
|
|
|
|
|
|
.function {
|
|
|
font-size: 24rpx;
|
|
|
color: #2F3437;
|
|
|
line-height: 28rpx;
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
align-items: center;
|
|
|
+ flex-direction: column;
|
|
|
position: relative;
|
|
|
|
|
|
- .order_num {
|
|
|
- position: absolute;
|
|
|
- top: -10rpx;
|
|
|
- right: -20rpx;
|
|
|
- // width: 30rpx;
|
|
|
- padding: 0px 10rpx;
|
|
|
- height: 30rpx;
|
|
|
- background-color: #fa3534;
|
|
|
- border-radius: 30rpx;
|
|
|
- color: #ffffff;
|
|
|
- display: flex;
|
|
|
- // align-items: center;
|
|
|
- justify-content: center;
|
|
|
- }
|
|
|
-
|
|
|
image {
|
|
|
width: 64rpx;
|
|
|
height: 64rpx;
|