|
|
@@ -1,5 +1,8 @@
|
|
|
<template>
|
|
|
<div class="app-content">
|
|
|
+ <view style="width:150upx;text-align:center;position:fixed;bottom:150upx;border-radius:80upx;background-color:#3385FF;color:white;z-index:999999;padding:50upx 0;right:30upx;font-size:28upx;" @click.stop="addCustom()">
|
|
|
+ 虚拟客户
|
|
|
+ </view>
|
|
|
<form @submit="formSubmit">
|
|
|
<view class="module-com">
|
|
|
<tui-list-cell class="line-cell" :hover="false" >
|
|
|
@@ -130,22 +133,20 @@ export default {
|
|
|
onShow() {
|
|
|
},
|
|
|
methods: {
|
|
|
+ init(){
|
|
|
+
|
|
|
+ },
|
|
|
+ addCustom(){
|
|
|
+ this.$util.pageTo({url: "/pagesClient/member/addCustom",type:2});
|
|
|
+ },
|
|
|
formSubmit (e) {
|
|
|
let rules = [
|
|
|
{ name: "name1", rule: ["required"], msg: ["请填写花店1的名称"] },
|
|
|
{ name: "mobile1", rule: ["isMobile"], msg: ["请填写花店1的手机号"] },
|
|
|
{ name: "confirmMobile1", rule: ["isSame:mobile1"], msg: ["花店1的确认手机号有误"] },
|
|
|
- //{ name: "name2", rule: ["required"], msg: ["请填写花店2的名称"] },
|
|
|
- //{ name: "mobile2", rule: ["required"], msg: ["请填写花店2的手机号"] },
|
|
|
{ name: "confirmMobile2", rule: ["isSame:mobile2"], msg: ["花店2的确认手机号有误"] },
|
|
|
- //{ name: "name3", rule: ["required"], msg: ["请填写花店3的名称"] },
|
|
|
- //{ name: "mobile3", rule: ["required"], msg: ["请填写花店3的手机号"] },
|
|
|
{ name: "confirmMobile3", rule: ["isSame:mobile3"], msg: ["花店3的确认手机号有误"] },
|
|
|
- //{ name: "name4", rule: ["required"], msg: ["请填写花店4的名称"] },
|
|
|
- //{ name: "mobile4", rule: ["required"], msg: ["请填写花店4的手机号"] },
|
|
|
{ name: "confirmMobile4", rule: ["isSame:mobile4"], msg: ["请花店4的确认手机号有误"] },
|
|
|
- //{ name: "name5", rule: ["required"], msg: ["请填写花店5的名称"] },
|
|
|
- //{ name: "mobile5", rule: ["required"], msg: ["请填写花店5的手机号"] },
|
|
|
{ name: "confirmMobile5", rule: ["isSame:mobile5"], msg: ["花店5的确认手机号有误"] },
|
|
|
];
|
|
|
|
|
|
@@ -173,29 +174,20 @@ export default {
|
|
|
from: this.option.from || 0,
|
|
|
miniOpenId:currentMiniOpenId
|
|
|
}).then(res => {
|
|
|
- this.$msg(res.msg);
|
|
|
if(res.code == 1){
|
|
|
+ this.$msg(res.msg)
|
|
|
setTimeout(() => {
|
|
|
uni.navigateBack();
|
|
|
}, 2000)
|
|
|
}
|
|
|
- // this.$util.pageTo({
|
|
|
- // url: "/admin/home/member",
|
|
|
- // type: 2,
|
|
|
- // query: {
|
|
|
- // pagestatus: 3
|
|
|
- // }
|
|
|
- // });
|
|
|
});
|
|
|
}
|
|
|
- },
|
|
|
- watch: {
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.app-content {
|
|
|
- margin-bottom: 170upx;
|
|
|
+ margin-bottom: 260upx;
|
|
|
}
|
|
|
.module-com {
|
|
|
margin-bottom: 20upx;
|