Commit f7057db0 by stingys@163.com

动态获取平台

parent 86e70dfc
......@@ -10,7 +10,6 @@ App({
session_key: '',
enter: '',
result: '',
link: '2019062610199102',
provinceList: [],
......
......@@ -127,9 +127,47 @@ Page({
this.setData({
province: province ? province : ''
})
_this.getPartner()
},
//getPartner
getPartner: function () {
let _this = this;
wx.request({
url: app.globalData.url + 'sources/show-by-link',
data: {
link: _this.data.userForms.link
},
success: function (res) {
let datas = res.data.data.terminals
var arr = []
for (var i = 0; i < datas.length; i++) {
let data = datas[i]
var obj = {}
obj.id = i;
if (data == '天天拍车') {
obj.logo = '../../images/shop_tiantianpaiche.png',
obj.des = '全国性二手车竞拍平台,买家在线竞拍,覆盖全国50多个主要城市,免费上门检测,最快一天成交!'
} else if (data == '瓜子二手车') {
obj.logo = '../../images/shop_guazi.png',
obj.des = '提供保卖服务。专注个人二手车交易,个人卖主直接把车卖给个人买家!'
} else if (data == '车置宝') {
obj.logo = '../../images/shop_chezhibao.png',
obj.des = '一个专注收车的网站。通过全业务流程大数据驱动,可以提供免费上门检测服务。即日起在车置宝成功卖车,最高可享20000元卖车补贴。'
} else if (data == '人人车') {
obj.logo = '../../images/shop_renrenche.png',
obj.des = '全程免费帮卖,免费上门评估,边开边卖,代办过户!最高多卖20%!'
}
obj.name = data
obj.selected=true
arr.push(obj)
}
_this.setData({
partner:arr
})
}
})
},
// 获取省份
getProvinceList: function() {
let _this = this;
......
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 sign in to comment