购买
This commit is contained in:
parent
46f798e6b7
commit
2a547414d2
|
|
@ -12,8 +12,7 @@
|
|||
<view v-for="(item,index) in datas" :key="index" class="grid-item" @click="order_money(item)">
|
||||
<image src="/static/common/goods_bj.png" style="height: 430rpx; position: absolute;"
|
||||
mode="heightFix"></image>
|
||||
<image :src="item.imgurl" style=" height: 326rpx; position: absolute;"
|
||||
mode="heightFix"></image>
|
||||
<image :src="item.imgurl" style=" height: 326rpx; position: absolute;" mode="heightFix"></image>
|
||||
|
||||
<view class="goods-name">
|
||||
<text style="color: #FFF8F8FA; font-size: 27rpx;">{{item.title}}</text>
|
||||
|
|
@ -138,10 +137,8 @@
|
|||
export default {
|
||||
|
||||
data() {
|
||||
var goodsList = [1, 2, 3, 4, 5, 6];
|
||||
return {
|
||||
statusBarHeight: 0,
|
||||
goodsList,
|
||||
datas: [],
|
||||
sendRuleData: '',
|
||||
goodsId: "",
|
||||
|
|
@ -161,23 +158,13 @@
|
|||
}
|
||||
});
|
||||
|
||||
let that = this
|
||||
that.req({
|
||||
url: 'goods',
|
||||
data: {
|
||||
type: '10',
|
||||
page: 1
|
||||
},
|
||||
success(res) {
|
||||
that.datas = res.data.data
|
||||
}
|
||||
});
|
||||
this.getData();
|
||||
|
||||
this.$c.getRule(10).then(res => {
|
||||
if (res.status == 1) {
|
||||
this.sendRuleData = res.data
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
onShow() {
|
||||
|
||||
|
|
@ -193,9 +180,23 @@
|
|||
const systemInfo = uni.getSystemInfoSync();
|
||||
this.statusBarHeight = systemInfo.statusBarHeight;
|
||||
console.log('statusBarHeight', this.statusBarHeight);
|
||||
|
||||
},
|
||||
|
||||
getData() {
|
||||
let that = this
|
||||
that.req({
|
||||
url: 'goods',
|
||||
data: {
|
||||
type: '10',
|
||||
page: 1
|
||||
},
|
||||
success(res) {
|
||||
that.datas = res.data.data
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
order_money(data) {
|
||||
console.log(234);
|
||||
this.goodsId = data.id;
|
||||
|
|
@ -240,7 +241,8 @@
|
|||
|
||||
if (!this.useMoney && !this.isWXPay) {
|
||||
uni.showToast({
|
||||
title: '请选择支付方式'
|
||||
title: '请选择支付方式',
|
||||
icon: 'none',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
@ -260,10 +262,10 @@
|
|||
// is_mibao: this.pageTabCur
|
||||
// ad_id: uni.getStorageSync('_ad_id')
|
||||
}
|
||||
|
||||
|
||||
if (type == 1) {
|
||||
url = 'infinite_orderbuy'
|
||||
|
||||
|
||||
// if (this.pageTabCur == 1) {
|
||||
// url = 'infinite_mibao_orderbuy'
|
||||
// data = {
|
||||
|
|
@ -272,13 +274,13 @@
|
|||
// // is_mibao: this.pageTabCur
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// if (!uni.getStorageSync('_agree_buy_notice') && !fromNotice) {
|
||||
// this.$refs.buyNotice.getRule(6)
|
||||
// return
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.req({
|
||||
url,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user