半完成

This commit is contained in:
pplokijuhyg 2019-12-24 14:08:26 +08:00
parent 92f0dd4c46
commit bb92c57227
157 changed files with 4694 additions and 39 deletions

View File

@ -5,13 +5,22 @@ Component({
cprice: String, cprice: String,
freight: String, freight: String,
goods: Array, goods: Array,
gid: String gid: String,
type:String
}, },
data: {}, data: {},
methods: { methods: {
todetail() { shouhuo(){
wx.navigateTo({ bin.getuserid().then((id)=>{
url: "/pages/undetermined/undetermined" bin.request({
url:"User/orderConfirm",
urldata:{
user_id:id,
order_id:this.data.gid
}
}).then((res)=>{
console.log(res)
})
}) })
}, },
cancel() { cancel() {

View File

@ -1,12 +1,16 @@
<view class="commodity" bindtap="todetail"> <view class="commodity">
<message wx:for="{{goods}}" title="{{item.goods_name}}" spec="{{item.spec_key_name}}" price="{{item.goods_price}}" num="{{item.goods_num}}" image="{{item.image}}"></message> <message wx:for="{{goods}}" title="{{item.goods_name}}" spec="{{item.spec_key_name}}" price="{{item.goods_price}}" num="{{item.goods_num}}" image="{{item.image}}"></message>
<view class="aggregate"> <view class="aggregate">
共计{{num}}件商品 合计: 共计{{num}}件商品 合计:
<text>¥{{cprice}}</text> <text>¥{{cprice}}</text>
(含运费¥{{freight}}) (含运费¥{{freight}})
</view> </view>
<view class="operation"> <view class="operation" wx:if="{{type == 1}}">
<view class="button" catch:tap="cancel">取消订单</view> <view class="button" catch:tap="cancel">取消订单</view>
<view class="button hlight" catch:tap="pay">立即付款</view> <view class="button hlight" catch:tap="pay">立即付款</view>
</view> </view>
<view class="operation" wx:if="{{type == 3}}">
<!-- <view class="button" catch:tap="cancel">取消订单</view> -->
<view class="button hlight" catch:tap="shouhuo">确认收货</view>
</view>
</view> </view>

View File

@ -5,6 +5,25 @@ Component({
data: { data: {
}, },
methods: { methods: {
receivingw(a){
// receiving
wx.navigateTo({
url: "/pages/receiving/receiving?id=" + a.target.dataset.id
})
},
receivings(a){
console.log(a)
wx.navigateTo({
url: "/pages/undetermined/undetermined?id=" + a.target.dataset.id
})
},
todetail(a) {
console.log(a)
// return ;
wx.navigateTo({
url: "/pages/particulars/particulars?id=" + a.target.dataset.id
})
},
getorder(res){ getorder(res){
bin.request({ bin.request({
url:"User/getOrderList", url:"User/getOrderList",
@ -76,7 +95,10 @@ Component({
bin.getuserid().then((res)=>{ bin.getuserid().then((res)=>{
this.getorder(res) this.getorder(res)
}) })
} } ,
receiving(){
}
}, },
ready(){ ready(){

View File

@ -1,17 +1,17 @@
<van-tabs class="tab" swipe-threshold="5"> <van-tabs class="tab" swipe-threshold="5">
<van-tab title="待付款"> <van-tab title="待付款" bind:tap="todetail">
<commodity wx:for="{{WAITPAY}}" wx:for-index="j" wx:key="{{j}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}" gid="{{item.order_id}}"></commodity> <commodity wx:for="{{WAITPAY}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}" gid="{{item.order_id}}" type="1"></commodity>
</van-tab> </van-tab>
<van-tab title="代发货"> <van-tab title="待发货" bind:tap="receivings">
<commodity wx:for="{{WAITSEND}}" wx:for-index="j" wx:key="{{j}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity> <commodity wx:for="{{WAITSEND}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
</van-tab> </van-tab>
<van-tab title="待收货"> <van-tab title="待收货" bind:tap="receivingw">
<commodity wx:for="{{WAITRECEIVE}}" wx:for-index="j" wx:key="{{j}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity> <commodity wx:for="{{WAITRECEIVE}}" wx:for-index="j" wx:key="{{j}}" type="3" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" gid="{{item.order_id}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
</van-tab> </van-tab>
<van-tab title="已完成"> <van-tab title="已完成" bind:tap="receivingw">
<commodity wx:for="{{FINISH}}" wx:for-index="j" wx:key="{{j}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity> <commodity wx:for="{{FINISH}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
</van-tab> </van-tab>
<van-tab title="售后"> <van-tab title="售后">
<commodity wx:for="{{AFTERSALE}}" wx:for-index="j" wx:key="{{j}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity> <commodity wx:for="{{AFTERSALE}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
</van-tab> </van-tab>
</van-tabs> </van-tabs>

View File

@ -1,5 +1,12 @@
Component({ Component({
properties: { properties: {
num:String,
price:String,
cprice:String,
number:String,
time:String,
text:String,
goods:Array
}, },
data: { data: {
}, },

View File

@ -1,24 +1,24 @@
<view class="content"> <view class="content">
<message></message> <message wx:for="{{goods}}" wx:for-index="j" wx:key="{{j}}" image="{{item.image}}" title="{{item.goods_name}}" spec="{{item.spec_ley_name}}" price="{{item.goods_price}}" num="{{item.goods_price}}"></message>
<view class="aggregate"> <view class="aggregate">
共计1件商品 合计: 共计{{num}}件商品 合计:
<text>¥29.80</text> <text>¥{{price}}</text>
(含运费¥0.00) (含运费¥{{cprice}})
</view> </view>
<view class="message"> <view class="message">
<text>订单编号</text> <text>订单编号</text>
<text>123456789123456789</text> <text>{{number}}</text>
</view> </view>
<view class="message"> <view class="message">
<text>下单时间</text> <text>下单时间</text>
<text>2018-10-01 18:00:06</text> <text>{{time}}</text>
</view> </view>
<view class="message"> <view class="message">
<text>配送方式</text> <text>配送方式</text>
<text>快递 免邮</text> <text>快递 </text>
</view> </view>
<view class="leave"> <view class="leave">
<text>备注:</text> <text>备注:</text>
<input type="text" placeholder="填写你需要对我们说的" /> <input type="text" placeholder="{{text}}" />
</view> </view>
</view> </view>

View File

@ -1,5 +1,8 @@
Component({ Component({
properties: { properties: {
name:String,
phone:String,
addr:String
}, },
data: { data: {
}, },

View File

@ -1,10 +1,10 @@
<view class="orderchooseaddr"> <view class="orderchooseaddr">
<view class="left"> <view class="left">
<view class="userinfo"> <view class="userinfo">
<text class="username">于于宇 15698857895</text> <text class="username">{{name}} {{phone}}</text>
<text></text> <text></text>
</view> </view>
<view class="addr">中国大陆 山东省 青岛市 即墨区 纯阳路 某某某小区</view> <view class="addr">{{addr}}</view>
</view> </view>
<view class="right"></view> <view class="right"></view>
</view> </view>

View File

@ -1,18 +1,32 @@
// pages/particulars/particulars.js // pages/particulars/particulars.js
import bin from "../../utils/bin"
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
list:{}
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
bin.getuserid().then((id)=>{
bin.request({
url:"User/getOrderDetail",
data:{
user_id:id,
id:options.id
}
}).then((res)=>{
console.log(res)
this.setData({
list:res.data.result
})
})
})
}, },
/** /**

View File

@ -1,5 +1,5 @@
<view class="box"> <view class="box">
<orderchooseaddr></orderchooseaddr> <orderchooseaddr name="{{list.consignee}}" addr="{{list.address}}" phone="{{list.mobile}}"></orderchooseaddr>
<content></content> <content num="{{list.num}}" price="{{list.goods_price}}" cprice="{{list.integral_money}}" number="{{list.order_sn}}" time="{{list.add_time}}" goods="{{list.goods_list}}" text="{{list.user_note}}"></content>
<submit></submit> <submit></submit>
</view> </view>

View File

@ -1,18 +1,32 @@
// pages/receiving/receiving.js // pages/receiving/receiving.js
import bin from "../../utils/bin"
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
list:{}
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
bin.getuserid().then((id)=>{
bin.request({
url:"User/getOrderDetail",
data:{
user_id:id,
id:options.id
}
}).then((res)=>{
console.log(res)
this.setData({
list:res.data.result
})
})
})
}, },
/** /**

View File

@ -1,4 +1,4 @@
<view class="box"> <view class="box">
<orderchooseaddr></orderchooseaddr> <orderchooseaddr name="{{list.consignee}}" addr="{{list.address}}" phone="{{list.mobile}}"></orderchooseaddr>
<content></content> <content num="{{list.num}}" price="{{list.goods_price}}" cprice="{{list.integral_money}}" number="{{list.order_sn}}" time="{{list.add_time}}" goods="{{list.goods_list}}" text="{{list.user_note}}"></content>
</view> </view>

View File

@ -1,18 +1,34 @@
// pages/undetermined/undetermined.js // pages/undetermined/undetermined.js
import bin from "../../utils/bin"
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
list:{}
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function(options) { onLoad: function(options) {
bin.getuserid().then((id)=>{
bin.request({
url:"User/getOrderDetail",
data:{
user_id:id,
id:options.id
}
}).then((res)=>{
console.log(res)
this.setData({
list:res.data.result
})
})
})
}, },
chooseaddr() { chooseaddr() {
wx.navigateTo({ wx.navigateTo({

View File

@ -1,4 +1,4 @@
<view class="box"> <view class="box">
<orderchooseaddr bindtap="chooseaddr"></orderchooseaddr> <orderchooseaddr name="{{list.consignee}}" addr="{{list.address}}" phone="{{list.mobile}}"></orderchooseaddr>
<content bindtap="todetail"></content> <content num="{{list.num}}" price="{{list.goods_price}}" cprice="{{list.integral_money}}" number="{{list.order_sn}}" time="{{list.add_time}}" goods="{{list.goods_list}}" text="{{list.user_note}}"></content>
</view> </view>

View File

@ -11,7 +11,7 @@ let request = function (obj){
name, name,
urldata urldata
} = obj } = obj
url="http://daigou.sdbairui.com/index.php/WXAPI/" + url url="https://daigou.sdbairui.com/index.php/WXAPI/" + url
let text = "" let text = ""
for(let i in urldata){ for(let i in urldata){
if(urldata[i] === ''){ if(urldata[i] === ''){

BIN
utils/wxParse/emojis/00.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
utils/wxParse/emojis/01.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
utils/wxParse/emojis/02.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
utils/wxParse/emojis/03.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
utils/wxParse/emojis/04.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
utils/wxParse/emojis/05.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
utils/wxParse/emojis/06.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
utils/wxParse/emojis/07.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
utils/wxParse/emojis/08.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
utils/wxParse/emojis/09.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
utils/wxParse/emojis/10.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
utils/wxParse/emojis/11.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1015 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1003 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
utils/wxParse/emojis/12.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 999 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1013 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

BIN
utils/wxParse/emojis/13.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 945 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 968 B

BIN
utils/wxParse/emojis/14.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
utils/wxParse/emojis/15.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
utils/wxParse/emojis/16.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
utils/wxParse/emojis/17.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
utils/wxParse/emojis/18.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
utils/wxParse/emojis/19.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
utils/wxParse/emojis/20.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
utils/wxParse/emojis/21.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
utils/wxParse/emojis/22.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
utils/wxParse/emojis/23.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
utils/wxParse/emojis/24.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
utils/wxParse/emojis/25.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
utils/wxParse/emojis/26.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
utils/wxParse/emojis/27.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
utils/wxParse/emojis/28.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
utils/wxParse/emojis/29.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

BIN
utils/wxParse/emojis/30.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
utils/wxParse/emojis/31.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
utils/wxParse/emojis/32.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
utils/wxParse/emojis/33.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
utils/wxParse/emojis/34.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
utils/wxParse/emojis/35.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
utils/wxParse/emojis/36.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
utils/wxParse/emojis/37.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
utils/wxParse/emojis/38.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
utils/wxParse/emojis/39.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
utils/wxParse/emojis/40.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
utils/wxParse/emojis/41.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
utils/wxParse/emojis/42.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
utils/wxParse/emojis/43.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
utils/wxParse/emojis/44.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
utils/wxParse/emojis/45.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
utils/wxParse/emojis/46.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
utils/wxParse/emojis/47.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
utils/wxParse/emojis/48.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
utils/wxParse/emojis/49.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Some files were not shown because too many files have changed in this diff Show More