暂存代码

This commit is contained in:
何江明
2025-05-23 18:03:45 +08:00
parent 8217069b9a
commit a2c87e47bf
313 changed files with 6157 additions and 1102 deletions
@@ -13,7 +13,7 @@
placeholder="请输入店铺名称"
clearable
border="none"
v-model="form.name"
v-model="form.storeName"
></up-input>
</view>
<view class="card_comm card_hang_comm">
@@ -80,6 +80,7 @@
<view class="add_but" @click="addFun">
提交
</view>
<up-toast ref="uToastRef"></up-toast>
</view>
</template>
@@ -91,7 +92,7 @@
data() {
return {
form:{
name:'',// 店铺名称
storeName:'',// 店铺名称
address:"",// 店铺地址
name:null,
mobile:null,
@@ -159,7 +160,53 @@
methods: {
// 确认提交
addFun(){
console.log("确认提交....");
const params = {
...this.form,
}
if(!params.storeName){
this.$refs.uToastRef.show({
type: 'error',
message: "请输入店铺名称",
});
return;
}
if(!params.address){
this.$refs.uToastRef.show({
type: 'error',
message: "请输入店铺地址",
});
return;
}
if(!params.name){
this.$refs.uToastRef.show({
type: 'error',
message: "请输入真实姓名",
});
return;
}
if(!params.mobile){
this.$refs.uToastRef.show({
type: 'error',
message: "请输入手机号码",
});
return;
}
if(!params.number){
this.$refs.uToastRef.show({
type: 'error',
message: "请输入证件号码",
});
return;
}
this.$refs.uToastRef.show({
type: 'success',
message: "提交成功",
});
setTimeout(()=>{
uni.switchTab({
url: '/pages/mine/mine',
});
},1000)
}
}
}