Commit 75b8caa4 authored by zhaofei's avatar zhaofei

s

parent c29b8621
...@@ -13,8 +13,11 @@ ...@@ -13,8 +13,11 @@
size="large" size="large"
class="probability-prize-content-formItem" class="probability-prize-content-formItem"
label="是否降级奖品" label="是否降级奖品"
validateState="{{nameTips.status}}" help="{{nameTips.content}}"
required> required>
<radio-group value="{{prizeInitData.isBackUp}}" onChange="onswitchIsBackUpChange">
<radio value="{{true}}">是</radio>
<radio value="{{false}}">否</radio>
</radio-group>
</form-item> </form-item>
<form-item style="width:100%" size="large" class="probability-prize-content-formItem" label="奖品类型" required> <form-item style="width:100%" size="large" class="probability-prize-content-formItem" label="奖品类型" required>
<view class="probability-prize-content-formitem-choosePrize-wrap"> <view class="probability-prize-content-formitem-choosePrize-wrap">
......
...@@ -24,6 +24,7 @@ const INIT_DATA = { ...@@ -24,6 +24,7 @@ const INIT_DATA = {
probability: "", probability: "",
name: "", name: "",
switchStock: STOCK_NO_LIMIT, switchStock: STOCK_NO_LIMIT,
isBackUp: false,
useStock: 0, useStock: 0,
rank: "", rank: "",
amount: "", amount: "",
...@@ -94,6 +95,7 @@ Component({ ...@@ -94,6 +95,7 @@ Component({
probability: "", probability: "",
name: "", name: "",
switchStock: STOCK_NO_LIMIT, switchStock: STOCK_NO_LIMIT,
isBackUp: false,
useStock: 0, useStock: 0,
rank: "", rank: "",
amount: "", amount: "",
...@@ -230,6 +232,7 @@ Component({ ...@@ -230,6 +232,7 @@ Component({
credits: "", credits: "",
probability: "", probability: "",
name: "", name: "",
isBackUp: false,
switchStock: STOCK_NO_LIMIT, switchStock: STOCK_NO_LIMIT,
}; };
if (type !== value) { if (type !== value) {
...@@ -276,6 +279,13 @@ Component({ ...@@ -276,6 +279,13 @@ Component({
}, },
}); });
}, },
onswitchIsBackUpChange(e){
this.setData({
prizeInitData:{
isBackUp: e.detail.value
}
})
},
async uploadImage() { async uploadImage() {
try { try {
this.setData({ this.setData({
...@@ -353,6 +363,7 @@ Component({ ...@@ -353,6 +363,7 @@ Component({
credits, credits,
useStock, useStock,
switchStock, switchStock,
isBackUp,
endTime, endTime,
rank, rank,
itemId, itemId,
...@@ -543,6 +554,7 @@ Component({ ...@@ -543,6 +554,7 @@ Component({
useStock: +useStock, useStock: +useStock,
rank, rank,
switchStock, switchStock,
isBackUp,
prizeDataType:+prizeDataType, prizeDataType:+prizeDataType,
itemId, itemId,
amount, amount,
......
...@@ -22,9 +22,7 @@ ...@@ -22,9 +22,7 @@
align-items: center; align-items: center;
} }
.rank-dialog-wrap .operator-btns { .rank-dialog-wrap .operator-btns {
margin-bottom: 15px; margin-bottom: 10px;
width: 300px;
float: right;
} }
.rank-dialog-wrap .long-item .next-select { .rank-dialog-wrap .long-item .next-select {
width: 150px; width: 150px;
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<view a:if="{{x.record.type == 3}}"> <view a:if="{{x.record.type == 3}}">
<view>{{(x.record.receiveName || '')}}</view> <view>{{(x.record.receiveName || '')}}</view>
<view>{{( x.record.phone || '')}} </view> <view>{{( x.record.phone || '')}} </view>
<view>{{ ( x.record.province + x.record.city + x.record.area + x.record.addressdetail || '') }}</view> <view>{{ ( x.record.province + x.record.city + x.record.area + x.record.streetName + x.record.addressDetail || '') }}</view>
<view a:if="{{!x.record.receiveName}}">暂未填写</view> <view a:if="{{!x.record.receiveName}}">暂未填写</view>
</view> </view>
<view a:else>/</view> <view a:else>/</view>
......
...@@ -117,7 +117,7 @@ export default class BaseController { ...@@ -117,7 +117,7 @@ export default class BaseController {
if (v.prizeDataType == 2) prizeDataType = '排行榜' if (v.prizeDataType == 2) prizeDataType = '排行榜'
if (v.prizeDataType == 3) prizeDataType = '分享获得' if (v.prizeDataType == 3) prizeDataType = '分享获得'
if (v.type == PRIZE_TYPE.EQUITY) prizeType = '实物' if (v.type == PRIZE_TYPE.EQUITY) prizeType = '优惠券'
if (v.type == PRIZE_TYPE.CREDITS) prizeType = '积分' if (v.type == PRIZE_TYPE.CREDITS) prizeType = '积分'
if (v.type == PRIZE_TYPE.OBJECT) { if (v.type == PRIZE_TYPE.OBJECT) {
prizeType = '实物' prizeType = '实物'
...@@ -137,7 +137,7 @@ export default class BaseController { ...@@ -137,7 +137,7 @@ export default class BaseController {
v.type == 2 ? `${v.credits || 0}积分` : v.name || '', v.type == 2 ? `${v.credits || 0}积分` : v.name || '',
v.type == 3 ? v.receiveName || '' : '/', v.type == 3 ? v.receiveName || '' : '/',
v.type == 3 ? (v.phone ? v.phone + '' : '暂未填写') : '/', v.type == 3 ? (v.phone ? v.phone + '' : '暂未填写') : '/',
v.type == 3 ? v.province + v.city + v.area + v.addressdetail || '暂未填写' : '/', v.type == 3 ? v.province + v.city + v.area + v.streetName + v.addressDetail || '暂未填写' : '/',
shipTxt, shipTxt,
v.type == 3 ? v.shipCompany || '' : '/', v.type == 3 ? v.shipCompany || '' : '/',
v.type == 3 ? (v.shipNum ? v.shipNum + '' : '') : '/' v.type == 3 ? (v.shipNum ? v.shipNum + '' : '') : '/'
......
...@@ -88,9 +88,9 @@ export default class AwardsService { ...@@ -88,9 +88,9 @@ export default class AwardsService {
let c = startTime > 0 && endTime > 0 ? { createTime: { $gt: startTime, $lt: endTime } } : null let c = startTime > 0 && endTime > 0 ? { createTime: { $gt: startTime, $lt: endTime } } : null
let s = shipStatus let s = shipStatus
? (shipStatus == 1 ? (shipStatus == 1
? { shipStatus: { $in: [SHIP_STATUS.NO_ADDRESS, SHIP_STATUS.NO_SHIP, SHIP_STATUS.HAS_SHIP] } } ? { shipStatus: { $in: [SHIP_STATUS.NO_ADDRESS] } }
: (shipStatus == 2 : (shipStatus == 2
? { shipStatus: { $in: [SHIP_STATUS.NO_ADDRESS, SHIP_STATUS.NO_SHIP] } } ? { shipStatus: { $in: [SHIP_STATUS.NO_SHIP] } }
: { shipStatus: SHIP_STATUS.HAS_SHIP } : { shipStatus: SHIP_STATUS.HAS_SHIP }
) )
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment