|
|
@@ -8,7 +8,7 @@
|
|
|
<tui-list-cell class="line-cell" :hover="false" v-if="hasMap == 1">
|
|
|
<view class="tui-title">地址类型</view>
|
|
|
<button :class="[couldNavigation==1?'blue':'default']" class="admin-button-com middle" @click.stop="setStyle(1)" style="width:180upx;">支持导航</button>
|
|
|
- <button :class="[couldNavigation==0?'blue':'default']" class="admin-button-com middle" style="width:180upx;margin-left:70upx;" @click.stop="setStyle(0)">不用导航</button>
|
|
|
+ <button :class="[couldNavigation==0?'blue':'default']" class="admin-button-com middle" style="width:180upx;margin-left:60upx;" @click.stop="setStyle(0)">不用导航</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="openAddres">
|
|
|
@@ -33,12 +33,11 @@
|
|
|
<input v-model="form.floor" placeholder-class="phcolor" class="tui-input" name="floor" placeholder="楼号门牌号,建议填写,方便查找"/>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <view class="checkbox-wrap">
|
|
|
- <label class="checkbox-label">
|
|
|
- <checkbox v-model="syncDefaultAddress" :true-value="1" :false-value="0" color="#007AFF" style="margin-right: 10upx;"></checkbox>
|
|
|
- <text>同步设为客户的默认地址</text>
|
|
|
- </label>
|
|
|
- </view>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">地址类型</view>
|
|
|
+ <button :class="[syncDefaultAddress==1?'blue':'default']" class="admin-button-com middle" @click.stop="setDefaultAddress(1)" style="width:180upx;">设为默认</button>
|
|
|
+ <button :class="[syncDefaultAddress==0?'blue':'default']" class="admin-button-com middle" style="width:180upx;margin-left:60upx;" @click.stop="setDefaultAddress(0)">临时使用</button>
|
|
|
+ </tui-list-cell>
|
|
|
|
|
|
|
|
|
</view>
|
|
|
@@ -87,7 +86,7 @@ export default {
|
|
|
showRegion: false,
|
|
|
hasMap: 0,
|
|
|
couldNavigation:1,
|
|
|
- syncDefaultAddress: 0
|
|
|
+ syncDefaultAddress: 1
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
@@ -97,6 +96,9 @@ export default {
|
|
|
this.couldNavigation = flag
|
|
|
this.form.address = ''
|
|
|
},
|
|
|
+ setDefaultAddress(flag){
|
|
|
+ this.syncDefaultAddress = flag
|
|
|
+ },
|
|
|
onHere(){
|
|
|
this.form.province = '云南省'
|
|
|
this.form.city = '昆明市'
|