|
@@ -49,7 +49,7 @@
|
|
<div class="desc">·用户可以更改或删除已经绑定车牌</div>
|
|
<div class="desc">·用户可以更改或删除已经绑定车牌</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <uni-popup ref="deleteDialog" type="center">
|
|
|
|
|
|
+ <van-popup v-model="deleteDialogSwitch" position="center">
|
|
<div class="popup-dialog">
|
|
<div class="popup-dialog">
|
|
<div class="dialog-title">
|
|
<div class="dialog-title">
|
|
<span class="dialog-title-text">删除已绑定车牌</span>
|
|
<span class="dialog-title-text">删除已绑定车牌</span>
|
|
@@ -67,8 +67,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </uni-popup>
|
|
|
|
- <uni-popup ref="deleteSuccessDialog" type="center">
|
|
|
|
|
|
+ </van-popup>
|
|
|
|
+ <van-popup v-model="deleteSuccessDialogSwitch" position="center" >
|
|
<div class="popup-dialog">
|
|
<div class="popup-dialog">
|
|
<div class="dialog-content">
|
|
<div class="dialog-content">
|
|
<uni-icons type="checkbox-filled" size="60" color="#7DB124"></uni-icons>
|
|
<uni-icons type="checkbox-filled" size="60" color="#7DB124"></uni-icons>
|
|
@@ -80,7 +80,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </uni-popup>
|
|
|
|
|
|
+ </van-popup>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -111,6 +111,9 @@ export default {
|
|
custTypeId: (state) => state.custTypeId,
|
|
custTypeId: (state) => state.custTypeId,
|
|
member: (state) => state.member,
|
|
member: (state) => state.member,
|
|
groupId: (state) => state.groupId,
|
|
groupId: (state) => state.groupId,
|
|
|
|
+ openid: (state) => state.openid,
|
|
|
|
+ mallid: (state) => state.mallId,
|
|
|
|
+ mobile: (state) => state.mobile,
|
|
}),
|
|
}),
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
@@ -122,26 +125,11 @@ export default {
|
|
isBeijing: false,
|
|
isBeijing: false,
|
|
options: null,
|
|
options: null,
|
|
preUrl: '',
|
|
preUrl: '',
|
|
|
|
+ deleteDialogSwitch: false,
|
|
|
|
+ deleteSuccessDialogSwitch: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 分享好友
|
|
|
|
- onShareAppMessage: function (res) {
|
|
|
|
- return {
|
|
|
|
- title: '车牌管理', // 分享标题
|
|
|
|
- // desc: this.params.shareDescribe, // 分享描述
|
|
|
|
- imageUrl: '', // 分享图标
|
|
|
|
- path: `/pages/parkingFee/vehicleManagement?mallid=${this.mallid}`,
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- // 分享朋友圈
|
|
|
|
- onShareTimeline: function (res) {
|
|
|
|
- return {
|
|
|
|
- title: '车牌管理', // 分享标题
|
|
|
|
- // desc: this.params.shareDescribe, // 分享描述
|
|
|
|
- imageUrl: '', // 分享图标
|
|
|
|
- path: `/pages/parkingFee/vehicleManagement?mallid=${app.globalData.mallid}`,
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
async created() {
|
|
async created() {
|
|
const option = this.$route.query;
|
|
const option = this.$route.query;
|
|
this.options = option
|
|
this.options = option
|
|
@@ -217,13 +205,13 @@ export default {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中',
|
|
title: '加载中',
|
|
})
|
|
})
|
|
- const openId = MemberCacheTool.getOpenId(app)
|
|
|
|
|
|
+ // const openId = MemberCacheTool.getOpenId(app)
|
|
const params = {
|
|
const params = {
|
|
carno,
|
|
carno,
|
|
mallid: this.mallid,
|
|
mallid: this.mallid,
|
|
- openid: openId,
|
|
|
|
|
|
+ openid: this.openid,
|
|
vipcode: this.member?.vipcode,
|
|
vipcode: this.member?.vipcode,
|
|
- mobile: this.member?.mobile,
|
|
|
|
|
|
+ mobile: this.mobile,
|
|
groupId: this.groupId,
|
|
groupId: this.groupId,
|
|
createuser: 'sys_miniprogram',
|
|
createuser: 'sys_miniprogram',
|
|
}
|
|
}
|
|
@@ -236,6 +224,7 @@ export default {
|
|
timeout: 10000,
|
|
timeout: 10000,
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ console.log(227, res);
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -291,7 +280,7 @@ export default {
|
|
toDelete(item) {
|
|
toDelete(item) {
|
|
this.activeId = item.id
|
|
this.activeId = item.id
|
|
this.activeCarno = item.vehicleNo
|
|
this.activeCarno = item.vehicleNo
|
|
- this.$refs.deleteDialog.open()
|
|
|
|
|
|
+ this.deleteDialogSwitch = true
|
|
},
|
|
},
|
|
doDelete() {
|
|
doDelete() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
@@ -299,18 +288,19 @@ export default {
|
|
})
|
|
})
|
|
const _this = this
|
|
const _this = this
|
|
kipDeleteMemberVehicles(this.activeId)
|
|
kipDeleteMemberVehicles(this.activeId)
|
|
- .then((resp) => {
|
|
|
|
|
|
+ .then((result) => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
- console.log(resp)
|
|
|
|
- const result = resp.data
|
|
|
|
|
|
+ // console.log(resp)
|
|
|
|
+ // const result = resp.data
|
|
if (result && result.code == '000000') {
|
|
if (result && result.code == '000000') {
|
|
this.sensorsClick('$ClickDeleteLicensePlate', {
|
|
this.sensorsClick('$ClickDeleteLicensePlate', {
|
|
carno_old: this.activeCarno,
|
|
carno_old: this.activeCarno,
|
|
redirect_url: '',
|
|
redirect_url: '',
|
|
})
|
|
})
|
|
if (result.data) {
|
|
if (result.data) {
|
|
- _this.$refs.deleteDialog.close()
|
|
|
|
- _this.$refs.deleteSuccessDialog.open()
|
|
|
|
|
|
+ this.deleteDialogSwitch = false
|
|
|
|
+ this.deleteSuccessDialogSwitch = true;
|
|
|
|
+ // _this.$refs.deleteSuccessDialog.open()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -355,10 +345,12 @@ export default {
|
|
this.$sensors.track(eventName, finalParams)
|
|
this.$sensors.track(eventName, finalParams)
|
|
},
|
|
},
|
|
cancelDelete() {
|
|
cancelDelete() {
|
|
- this.$refs.deleteDialog.close()
|
|
|
|
|
|
+ this.deleteDialogSwitch = true
|
|
},
|
|
},
|
|
confirmDialog() {
|
|
confirmDialog() {
|
|
- this.$refs.deleteSuccessDialog.close()
|
|
|
|
|
|
+ // this.$refs.deleteSuccessDialog.close()
|
|
|
|
+ this.deleteSuccessDialogSwitch = false;
|
|
|
|
+
|
|
this.getKipMemberVehicles()
|
|
this.getKipMemberVehicles()
|
|
},
|
|
},
|
|
// 获取会员绑定的车牌列表
|
|
// 获取会员绑定的车牌列表
|
|
@@ -367,10 +359,10 @@ export default {
|
|
title: '加载中',
|
|
title: '加载中',
|
|
})
|
|
})
|
|
kipGetMemberVehicles()
|
|
kipGetMemberVehicles()
|
|
- .then((resp) => {
|
|
|
|
|
|
+ .then((result) => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
- console.log(resp)
|
|
|
|
- const result = resp.data
|
|
|
|
|
|
+ console.log(result)
|
|
|
|
+ // const result = resp.data
|
|
if (result && result.code == '000000') {
|
|
if (result && result.code == '000000') {
|
|
const data = result.data || []
|
|
const data = result.data || []
|
|
if (data && data.length > 0) {
|
|
if (data && data.length > 0) {
|
|
@@ -646,15 +638,12 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.popup-dialog {
|
|
.popup-dialog {
|
|
- width: 300px;
|
|
|
|
|
|
+ // width: 300px;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
}
|
|
}
|
|
|
|
|
|
.dialog-title {
|
|
.dialog-title {
|
|
- /* #ifndef APP-NVUE */
|
|
|
|
- display: flex;
|
|
|
|
- /* #endif */
|
|
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
padding-top: 10px;
|
|
padding-top: 10px;
|