liudan 6 months ago
parent 7daa287b25
commit b8400a8997
  1. 6
      pages.json
  2. 1
      pages/activity/assist_detail/index.vue
  3. 1
      pages/burst/index.vue
  4. 12
      pages/goods_details/index.vue
  5. 10
      pages/users/order_confirm/index.vue
  6. 4
      pages/users/order_list1/index.vue

@ -392,6 +392,12 @@
"navigationBarTitleText": "我的订单" "navigationBarTitleText": "我的订单"
} }
}, },
{
"path": "order_list1/search",
"style": {
"navigationBarTitleText": "寄售订单"
}
},
{ {
"path": "presell_order_list/index", "path": "presell_order_list/index",
"style": { "style": {

@ -318,6 +318,7 @@
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function(options) { onLoad: function(options) {
console.log(options,"0000000")
var that = this; var that = this;
if(options.spid){ if(options.spid){
app.globalData.spid = options.spid; app.globalData.spid = options.spid;

@ -71,6 +71,7 @@ export default{
}, },
// //
godDetail(item) { godDetail(item) {
goShopDetail(item, this.uid).then(res => { goShopDetail(item, this.uid).then(res => {
if (this.isLogin) { if (this.isLogin) {
initiateAssistApi(item.activity_id).then(res => { initiateAssistApi(item.activity_id).then(res => {

@ -54,6 +54,7 @@
<view class='money p-color skeleton-rect' style="min-width: 70rpx;"> <view class='money p-color skeleton-rect' style="min-width: 70rpx;">
<text class='num'>{{storeInfo.price}}</text> <text class='num'>{{storeInfo.price}}</text>
<text class='num' v-if="point!=0">+积分{{point}}</text>
<view v-if="svipData && svipData.show_svip_price && svipData.show_svip" style="display: inline-block;"> <view v-if="svipData && svipData.show_svip_price && svipData.show_svip" style="display: inline-block;">
<text class="vip-money">{{storeInfo.svip_price}}</text> <text class="vip-money">{{storeInfo.svip_price}}</text>
<image class="vip-image" :src="`${domain}/static/images/svip.png`"></image> <image class="vip-image" :src="`${domain}/static/images/svip.png`"></image>
@ -583,6 +584,7 @@
max_count: 0, max_count: 0,
min_count: 0, min_count: 0,
pay_limit: 1, pay_limit: 1,
is_burst:null,
svipData: {}, svipData: {},
svipPrice: false, svipPrice: false,
specsInfo: { specsInfo: {
@ -623,6 +625,7 @@
url: '/pages/user/index' url: '/pages/user/index'
}, },
], ],
point:0
}; };
}, },
computed:{ computed:{
@ -1024,6 +1027,7 @@
this.$set(this.attr.productSelect, "svip_price", productSelect.svip_price); this.$set(this.attr.productSelect, "svip_price", productSelect.svip_price);
this.$set(this.attr.productSelect, "stock", productSelect.stock); this.$set(this.attr.productSelect, "stock", productSelect.stock);
this.$set(this.attr.productSelect, "unique", productSelect.unique); this.$set(this.attr.productSelect, "unique", productSelect.unique);
this.$set(this, "point", productSelect.point);
this.$set(this, "uniqueValue", productSelect.unique); this.$set(this, "uniqueValue", productSelect.unique);
if (productSelect.stock == 0) { if (productSelect.stock == 0) {
this.$set(this.attr.productSelect, "cart_num", 0); this.$set(this.attr.productSelect, "cart_num", 0);
@ -1040,6 +1044,7 @@
this.$set(this.attr.productSelect, "stock", 0); this.$set(this.attr.productSelect, "stock", 0);
this.$set(this.attr.productSelect, "unique", ""); this.$set(this.attr.productSelect, "unique", "");
this.$set(this.attr.productSelect, "cart_num", 0); this.$set(this.attr.productSelect, "cart_num", 0);
this.$set(this, "point", productSelect.point);
this.$set(this, "attrValue", res); this.$set(this, "attrValue", res);
this.$set(this, "attrTxt", "选择"); this.$set(this, "attrTxt", "选择");
} }
@ -1096,6 +1101,7 @@
that.$set(that, 'activity', res.data.activity ? res.data.activity : []); that.$set(that, 'activity', res.data.activity ? res.data.activity : []);
that.$set(that, 'max_count', res.data.once_max_count); that.$set(that, 'max_count', res.data.once_max_count);
that.$set(that, 'pay_limit', res.data.pay_limit); that.$set(that, 'pay_limit', res.data.pay_limit);
that.$set(that, 'is_burst', res.data.is_burst);
that.$set(that, 'min_count', res.data.once_min_count); that.$set(that, 'min_count', res.data.once_min_count);
that.$set(that, 'svipData', res.data.show_svip_info || null); that.$set(that, 'svipData', res.data.show_svip_info || null);
that.$set(that, 'svipPrice', res.data.show_svip_info && res.data.show_svip_info.show_svip_price || false); that.$set(that, 'svipPrice', res.data.show_svip_info && res.data.show_svip_info.show_svip_price || false);
@ -1208,6 +1214,7 @@
this.$set(this.attr.productSelect, "stock", productSelect.stock); this.$set(this.attr.productSelect, "stock", productSelect.stock);
this.$set(this.attr.productSelect, "unique", productSelect.unique); this.$set(this.attr.productSelect, "unique", productSelect.unique);
this.$set(this, "uniqueValue", productSelect.unique); this.$set(this, "uniqueValue", productSelect.unique);
this.$set(this, "point", productSelect.point);
this.$set(this, "attrValue", value.join(",")); this.$set(this, "attrValue", value.join(","));
this.$set(this, "attrTxt", "选择"); this.$set(this, "attrTxt", "选择");
if (productSelect.stock == 0) { if (productSelect.stock == 0) {
@ -1226,6 +1233,7 @@
this.$set(this.attr.productSelect, "svip_price", this.storeInfo.svip_price); this.$set(this.attr.productSelect, "svip_price", this.storeInfo.svip_price);
this.$set(this.attr.productSelect, "stock", 0); this.$set(this.attr.productSelect, "stock", 0);
this.$set(this.attr.productSelect, "unique", ""); this.$set(this.attr.productSelect, "unique", "");
this.$set(this, "point", this.storeInfo.point);
this.$set(this, "uniqueValue", ""); this.$set(this, "uniqueValue", "");
this.$set(this.attr.productSelect, "cart_num", 0); this.$set(this.attr.productSelect, "cart_num", 0);
this.$set(this, "attrValue", ""); this.$set(this, "attrValue", "");
@ -1241,6 +1249,7 @@
this.$set(this.attr.productSelect, "svip_price", this.storeInfo.svip_price); this.$set(this.attr.productSelect, "svip_price", this.storeInfo.svip_price);
this.$set(this.attr.productSelect, "stock", this.storeInfo.stock); this.$set(this.attr.productSelect, "stock", this.storeInfo.stock);
this.$set(this.attr.productSelect, "unique", this.storeInfo.unique || ""); this.$set(this.attr.productSelect, "unique", this.storeInfo.unique || "");
this.$set(this, "point", this.storeInfo.point||0);
this.$set(this, "uniqueValue", this.storeInfo.unique || ""); this.$set(this, "uniqueValue", this.storeInfo.unique || "");
this.$set(this.attr.productSelect, "cart_num", 1); this.$set(this.attr.productSelect, "cart_num", 1);
this.$set(this, "attrValue", ""); this.$set(this, "attrValue", "");
@ -1252,6 +1261,7 @@
this.$set(this.attr.productSelect, "svip_price", productSelect.svip_price); this.$set(this.attr.productSelect, "svip_price", productSelect.svip_price);
this.$set(this.attr.productSelect, "stock", productSelect.stock); this.$set(this.attr.productSelect, "stock", productSelect.stock);
this.$set(this.attr.productSelect, "unique", productSelect.unique); this.$set(this.attr.productSelect, "unique", productSelect.unique);
this.$set(this, "point", productSelect.point);
this.$set(this, "uniqueValue", productSelect.unique); this.$set(this, "uniqueValue", productSelect.unique);
this.$set(this, "attrValue", value.join(",")); this.$set(this, "attrValue", value.join(","));
this.$set(this, "attrTxt", "选择"); this.$set(this, "attrTxt", "选择");
@ -1433,7 +1443,7 @@
Cache.set(CART_TIME,timestamp) Cache.set(CART_TIME,timestamp)
if (news) { if (news) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/users/order_confirm/index?cartId=' + cartId url: '/pages/users/order_confirm/index?cartId=' + cartId +'&is_burst='+that.is_burst
}); });
} else { } else {
that.$util.Tips({ that.$util.Tips({

@ -691,10 +691,11 @@
timeranges: [], timeranges: [],
isShow:false, isShow:false,
typeList:[ typeList:[
{id:1,name:'商品'}, {id:0,name:'商品'},
{id:2,name:'积分'}, {id:1,name:'积分'},
], ],
orderType:1 orderType:1,
is_burst:null,
}; };
}, },
computed: { computed: {
@ -714,6 +715,7 @@
mounted: function() { mounted: function() {
}, },
onLoad: function(options) { onLoad: function(options) {
this.is_burst = options.is_burst
// #ifdef H5 // #ifdef H5
this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5' this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
// #endif // #endif
@ -1648,6 +1650,8 @@
receipt_data: this.invoiceData, receipt_data: this.invoiceData,
extend: this.extend, extend: this.extend,
post: this.post, post: this.post,
gift_type:this.orderType,
is_burst:this.is_burst,
// #ifdef H5 // #ifdef H5
return_url: 'http://' + window.location.host + '/pages/users/order_list/index', return_url: 'http://' + window.location.host + '/pages/users/order_list/index',
// #endif // #endif

@ -2,7 +2,7 @@
<view :style="viewColor"> <view :style="viewColor">
<view class='my-order'> <view class='my-order'>
<navigator class="search acea-row row-middle" url="/pages/users/order_list/search" hover-class="none"> <navigator class="search acea-row row-middle" url="/pages/users/order_list1/search" hover-class="none">
<text class="iconfont icon-sousuo"></text> <text class="iconfont icon-sousuo"></text>
搜索我的寄售订单 搜索我的寄售订单
</navigator> </navigator>
@ -536,6 +536,7 @@
groupOrderList({ groupOrderList({
page: that.page, page: that.page,
limit: that.limit, limit: that.limit,
is_burst:1,
}).then(res => { }).then(res => {
that.isReady = true; that.isReady = true;
let list = res.data.list || []; let list = res.data.list || [];
@ -553,6 +554,7 @@
status: that.orderStatus - 1, status: that.orderStatus - 1,
page: that.page, page: that.page,
limit: that.limit, limit: that.limit,
is_burst:1,
}).then(res => { }).then(res => {
let list = res.data.list || []; let list = res.data.list || [];
let loadend = list.length < that.limit; let loadend = list.length < that.limit;

Loading…
Cancel
Save