|
@@ -80,12 +80,13 @@
|
|
|
</uni-list>
|
|
</uni-list>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
-<!-- <button @click="anniu">按钮</button>-->
|
|
|
|
|
|
|
+<!-- <button @click="">按钮</button>-->
|
|
|
|
|
|
|
|
<uni-popup ref="qrCodePopup" type="center" @change="qrCodePopupChange">
|
|
<uni-popup ref="qrCodePopup" type="center" @change="qrCodePopupChange">
|
|
|
<view class="flex-col qrCodePopupView">
|
|
<view class="flex-col qrCodePopupView">
|
|
|
<view class="flex-row justify-center">
|
|
<view class="flex-row justify-center">
|
|
|
- <text class="popupTitle">推广码</text>
|
|
|
|
|
|
|
+<!-- 标题不要了-->
|
|
|
|
|
+ <text class="popupTitle"> </text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="xoIcon" @click="closePopup">
|
|
<view class="xoIcon" @click="closePopup">
|
|
|
<u-icon name="close-circle" color="#666" size="24"></u-icon>
|
|
<u-icon name="close-circle" color="#666" size="24"></u-icon>
|
|
@@ -109,7 +110,7 @@
|
|
|
components: {UniPopup},
|
|
components: {UniPopup},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- qrcodeUrl:this.$xcxUrl+'?expandUserId={expandUserId}&ruleId={ruleId}×tamp={timestamp}',
|
|
|
|
|
|
|
+ qrcodeUrl:this.$xcxUrl+'?expandUserId={expandUserId}&ruleId={ruleId}×tamp={timestamp}&type=',
|
|
|
options: {
|
|
options: {
|
|
|
// 指定二维码前景,一般可在中间放logo
|
|
// 指定二维码前景,一般可在中间放logo
|
|
|
foregroundImagePadding:2,
|
|
foregroundImagePadding:2,
|
|
@@ -165,6 +166,11 @@
|
|
|
let regexp = new RegExp("{" + key + "}"); // 构造正则表达式
|
|
let regexp = new RegExp("{" + key + "}"); // 构造正则表达式
|
|
|
this.qrcodeUrl = this.qrcodeUrl.replace(regexp, data[key]); // 执行替换操作
|
|
this.qrcodeUrl = this.qrcodeUrl.replace(regexp, data[key]); // 执行替换操作
|
|
|
}
|
|
}
|
|
|
|
|
+ if (this.userInfo.isManager === '1'){
|
|
|
|
|
+ this.qrcodeUrl = this.qrcodeUrl + '4'
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.qrcodeUrl = this.qrcodeUrl + '3'
|
|
|
|
|
+ }
|
|
|
this.formatDate()
|
|
this.formatDate()
|
|
|
console.log('生成的链接',this.qrcodeUrl)
|
|
console.log('生成的链接',this.qrcodeUrl)
|
|
|
this.$refs.qrCodePopup.open()
|
|
this.$refs.qrCodePopup.open()
|
|
@@ -175,7 +181,7 @@
|
|
|
qrCodePopupChange(e){
|
|
qrCodePopupChange(e){
|
|
|
console.log(e)
|
|
console.log(e)
|
|
|
if (!e.show){
|
|
if (!e.show){
|
|
|
- this.qrcodeUrl=this.$xcxUrl+'?expandUserId={expandUserId}&ruleId={ruleId}×tamp={timestamp}'
|
|
|
|
|
|
|
+ this.qrcodeUrl=this.$xcxUrl+'?expandUserId={expandUserId}&ruleId={ruleId}×tamp={timestamp}&type='
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|