Commit 14d751bf841c580adf781288220331d52a3477ce

Authored by 后端研发-苏明海
2 parents edce611e 990e2bab

Merge branch 'qa' into 'master'

Qa

See merge request !670
components/diy_service/diy_service.js
@@ -26,7 +26,7 @@ Component({ @@ -26,7 +26,7 @@ Component({
26 var iurl=getApp().globalData.setting.imghost; 26 var iurl=getApp().globalData.setting.imghost;
27 var ob={}; 27 var ob={};
28 var txt="object.title_img"; 28 var txt="object.title_img";
29 - ob[txt] = iurl +'/miniapp/images/logo.png'; 29 + ob[txt] = iurl +'/miniapp/images/logo.png?v=1';
30 this.setData(ob); 30 this.setData(ob);
31 }, 31 },
32 32
components/diy_title/diy_title.js
@@ -22,7 +22,7 @@ Component({ @@ -22,7 +22,7 @@ Component({
22 var iurl=getApp().globalData.setting.imghost; 22 var iurl=getApp().globalData.setting.imghost;
23 var ob={}; 23 var ob={};
24 var txt="object.title_img"; 24 var txt="object.title_img";
25 - ob[txt] = iurl +'/miniapp/images/logo.png'; 25 + ob[txt] = iurl +'/miniapp/images/logo.png?v=1';
26 this.setData(ob); 26 this.setData(ob);
27 } 27 }
28 } 28 }
components/diy_title/diy_title.wxml
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 <view class="font_right_rim"> 19 <view class="font_right_rim">
20 <view class="caption" style='color:{{object.title_rightcolor}}'>{{object.title_right}}</view> 20 <view class="caption" style='color:{{object.title_rightcolor}}'>{{object.title_right}}</view>
21 </view> 21 </view>
22 - <view class="aa">></view> 22 + <view class="aa"></view>
23 </view> 23 </view>
24 </view> 24 </view>
25 </block> 25 </block>
components/diy_title/diy_title.wxss
@@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
5 height: auto; 5 height: auto;
6 display: flex; 6 display: flex;
7 padding: 10rpx 0; 7 padding: 10rpx 0;
  8 + align-items: center;
8 } 9 }
9 10
10 /* 图片边框 */ 11 /* 图片边框 */
@@ -43,7 +44,8 @@ @@ -43,7 +44,8 @@
43 .right_rim { 44 .right_rim {
44 min-width: 200rpx; 45 min-width: 200rpx;
45 width: auto; 46 width: auto;
46 - display: inline-block; 47 + display: flex;
  48 + align-items: center;
47 } 49 }
48 50
49 /* 右侧文字边框 */ 51 /* 右侧文字边框 */
@@ -75,3 +77,12 @@ @@ -75,3 +77,12 @@
75 vertical-align: top; 77 vertical-align: top;
76 margin-top: 12rpx 78 margin-top: 12rpx
77 } 79 }
  80 +.aa::after{
  81 + content: '';
  82 + display: inline-block;
  83 + width: 25rpx;
  84 + height: 25rpx;
  85 + border-top:1rpx solid #aaa;
  86 + border-right: 1rpx solid #aaa;
  87 + transform: rotate(45deg);
  88 +}
