123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <template>
- <view class="p-box">
- <view class="box ">
- <image src="../../static/img/logo.png" mode=""></image>
- <image src="../../static/img/2.png" mode=""></image>
- <view style="margin-top: 10px;">掌柜会员号:{{id}}
- <image style="height:12px;width:13px;display: inline-block;margin-left:5px" src="../../static/icon/gongxiang.png" mode="" @tap="aaa"></image>
- </view>
- <view>绑定手机号:{{mobile}}</view>
- <image style="padding-top: 12px;
- width: 100%;
- height: 330px;" src="../../static/img/1.png" mode=""></image>
- <image src="../../static/img/3.png" mode="" @tap="downloadApp('android')"></image>
- </view>
- </view>
- </template>
- <script>
- export default {
- data(){
- return{
- mobile:'',
- id:'',
- type:'',
- }
- },
- async onLoad(e) {
- let options = JSON.parse(e.data);
- if(e){
- this.id=options.id
- this.mobile= options.mobile //驳回内容
- }
- },
- methods: {
- aaa(){
- uni.setClipboardData({
- data: this.id
- })
- },
- downloadApp(typeId) {
- var btn = document.getElementById(typeId);
- this.weixinTip(btn);
- },
- // 判断是不是微信
- async weixinTip(ele) {
- var ua = navigator.userAgent;
- var isWeixin = !!/MicroMessenger/i.test(ua);
- if (isWeixin) {
- ele.onclick = function(e) {
- window.event ? window.event.returnValue = false : e.preventDefault();
- document.getElementById('weixin-tip').style.display = 'block';
- }
- } else {
- if (!!this.id) {
- uni.setClipboardData({
- data: this.id
- })
- }
- let pageRequest = {
- pageNum: 1,
- pageSize: 50,
- columnFilters: {
- apptype: {
- name: "apptype",
- value: "apk",
- },
- appid: {
- name: "appid",
- value: "__UNI__3FA05C4",
- }
- }
- };
- let getquote = await this.$http.post('/sysVersion/findPage', pageRequest);
- let url = getquote.data.content[0].path;
- if (getquote.code == '200') {
- window.open(url);
- } else {
- uni.showToast({
- title: getquote.msg,
- icon: 'none'
- });
- }
- }
- },
- async promotionCode() {
-
- let pageRequest={
- pageNum: 1,
- pageSize: 50,
- columnFilters: {
- apptype: {
- name: "apptype",
- value: "apk",
- },
- appid: {
- name: "appid",
- value: '__UNI__3FA05C4',
- }
- }
- }
- let res = await this.$http.post('/sysVersion/findPage', pageRequest);
- if (res.code == 200) {
- this.pathUrl = res.data.content[0].path
- this.workImg = QR.createQrCodeImg(res.data.content[0].path, {
- size: parseInt(200) //二维码大小
- })
- }
-
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- .p-box{
- width: 100%;
- height: 100vh;
- background: url(/static/img/beijing1.png) no-repeat;
- background-size: 100% 100%;
- // background: #D0CCFB;
- }
- .box{
- height: 160px;
- width: 100%;
- // position: relative;
- background: url(/static/img/beijng2.png) no-repeat ;
- background-size: 100% 100%;
- text-align: -webkit-center;
- // position: relative;
- image{
- display: block;
- }
- text{
- font-size: 14px;
- color: #666666;
- padding-top: 5px;
- }
- image:first-child{
- padding-top: 52px;
- width: 110px;
- height: 20px;
- }
- image:nth-child(2){
- padding-top: 17px;
- width: 260px;
- height: 35px;
- }
-
- image:last-child{
- padding-top: 30px;
- width: 220px;
- height: 55px;
- }
- }
- </style>
|