|
@@ -6,7 +6,7 @@
|
|
|
<text>名称</text>
|
|
|
<view class="list-item-right flex_1 flex justify_between">
|
|
|
<u-input class="flex_1" v-if="!isView" :custom-style="inputClass" v-model="form.name" placeholder="请输入店铺名称" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
- <view v-if="isView">{{form.name || '--'}}</view>
|
|
|
+ <view v-if="isView">{{form.name || ''}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex flex_column data-item last">
|
|
@@ -24,7 +24,7 @@
|
|
|
<text>地址</text>
|
|
|
<view class="list-item-right flex_1 flex justify_between" >
|
|
|
<u-input v-if="!isView" class="flex_1" :custom-style="inputClass" v-model="reverseReceiveAddress.receiveAreasName" @click="selectAddress" :disabled="true" placeholder="请选择通信地址" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
- <view v-if="isView">{{reverseReceiveAddress.receiveAreasName || '--'}}</view>
|
|
|
+ <view v-if="isView">{{reverseReceiveAddress.receiveAreasName || ''}}</view>
|
|
|
<u-icon class="back-img" name="arrow-right" color="#9DA8B5" @click="selectAddress" v-show="!isView"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -32,7 +32,7 @@
|
|
|
<text>详细地址</text>
|
|
|
<view class="list-item-right flex_1 flex justify_between" >
|
|
|
<u-input class="flex_1" :custom-style="inputClass" v-if="!isView" v-model="reverseReceiveAddress.receiveAddress" placeholder="请输入详细地址" placeholder-style="color:'#bbb';font-size:18px"/>
|
|
|
- <view v-if="isView">{{reverseReceiveAddress.receiveAddress || '--'}}</view>
|
|
|
+ <view v-if="isView">{{reverseReceiveAddress.receiveAddress || ''}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -56,7 +56,7 @@
|
|
|
</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 class="submit-btn flex justify_center align_center" v-if="isView" @click="edit">编辑</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -91,7 +91,7 @@
|
|
|
this.isView = true
|
|
|
console.log(option,option.id)
|
|
|
uni.setNavigationBarTitle({
|
|
|
- title: '修改店铺'
|
|
|
+ title: '店铺信息'
|
|
|
});
|
|
|
this.itemId=option.id
|
|
|
this.getDetailInfo()
|
|
@@ -206,6 +206,13 @@
|
|
|
this.reverseReceiveAddress.provinceName=this.reverseReceiveAddress.cityName
|
|
|
}
|
|
|
},
|
|
|
+ // 编辑
|
|
|
+ edit(){
|
|
|
+ this.isView = false
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: '修改店铺'
|
|
|
+ });
|
|
|
+ },
|
|
|
// 保存
|
|
|
submit(){
|
|
|
const testVal=/^1[34578]\d{9}$/
|