| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <template>
- <view>
- <view class="">
- <image class="imageV imageBGV" :src="shangjiaImage" mode="widthFix" @error="imageError()"></image>
- <view class="actimgeCT">
- <view class="buyBTact">
- <image class="actimge" src="/static/images/fanhuiy@3x.png" mode="aspectFit" @click="fanhui"></image>
- <!-- <view style="margin-left: auto;">
- <image class="actimge" style="margin-right: 20rpx;" src="/static/images/fenxiang@3x.png" mode="aspectFit" @click="shareToggle"></image>
- <image class="actimge" :src="shouchangIcon" mode="aspectFit" @click="shouchang"></image>
- </view> -->
- </view>
- </view>
- </view>
- <view class="contentV" style="flex-direction: column;">
- <view style="display: flex;flex-direction: column;">
- <text class="posname">{{posName}}</text>
- <text class="drktext">{{$t('mend.jyxkzheng')}}: {{hygienePermit}}</text>
- </view>
- <view class="viewinrow" style="padding-top: 16rpx;">
- <image style="width: 36rpx;" src="/static/images/time@3x.png" mode="widthFix"></image>
- <text style="font-size: 30rpx;color: black;padding-left: 6rpx;">{{$t('mend.yingyeshijan')}}</text>
- </view>
- <view style="display: flex;flex-direction: column;padding-top: 16rpx;">
- <view class="contentColumn" v-for="(Ytime,index) in yingyeTime">
- <view class="contentInRowL">
- <text class="drktext">{{Ytime.startTime}}</text>
- <text class="drktext"> — </text>
- <text class="drktext">{{Ytime.endTime}}</text>
- </view>
- </view>
- </view>
- <view class="viewinrow" style="margin-top: 16rpx;">
- <image style="width: 46rpx;" src="/static/images/dizhil@3x.png" mode="widthFix"></image>
- <text style="font-size: 26rpx;color: black;padding-left: 6rpx;">{{mendianMs.address}}</text>
- </view>
- </view>
- <!-- <weizhimap class="mapview" :latitude="latitude" :longitude="longitude" :covers="covers"></weizhimap> -->
-
- <view>
- <!-- 分享示例 -->
- <uni-popup ref="share" type="share" safeArea backgroundColor="#fff">
- <uni-popup-share v-on:select="fenxiang"></uni-popup-share>
- </uni-popup>
- </view>
- </view>
- </template>
- <script>
- import api from "@/pages/api/api.js"
- export default {
- data() {
- return {
- mendid:'',
- userid:0,
- mendianMs:[],
- businessHours:'',
- hygienePermit:'',
- posName:'',
- shangjiaImage:'',
- isShouchang:0,
- shouchangIcon:'/static/images/faver@3x.png',
- option: {},
- covers: '',
- latitude:'',
- longitude:'',
- yingyeTime:[],
- }
- },
- onLoad(option) {
- this.mendid = option.mendid;
- },
- onShow() {
- this.getmendianDetail(this.mendid);
- },
- methods: {
- fanhui(){
- uni.navigateBack();
- },
- shareToggle() {
- this.$refs.share.open()
- },
- fenxiang(item,index){
- this.option={
- //绘制海报内容
- //codeUrl: 'https://pic1.zhimg.com/80/v2-2714df42147132464a71af391ed04be4_720w.jpg', //小程序太阳码
- codeUrl: '/static/defimages/erweim.png', //小程序太阳码
- coverUrl: '/static/defimages/ddd.png', //题库图片
- headUrl: '/static/logo.png', //头像
- //bgUrl: 'https://pic3.zhimg.com/v2-8fbde0f9ac6a19a23aa839e73394618a_b.jpg', //图片背景填充,和 fillStyle 只能传一个,bgUrl 优先级高于 fillStyle
- fillStyle: '#006AFF', //纯色背景填充颜色
- nickName: '跑腿王', //授权登录的用户名
- miniName: '不出门吃遍全世界', //小程序名称
- tkName:this.mendianMs.posName, //题库名称
- tkAuthor:'门店介绍', //题库作者
- tkType: '外送', //题库类型
- cost: '自取', //是否需要收费 免费/付费
- isPub: '堂食' //公开 还是 私有
- };
- this.$refs.draw.share_qrcode(this.option);
- },
- shouchang(){
- if(this.isShouchang==0){
- this.isShouchang=1;
- this.shouchangIcon='/static/images/faverr@3x.png'
- }
- else{
- this.isShouchang=0;
- this.shouchangIcon='/static/images/faver@3x.png'
- }
- },
- getmendianDetail(id){
- api('getmendianDetail',{
- id:id
- },
- r=>{
- console.log('getmendianDetail:',r);
- this.mendianMs=r.data.data;
- this.shangjiaImage=this.$baseImagurl + this.mendianMs.image;
- this.userid=this.mendianMs.userId;
- this.posName=this.mendianMs.posName;
-
- this.hygienePermit=this.mendianMs.hygienePermit;
-
- this.covers=[{
- latitude: this.mendianMs.latitude,
- longitude: this.mendianMs.longitude,
- iconPath: '/static/images/dizhil@3x.png'
- }];
- this.latitude=this.mendianMs.latitude;
- this.longitude=this.mendianMs.longitude;
- this.getYingyeshijian(id);
- },failc=>{
- //console.log('getadvertis----',failc)
-
- });
- },
- imageError(index){
- this.shangjiaImage = '/static/defimages/ddd.png';//默认图片
- },
- //营业时间====================
- getYingyeshijian(mid){//查询
- api('getHours',{
- mdId:mid,
- },res=>{
- console.log('getHours',res)
- if(res.data.code==200){
- this.yingyeTime=res.data.data;
- }
- },failc=>{
- //console.log('getadvertis----',failc)
- })
- },
- }
- }
- </script>
- <style>
- page{
- background-color: #F2F3F7;
- }
- .contentV{
- width: 94%;
- margin-left: 3%;
-
- }
- .viewinrow{
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .imageBGV{
- background-color:floralwhite;
- border: 1rpx solid lightgray;
- }
- .imageV{
- width: 100%;
- height: 25vh;
- }
- .actimgeCT{
- position: fixed;
- width: 94%;
- left: 3%;
- top: 100rpx;
- z-index: 999;
- }
- .buyBTact{
- display:flex;
- flex-direction: row;
- justify-content:space-between;
- align-items: center;
- width: 94%;
- }
- .actimge{
- width: 60rpx;
- height: 60rpx;
- }
-
- .posname{
- font-size: 32rpx;
- color: black;
- }
-
- .drktext{
- font-size: 28rpx;
- color: darkgray;
- }
- .mapview{
- width: 100%;
- height: 48vh;
- }
-
- </style>
|