This commit is contained in:
wangh 2023-11-27 15:53:33 +08:00
parent 415b9ca9c1
commit d0769e8e9e
5 changed files with 49 additions and 10 deletions

View File

@ -90,6 +90,9 @@
<view class="juanniu" @click="gooil()"> <view class="juanniu" @click="gooil()">
<view class="">一键加油</view> <view class="">一键加油</view>
</view> </view>
</view> </view>
<view style="height: 88px; width: 100%;"></view> <view style="height: 88px; width: 100%;"></view>
</view> </view>

View File

@ -81,25 +81,64 @@
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import config from '@/config'
import request from '../../utils/request';
export default { export default {
data() { data() {
return { return {
categoryList:{},
integralGiftList:{},
title: '', title: '',
qhindex: 0, qhindex: 0,
query: {
categoryId: '',
giftName: '',
deliveryMethod:'',
page: 1,
pageSize: 10000
}
} }
}, },
components: { components: {
},
onLoad() {
this.getCategoryList();
// this.getIntegralGiftList();
}, },
methods: { methods: {
transferIndex(index) { transferIndex(index) {
this.qhindex = index this.qhindex = index
}, },
//
getCategoryList() {
request({
url: '/business/integral/integralGiftCategory/queryByPage',
method: 'get',
params:data
}).then((res)=>{
if(res.code == 200){
console.log("hello world",res)
}
})
},
//
getIntegralGiftList() {
// let
request({
url: 'business/integral/integralGift/queryByPage',
method: 'get',
params:data
}).then((res)=>{
if(res.code == 200){
console.log("hello world",res)
}
})
},
//
gojg(nmb) { gojg(nmb) {
if (nmb == 1) { if (nmb == 1) {
uni.navigateTo({ uni.navigateTo({

View File

@ -23,7 +23,6 @@
</template> </template>
<script> <script>
import input from '../../uni_modules/uview-ui/libs/config/props/input'
export default { export default {
data() { data() {
return { return {

View File

@ -44,11 +44,11 @@
<view class="boxback" style="box-sizing: border-box; padding: 1px; " v-if="actinput == 2 "> <view class="boxback" style="box-sizing: border-box; padding: 1px; " v-if="actinput == 2 ">
<view class="inputbox"> <view class="inputbox">
<view class="cadname">卡号</view> <view class="cadname">卡号</view>
<input type="text" placeholder="请输入礼品卡卡号" /> <!-- <input type="text" placeholder="请输入礼品卡卡号" /> -->
</view> </view>
<view class="inputbox"> <view class="inputbox">
<view class="cadname">卡密</view> <view class="cadname">卡密</view>
<input type="text" placeholder="请输入礼品卡卡密" /> <!-- <input type="text" placeholder="请输入礼品卡卡密" /> -->
</view> </view>
</view> </view>
<!-- 底部 --> <!-- 底部 -->
@ -75,7 +75,6 @@
</template> </template>
<script> <script>
import input from '../../uni_modules/uview-ui/libs/config/props/input'
export default { export default {
data() { data() {
return { return {

View File

@ -1,7 +1,6 @@
// 同时发送异步代码的次数 // 同时发送异步代码的次数
let ajaxTimes = 0; let ajaxTimes = 0;
export const request = (params) => { export const request = (params) => {
var openid = wx.getStorageSync("openid") || ''; var openid = wx.getStorageSync("openid") || '';
let header = { let header = {
...params.header ...params.header