2024-05-17 17:14:40 +08:00
|
|
|
|
<wxs module="findGoods">
|
|
|
|
|
function findGoods(goodsList, id) {
|
|
|
|
|
// 初始化一个变量来存储找到的商品
|
|
|
|
|
var found = null;
|
|
|
|
|
|
|
|
|
|
// 遍历商品列表以查找具有指定ID的商品
|
|
|
|
|
for (var i = 0; i < goodsList.length; i++) {
|
|
|
|
|
if (goodsList[i].id === id) {
|
|
|
|
|
found = goodsList[i];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 如果找到了商品,返回商品的照片
|
|
|
|
|
if (found !== null) {
|
|
|
|
|
return found;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 如果没有找到,返回undefined
|
|
|
|
|
return undefined;
|
|
|
|
|
}
|
|
|
|
|
module.exports = {
|
|
|
|
|
findGoods: findGoods,
|
|
|
|
|
}
|
|
|
|
|
</wxs>
|
|
|
|
|
<view wx:if="{{package}}" class="goods">
|
|
|
|
|
<view class="cont display_J_B" wx:for='{{package.goods}}' wx:key='specId'>
|
|
|
|
|
<view class="cont-l">
|
|
|
|
|
<image src="{{findGoods.findGoods(goods.goodsList, item.id).goodsPhoto}}"></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="cont-m">
|
|
|
|
|
<view class="name GStitleOne">{{item.name}}</view>
|
|
|
|
|
<view class="specs" wx:if="{{findGoods.findGoods(goods.goodsList, item.id).orderPayWay!=3}}">规格:{{item.spec}}</view>
|
|
|
|
|
<view class="price" wx:if="{{findGoods.findGoods(goods.goodsList, item.id).orderPayWay!=3}}">
|
|
|
|
|
{{findGoods.findGoods(goods.goodsList, item.id).orderPayWay!=2?'¥':''}}{{findGoods.findGoods(goods.goodsList, item.id).wisdGoodsSpec.specBulyPrice==null?findGoods.findGoods(goods.goodsList, item.id).wisdGoodsSpec.specPrice:findGoods.findGoods(goods.goodsList, item.id).wisdGoodsSpec.specBulyPrice}}{{findGoods.findGoods(goods.goodsList, item.id).orderPayWay!=2?'':'积分'}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="price" wx:if="{{findGoods.findGoods(goods.goodsList, item.id).orderPayWay==3}}">¥0</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="cont-r">x{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view wx:else class="goods">
|
2024-05-06 15:34:15 +08:00
|
|
|
|
<view class="cont display_J_B" wx:for='{{goods.goodsList}}' wx:key='index'>
|
|
|
|
|
<view class="cont-l">
|
|
|
|
|
<image src="{{item.goodsPhoto}}"></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="cont-m">
|
|
|
|
|
<view class="name GStitleOne">{{item.goodsName}}</view>
|
|
|
|
|
<view class="specs" wx:if="{{goods.orderPayWay!=3}}">规格:{{item.wisdGoodsSpec.specName}}</view>
|
|
|
|
|
<view class="price" wx:if="{{goods.orderPayWay!=3}}">
|
|
|
|
|
{{goods.orderPayWay!=2?'¥':''}}{{item.wisdGoodsSpec.specBulyPrice==null?item.wisdGoodsSpec.specPrice:item.wisdGoodsSpec.specBulyPrice}}{{goods.orderPayWay!=2?'':'积分'}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="price" wx:if="{{goods.orderPayWay==3}}">¥0</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="cont-r">x{{item.goodsNum}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="aArice" wx:if="{{sq==1&&goods.orderPayWay==1}}">
|
|
|
|
|
退款金额:<text>¥<text>{{goods.orderActualPay}}</text></text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="aArice" wx:if="{{sq==1&&goods.orderPayWay==2}}">
|
|
|
|
|
退款金额:<text><text>{{goods.orderOtherPay}}积分</text></text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="aArice" wx:if="{{sq==1&&goods.orderPayWay==3}}">
|
|
|
|
|
退款金额:<text><text>套餐券1张</text></text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="aArice" wx:if="{{sq==1&&(goods.orderPayWay==4||goods.orderPayWay==5)}}">
|
|
|
|
|
退款金额:<text style="padding-right:50rpx;">¥<text>{{goods.orderActualPay}}</text></text>
|
|
|
|
|
{{goods.orderPayWay==4?'现金券':'折扣券'}}:<text>¥<text>{{goods.orderOtherPay}}</text></text>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="aArice display_J_S">
|
|
|
|
|
<view class="aArice-l">{{sq==1?'退货':'换货'}}说明:</view>
|
|
|
|
|
<input type="text" placeholder="必填" bindinput="textarea" value="{{textarea}}" />
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="up">
|
|
|
|
|
<view class='title'>上传凭证<text>(不超过4张,长按删除)</text></view>
|
|
|
|
|
<view class='photo'>
|
|
|
|
|
<view class='photo_cont' wx:for="{{photo}}" catchlongtap="delimg" data-index='{{index}}' wx:key="index">
|
|
|
|
|
<image src='{{item}}'></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='photo_upload' catchtap='revise_img'>
|
|
|
|
|
<image src='/icon/my_feedback_photo.png'></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="height100"></view>
|
|
|
|
|
<view class="height100"></view>
|
|
|
|
|
<view class='submit' catchtap='submitBut'>提交申请</view>
|