1.新增实物商品

2.修改抽奖活动
master
杨杰 2 years ago
parent 619f5dc757
commit 3f7202e151
  1. 28
      high-unionPay/pages/order/confirmation.vue
  2. 30
      high-unionPay/pages/user/order_details/order_details.vue
  3. 2
      high-unionPay/subPages/coupon-packge-details/coupon-packge-details.vue
  4. 5
      high-unionPay/subPages/lottery/lottery.vue

@ -95,6 +95,22 @@
</view> </view>
</view> </view>
<!-- // -->
<view class="width94 backcorfff mart10" v-if="couponList.wherePost">
<view class="width94 alijusstart height50 font14 fcor666 bor-botm1">
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">联系人</view>
<input class="width60 fotrt font15" v-model="contactPepole" placeholder="请输入联系人" />
</view>
<view class="width94 alijusstart height50 font14 fcor666 bor-botm1">
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">联系电话</view>
<input class="width60 fotrt font15" v-model="contactPhone" placeholder="请输入联系电话" />
</view>
<view class="width94 alijusstart height50 font14 fcor666">
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">联系地址</view>
<input class="width60 fotrt font15" v-model="contactAddress" placeholder="请输入联系地址" />
</view>
</view>
<view class="width94 comorder mart10"> <view class="width94 comorder mart10">
<view class="height50 width100 backcorfff"> <view class="height50 width100 backcorfff">
<view class="width100 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> <view class="width100 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
@ -247,7 +263,10 @@
isDiscont: false, isDiscont: false,
coupondiscountid: '', coupondiscountid: '',
typeId: '', typeId: '',
identificationCode: '' // identificationCode: '' ,//
contactPepole: '', //
contactPhone: '', //
contactAddress: '' //
}; };
}, },
@ -440,7 +459,12 @@
"goodsId": this.couponId, "goodsId": this.couponId,
"saleCount": 1, "saleCount": 1,
"storeId": this.storeId "storeId": this.storeId
}] }],
"postData": {
"address": this.contactAddress,
"user": this.contactPepole,
"phone": this.contactPhone
}
} }
addOrder(goods).then(res => { addOrder(goods).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {

@ -151,6 +151,30 @@
{{recinfo.refusalRefundContent}} {{recinfo.refusalRefundContent}}
</view> </view>
</view> </view>
<view class="row" v-if="materialData">
<view class="left">
联系人 :
</view>
<view class="right">
{{materialData.user}}
</view>
</view>
<view class="row" v-if="materialData">
<view class="left">
联系电话 :
</view>
<view class="right">
{{materialData.phone}}
</view>
</view>
<view class="row" v-if="materialData">
<view class="left">
联系地址 :
</view>
<view class="right">
{{materialData.address}}
</view>
</view>
<view class="row" v-if="recinfo.finishTime"> <view class="row" v-if="recinfo.finishTime">
<view class="left"> <view class="left">
完成时间 : 完成时间 :
@ -286,7 +310,8 @@
imageUrl: app.globalData.imgUrl, imageUrl: app.globalData.imgUrl,
imagewxUrl: app.globalData.imageWxImg, imagewxUrl: app.globalData.imageWxImg,
imgadres1: 'dhf.png', imgadres1: 'dhf.png',
preByOrderInfo: '' preByOrderInfo: '',
materialData: '' //
}; };
}, },
onShow() { onShow() {
@ -344,6 +369,9 @@
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.hideLoading(); uni.hideLoading();
this.recinfo = res.return_data; this.recinfo = res.return_data;
if (res.return_data.remarks) {
this.materialData = JSON.parse(res.return_data.remarks);
}
} else { } else {
uni.hideLoading() uni.hideLoading()
} }

@ -19,7 +19,7 @@
</view> </view>
<!-- 商品主图轮播 --> <!-- 商品主图轮播 -->
<view class="swiper-box"> <view class="swiper-box">
<swiper circular="true" autoplay="true" @change="swiperChange"> <swiper circular="true" autoplay="true" style="height: 188px;" @change="swiperChange">
<swiper-item v-for="(swiper,index) in swiperList" :key="index"> <swiper-item v-for="(swiper,index) in swiperList" :key="index">
<image mode="widthFix" :src="imageUrl+swiper" @click="perImage(swiper)"></image> <image mode="widthFix" :src="imageUrl+swiper" @click="perImage(swiper)"></image>
</swiper-item> </swiper-item>

@ -193,6 +193,7 @@
couponId: this.couponId couponId: this.couponId
} }
getActivityByCoupon(params).then(res => { getActivityByCoupon(params).then(res => {
uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
let prizeLists = res.return_data.activityAward; let prizeLists = res.return_data.activityAward;
this.activityId = res.return_data.activityInfo.id; this.activityId = res.return_data.activityInfo.id;
@ -287,7 +288,9 @@
}, },
onLoad(options) { onLoad(options) {
this.couponId = options.id this.couponId = options.id
this.handleInitCanvas() },
onShow() {
this.handleInitCanvas();
}, },
onUnload() { onUnload() {
uni.hideLoading() uni.hideLoading()

Loading…
Cancel
Save