小商场更新

This commit is contained in:
Junling Bu
2018-11-09 19:53:03 +08:00
parent 02e3d98ff2
commit b7e32a669b
19 changed files with 190 additions and 93 deletions

View File

@@ -30,7 +30,8 @@
"pages/shopping/checkout/checkout",
"pages/goods/goods",
"pages/groupon/myGroupon/myGroupon",
"pages/groupon/grouponDetail/grouponDetail"
"pages/groupon/grouponDetail/grouponDetail",
"pages/groupon/grouponList/grouponList"
],
"window": {
"navigationBarTitleText": "Renard",

View File

@@ -71,7 +71,8 @@ module.exports = {
OrderRefund: WxApiRoot + 'order/refund', //退款取消订单
OrderDelete: WxApiRoot + 'order/delete', //删除订单
OrderConfirm: WxApiRoot + 'order/confirm', //确认收货
OrderComment: WxApiRoot + 'order/comment', // 代评价商品信息
OrderGoods: WxApiRoot + 'order/goods', // 代评价商品信息
OrderComment: WxApiRoot + 'order/comment', // 评价订单商品信息
FootprintList: WxApiRoot + 'footprint/list', //足迹列表
FootprintDelete: WxApiRoot + 'footprint/delete', //删除足迹

View File

@@ -105,11 +105,11 @@ Page({
type: options.type,
valueId: options.valueId
});
this.getOrderComment();
this.getOrderGoods();
},
getOrderComment: function () {
getOrderGoods: function () {
let that = this;
util.request(api.OrderComment, {
util.request(api.OrderGoods, {
orderId: that.data.orderId, goodsId: that.data.valueId
}).then(function (res) {
if (res.errno === 0) {

View File

@@ -31,9 +31,9 @@
<text class="name">{{item.goodsName}}</text>
<text class="number">x{{item.number}}</text>
</view>
<view class="attr">{{item.goodsSpecificationValues}}</view>
<view class="price">¥{{item.retailPrice}}</view>
<view class="btn active" wx:if="{{handleOption.comment}}">
<view class="attr">{{item.specifications}}</view>
<view class="price">¥{{item.price}}</view>
<view class="btn active" wx:if="{{handleOption.comment && (item.comment == 0)}}">
<navigator url="../../commentPost/commentPost?orderId={{item.orderId}}&&valueId={{item.goodsId}}&type=0">去评价</navigator>
</view>
<view class="btn active" wx:if="{{handleOption.rebuy}}">