Commit 4f9a83d5 authored by 黄奎's avatar 黄奎

新增页面

parent 3991e9e4
This diff is collapsed.
......@@ -113,10 +113,10 @@
</template>
</td>
<td>
<el-button type="primary" size="small" icon="iconfont icon-beizhu"
style="background:#AD9AF6; border-color:#AD9AF6; border-radius: 0;padding:4px;"
@click="clreaMsg(),currentGoodsObj={},currentGoodsObj=item,calcTotalPrice(),orderDialog=true;"> 下单
</el-button>
<el-button type="primary" size="small" icon="iconfont icon-beizhu"
style="background:#AD9AF6; border-color:#AD9AF6; border-radius: 0;padding:4px;"
@click="clreaMsg(),currentGoodsObj={},currentGoodsObj=item,calcTotalPrice(),orderDialog=true;"> 下单
</el-button>
</td>
</tr>
</tbody>
......@@ -196,7 +196,7 @@
</span>
</el-dialog>
<el-dialog title="立即支付" :visible.sync="payVisible" width="400px">
<payurlItem1></payurlItem1>
<payMall :item="payObj"></payMall>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="payVisible = false">取 消</el-button>
</span>
......@@ -204,10 +204,15 @@
</div>
</template>
<script>
import payURL1 from "../commonPage/payURL1.vue";
import payMall from "../commonPage/payMall.vue";
export default {
data() {
return {
payObj: {
orderId: 1,
OrderSource: 16,
TotalPrice:0,
},
statusValue: 0, //请选择
//数据列表
DataList: [],
......@@ -289,13 +294,13 @@
trigger: 'change'
}],
},
orderDialog:false,
orderDialog: false,
goodVisible: false,
payVisible:true,
payVisible: true,
};
},
components: {
payurlItem1: payURL1,
payMall: payMall,
},
methods: {
......@@ -426,7 +431,7 @@
res => {
this.loading = false;
if (res.data.resultCode == 1) {
console.log(res,'数据');
console.log(res, '数据');
var tempArray = res.data.data.pageData;
if (tempArray && tempArray.length > 0) {
tempArray.forEach(item => {
......@@ -526,7 +531,7 @@
this.Success("下单成功!");
this.clreaMsg();
this.getGoodList();
this.orderDialog=false;
this.orderDialog = false;
} else {
this.Error(res.data.message);
}
......
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