|
|
@@ -65,7 +65,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!--邀请专员二维码-->
|
|
|
- <uni-popup ref="createQrCodePopup" type="center">
|
|
|
+ <uni-popup ref="createQrCodePopup" type="center" @change="createQrCodePopupChange">
|
|
|
<view class="createQrCodePopup">
|
|
|
<view class="flex-row justify-center">
|
|
|
<text class="popupTitle">邀请专员二维码</text>
|
|
|
@@ -76,6 +76,9 @@
|
|
|
<view class="flex-row justify-center">
|
|
|
<uv-qrcode ref="qrcode" size="540rpx" :value="qrcodeUrl" :options="options"></uv-qrcode>
|
|
|
</view>
|
|
|
+ <view class="flex-row justify-center qrCreateTime">
|
|
|
+ <text>生成时间:{{qrCreateTime}}</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
<!--选择规则-->
|
|
|
@@ -159,6 +162,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import commonUtils from "../../../common/js/utils/commonUtils";
|
|
|
+
|
|
|
export default {
|
|
|
props:{
|
|
|
height: {
|
|
|
@@ -170,6 +175,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ qrCreateTime:'',
|
|
|
selectRoleIndex:0, //正在选择的角色下标
|
|
|
confirmRoleIndex:0, //当前选中的角色下标
|
|
|
roleList:[],
|
|
|
@@ -192,6 +198,10 @@
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
+ formatDate(){
|
|
|
+ this.qrCreateTime = commonUtils.formatDate(new Date())
|
|
|
+ },
|
|
|
+
|
|
|
deleteRule(item){
|
|
|
|
|
|
let that =this
|
|
|
@@ -260,7 +270,7 @@
|
|
|
}
|
|
|
},
|
|
|
closePopup(){
|
|
|
- this.qrcodeUrl=this.$tkUrl+'?roleId={roleId}&parentId={parentId}×tamp={timestamp}',
|
|
|
+
|
|
|
this.$refs.rolePopup.close()
|
|
|
this.$refs.createQrCodePopup.close()
|
|
|
this.$refs.rulePopup.close()
|
|
|
@@ -290,9 +300,15 @@
|
|
|
this.qrcodeUrl = this.qrcodeUrl.replace(regexp, data[key]); // 执行替换操作
|
|
|
}
|
|
|
console.log('++++qrcodeUrl+++++',this.qrcodeUrl)
|
|
|
-
|
|
|
+ this.formatDate()
|
|
|
this.$refs.createQrCodePopup.open()
|
|
|
},
|
|
|
+ createQrCodePopupChange(e){
|
|
|
+ console.log(e)
|
|
|
+ if (!e.show){
|
|
|
+ this.qrcodeUrl=this.$tkUrl+'?roleId={roleId}&parentId={parentId}×tamp={timestamp}'
|
|
|
+ }
|
|
|
+ },
|
|
|
addRule(){
|
|
|
this.$refs.rulePopup.open()
|
|
|
},
|