components/diy_voice/diy_voice.js
@@ -53,7 +53,7 @@ Component({ @@ -53,7 +53,7 @@ Component({
53 var v_logo=vo.logo; 53 var v_logo=vo.logo;
54 if (!(vo.logo.indexOf("/public/static/images/model/logo.png"))){ 54 if (!(vo.logo.indexOf("/public/static/images/model/logo.png"))){
55 this.setData({ 55 this.setData({
56 - voice_logo:"https://mshopimg.yolipai.net/miniapp/images/logo.png" 56 + voice_logo:"https://mshopimg.yolipai.net/miniapp/images/logo.png?v=1"
57 }) 57 })
58 }else{ 58 }else{
59 this.setData({ 59 this.setData({
packageA/pages/quan_list/filter.wxs
@@ -11,13 +11,16 @@ function get_guige(color,spece){ @@ -11,13 +11,16 @@ function get_guige(color,spece){
11 return ""; 11 return "";
12 } 12 }
13 13
14 -function get_color(index){  
15 - var i=index%3; 14 +function get_color(index,list){
  15 + var i=index+1;
  16 + var count=list.length;
  17 + var str="purple";
  18 + i=index%count;
16 switch(i){ 19 switch(i){
17 - case 0: return "red";  
18 - case 1: return "blue";  
19 - case 2: return "purple"; 20 + case 1: str="red";
  21 + case 2: str="blue";
20 } 22 }
  23 + return str;
21 } 24 }
22 25
23 module.exports = { 26 module.exports = {
packageA/pages/quan_list/quan_list.wxml
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 <view class="content"> 10 <view class="content">
11 <view bindtap="go_detail" data-ind="{{index}}" class="quan_item flex fs30" wx:for="{{dataList}}"> 11 <view bindtap="go_detail" data-ind="{{index}}" class="quan_item flex fs30" wx:for="{{dataList}}">
12 <!-- 左边 --> 12 <!-- 左边 -->
13 - <view class="left {{tool.get_color(index)}} flex ai-center jc-center co-w"> 13 + <view class="left {{tool.get_color(index,dataList)}} flex ai-center jc-center co-w">
14 <view class="t-c"> 14 <view class="t-c">
15 <view class="fs40"><text class="fs24">¥</text>{{filters.toFix(item.money,2)}}</view> 15 <view class="fs40"><text class="fs24">¥</text>{{filters.toFix(item.money,2)}}</view>
16 <view>满{{filters.toFix(item.condition,2)}}可用</view> 16 <view>满{{filters.toFix(item.condition,2)}}可用</view>
pages/goods/search/search.js
@@ -101,6 +101,7 @@ Page({ @@ -101,6 +101,7 @@ Page({
101 //扫一扫过来,显示搜索的内容 101 //扫一扫过来,显示搜索的内容
102 var s_key = t.s_key; 102 var s_key = t.s_key;
103 if (s_key){ 103 if (s_key){
  104 + s_key=s_key.trim();
104 this.search(s_key); this.openSearchModal(); 105 this.search(s_key); this.openSearchModal();
105 return; 106 return;
106 } 107 }
@@ -190,10 +191,16 @@ Page({ @@ -190,10 +191,16 @@ Page({
190 }); 191 });
191 }, 192 },
192 submitSearch: function(t) { 193 submitSearch: function(t) {
193 - console.log(111);  
194 - this.search(t.detail.value.word);  
195 -  
196 - 194 + console.log(111,t);
  195 + var val=t.detail.value.word;
  196 + if(!val) val=t.detail.value;
  197 + val=val.trim();
  198 + if(!val){
  199 + a.showWarning("请输入搜索关键词");
  200 + }
  201 +
  202 + this.search(val);
  203 +
197 }, 204 },
198 205
199 //热搜关键字 206 //热搜关键字
@@ -282,13 +289,29 @@ Page({ @@ -282,13 +289,29 @@ Page({
282 289
283 historyRecord() { 290 historyRecord() {
284 let self = this; 291 let self = this;
285 - let keyword = this.data.key_str; 292 + let keyword = this.data.key_str.trim();
286 let searchRecord = this.data.searchRecord; 293 let searchRecord = this.data.searchRecord;
287 if(!searchRecord || searchRecord.length==0) searchRecord=wx.getStorageSync('searchRecord') || []; 294 if(!searchRecord || searchRecord.length==0) searchRecord=wx.getStorageSync('searchRecord') || [];
288 295
289 if(keyword) { 296 if(keyword) {
290 - if(searchRecord.indexOf(keyword) > -1) { 297 +
  298 + var index=searchRecord.indexOf(keyword);
  299 + if(index > -1) {
291 // 已经存在该值 300 // 已经存在该值
  301 + searchRecord.splice(index,1);
  302 + searchRecord.unshift(keyword);
  303 +
  304 + // 将历史记录添加到缓存中
  305 + wx.setStorage({
  306 + key: 'searchRecord',
  307 + data: searchRecord,
  308 + success: function(res) {
  309 + self.setData({
  310 + searchRecord,
  311 + })
  312 + }
  313 + })
  314 +
292 return; 315 return;
293 } else { 316 } else {
294 if(searchRecord.length >= 10) { 317 if(searchRecord.length >= 10) {
pages/goods/search/search.wxml
@@ -162,7 +162,7 @@ @@ -162,7 +162,7 @@
162 <view class="search-modal"> 162 <view class="search-modal">
163 <view class="search-bar"> 163 <view class="search-bar">
164 <form bindsubmit="submitSearch"> 164 <form bindsubmit="submitSearch">
165 - <input autoFocus class="search-input" name="word" placeholder="搜索商品" bindinput="getInput"></input> 165 + <input autoFocus class="search-input" name="word" placeholder="搜索商品" bindconfirm="submitSearch" bindinput="getInput"></input>
166 <button class="search-btn" formType="submit"> 166 <button class="search-btn" formType="submit">
167 <image class="wh100 search-img" src="{{url}}/miniapp/images/sea.png"></image> 167 <image class="wh100 search-img" src="{{url}}/miniapp/images/sea.png"></image>
168 </button> 168 </button>
pages/store/index.js
@@ -81,6 +81,11 @@ Page({ @@ -81,6 +81,11 @@ Page({
81 if(th.data.cat_id){ 81 if(th.data.cat_id){
82 dd.category_id=th.data.cat_id; 82 dd.category_id=th.data.cat_id;
83 } 83 }
  84 + if(th.data.lat){
  85 + dd.lat=th.data.lat;
  86 + dd.lon=th.data.lon;
  87 + }
  88 +
84 89
85 wx.showLoading(); 90 wx.showLoading();
86 //----------获取门店--------- 91 //----------获取门店---------
pages/user/my_service/i_service.wxml
@@ -98,6 +98,5 @@ @@ -98,6 +98,5 @@
98 <warn id="warn"></warn> 98 <warn id="warn"></warn>
99 <my_confirm id="my_confirm"></my_confirm> 99 <my_confirm id="my_confirm"></my_confirm>
100 100
101 -  
102 <!-- 批量预约图标 --> 101 <!-- 批量预约图标 -->
103 -<view class="icon-container" bindtap="goto" data-url="/packageA/pages/my_service2/appment_main"><text class="iconfont icon-plyy"></text></view>  
104 \ No newline at end of file 102 \ No newline at end of file
  103 +<!-- <view class="icon-container" bindtap="goto" data-url="/packageA/pages/my_service2/appment_main"><text class="iconfont icon-plyy"></text></view> -->
105 \ No newline at end of file 104 \ No newline at end of file