|
@ -2,32 +2,32 @@ |
|
|
<view class="events-order"> |
|
|
<view class="events-order"> |
|
|
<view class="eo-main"> |
|
|
<view class="eo-main"> |
|
|
<view class="em-info"> |
|
|
<view class="em-info"> |
|
|
<view class="ei-title">欧轩智能羽毛球馆(永泰店)</view> |
|
|
|
|
|
|
|
|
<view class="ei-title">{{ orderInfo.stadium_name || '-' }}</view> |
|
|
<view class="ei-line-box"> |
|
|
<view class="ei-line-box"> |
|
|
<view class="elb-line"> |
|
|
<view class="elb-line"> |
|
|
<view class="el-name">订单编号:</view> |
|
|
<view class="el-name">订单编号:</view> |
|
|
<view class="el-txt">20195175645666</view> |
|
|
|
|
|
|
|
|
<view class="el-txt">{{ orderInfo.verify_code || '-' }}</view> |
|
|
<view class="el-tag">(赛事)</view> |
|
|
<view class="el-tag">(赛事)</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="elb-line"> |
|
|
<view class="elb-line"> |
|
|
<view class="el-name">用户昵称:</view> |
|
|
<view class="el-name">用户昵称:</view> |
|
|
<view class="el-txt">周大强</view> |
|
|
|
|
|
|
|
|
<view class="el-txt">{{ orderInfo.nickname || '-' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="elb-line"> |
|
|
<view class="elb-line"> |
|
|
<view class="el-name">验证码:</view> |
|
|
<view class="el-name">验证码:</view> |
|
|
<view class="el-txt">200525458978</view> |
|
|
|
|
|
|
|
|
<view class="el-txt">{{ orderInfo.verify_code || '-' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="elb-line"> |
|
|
<view class="elb-line"> |
|
|
<view class="el-name">赛事名称:</view> |
|
|
<view class="el-name">赛事名称:</view> |
|
|
<view class="el-txt">篮球比赛</view> |
|
|
|
|
|
|
|
|
<view class="el-txt">{{ orderInfo.match_name || '-' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="elb-line"> |
|
|
<view class="elb-line"> |
|
|
<view class="el-name">赛事类型:</view> |
|
|
<view class="el-name">赛事类型:</view> |
|
|
<view class="el-txt">个人赛</view> |
|
|
|
|
|
|
|
|
<view class="el-txt">{{ orderInfo.match_type || '-' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="elb-line"> |
|
|
<view class="elb-line"> |
|
|
<view class="el-name">进场时间:</view> |
|
|
<view class="el-name">进场时间:</view> |
|
|
<view class="el-txt">2019-05-18 11:00-12:00</view> |
|
|
|
|
|
|
|
|
<view class="el-txt">{{ orderInfo.in_time || '-' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
@ -35,15 +35,49 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="em-border"></view> |
|
|
<view class="em-border"></view> |
|
|
<view class="em-btn"> |
|
|
<view class="em-btn"> |
|
|
<view hover-class="hover-active">确认核销</view> |
|
|
|
|
|
|
|
|
<view hover-class="hover-active" @click="confirmWriteOff">确认核销</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import util from '../../../utils/util'; |
|
|
|
|
|
import { API } from '../../../js/api'; |
|
|
|
|
|
import { servers } from '../../../js/server'; |
|
|
|
|
|
import { WRITE_OFF_ORDER_INFO } from '../../../js/once_name'; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
|
data(){ |
|
|
|
|
|
return { |
|
|
|
|
|
orderInfo: {}, |
|
|
|
|
|
type: '' // verify_code -> 5: 验证码核销(商家助手) | decrypt_text -> 6: 扫码核销(商家助手) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
onLoad(options){ |
|
|
|
|
|
if(options.type)this.type = options.type || ''; |
|
|
|
|
|
util.$_once(WRITE_OFF_ORDER_INFO, data => { |
|
|
|
|
|
console.warn(data) |
|
|
|
|
|
this.orderInfo = data || {}; |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
confirmWriteOff: util.debounce(function(){ |
|
|
|
|
|
servers.post({ |
|
|
|
|
|
url: API.writeOff.matchOrderVerify, |
|
|
|
|
|
data: {}, |
|
|
|
|
|
isDefaultGet: false, |
|
|
|
|
|
}) |
|
|
|
|
|
.then(res=>{ |
|
|
|
|
|
if(res.data.code == 0){ |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
util.showNone(res.data.message || '操作失败!'); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, 300, true) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|