作者 燕成杰

合并分支 'yan' 到 'master'

Yan



查看合并请求 !21
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 }, 70 },
71 "vueVersion" : "2", 71 "vueVersion" : "2",
72 "h5" : { 72 "h5" : {
73 - "title" : "元届印象", 73 + "title" : "琉璃藏宝阁",
74 "router" : { 74 "router" : {
75 "mode" : "history" 75 "mode" : "history"
76 } 76 }
@@ -210,7 +210,7 @@ @@ -210,7 +210,7 @@
210 ], 210 ],
211 "globalStyle": { 211 "globalStyle": {
212 "navigationBarTextStyle": "black", 212 "navigationBarTextStyle": "black",
213 - "navigationBarTitleText": "元届印象", 213 + "navigationBarTitleText": "琉璃藏宝阁",
214 "navigationBarBackgroundColor": "#F8F8F8", 214 "navigationBarBackgroundColor": "#F8F8F8",
215 "backgroundColor": "#F8F8F8" 215 "backgroundColor": "#F8F8F8"
216 } 216 }
@@ -84,15 +84,15 @@ @@ -84,15 +84,15 @@
84 <view class="tip"> 84 <view class="tip">
85 85
86 </view> 86 </view>
87 - <text>卖家信息</text> 87 + <text>商品详情</text>
88 </view> 88 </view>
89 <view class="showcontant"> 89 <view class="showcontant">
90 {{detail.description}} 90 {{detail.description}}
91 </view> 91 </view>
92 </view> 92 </view>
93 <view class="btn"> 93 <view class="btn">
94 - <view class="paybtn" @click="product_buy">  
95 - 立即购买 94 + <view class="paybtn" :class="detail.status==2?'sold':''" @click="product_buy">
  95 + {{detail.status==2?'已售出':'立即购买'}}
