|
@@ -5,43 +5,44 @@
|
|
|
<view class="flex flex_column data-item">
|
|
|
<text>名称</text>
|
|
|
<view class="list-item-right flex_1 flex justify_between">
|
|
|
- <u-input class="flex_1" :custom-style="inputClass" v-model="form.name" placeholder="请输入店铺名称" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
+ <u-input class="flex_1" :disabled="isView" :custom-style="inputClass" v-model="form.name" placeholder="请输入店铺名称" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex flex_column data-item last">
|
|
|
<view class="flex align_center">
|
|
|
<view style="color:#666E75">电话</view>
|
|
|
- <u-image src="/static/billing_icon.png" width="24" height="24" style="margin:0 0 10rpx 10rpx;"></u-image>
|
|
|
+ <u-image src="/static/billing_icon.png" width="24" height="24" style="margin:0 0 10rpx 10rpx;"></u-image>
|
|
|
</view>
|
|
|
|
|
|
<view class="list-item-right flex_1 flex justify_between">
|
|
|
- <u-input class="flex_1" :custom-style="inputClass" v-model="form.mobile" placeholder="请输入联系电话" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
+ <u-input class="flex_1" :custom-style="inputClass" :disabled="isView" v-model="form.mobile" placeholder="请输入联系电话" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="form-data">
|
|
|
<view class="flex flex_column data-item">
|
|
|
<text>地址</text>
|
|
|
- <view class="list-item-right flex_1 flex justify_between">
|
|
|
- <u-input class="flex_1" :custom-style="inputClass" v-model="reverseReceiveAddress.receiveAreasName" @click="selectAddress" :disabled="true" placeholder="请选择通信地址" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
- <u-icon class="back-img" name="arrow-right" color="#9DA8B5" @click="selectAddress"></u-icon>
|
|
|
+ <view class="list-item-right flex_1 flex justify_between" >
|
|
|
+ <u-input class="flex_1" :custom-style="inputClass" :disabled="isView" v-model="reverseReceiveAddress.receiveAreasName" @click="selectAddress" :disabled="true" placeholder="请选择通信地址" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
+ <u-icon class="back-img" name="arrow-right" color="#9DA8B5" @click="selectAddress" v-show="!isView"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex flex_column data-item last">
|
|
|
<text>详细地址</text>
|
|
|
- <view class="list-item-right flex_1 flex justify_between">
|
|
|
- <u-input class="flex_1" :custom-style="inputClass" v-model="reverseReceiveAddress.receiveAddress" placeholder="请输入详细地址" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
+ <view class="list-item-right flex_1 flex justify_between" >
|
|
|
+ <u-input class="flex_1" :custom-style="inputClass" :disabled="isView" v-model="reverseReceiveAddress.receiveAddress" placeholder="请输入详细地址" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="form-data">
|
|
|
<view class="headerImgTitle"> 门头照片 <text style="color: #bbbbbb;">(仅可上传1张,10MB以内)</text></view>
|
|
|
<view class="info-main">
|
|
|
- <view class="camera-btn" v-if="photograph.length<1">
|
|
|
+ <view class="camera-btn" v-if="photograph.length<1 && !isView">
|
|
|
<view @click="goPhotograph" class="photograph-camera">
|
|
|
- <u-icon name="camera" color="#bfbfbf" size="60" ></u-icon>
|
|
|
+ <u-icon name="camera" color="#bfbfbf" size="60" v-show="!isView"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view v-if="isView" style="margin-top: 10rpx;">暂无门头照</view>
|
|
|
<view v-show="photograph.length" v-for="(item,index) in photograph" :key="index" class="photograph-con">
|
|
|
<u-icon name="close-circle-fill" color="#fa3534" size="50" class="close-circle-icon" @click="cancelPhotograph(index)"></u-icon>
|
|
|
<u-image width="100%" height="100%" :src="item" @click="previewPictures(item)"></u-image>
|
|
@@ -49,8 +50,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="footer" @click="submit">
|
|
|
- <view class="submit-btn flex justify_center align_center">保存</view>
|
|
|
+ <view class="footer">
|
|
|
+ <view class="submit-btn flex justify_center align_center" v-if="!isView" @click="submit">保存</view>
|
|
|
+ <view class="submit-btn flex justify_center align_center" v-if="isView" @click="isView=false">编辑</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -76,11 +78,13 @@
|
|
|
lng:''
|
|
|
},
|
|
|
itemId:'',// 店铺id
|
|
|
- pageInfo:{}, // 页面数据
|
|
|
+ pageInfo:null, // 页面数据
|
|
|
+ isView: false ,// 是否是查看详情
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
if(option.id){
|
|
|
+ this.isView = true
|
|
|
console.log(option,option.id)
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: '修改店铺'
|