积分商城功能完善
This commit is contained in:
@@ -10,29 +10,30 @@
|
||||
<view class="bg" :style="{ backgroundImage: `url(${imgs.bg})` }">
|
||||
<image :src="imgs.success" class="success"></image>
|
||||
<view class="u-font-40 font-700">兑换成功</view>
|
||||
<view class="u-font-32 font-700">这里是商品名称</view>
|
||||
<view class="u-m-t-14">需前往店铺自行兑换领取</view>
|
||||
<view class="u-font-32 font-700">{{item.pointsGoodsName}}</view>
|
||||
<view class="u-m-t-14" v-if="item.goodsCategory!='优惠券'">需前往店铺自行兑换领取</view>
|
||||
<view class="u-m-t-14" v-else>优惠券直接到账您的账户中</view>
|
||||
</view>
|
||||
<view class="info u-flex u-flex-col">
|
||||
<view class="u-p-22">
|
||||
<text class="color-666">兑换商品:</text>
|
||||
<text>这里是商品名称</text>
|
||||
<text>{{item.pointsGoodsName}}</text>
|
||||
</view>
|
||||
<view class="u-p-22">
|
||||
<text class="color-666">兑换数量:</text>
|
||||
<text>1份</text>
|
||||
<text>{{item.number}}份</text>
|
||||
</view>
|
||||
<view class="u-p-22">
|
||||
<text class="color-666">消耗积分:</text>
|
||||
<text>800</text>
|
||||
<text>{{item.spendPoints}}</text>
|
||||
</view>
|
||||
<view class="u-p-22">
|
||||
<text class="color-666">下单时间:</text>
|
||||
<text>2025-12-3 17:19:32</text>
|
||||
<text>{{item.checkoutTime}}</text>
|
||||
</view>
|
||||
<view class="u-p-22">
|
||||
<text class="color-666">订单号:</text>
|
||||
<text>:DH202511300001</text>
|
||||
<text>:{{item.orderNo}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex bottom u-row-center">
|
||||
@@ -44,6 +45,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
|
||||
const imgs = {
|
||||
bg: "https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/2/b625560a5b75418c9e643841f8674a0c.png",
|
||||
success:
|
||||
@@ -53,8 +56,18 @@ function back() {
|
||||
uni.navigateBack();
|
||||
}
|
||||
function lookOrder() {
|
||||
|
||||
uni.redirectTo({
|
||||
url:'/scoreShop/order/index?shopId='+item.shopId
|
||||
})
|
||||
}
|
||||
const item=reactive({
|
||||
|
||||
})
|
||||
onLoad(opt=>{
|
||||
const exchange_goods_success_data=uni.getStorageSync('exchange_goods_success')
|
||||
Object.assign(item,exchange_goods_success_data)
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user