|
|
@@ -41,15 +41,15 @@
|
|
|
|
|
|
<view style="display:flex;margin:10upx 0 10upx 0;">
|
|
|
<input v-model="mobile" name="mobile" type="number" style="width:560upx;height:100upx;border:2upx solid #bbb8b8;margin-right:20upx;padding-left:10upx;font-size:29upx;" placeholder="新手机号" />
|
|
|
- <button class="admin-button-com bule big" @click="">添加</button>
|
|
|
+ <button class="admin-button-com bule big" @click="addNewMobile()">添加</button>
|
|
|
</view>
|
|
|
<view style="display:flex;margin:10upx 0 10upx 0;">
|
|
|
<input v-model="wx" name="wx" type="text" style="width:560upx;height:110upx;border:2upx solid #bbb8b8;margin-right:20upx;padding-left:10upx;font-size:29upx;" placeholder="新微信" />
|
|
|
- <button class="admin-button-com bule big" @click="">添加</button>
|
|
|
+ <button class="admin-button-com bule big" @click="addNewWx()">添加</button>
|
|
|
</view>
|
|
|
<view style="display:flex;margin:10upx 0 10upx 0;">
|
|
|
<input v-model="no" name="no" type="text" style="width:560upx;height:120upx;border:2upx solid #bbb8b8;margin-right:20upx;padding-left:10upx;font-size:29upx;" placeholder="身份证号" />
|
|
|
- <button class="admin-button-com bule big" @click="">添加</button>
|
|
|
+ <button class="admin-button-com bule big" @click="addNewNo()">添加</button>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -61,7 +61,7 @@
|
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
-import { getEventDetail } from "@/api/ll";
|
|
|
+import { getEventDetail,addMobile,addWx,addNo } from "@/api/ll";
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
components: { TuiListCell },
|
|
|
@@ -71,10 +71,7 @@ export default {
|
|
|
eventInfo:{},
|
|
|
mobile:'',
|
|
|
wx:'',
|
|
|
- no:'',
|
|
|
- showAddMobile:false,
|
|
|
- showAddWx:false,
|
|
|
- showAddNo:false
|
|
|
+ no:''
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -86,6 +83,48 @@ export default {
|
|
|
...mapGetters({ loginInfo: "getLoginInfo" }),
|
|
|
},
|
|
|
methods: {
|
|
|
+ addNewMobile(){
|
|
|
+ let that = this
|
|
|
+ if (this.$util.isEmpty(this.mobile)){
|
|
|
+ this.$msg('请填写手机号')
|
|
|
+ }
|
|
|
+ addMobile({mobile:this.mobile}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg('添加成功')
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ that.mobile = ''
|
|
|
+ }, 1000)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ addNewWx(){
|
|
|
+ let that = this
|
|
|
+ if (this.$util.isEmpty(this.wx)){
|
|
|
+ this.$msg('请填写微信')
|
|
|
+ }
|
|
|
+ addWx({wx:this.wx}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg('添加成功')
|
|
|
+ setTimeout(() => {
|
|
|
+ that.wx = ''
|
|
|
+ }, 1000)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ addNewNo(){
|
|
|
+ let that = this
|
|
|
+ if (this.$util.isEmpty(this.no)){
|
|
|
+ this.$msg('请填写身份证')
|
|
|
+ }
|
|
|
+ addNo({no:this.no}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg('添加成功')
|
|
|
+ setTimeout(() => {
|
|
|
+ that.no = ''
|
|
|
+ }, 1000)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getUser(){
|
|
|
this.$util.pageTo({url: '/admin/ll/userDetail?id='+this.eventInfo.userId})
|
|
|
},
|