Commit 3b9eaf8b authored by 黄媛媛's avatar 黄媛媛

update

parent 9d93c931
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
@click="clickHandler(c.page_url)" @click="clickHandler(c.page_url)"
> >
<image <image
:src="c.pic_url" :src="getIconLink(c.IconPath)"
mode="widthFix" mode="widthFix"
style="width: 80rpx; height: 80rpx;" style="width: 80rpx; height: 80rpx;"
/> />
<text class="grid-text">{{ c.name }}</text> <text class="grid-text">{{ c.Name }}</text>
</u-grid-item> </u-grid-item>
</u-grid> </u-grid>
</div> </div>
......
<template> <template>
<view class="catsstyle2"> <view class="catsstyle2">
<view class="item" v-for="(x, index) in d" :key="index" @click="goUrl" :data-url='x.page_url'> <view class="item" v-for="(x, index) in d" :key="index" @click="goUrl" :data-url='x.page_url'>
<view class="left">{{x.name}}</view> <view class="left">{{x.Name}}</view>
<view class="right"> <view class="right">
<image :src="x.big_pic_url" style="width:100%;height:100%" mode="aspectFit" /> <image :src="getIconLink(x.IconPath)" style="width:100%;height:100%" mode="aspectFit" />
</view> </view>
</view> </view>
</view> </view>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="tabsbox"> <view class="tabsbox">
<u-tabs <u-tabs
:is-scroll="true" :is-scroll="true"
name="name" name="Name"
:list="d" :list="d"
:active-color="mainColor" :active-color="mainColor"
:current="active" :current="active"
...@@ -60,7 +60,15 @@ export default { ...@@ -60,7 +60,15 @@ export default {
data() { data() {
return { return {
mainColor: "", mainColor: "",
page: 1, msg:{
pageIndex: 1,
pageSize:14,
Name:'',
GoodsType:0,
CategoryIds:'',
OrderBy:1,
UserId:0,
},
page_count: 1, page_count: 1,
mh: 0, mh: 0,
g: [], g: [],
...@@ -78,8 +86,9 @@ export default { ...@@ -78,8 +86,9 @@ export default {
}, },
methods: { methods: {
changeHandler(i) { changeHandler(i) {
this.msg.CategoryIds= this.d[i].Id+'';
this.msg.page = 1;
this.tid = i; this.tid = i;
this.page = 1;
this.g = []; this.g = [];
this.init(); this.init();
this.active=i this.active=i
...@@ -90,29 +99,49 @@ export default { ...@@ -90,29 +99,49 @@ export default {
init() { init() {
this.isover = false; this.isover = false;
this.loading = true; this.loading = true;
this.request( this.request2(
{ {
url: "", url: '/api/AppletGoods/GetAppletGoodsPageListForZY',
data: { data: this.msg
r: "api/default/goods-list",
page: this.page,
cat_id: this.d[this.tid].id,
},
}, },
(res) => { res => {
this.g = this.g.concat(res.data.list); this.loading = false;
this.page_count = res.data.pagination.page_count; console.log("resggg",res);
if (this.page_count == 1) { if(res.resultCode==1){
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1 || this.page_count==0) {
this.isover = true; this.isover = true;
} }
this.loading = false;
}
uni.hideNavigationBarLoading();
} }
); );
// this.request(
// {
// url: "",
// data: {
// r: "api/default/goods-list",
// page: this.page,
// cat_id: this.d[this.tid].id,
// },
// },
// (res) => {
// this.g = this.g.concat(res.data.list);
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// this.loading = false;
// }
// );
}, },
lower(e) { lower(e) {
if (this.page < this.page_count) { if (this.msg.pageIndex < this.page_count) {
if (!this.loading) { if (!this.loading) {
this.page++; this.msg.pageIndex++;
this.init(); this.init();
} }
} else { } else {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="left-slider"> <div class="left-slider">
<sidebar <sidebar
:active="tid" :active="tid"
name="name" name="Name"
:active-color="mainColor" :active-color="mainColor"
:border="false" :border="false"
:list="d" :list="d"
...@@ -88,6 +88,15 @@ export default { ...@@ -88,6 +88,15 @@ export default {
loading: false, loading: false,
tid: 0, tid: 0,
active: 0, active: 0,
msg:{
pageIndex: 1,
pageSize:14,
Name:'',
GoodsType:0,
CategoryIds:'',
OrderBy:1,
UserId:0,
},
}; };
}, },
created() { created() {
...@@ -99,8 +108,9 @@ export default { ...@@ -99,8 +108,9 @@ export default {
}, },
methods: { methods: {
changeHandler(i) { changeHandler(i) {
this.msg.CategoryIds= this.d[i].Id+'';
this.msg.page = 1;
this.tid = i; this.tid = i;
this.page = 1;
this.g = []; this.g = [];
this.init(); this.init();
}, },
...@@ -110,29 +120,49 @@ export default { ...@@ -110,29 +120,49 @@ export default {
init() { init() {
this.isover = false; this.isover = false;
this.loading = true; this.loading = true;
this.request( this.request2(
{ {
url: "", url: '/api/AppletGoods/GetAppletGoodsPageListForZY',
data: { data: this.msg
r: "api/default/goods-list",
page: this.page,
cat_id: this.d[this.tid].id,
},
}, },
(res) => { res => {
this.g = this.g.concat(res.data.list); this.loading = false;
this.page_count = res.data.pagination.page_count; console.log("resggg",res);
if (this.page_count == 1) { if(res.resultCode==1){
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1 || this.page_count==0) {
this.isover = true; this.isover = true;
} }
this.loading = false;
}
uni.hideNavigationBarLoading();
} }
); );
// this.request(
// {
// url: "",
// data: {
// r: "api/default/goods-list",
// page: this.page,
// cat_id: this.d[this.tid].id,
// },
// },
// (res) => {
// this.g = this.g.concat(res.data.list);
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// this.loading = false;
// }
// );
}, },
lower(e) { lower(e) {
if (this.page < this.page_count) { if (this.msg.pageIndex < this.page_count) {
if (!this.loading) { if (!this.loading) {
this.page++; this.msg.pageIndex++;
this.init(); this.init();
} }
} else { } else {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="left-slider"> <div class="left-slider">
<sidebar <sidebar
:active="tid" :active="tid"
name="name" name="Name"
:active-color="mainColor" :active-color="mainColor"
:border="false" :border="false"
:list="d" :list="d"
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
:key="index" :key="index"
@click="clickHandler(x.page_url)" @click="clickHandler(x.page_url)"
> >
<div class="left">{{ x.name }}</div> <div class="left">{{ x.Name }}</div>
<div class="right"> <div class="right">
<image <image
v-if="x.big_pic_url && x.big_pic_url.length > 0" v-if="x.IconPath && x.IconPath.length > 0"
mode="aspectFit" mode="aspectFit"
:src="x.big_pic_url" :src="getIconLink(c.IconPath)"
style="width: 100%; height: 100%;" style="width: 100%; height: 100%;"
/> />
</div> </div>
...@@ -63,13 +63,13 @@ export default { ...@@ -63,13 +63,13 @@ export default {
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.sd = this.d[this.tid].child; this.sd = this.d[this.tid].ChildList;
}, },
methods: { methods: {
changeHandler(i) { changeHandler(i) {
this.tid = i; this.tid = i;
this.page = 1; this.page = 1;
this.sd = this.d[this.tid].child; this.sd = this.d[this.tid].ChildList;
}, },
clickHandler(url) { clickHandler(url) {
uni.navigateTo({ url: url }); uni.navigateTo({ url: url });
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="left-slider"> <div class="left-slider">
<sidebar <sidebar
:active="tid" :active="tid"
name="name" name="Name"
:active-color="mainColor" :active-color="mainColor"
:border="false" :border="false"
:list="d" :list="d"
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
@click="clickHandler(c.page_url)" @click="clickHandler(c.page_url)"
> >
<image <image
:src="c.pic_url" class="imgclass"
mode="widthFix" :src="getIconLink(c.IconPath)"
style="width: 80rpx; height: 80rpx;" style="width: 80rpx; height: 80rpx;"
/> />
<text class="grid-text">{{ c.name }}</text> <text class="grid-text">{{ c.Name }}</text>
</u-grid-item> </u-grid-item>
</u-grid> </u-grid>
</div> </div>
...@@ -62,13 +62,13 @@ export default { ...@@ -62,13 +62,13 @@ export default {
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.activeStyle = `background:${this.mainColor};`; this.activeStyle = `background:${this.mainColor};`;
this.sd = this.d[this.tid].child; this.sd = this.d[this.tid].ChildList;
}, },
methods: { methods: {
changeHandler(i) { changeHandler(i) {
this.tid = i; this.tid = i;
this.page = 1; this.page = 1;
this.sd = this.d[this.tid].child; this.sd = this.d[this.tid].ChildList;
}, },
clickHandler(url) { clickHandler(url) {
uni.navigateTo({ url: url }); uni.navigateTo({ url: url });
...@@ -78,6 +78,10 @@ export default { ...@@ -78,6 +78,10 @@ export default {
</script> </script>
<style> <style>
.catstyle6 .imgclass{
display: block;
width: 80rpx; height: 80rpx;
}
.catstyle6 { .catstyle6 {
display: flex; display: flex;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="tabsbox"> <view class="tabsbox">
<u-tabs <u-tabs
:is-scroll="true" :is-scroll="true"
name="name" name="Name"
:list="d" :list="d"
:active-color="mainColor" :active-color="mainColor"
:current="active" :current="active"
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
'border-color': stid == i ? mainColor : '#999', 'border-color': stid == i ? mainColor : '#999',
color: stid == i ? mainColor : '#999', color: stid == i ? mainColor : '#999',
}" }"
v-for="(x, i) in d[tid].child" v-for="(x, i) in d[tid].ChildList"
:key="i" :key="i"
@click="clickSecondHandler(i)" @click="clickSecondHandler(i)"
> >
{{ x.name }} {{ x.Name }}
</div> </div>
</div> </div>
<div <div
...@@ -84,12 +84,24 @@ export default { ...@@ -84,12 +84,24 @@ export default {
active: 0, active: 0,
stid: 0, stid: 0,
sHeight: 0, sHeight: 0,
msg:{
pageIndex: 1,
pageSize:14,
Name:'',
GoodsType:0,
CategoryIds:'',
OrderBy:1,
UserId:0,
},
}; };
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
}, },
mounted() { mounted() {
this.CategoryIdsList=[];
this.CategoryIds1=this.d[0].Id;
this.CategoryIds2=this.d[0].ChildList[0].Id;
this.init(); this.init();
setTimeout(() => { setTimeout(() => {
this.computSecondHeight(); this.computSecondHeight();
...@@ -97,9 +109,11 @@ export default { ...@@ -97,9 +109,11 @@ export default {
}, },
methods: { methods: {
changeHandler(i) { changeHandler(i) {
this.active=i;
this.CategoryIds1=this.d[i].Id;
this.msg.page = 1;
this.tid = i; this.tid = i;
this.stid = 0; this.stid = 0;
this.page = 1;
this.g = []; this.g = [];
this.init(); this.init();
setTimeout(() => { setTimeout(() => {
...@@ -107,8 +121,10 @@ export default { ...@@ -107,8 +121,10 @@ export default {
}, 500); }, 500);
}, },
clickSecondHandler(i) { clickSecondHandler(i) {
let tid=this.tid;
this.CategoryIds2=this.d[tid].ChildList[i].Id;
this.stid = i; this.stid = i;
this.page = 1; this.msg.page = 1;
this.g = []; this.g = [];
this.init(); this.init();
}, },
...@@ -125,31 +141,54 @@ export default { ...@@ -125,31 +141,54 @@ export default {
.exec(); .exec();
}, },
init() { init() {
this.CategoryIdsList=[];
this.CategoryIdsList.push(this.CategoryIds1,this.CategoryIds2);
this.msg.CategoryIds=this.CategoryIdsList.join(',');
this.isover = false; this.isover = false;
this.loading = true; this.loading = true;
this.request( this.request2(
{ {
url: "", url: '/api/AppletGoods/GetAppletGoodsPageListForZY',
data: { data: this.msg
r: "api/default/goods-list",
page: this.page,
cat_id: this.d[this.tid].child[this.stid].id,
},
}, },
(res) => { res => {
this.g = this.g.concat(res.data.list); this.loading = false;
this.page_count = res.data.pagination.page_count; console.log("resggg",res);
if (this.page_count == 1) { if(res.resultCode==1){
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1 || this.page_count==0) {
this.isover = true; this.isover = true;
} }
this.loading = false;
}
uni.hideNavigationBarLoading();
} }
); );
// this.request(
// {
// url: "",
// data: {
// r: "api/default/goods-list",
// page: this.page,
// cat_id: this.d[this.tid].ChildList[this.stid].id,
// },
// },
// (res) => {
// this.g = this.g.concat(res.data.list);
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// this.loading = false;
// }
// );
}, },
lower(e) { lower(e) {
if (this.page < this.page_count) { if (this.msg.pageIndex < this.page_count) {
if (!this.loading) { if (!this.loading) {
this.page++; this.msg.pageIndex++;
this.init(); this.init();
} }
} else { } else {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="left-slider"> <view class="left-slider">
<sidebar <sidebar
:active="tid" :active="tid"
name="name" name="Name"
:active-color="mainColor" :active-color="mainColor"
:border="false" :border="false"
:list="d" :list="d"
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
'border-color': stid == i ? mainColor : '#999', 'border-color': stid == i ? mainColor : '#999',
color: stid == i ? mainColor : '#999', color: stid == i ? mainColor : '#999',
}" }"
v-for="(x, i) in d[tid].child" v-for="(x, i) in d[tid].ChildList"
:key="i" :key="i"
@click="clickSecondHandler(i)" @click="clickSecondHandler(i)"
>{{ x.name }}</view> >{{ x.Name }}</view>
</view> </view>
</view> </view>
...@@ -49,9 +49,9 @@ ...@@ -49,9 +49,9 @@
<view class="good-name">{{ cx.name }}</view> <view class="good-name">{{ cx.name }}</view>
<view class="goodprice"> <view class="goodprice">
<view class="left"> <view class="left">
<view v-if="cx.vip_price"> <view v-if="cx.price_member">
<van-tag plain color="#f39800">会员价</van-tag> <van-tag plain color="#f39800">会员价</van-tag>
<span class="vip">329</span> <span class="vip">{{cx.price_member}}</span>
</view> </view>
<view class="price" :style="{ color: mainColor }">{{ cx.price_content }}</view> <view class="price" :style="{ color: mainColor }">{{ cx.price_content }}</view>
<view class="sell">{{ cx.sales }}</view> <view class="sell">{{ cx.sales }}</view>
...@@ -90,7 +90,19 @@ export default { ...@@ -90,7 +90,19 @@ export default {
tid: 0, tid: 0,
stid: 0, stid: 0,
active: 0, active: 0,
scrollHeight: "calc(100% - 33px" scrollHeight: "calc(100% - 33px)",
msg:{
pageIndex: 1,
pageSize:14,
Name:'',
GoodsType:0,
CategoryIds:'',
OrderBy:1,
UserId:0,
},
CategoryIdsList:[],
CategoryIds1:'',
CategoryIds2:'',
}; };
}, },
components: { components: {
...@@ -105,19 +117,26 @@ export default { ...@@ -105,19 +117,26 @@ export default {
} }
}, },
mounted() { mounted() {
this.CategoryIdsList=[];
this.CategoryIds1=this.d[0].Id;
this.CategoryIds2=this.d[0].ChildList[0].Id;
this.init(); this.init();
}, },
methods: { methods: {
changeHandler(e) { changeHandler(i) {
this.tid = e; this.active=i;
this.CategoryIds1=this.d[i].Id;
this.msg.page = 1;
this.tid = i;
this.stid = 0; this.stid = 0;
this.page = 1;
this.g = []; this.g = [];
this.init(); this.init();
}, },
clickSecondHandler(e) { clickSecondHandler(i) {
this.stid = e; let tid=this.tid;
this.page = 1; this.CategoryIds2=this.d[tid].ChildList[i].Id;
this.stid = i;
this.msg.page = 1;
this.g = []; this.g = [];
this.init(); this.init();
}, },
...@@ -125,31 +144,54 @@ export default { ...@@ -125,31 +144,54 @@ export default {
uni.navigateTo({ url: e }); uni.navigateTo({ url: e });
}, },
init() { init() {
this.CategoryIdsList=[];
this.CategoryIdsList.push(this.CategoryIds1,this.CategoryIds2);
this.msg.CategoryIds=this.CategoryIdsList.join(',');
this.isover = false; this.isover = false;
this.loading = true; this.loading = true;
this.request( this.request2(
{ {
url: "", url: '/api/AppletGoods/GetAppletGoodsPageListForZY',
data: { data: this.msg
r: "api/default/goods-list",
page: this.page,
cat_id: this.d[this.tid].child[this.stid].id
}
}, },
res => { res => {
this.g = this.g.concat(res.data.list); this.loading = false;
this.page_count = res.data.pagination.page_count; console.log("resggg",res);
if (this.page_count == 1) { if(res.resultCode==1){
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1 || this.page_count==0) {
this.isover = true; this.isover = true;
} }
this.loading = false;
}
uni.hideNavigationBarLoading();
} }
); );
// this.request(
// {
// url: "",
// data: {
// r: "api/default/goods-list",
// page: this.page,
// cat_id: this.d[this.tid].child[this.stid].id
// }
// },
// res => {
// this.g = this.g.concat(res.data.list);
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// this.loading = false;
// }
// );
}, },
lower(e) { lower(e) {
if (this.page < this.page_count) { if (this.msg.pageIndex < this.page_count) {
if (!this.loading) { if (!this.loading) {
this.page++; this.msg.pageIndex++;
this.init(); this.init();
} }
} else { } else {
......
...@@ -6,42 +6,42 @@ ...@@ -6,42 +6,42 @@
style="voerflow: hidden; overflow-y: auto;" style="voerflow: hidden; overflow-y: auto;"
> >
<style1 <style1
v-if="cstyle.cat_style == 1" v-if="cstyle.Type == 1 && cstyle.Style == 1"
:d="types" :d="types"
:h="(navHeight+54)" :h="(navHeight+54)"
></style1> ></style1>
<style2 <style2
v-if="cstyle.cat_style == 2" v-if="cstyle.Type == 1 && cstyle.Style == 2"
:d="types" :d="types"
:h="(navHeight+54)" :h="(navHeight+54)"
></style2> ></style2>
<style3 <style3
v-if="cstyle.cat_style == 3" v-if="cstyle.Type == 1 && cstyle.Style == 3"
:d="types" :d="types"
:h="(navHeight+54)" :h="(navHeight+54)"
></style3> ></style3>
<style4 <style4
v-if="cstyle.cat_style == 5" v-if="cstyle.Type == 1 && cstyle.Style == 4"
:d="types" :d="types"
:h="(navHeight+54)" :h="(navHeight+54)"
></style4> ></style4>
<style5 <style5
v-if="cstyle.cat_style == 6" v-if="cstyle.Type == 2 && cstyle.Style == 1"
:d="types" :d="types"
:h="(navHeight+54)" :h="(navHeight+54)"
></style5> ></style5>
<style6 <style6
v-if="cstyle.cat_style == 4" v-if="cstyle.Type == 2 && cstyle.Style == 2"
:d="types" :d="types"
:h="(navHeight+54)" :h="(navHeight+54)"
></style6> ></style6>
<style7 <style7
v-if="cstyle.cat_style == 7" v-if="cstyle.Type == 2 && cstyle.Style == 3"
:d="types" :d="types"
:h="(navHeight+54)" :h="(navHeight+54)"
></style7> ></style7>
<style8 <style8
v-if="cstyle.cat_style == 8" v-if="cstyle.Type == 2 && cstyle.Style == 4"
:d="types" :d="types"
:h="(navHeight+54)" :h="(navHeight+54)"
></style8> ></style8>
...@@ -82,6 +82,7 @@ import style11 from "@/components/cats/style10"; ...@@ -82,6 +82,7 @@ import style11 from "@/components/cats/style10";
export default { export default {
data() { data() {
return { return {
cat_style:2,
isloading: true, isloading: true,
pageTitle: "分类", pageTitle: "分类",
navHeight: 0, navHeight: 0,
...@@ -96,7 +97,10 @@ export default { ...@@ -96,7 +97,10 @@ export default {
types: [], types: [],
changeHeight: 0, changeHeight: 0,
contentHeight: 0, contentHeight: 0,
cstyle: {}, cstyle: {
Type:1,
Style:1
},
}; };
}, },
components: { components: {
...@@ -116,9 +120,9 @@ export default { ...@@ -116,9 +120,9 @@ export default {
}, },
onLoad() { onLoad() {
this.navHeight = this.$navHeight - 2; this.navHeight = this.$navHeight - 2;
this.cstyle = uni.getStorageSync("basedata") // this.cstyle = uni.getStorageSync("basedata")
? uni.getStorageSync("basedata").cat_style // ? uni.getStorageSync("basedata").cat_style
: []; // : [];
if (this.cstyle.cat_style == "4") { if (this.cstyle.cat_style == "4") {
// this.searchStyle.p = { // this.searchStyle.p = {
// position: "fixed", // position: "fixed",
...@@ -146,34 +150,74 @@ export default { ...@@ -146,34 +150,74 @@ export default {
title: this.pageTitle, title: this.pageTitle,
}); });
this.init(); this.init();
this.getStyle();
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
}, },
methods: { methods: {
goHome() { goHome() {
uni.redirectTo({ url: "/pages/index/main" }); uni.redirectTo({ url: "/pages/index/main" });
}, },
init() { getStyle(){
this.request( this.request2(
{ {
url: "", url: '/api/AppletGoods/GetProductCategoryTreeList',
data: { data: {}
r: "api/cat/list",
cat_id: "",
select_cat_id: "",
}, },
res => {
console.log("res",res);
this.isloading = false;
if(res.resultCode==1){
this.types = res.data;
console.log("this.types",this.types)
// this.types.forEach((x) => {
// if (x.IconPath == "") {
// x.IconPath =
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200330/2099ca5e58ff3e0548d730bfaae14f7a.png";
// }
// });
}
uni.hideNavigationBarLoading();
}
);
},
init() {
this.request2(
{
url: '/api/AppletGoods/GetProductCategoryStyleInfo',
data: {}
}, },
(res) => { res => {
this.types = res.data.list; console.log("res",res);
this.types.forEach((x) => { if(res.resultCode==1){
if (x.pic_url == "") { this.cstyle=res.data;
x.pic_url =
"https://cdnimg.iotweixin.com/uploads/mall1285/20200330/2099ca5e58ff3e0548d730bfaae14f7a.png";
} }
});
this.isloading = false;
uni.hideNavigationBarLoading(); uni.hideNavigationBarLoading();
} }
); );
// this.request(
// {
// url: "",
// data: {
// r: "api/cat/list",
// cat_id: "",
// select_cat_id: "",
// },
// },
// (res) => {
// this.types = res.data.list;
// console.log("this.types",this.types)
// this.types.forEach((x) => {
// if (x.pic_url == "") {
// x.pic_url =
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200330/2099ca5e58ff3e0548d730bfaae14f7a.png";
// }
// });
// this.isloading = false;
// uni.hideNavigationBarLoading();
// }
// );
}, },
}, },
}; };
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
nonceStr: this.payInfo.nonceStr, nonceStr: this.payInfo.nonceStr,
package: this.payInfo.package, package: this.payInfo.package,
signType: this.payInfo.signType, signType: this.payInfo.signType,
paySign: '', paySign: this.payInfo.sign,
success: function (res) { success: function (res) {
console.log("success",res) console.log("success",res)
}, },
......
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