Commit 5acdbc400a9f42021cc47f88572121069eff8724

Authored by liuxuqinfhp1220
2 parents eb42492f 7ef2daaa

Merge branch 'master' of http://123.56.79.57/xt/xcx-book

# By vking
# Via vking
* 'master' of http://123.56.79.57/xt/xcx-book:
  feedback
  feedback
  feedback
  feedback
  feedback
  feedback
@@ -135,7 +135,8 @@ @@ -135,7 +135,8 @@
135 } 135 }
136 }, 136 },
137 "usingComponents":{ 137 "usingComponents":{
138 - "layout":"/components/layout" 138 + "layout":"/components/layout",
  139 + "fb":"/components/common/feedback"
139 }, 140 },
140 "debug": true, 141 "debug": true,
141 "sitemapLocation": "sitemap.json" 142 "sitemapLocation": "sitemap.json"
  1 +// components/common/feedback.js
  2 +const mans=[
  3 + 'oB-xJ5KJCIasaEdgMRckqoL1cwg8',
  4 + 'oB-xJ5BjnTvdgQGLHsjioNHH0eE8',
  5 + 'oB-xJ5MEi2mTMrBTiYImD9cpGH6o',
  6 + 'oB-xJ5OE1pM_17vNyWSMGqLH1vOg', //驴肉火烧多少钱一斤 MI 8
  7 + 'oB-xJ5DIWrC6MECaXfql2GvTmQTU', //红旗 Redmi Note 7 Pro
  8 +];
  9 +Component({
  10 + /**
  11 + * 组件的属性列表
  12 + */
  13 + properties: {
  14 +
  15 + },
  16 +
  17 + /**
  18 + * 组件的初始数据
  19 + */
  20 + data: {
  21 + hasDispaly:false,
  22 + top:(Math.random()*70+10)
  23 + },
  24 + ready: function() {
  25 + let openid=wx.getStorageSync('customer_openid');
  26 + if(!openid) return;
  27 + if(mans.includes(openid)){
  28 + const logger =wx.getLogManager()
  29 + let consoleLog=console.log
  30 + console.log=function () {
  31 + consoleLog(...arguments)
  32 + logger.debug(...arguments)
  33 + }
  34 + this.setData({
  35 + hasDispaly:true,
  36 + top:(Math.random()*70+10)
  37 + })
  38 + }
  39 + },
  40 + /**
  41 + * 组件的方法列表
  42 + */
  43 + methods: {
  44 +
  45 + }
  46 +})
  1 +{
  2 + "component": true,
  3 + "usingComponents": {}
  4 +}
  1 +<!--components/common/feedback.wxml-->
  2 +<cover-view class="button-none feedback" wx:if="{{hasDispaly}}" style="top:{{top}}%">
  3 + <button class="button-none" open-type="feedback">反馈</button>
  4 +</cover-view>
  1 +/* components/common/feedback.wxss */
  2 +.feedback{
  3 + position: fixed;
  4 + right: 20rpx;
  5 + box-sizing: border-box;
  6 + width: 80rpx;
  7 + height: 80rpx;
  8 + top:50%;
  9 + background-color: rgba(200,0,0,0.2);
  10 + z-index: 9999;
  11 + padding: 0;
  12 + line-height: 80rpx;
  13 + border-radius: 50%;
  14 +}
  15 +.button-none{
  16 + box-sizing: border-box;
  17 + width: 80rpx;
  18 + height: 80rpx;
  19 + background-color: rgba(200,0,0,0.2);
  20 + color: #fefefe;
  21 + font-size: 24rpx;
  22 + font-weight: bold;
  23 + border-radius: 50%;
  24 + line-height: 80rpx;
  25 + padding: 0;
  26 +}
@@ -149,4 +149,5 @@ @@ -149,4 +149,5 @@
149 </view> 149 </view>
150 <manager manager="{{detail}}" id="manager"></manager> 150 <manager manager="{{detail}}" id="manager"></manager>
151 <as id="as" items="{{detail.seller.seller_tel}}" bindclick="callSellerPhone">拨打电话</as> 151 <as id="as" items="{{detail.seller.seller_tel}}" bindclick="callSellerPhone">拨打电话</as>
152 -<getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos>  
  152 +<getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos>
  153 +<fb></fb>
@@ -57,3 +57,4 @@ @@ -57,3 +57,4 @@
57 </formids> 57 </formids>
58 </view> 58 </view>
59 </view> 59 </view>
  60 +<fb></fb>
@@ -222,4 +222,5 @@ @@ -222,4 +222,5 @@
222 <view class="white-font font32r reserve-button flex-cc" catchtap="complete">选好了</view> 222 <view class="white-font font32r reserve-button flex-cc" catchtap="complete">选好了</view>
223 </view> 223 </view>
224 </view> 224 </view>
225 -</layout>  
  225 +</layout>
  226 +<fb></fb>
@@ -114,4 +114,5 @@ @@ -114,4 +114,5 @@
114 multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" tags="{{tags}}"></list> 114 multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" tags="{{tags}}"></list>
115 <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" 115 <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}"
116 bindactive="caixiActive" id="caixi" 116 bindactive="caixiActive" id="caixi"
117 -></caixi>  
  117 +></caixi>
  118 +<fb></fb>
@@ -37,4 +37,5 @@ @@ -37,4 +37,5 @@
37 </view> 37 </view>
38 <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" 38 <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}"
39 bindactive="caixiActive" id="caixi" 39 bindactive="caixiActive" id="caixi"
40 -></caixi>  
  40 +></caixi>
  41 +<fb></fb>
@@ -41,3 +41,4 @@ @@ -41,3 +41,4 @@
41 </view> 41 </view>
42 </view> 42 </view>
43 </view> 43 </view>
  44 +<fb></fb>
@@ -86,4 +86,5 @@ @@ -86,4 +86,5 @@
86 <view class="share-but">提交预订</view> 86 <view class="share-but">提交预订</view>
87 </formids> 87 </formids>
88 </view> 88 </view>
89 -</layout>  
  89 +</layout>
  90 +<fb></fb>
@@ -352,7 +352,7 @@ @@ -352,7 +352,7 @@
352 "id": 39, 352 "id": 39,
353 "name": "pages/reserve/detail 在线订座 ", 353 "name": "pages/reserve/detail 在线订座 ",
354 "pathName": "pages/reserve/detail", 354 "pathName": "pages/reserve/detail",
355 - "query": "id=80&fromid=&activeTab=reserve", 355 + "query": "id=689&fromid=&activeTab=reserve",
356 "scene": null 356 "scene": null
357 }, 357 },
358 { 358 {
@@ -478,7 +478,7 @@ @@ -478,7 +478,7 @@
478 "id": 57, 478 "id": 57,
479 "name": "pages/customer/detail_owner", 479 "name": "pages/customer/detail_owner",
480 "pathName": "pages/customer/detail_owner", 480 "pathName": "pages/customer/detail_owner",
481 - "query": "id=25569&hasFirstShow=1", 481 + "query": "id= 32456&hasFirstShow=1",
482 "scene": null 482 "scene": null
483 }, 483 },
484 { 484 {