Commit 2714017b by huSun

注册下一步传参--Id

parent 1b9806a5
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
<!-- 为了提高dom渲染效率,当list产生破坏性变动时(如删除其中一项,或者排序等)必须使用唯一确定的key,而不能使用index --> <!-- 为了提高dom渲染效率,当list产生破坏性变动时(如删除其中一项,或者排序等)必须使用唯一确定的key,而不能使用index -->
<block v-for="(item, i) in treeList" :key="item.id"> <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-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;"> <view class="" style="display: flex;align-items: center;">
<uni-icons <uni-icons
v-if="item.hasChildren" v-if="item.hasChildren"
...@@ -26,7 +27,8 @@ ...@@ -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 @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'"> <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>
</view> </view>
...@@ -34,7 +36,7 @@ ...@@ -34,7 +36,7 @@
<!-- </view> --> <!-- </view> -->
</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 class="d-td" style="padding-right: 10rpx;">{{ item.count }}</view>
</view> </view>
</block> </block>
...@@ -338,6 +340,9 @@ export default { ...@@ -338,6 +340,9 @@ export default {
.d-box{ .d-box{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.d-td{
flex: 1;
}
} }
.d-tr{ .d-tr{
display: flex; display: flex;
......
...@@ -21,26 +21,30 @@ ...@@ -21,26 +21,30 @@
data() { data() {
return { return {
areaName:'', areaName:'',
invitationName:'' invitationName:'',
shareId:''
} }
}, },
onLoad(options) { onLoad(options) {
console.log(options, 777) this.shareId = options.shareId
this.getqueryById(options.shareId) this.getqueryById()
}, },
methods:{ methods:{
getqueryById(id){ getqueryById(){
console.log(id) api.queryById({id:this.shareId}).then(res =>{
api.queryById({id}).then(res =>{
console.log(res, 77414)
this.areaName = res.data.data.areaName this.areaName = res.data.data.areaName
this.invitationName = res.data.data.invitationName this.invitationName = res.data.data.invitationName
this.mobileNumber = res.data.data.mobileNumber this.mobileNumber = res.data.data.mobileNumber
}) })
}, },
ckregister(){ ckregister(){
let dataForm = {
name: this.invitationName,
mobile: this.mobileNumber,
id:this.shareId
};
uni.navigateTo({ uni.navigateTo({
url:'/pages/invitationRegister/invitationlogin?invitationName=' + this.invitationName + '&mobileNumber=' + this.mobileNumber url:'/pages/invitationRegister/invitationlogin?form=' + JSON.stringify(dataForm)
}) })
} }
} }
......
...@@ -54,10 +54,8 @@ ...@@ -54,10 +54,8 @@
} }
} }
}, },
onLoad(option) { onLoad(options) {
console.log(option, 555) this.form =JSON.parse( options.form)
this.form.name = option.invitationName
this.form.mobile = option.mobileNumber
}, },
methods:{ methods:{
sendMessage(){ 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