|
|
@@ -10,6 +10,9 @@
|
|
|
<view style="color:#fff;margin-left: 13rpx;font-size: 30rpx;font-weight: 500;">
|
|
|
{{shopInfo.cname?shopInfo.cname:''}}
|
|
|
</view>
|
|
|
+ <view style="width: 30px; height: 30px; margin-left: auto; margin-right: 13rpx;">
|
|
|
+ <image class="QR" src="@/static/images/QR.png" @click.stop="inQR" style="width: 30px; height: 30px;" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="card" style="height: 114rpx;">
|
|
|
@@ -132,12 +135,16 @@
|
|
|
<!-- 提取去登录 -->
|
|
|
<u-modal :show="adminShow" :showCancelButton="true" content='当前还未登录请先登录!!' @confirm="adminConfirm"
|
|
|
@cancel="adminCancel"></u-modal>
|
|
|
+ <uni-popup ref="popup">
|
|
|
+ <image style="width: 400rpx;height: 400rpx;background-color: #fff;" :src="imgPopup" />
|
|
|
+ </uni-popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- getAppDetails
|
|
|
+ getAppDetails,
|
|
|
+ generateQrCode
|
|
|
} from '@/api/home/store.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
@@ -148,7 +155,8 @@
|
|
|
badgeList: [],
|
|
|
form: {},
|
|
|
adminShow: false,
|
|
|
- shopInfo: {}
|
|
|
+ shopInfo: {},
|
|
|
+ imgPopup: ''
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
@@ -157,6 +165,26 @@
|
|
|
this.getAppDetails()
|
|
|
},
|
|
|
methods: {
|
|
|
+ inQR() {
|
|
|
+ if (this.shopInfo.filePath) {
|
|
|
+ this.imgPopup = this.shopInfo.filePath
|
|
|
+ this.$refs.popup.open()
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.imgPopup = null
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中',
|
|
|
+ mask: true
|
|
|
+ });
|
|
|
+ generateQrCode({
|
|
|
+ corpId: this.shopInfo.id
|
|
|
+ }).then(res => {
|
|
|
+ this.$refs.popup.open()
|
|
|
+ this.imgPopup = res.data.filePath
|
|
|
+ }).finally(() => {
|
|
|
+ uni.hideLoading()
|
|
|
+ });
|
|
|
+ },
|
|
|
getAppDetails() {
|
|
|
getAppDetails().then(res => {
|
|
|
this.shopInfo = res.data
|
|
|
@@ -477,4 +505,4 @@
|
|
|
color: #797979;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|