Commit 3b3927e2fca2d645cc380b0447e03a9dd83e1fa7

Authored by wangfan
1 parent 22e80ef3

快速预定

@@ -24,13 +24,13 @@ Page({ @@ -24,13 +24,13 @@ Page({
24 orderid:'', 24 orderid:'',
25 onLoad: function (options) { 25 onLoad: function (options) {
26 this.orderid=options.id; 26 this.orderid=options.id;
27 - App.Orders.GetRemarkBySellerid({ 27 + App.Advance.GetRemarkBySellerid({
28 sellerid:options.sellerid, 28 sellerid:options.sellerid,
29 }).then(res=>{ 29 }).then(res=>{
30 let obj={ 30 let obj={
31 remark:options.remark, 31 remark:options.remark,
32 } 32 }
33 - //obj.tags=res.data; 33 + obj.tags=res.data;
34 if(options.remarkid){ 34 if(options.remarkid){
35 let remarkid=options.remarkid.split(',') 35 let remarkid=options.remarkid.split(',')
36 res.data.forEach((t)=>{ 36 res.data.forEach((t)=>{
@@ -69,9 +69,9 @@ Page({ @@ -69,9 +69,9 @@ Page({
69 tags[i].active=!tags[i].active; 69 tags[i].active=!tags[i].active;
70 console.log(i,tags); 70 console.log(i,tags);
71 let remark=this.data.remark; 71 let remark=this.data.remark;
72 - remark=remark.replace(tags[i].name+'、','') 72 + remark=remark.replace(tags[i].remark+'、','')
73 if(tags[i].active){ 73 if(tags[i].active){
74 - remark+=tags[i].name+'、' 74 + remark+=tags[i].remark+'、'
75 } 75 }
76 this.setData({ 76 this.setData({
77 remark:remark, 77 remark:remark,
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <block wx:for="{{tags}}" wx:key="tags.key"> 9 <block wx:for="{{tags}}" wx:key="tags.key">
10 <view class="tag {{item.active?'active':''}}" 10 <view class="tag {{item.active?'active':''}}"
11 bindtap="activeRemark" 11 bindtap="activeRemark"
12 - data-index="{{index}}">{{item.name}}</view> 12 + data-index="{{index}}">{{item.remark}}</view>
13 </block> 13 </block>
14 </view> 14 </view>
15 <formids bindclick="submit"> 15 <formids bindclick="submit">
@@ -136,7 +136,7 @@ export default { @@ -136,7 +136,7 @@ export default {
136 silence: false, 136 silence: false,
137 }, 137 },
138 //菜品备注tags 138 //菜品备注tags
139 - 'App.Orders.GetRemarkBySellerid':{ 139 + 'App.Advance.GetRemarkBySellerid':{
140 cachetime: 300, 140 cachetime: 300,
141 }, 141 },
142 //下单 142 //下单