96 </view> 96 </view>
97 </view> 97 </view>
98 <!-- <u-picker :show="resurtshow" :columns="columns"></u-picker> --> 98 <!-- <u-picker :show="resurtshow" :columns="columns"></u-picker> -->
@@ -387,7 +387,8 @@ @@ -387,7 +387,8 @@
387 } 387 }
388 }, 388 },
389 //下单跳转 389 //下单跳转
390 - async product_buy() { 390 + async product_buy() {
  391 + if(this.detail.status==2) return
391 uni.navigateTo({ 392 uni.navigateTo({
392 url: "/pages/index/buy?id=" + this.id 393 url: "/pages/index/buy?id=" + this.id
393 }) 394 })
@@ -498,7 +499,7 @@ @@ -498,7 +499,7 @@
498 color: rgba(0, 0, 0, 0.4); 499 color: rgba(0, 0, 0, 0.4);
499 font-size: 24rpx; 500 font-size: 24rpx;
500 font-weight: 400; 501 font-weight: 400;
501 - font-family: "PingFang SC"; 502 + font-family: "PingFang SC";
502 } 503 }
503 504
504 .missbar { 505 .missbar {
@@ -531,7 +532,7 @@ @@ -531,7 +532,7 @@
531 border-radius: 24rpx; 532 border-radius: 24rpx;
532 padding: 32rpx; 533 padding: 32rpx;
533 box-sizing: border-box; 534 box-sizing: border-box;
534 - 535 + white-space: pre-wrap;
535 .misstop { 536 .misstop {
536 display: flex; 537 display: flex;
537 align-items: center; 538 align-items: center;
@@ -737,5 +738,8 @@ @@ -737,5 +738,8 @@
737 position: fixed; 738 position: fixed;
738 right: 28rpx; 739 right: 28rpx;
739 bottom: 186rpx; 740 bottom: 186rpx;
  741 + }
  742 + .sold {
  743 + background: rgba(0,0,0,.2) !important;
740 } 744 }
741 </style> 745 </style>
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <u-tabs :list="list2" lineColor="#FED000" :scrollable="false" @click="onclick"></u-tabs> 5 <u-tabs :list="list2" lineColor="#FED000" :scrollable="false" @click="onclick"></u-tabs>
6 </u-sticky> 6 </u-sticky>
7 <view class="group"> 7 <view class="group">
8 - <view class="item" v-for="(item,idx) in showlist" :key="idx" @click.stop="ondetail(item.id)"> 8 + <view class="item" v-for="(item,idx) in showlist" :key="idx" @click.stop="ondetail(item.id,item.orderinfo.product_id)">
9 <view class="top flexA"> 9 <view class="top flexA">
10 <view class="left flexA"> 10 <view class="left flexA">
11 <image src="/static/order.png" mode=""></image> 11 <image src="/static/order.png" mode=""></image>
@@ -101,10 +101,10 @@ @@ -101,10 +101,10 @@
101 }, 101 },
102 methods: { 102 methods: {
103 // 跳转详情 103 // 跳转详情
104 - ondetail(id) { 104 + ondetail(id,shopId) {
105 console.log(id) 105 console.log(id)
106 uni.navigateTo({ 106 uni.navigateTo({
107 - url: "/pages/mine/order_detail?id=" + id 107 + url: `/pages/mine/order_detail?id=${id}&shopId=${shopId}`
108 }) 108 })
109 }, 109 },
110 //确认收货 110 //确认收货
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 退出登录 7 退出登录
8 </view> 8 </view>
9 <view class="topInfo flexA"> 9 <view class="topInfo flexA">
10 - <image :src="userInfo.avatar" mode=""></image> 10 + <image @click="doLogin" :src="userInfo.avatar || '/static/loginUser.png'" mode=""></image>
11 <view class="right"> 11 <view class="right">
12 <view class="" @click="doLogin">{{userInfo.nickname || '登录'}}</view> 12 <view class="" @click="doLogin">{{userInfo.nickname || '登录'}}</view>
13 <view class="">{{userInfo.mobile || ''}}</view> 13 <view class="">{{userInfo.mobile || ''}}</view>
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 <template v-slot:default="item"> 16 <template v-slot:default="item">
17 <view class="item"> 17 <view class="item">
18 <view class="title">{{item.name}}</view> 18 <view class="title">{{item.name}}</view>
19 - <view class="desc">所属分 {{item.sort.name}}</view> 19 + <view class="desc">所属分 {{item.sort.name}}</view>
20 <view class="desc flexA"> 20 <view class="desc flexA">
21 {{item.seller_name}} 21 {{item.seller_name}}
22 <view class="money"> 22 <view class="money">
@@ -73,18 +73,20 @@ @@ -73,18 +73,20 @@
73 price: "", 73 price: "",
74 images_preview: "", 74 images_preview: "",
75 } 75 }
76 - }, 76 + },
  77 + shopId:''
77 }; 78 };
78 }, 79 },
79 onLoad(options) { 80 onLoad(options) {
80 - this.id = options.id 81 + this.id = options.id
  82 + this.shopId = options.shopId
81 this.order_detail() 83 this.order_detail()
82 }, 84 },
83 methods: { 85 methods: {
84 //跳转详情 86 //跳转详情
85 ondetail(item) { 87 ondetail(item) {
86 uni.navigateTo({ 88 uni.navigateTo({
87 - url: "/pages/index/detail?id=" + item 89 + url: "/pages/index/detail?id=" + this.shopId
88 }) 90 })
89 }, 91 },
90 //订单详情 92 //订单详情
@@ -172,13 +172,13 @@ @@ -172,13 +172,13 @@
172 console.log(this.form); 172 console.log(this.form);
173 if(this.type==1){ 173 if(this.type==1){
174 if(this.form.withdraw_type==1){ 174 if(this.form.withdraw_type==1){
175 - toa.toast('去微信授权') 175 + toa.toast('微信提现暂未开放,敬请期待')
176 }else { 176 }else {
177 this.toTakeMoney() 177 this.toTakeMoney()
178 } 178 }
179 }else { 179 }else {
180 if(this.form.withdraw_type==1){ 180 if(this.form.withdraw_type==1){
181 - toa.toast('去微信授权') 181 + toa.toast('微信提现暂未开放,敬请期待')
182 }else { 182 }else {
183 this.takeBail() 183 this.takeBail()
184 } 184 }
1 -<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>元届印象</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))  
2 - document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.f3bf79df.js></script><script src=/static/js/index.4518487c.js></script></body></html>  
  1 +<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>琉璃藏宝阁</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
  2 + document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.f3bf79df.js></script><script src=/static/js/index.e92a2594.js></script></body></html>