Commit dd2d565c by sunerhu

1.跨区域邀请传值错误修改

2.我得团队字段显示不正确
3.修改分享
parent fc3b85f1
......@@ -32,6 +32,7 @@
<!-- :class="item.levelCode == 'B1' ? 'content-box-title-a' : item.levelCode == 'C3' ? 'content-box-title-b':'content-box-title'" -->
<!-- <view > -->
<text style="color: #000;" v-if="item.levelCode == 'A1'" >{{ item.name || '张麻花' }}</text>
<text style="color: #FFFFFF;" v-if="item.levelCode == 'B1'" >{{ item.name || '张麻花' }}</text>
<text v-else >{{ item.areaCenterName || '张麻花' }}</text>
<!-- </view> -->
......
......@@ -168,7 +168,6 @@
},
methods: {
close(val) {
console.log(val, 558)
if (val) {
this.sharelogin = false
this.userId = val
......@@ -458,7 +457,7 @@
api.userRead(UserReadRequestVO).then(res => {
if (res['success']) {
this.shareReadId = res.data.id
this.jumppurchase()
// this.jumppurchase()
}
})
},
......
......@@ -60,7 +60,7 @@
<style lang="scss">
.container{
height: 100%;
height: 100vh;
background: url('../../static/app-plus/registerBg.png') 100% 100%;
background-size: contain;
color: #fff;
......
......@@ -138,7 +138,7 @@
<style lang="scss">
.content {
height: 100%;
height: 100vh;
background: #20279B;
border-radius: 0px 0px 0px 0px;
......
......@@ -12,7 +12,7 @@
<view class="ulBox">
<view class="liBox">
<text>姓名:</text>
<text><input v-model="dataForm.name" class="uni-input" maxlength="15" placeholder="姓名" /></text>
<text><input v-model="dataForm.name" class="uni-input" maxlength="15" placeholder="姓名" @blur="blueInput(dataForm.name)" /></text>
</view>
<view class="liBox">
<text>手机号:</text>
......@@ -171,6 +171,17 @@
console.log(dataForm, 1125)
},
methods: {
blueInput(name) {
console.log(name, 1251515)
if (!common.nameValid(name)) {
uni.showToast({
title: '请输入真实的姓名!',
duration: 2000,
icon: 'none'
})
return;
}
},
queryorgchange(e) {
this.orgindex = e.detail.value
},
......@@ -229,7 +240,7 @@
shareToggle() {
this.dataForm.partnerLevel = this.applyIdentity == 0 ? 'B1' : 'A1'
this.dataForm.hasCrossDistrict = this.isCross == true ? '1' : '0'
this.dataForm.areaId = this.queryorgList[this.index].areaId
this.dataForm.areaId = this.isCross == true ? null : this.queryorgList[this.index].areaId
this.dataForm.userId = this.userId
this.dataForm.areaName = this.isCross == false ? this.queryorgList[this.index].areaName : this.dataForm
.areaName
......
......@@ -56,6 +56,7 @@
uniShare(type) {
let that = this
this.closeShare()
this.submitsuessc(type)
uni.share({
provider: "weixin",
scene: type === 1 ? "WXSceneSession" : "WXSceneTimeline",
......@@ -66,25 +67,7 @@
imageUrl: that.WXdata.imageUrl,
success: function(res) {
console.log(res, 155)
let UserShareRequestVO = {
userId: uni.getStorageSync('cffp_userId'),
businessType: '1', // 分享类型
businessId: that.WXdata.fileId, // 课程Id
shareUrl: that.WXdata.href, // 分享链接
shareType: '2', // 分享类型(1:图片分享; 2:链接分享)
shareToWhere: type, //分享到哪儿(1好友 2朋友圈)
shareCode: that.WXdata.shareCode
}
api.userShare(UserShareRequestVO).then(res => {
console.log(res, 1251)
// console.log('分享成功了吗')
if (res['success']) {
// uni.showToast({
// title: '分享成功',
// duration: 2000
// });
}
})
},
fail: function(err) {
console.log("fail:" + JSON.stringify(err));
......@@ -115,6 +98,28 @@
// })
// }
},
submitsuessc(type){
let that = this
let UserShareRequestVO = {
userId: uni.getStorageSync('cffp_userId'),
businessType: '1', // 分享类型
businessId: that.WXdata.fileId, // 课程Id
shareUrl: that.WXdata.href, // 分享链接
shareType: '2', // 分享类型(1:图片分享; 2:链接分享)
shareToWhere: type, //分享到哪儿(1好友 2朋友圈)
shareCode: that.WXdata.shareCode
}
api.userShare(UserShareRequestVO).then(res => {
console.log(res, 1251)
// console.log('分享成功了吗')
if (res['success']) {
// uni.showToast({
// title: '分享成功',
// duration: 2000
// });
}
})
},
}
}
</script>
......
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