Commit 1887691e authored by 王建威's avatar 王建威

bugfix

parent e673e491
// php测试环境
export const php = 'http://test.pet-dbc.cn/mobile/index.php?'
// export const php = 'http://test.pet-dbc.cn/mobile/index.php?'
// php镜像
export const php = 'https://jingxiang.pet-dbc.cn/mobile/index.php?'
// php正式环境
//export php = 'https://shop.pet-dbc.cn/mobile/index.php?'
// go测试环境
export const go = 'https://tm.pet-dbc.cn'
// export const go = 'https://tm.pet-dbc.cn'
// go镜像环境
export const go = 'https://jxm.pet-dbc.cn'
// go正式环境
// export go 'https://m.pet-dbc.cn';
\ No newline at end of file
#!/usr/bin/env bash
sshpass -p dbc_root123 scp -P 22 -r unpackage/dist/build/h5/* root@39.96.85.45:/docker/shop_mobile_uni/mirror/dist
......@@ -111,6 +111,7 @@
this.cate_id_2 = cate_id+'';
}
this.tabIndex = index;
this.$refs.pagination.parentsChangeCurrent(1);
uni.request({
url: '/uni/api/credit_goods/get_credit_second_goods',
method: 'POST',
......@@ -127,17 +128,25 @@
this.goods_list = credit_goods_list;
this.page = page;
!!cb && cb();
console.log(this.goods_list)
}
});
},
changePage(data) {
const { current } = data;
if(this.cate_id_2) {
var params = {
pageSize: 10,
cate_id_2: this.cate_id_2,
goods_name: this.keyword
}
} else {
var params = this.params;
}
uni.request({
url: '/uni/api/credit_goods/get_credit_second_goods',
method: 'POST',
data: {
...this.params,
...params,
current: current,
},
dataType: 'json',
......@@ -153,6 +162,7 @@
method: 'POST',
data: {
goods_name: this.keyword,
cate_id_1: this.firsr_cate_id,
current: 1,
pageSize: 10
},
......
......@@ -39,7 +39,7 @@
<view class="part_two">
<view>
<image class="portrait" :src="portrait || $defaultPortrait"></image>
<text class="user_name">{{user_name}}</text>
<p class="user_name">{{customer_name}}</p>
</view>
<text class="go_credit" @click="isLogin ? (credit_flg ? jumpGoPage() : jumpGoPage('/introduce')) : jumpPhpPage('app=member&act=login')"><text>我的白条</text><i class="go_credit_icon"></i></text>
</view>
......@@ -98,7 +98,7 @@
tabIndex: 3, // 1:首页 2:精彩活动 3:谛宝白条 4:采购分期
credit_cates_list: [], // 分类
credit_goods_list: [], // 商品
user_name: 'Hi, 谛宝多多',
customer_name: 'Hi, 谛宝多多',
portrait: '',
current: 0,
keyword: '',
......@@ -144,7 +144,7 @@
this.isLogin = res.data.login_flg;
this.credit_flg = res.data.credit_flg;
if(res.data.data.user_name) {
this.user_name = res.data.data.user_name;
this.customer_name = res.data.data.customer_name;
}
if(res.data.data.portrait) {
this.portrait = res.data.data.portrait;
......@@ -341,6 +341,11 @@
font-weight: 600;
vertical-align: middle;
margin: 0 0 0 16rpx;
width: 380rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
}
.go_credit {
display: inline-block;
......
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