gengduozhixun.nvue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view>
  3. <view class="">
  4. <netImage width="750" height="430" :mysrc="mendianMs.image" mymode="scaleToFill"></netImage>
  5. <view class="actimgeCT">
  6. <view class="buyBTact">
  7. <image class="actimge" src="/static/images/fanhuiy@3x.png" mode="aspectFit" @click="fanhui"></image>
  8. <view style="margin-left: auto;">
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. <!-- <weizhimap class="mapview" height="500" :covers="covers"></weizhimap> -->
  14. <view class="contentVv">
  15. <view style="display: flex;flex-direction: column;">
  16. <text class="posname">{{posName}}</text>
  17. <text class="drktext">{{i18n('mend.jyxkzheng')}}: {{mendianMs.hygienePermit}}</text>
  18. </view>
  19. <view class="viewinrow" style="padding-top: 16rpx;">
  20. <image style="width: 36rpx;" src="/static/images/time@3x.png" mode="widthFix"></image>
  21. <text style="font-size: 30rpx;color: black;padding-left: 6rpx;">{{i18n('mend.yingyeshijan')}}</text>
  22. </view>
  23. <view v-if="mendianMs.openBusiness&&mendianMs.windingUp" style="display: flex;flex-direction: column;padding-top: 16rpx;">
  24. <text class="drktext">{{mendianMs.openBusiness}}—{{mendianMs.windingUp}}</text>
  25. </view>
  26. <view class="viewinrow" style="margin-top: 16rpx;">
  27. <image style="width: 46rpx;" src="/static/images/Rdizhil60@3x.png" mode="widthFix"></image>
  28. <text class="addrText">{{mendianMs.address}}</text>
  29. </view>
  30. </view>
  31. <view>
  32. <!-- 分享示例 -->
  33. <uni-popup ref="share" type="share" safeArea backgroundColor="#fff">
  34. <uni-popup-share v-on:select="fenxiang"></uni-popup-share>
  35. </uni-popup>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import api from "@/pages/api/api.js";
  41. export default {
  42. data() {
  43. return {
  44. mendid:'',
  45. userid:0,
  46. mendianMs:[],
  47. posName:'',
  48. shangjiaImage:'',
  49. isShouchang:0,
  50. shouchangIcon:'/static/images/faver@3x.png',
  51. option: {},
  52. covers: '',
  53. latitude:'',
  54. longitude:''
  55. }
  56. },
  57. onLoad(option) {
  58. this.mendid = option.mendid;
  59. },
  60. onShow() {
  61. this.getmendianDetail(this.mendid);
  62. },
  63. methods: {
  64. i18n(str){
  65. return getApp().globalData.$t(str);
  66. },
  67. fanhui(){
  68. uni.navigateBack();
  69. },
  70. shareToggle() {
  71. this.$refs.share.open()
  72. },
  73. fenxiang(item,index){
  74. this.option={
  75. //绘制海报内容
  76. //codeUrl: 'https://pic1.zhimg.com/80/v2-2714df42147132464a71af391ed04be4_720w.jpg', //小程序太阳码
  77. codeUrl: '/static/defimages/erweim.png', //小程序太阳码
  78. coverUrl: '/static/defimages/ddd.png', //题库图片
  79. headUrl: '/static/logo.png', //头像
  80. //bgUrl: 'https://pic3.zhimg.com/v2-8fbde0f9ac6a19a23aa839e73394618a_b.jpg', //图片背景填充,和 fillStyle 只能传一个,bgUrl 优先级高于 fillStyle
  81. fillStyle: '#00A6FF', //纯色背景填充颜色
  82. nickName: '跑腿王', //授权登录的用户名
  83. miniName: '不出门吃遍全世界', //小程序名称
  84. tkName:this.mendianMs.posName, //题库名称
  85. tkAuthor:'门店介绍', //题库作者
  86. tkType: '外送', //题库类型
  87. cost: '自取', //是否需要收费 免费/付费
  88. isPub: '堂食' //公开 还是 私有
  89. };
  90. this.$refs.draw.share_qrcode(this.option);
  91. },
  92. shouchang(){
  93. if(this.isShouchang==0){
  94. this.isShouchang=1;
  95. this.shouchangIcon='/static/images/faverr@3x.png'
  96. }
  97. else{
  98. this.isShouchang=0;
  99. this.shouchangIcon='/static/images/faver@3x.png'
  100. }
  101. },
  102. getmendianDetail(id){
  103. api('getmendianDetail',{
  104. id:id
  105. },r=>{
  106. console.log('getmendianDetail:',r);
  107. this.mendianMs=r.data.data;
  108. this.shangjiaImage= getApp().globalData.baseImagurl + this.mendianMs.image;
  109. this.userid=this.mendianMs.userId;
  110. this.posName=this.mendianMs.posName;
  111. this.covers=[{
  112. latitude: this.mendianMs.latitude,
  113. longitude: this.mendianMs.longitude,
  114. iconPath: '/static/images/Rdizhil100@3x.png'
  115. }];
  116. this.latitude=this.mendianMs.latitude;
  117. this.longitude=this.mendianMs.longitude;
  118. },failc=>{
  119. //console.log('getadvertis----',failc)
  120. })
  121. },
  122. }
  123. }
  124. </script>
  125. <style>
  126. /* page{
  127. background-color: #F2F3F7;
  128. } */
  129. .contentVv{
  130. width: 700upx;
  131. margin-left:25upx;
  132. flex-direction: column;
  133. height:400rpx;
  134. }
  135. .viewinrow{
  136. display: flex;
  137. flex-direction: row;
  138. align-items: center;
  139. width: 740upx;
  140. }
  141. .imageV{
  142. width: 750upx;
  143. height: 400rpx;
  144. background-color:floralwhite;
  145. border-width: 1rpx;
  146. border-color: lightgray;
  147. }
  148. .actimgeCT{
  149. position: fixed;
  150. width: 740upx;
  151. left: 5upx;
  152. top: 100rpx;
  153. z-index: 999;
  154. }
  155. .buyBTact{
  156. display:flex;
  157. flex-direction: row;
  158. justify-content:space-between;
  159. align-items: center;
  160. width: 740upx;
  161. }
  162. .actimge{
  163. width: 60rpx;
  164. height: 60rpx;
  165. }
  166. .posname{
  167. font-size: 32rpx;
  168. color: black;
  169. }
  170. .drktext{
  171. font-size: 28rpx;
  172. color: darkgray;
  173. }
  174. .mapview{
  175. display: flex;
  176. width: 750upx;
  177. height: 500rpx;
  178. }
  179. .addrText{
  180. font-size: 26rpx;
  181. color: black;
  182. padding-left: 6rpx;
  183. width: 630upx;
  184. }
  185. </style>