Commit 2714017b by huSun

注册下一步传参--Id

parent 1b9806a5
......@@ -15,7 +15,8 @@
<!-- 为了提高dom渲染效率,当list产生破坏性变动时(如删除其中一项,或者排序等)必须使用唯一确定的key,而不能使用index -->
<block v-for="(item, i) in treeList" :key="item.id">
<view class="d-box" v-if="item.level === 0 || checkOpen(item.pids[item.pids.length - 1])">
<view class="d-td" style="text-align: left;" :class="`padding-left-${item.level * 5 + 10}`">
<!-- :class="`padding-left-${item.level * 5 + 10}`" -->
<view class="d-td">
<view class="" style="display: flex;align-items: center;">
<uni-icons
v-if="item.hasChildren"
......@@ -26,7 +27,8 @@
<view @click="open(item, i)" v-if="item.level && !item.hasChildren" style="width: 24rpx;height: 26rpx;display: inline-block;"></view>
<view v-else @click="open(item, i)" :class="item.levelCode == 'B1' ? 'content-box-title-a' : item.levelCode == 'C3' ? 'content-box-title-b':'content-box-title'">
<!-- -->
<text class="" style="text-align: center;font-size: 13px;line-height: 26px;">{{ item.areaCenterName || '张麻花' }}</text>
<text class="" v-if="item.levelCode == 'A1'" style="text-align: center;font-size: 26rpx;line-height: rpx;">{{ item.name || '张麻花' }}</text>
<text class="" v-else style="text-align: center;font-size: 13px;line-height: 26px;">{{ item.areaCenterName || '张麻花' }}</text>
</view>
</view>
......@@ -34,7 +36,7 @@
<!-- </view> -->
</view>
<view class="d-td" v-if="item.levelCode == 'A1'">{{ item.levelName }}</view>
<view class="d-td">{{ item.levelName }}</view>
<view class="d-td" style="padding-right: 10rpx;">{{ item.count }}</view>
</view>
</block>
......@@ -338,6 +340,9 @@ export default {
.d-box{
display: flex;
justify-content: space-between;
.d-td{
flex: 1;
}
}
.d-tr{
display: flex;
......
......@@ -21,26 +21,30 @@
data() {
return {
areaName:'',
invitationName:''
invitationName:'',
shareId:''
}
},
onLoad(options) {
console.log(options, 777)
this.getqueryById(options.shareId)
this.shareId = options.shareId
this.getqueryById()
},
methods:{
getqueryById(id){
console.log(id)
api.queryById({id}).then(res =>{
console.log(res, 77414)
getqueryById(){
api.queryById({id:this.shareId}).then(res =>{
this.areaName = res.data.data.areaName
this.invitationName = res.data.data.invitationName
this.mobileNumber = res.data.data.mobileNumber
})
},
ckregister(){
let dataForm = {
name: this.invitationName,
mobile: this.mobileNumber,
id:this.shareId
};
uni.navigateTo({
url:'/pages/invitationRegister/invitationlogin?invitationName=' + this.invitationName + '&mobileNumber=' + this.mobileNumber
url:'/pages/invitationRegister/invitationlogin?form=' + JSON.stringify(dataForm)
})
}
}
......
......@@ -54,10 +54,8 @@
}
}
},
onLoad(option) {
console.log(option, 555)
this.form.name = option.invitationName
this.form.mobile = option.mobileNumber
onLoad(options) {
this.form =JSON.parse( options.form)
},
methods:{
sendMessage(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment