12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- // components/myOrderCard/index.js
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- item: {
- type:Object,
- value:{}
- }
- },
- /**
- * 组件的初始数据
- */
- data: {
- },
- /**
- * 组件的方法列表
- */
- methods: {
- goToTest() {
- // console.log(this.data);
- const commodityUrl = this.data.item.commodityUrl;
- const commodityTitle = this.data.item. commodityTitle;
- const commodityPrice = this.data.item.commodityPrice;
- const orderId = this.data.item.orderId;
- wx.navigateTo({
- url: '../../pages/order_detail/order_detail?imgUrl=' + commodityUrl +
- '&title=' + commodityTitle + '&price=' + commodityPrice + '&orderId=' + orderId
- })
- },
- toChat() {
- const goodsId = this.data.item.goodsId;
- const sellerId = this.data.item.sellerId;
- wx.navigateTo({
- url: '../../pages/chat/chat?toUid=' + sellerId + '&goodsId=' + goodsId
- })
- }
- }
- })
|