Commit db5b5fe00da234e8f2903f7076f3a6204d656da7

Authored by 喻鹏
1 parent eab89b2542
Exists in master

"修改样式细节"

src/pages/myOrderPaying/myOrderPaying.vue
... ... @@ -16,7 +16,7 @@
16 16 </view>
17 17 <view class="order-user-body">
18 18 <image src="../../static/myorder-paying-location.png"></image>
19   - <text class="p3">四川省 德阳市 旌阳区</br>黄河西路碧桂园3期 4单元 202</text>
  19 + <text class="p3">四川省 德阳市 旌阳区\n黄河西路碧桂园3期 4单元 202</text>
20 20 </view>
21 21 </view>
22 22 <view class="order-info">
... ...
src/pages/user/user.vue
... ... @@ -27,7 +27,7 @@
27 27 <text>待付款</text>
28 28 </view>
29 29 <view class="item waitDeliver" @click="toPredelivery" >
30   - <image src="../../static/waitDeliver.png" mode="aspectFill"></image>
  30 + <image src="../../static/waitPay.png" mode="aspectFill"></image>
31 31 <text>待发货</text>
32 32 </view>
33 33 <view class="item waitReceive" @click="torefunProgress">
... ... @@ -62,7 +62,8 @@
62 62 </template>
63 63  
64 64 <script>
65   - import Card from "@/components/CommodityCard/CommodityCard.vue"
  65 + import Card from "@/components/CommodityCard/CommodityCard.vue";
  66 + import store from '@/store';
66 67 export default {
67 68 components: {
68 69 'Card':Card
... ... @@ -87,8 +88,16 @@
87 88 userName:'Adam'
88 89 }
89 90 },
90   - onLoad() {
91   -
  91 + onLoad: function() {
  92 + store.dispatch('userRecommand/getRecommandList', {
  93 + uid: 2,
  94 + });
  95 + },
  96 + computed: {
  97 + userRecommandList() {
  98 + console.log('recommandList', this.$store.state.userRecommand.recommandList);
  99 + return this.$store.state.userRecommand.recommandList;
  100 + }
92 101 },
93 102 methods: {
94 103 toMyOrder(){
... ...
... ... @@ -6,6 +6,13 @@ const urlAlias = {
6 6  
7 7 // 我的订单
8 8 orderList: '/app/order/list', // 获取订单列表
  9 +
  10 +
  11 + // 购物车
  12 + cartList: '/app/cart/list', // 获取购物车列表
  13 +
  14 + // 我的
  15 + recommandList:'/app/prod/recommand', // 获取用户个性化推荐商品
9 16 }
10 17  
11 18 export default urlAlias;
... ...