Commit 3b3927e2fca2d645cc380b0447e03a9dd83e1fa7

Authored by wangfan
1 parent 22e80ef3

快速预定

... ... @@ -24,13 +24,13 @@ Page({
orderid:'',
onLoad: function (options) {
this.orderid=options.id;
App.Orders.GetRemarkBySellerid({
App.Advance.GetRemarkBySellerid({
sellerid:options.sellerid,
}).then(res=>{
let obj={
remark:options.remark,
}
//obj.tags=res.data;
obj.tags=res.data;
if(options.remarkid){
let remarkid=options.remarkid.split(',')
res.data.forEach((t)=>{
... ... @@ -69,9 +69,9 @@ Page({
tags[i].active=!tags[i].active;
console.log(i,tags);
let remark=this.data.remark;
remark=remark.replace(tags[i].name+'、','')
remark=remark.replace(tags[i].remark+'、','')
if(tags[i].active){
remark+=tags[i].name+'、'
remark+=tags[i].remark+'、'
}
this.setData({
remark:remark,
... ...
... ... @@ -9,7 +9,7 @@
<block wx:for="{{tags}}" wx:key="tags.key">
<view class="tag {{item.active?'active':''}}"
bindtap="activeRemark"
data-index="{{index}}">{{item.name}}</view>
data-index="{{index}}">{{item.remark}}</view>
</block>
</view>
<formids bindclick="submit">
... ...
... ... @@ -136,7 +136,7 @@ export default {
silence: false,
},
//菜品备注tags
'App.Orders.GetRemarkBySellerid':{
'App.Advance.GetRemarkBySellerid':{
cachetime: 300,
},
//下单
... ...