|
|
@@ -51,6 +51,7 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<i @click="callUp" class="iconfont icondianhua1"></i>
|
|
|
+ <i @click.stop="navigate(userInfo.lat,userInfo.long,userInfo.customName)" class="iconfont icondianhua" style="font-size:47rpx;margin-left:16px;margin-right:9rpx;color:#3385ff;"></i>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -62,13 +63,6 @@
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({ url: '/admin/clear/customList',query: {customId: userInfo.id}})">
|
|
|
<div class="tui-title">历史帐单</div>
|
|
|
</tui-list-cell>
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title">拉黑</div>
|
|
|
- <div class="switch_bx">
|
|
|
- <text></text>
|
|
|
- <switch :checked="form.black == 1 ? false : true" @change="blackChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
- </div>
|
|
|
- </tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">允许欠款</div>
|
|
|
<div class="switch_bx">
|
|
|
@@ -81,6 +75,15 @@
|
|
|
<input v-model="debtLimit" @click="debtLimit=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="digit" style="width:48%;border:1px solid #ddd;margin-right:15rpx;height:52rpx;" />
|
|
|
<button class="admin-button-com blue mini-btn" @tap="amendMoney">确定</button>
|
|
|
</tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">拉黑</div>
|
|
|
+ <div class="switch_bx">
|
|
|
+ <text></text>
|
|
|
+ <switch :checked="form.black == 1 ? false : true" @change="blackChangeFn" style="transform: scale(0.8,0.8)" />
|
|
|
+ </div>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</templete>
|
|
|
@@ -116,6 +119,19 @@ export default {
|
|
|
computed: {},
|
|
|
onLoad() {},
|
|
|
methods: {
|
|
|
+ navigate(latitude, longitude, address) {
|
|
|
+ // 将经纬度转换成Number
|
|
|
+ let latituded = Number(latitude);
|
|
|
+ let longituded = Number(longitude);
|
|
|
+ uni.openLocation({
|
|
|
+ latitude: latituded,
|
|
|
+ longitude: longituded,
|
|
|
+ address: address,
|
|
|
+ success: function() {
|
|
|
+ console.log('success');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//修改欠款额度
|
|
|
amendMoney(){
|
|
|
updateDebtLimit({ id: this.option.id,debtLimit:this.debtLimit }).then(res => {
|