@@ -1,7 +1,7 @@
<script>
export default {
globalData: {
- baseurl: 'https://www.jinganrenjiams.com/cloud-mall-tmp'
+ baseurl: 'https://www.jinganrenjiams.com/cloud-mall'
},
onLaunch: function () {},
onShow: function () {},
@@ -1,5 +1,5 @@
// 全局请求封装
-const base_url = 'https://www.jinganrenjiams.com/cloud-mall-tmp'
+const base_url = 'https://www.jinganrenjiams.com/cloud-mall'
// 需要修改token,和根据实际修改请求头
export default (params) => {
let url = params.url;
@@ -737,26 +737,6 @@ export default {
}
})
- // let list2=[]
- // this.skuDatas.forEach((item,ins)=>{
- // item.attrValues.forEach((el,index)=>{
- // if(el.type == true){
- // list2.push({attrValue:el.attrValue})
- // }
- // })
- // list2.forEach((el,index)=>{
- // console.log(JSON.stringify(list),'p')
- // console.log(JSON.stringify(el),'p2')
- // console.log(JSON.stringify(list) == JSON.stringify(el))
- // if(JSON.stringify(list) == JSON.stringify(el)){
- // this.cartPrice=el.price
- // this.cartImg=el.skuImg
- // this.cartSale=el.stockNum
- // this.skuId=el.skuId
-
var list2=[]
this.skuDatas.forEach((item,index2)=>{
list2=[]
@@ -772,31 +752,7 @@ export default {
this.cartSale=item.stockNum
this.skuId=item.skuId
- })
- // this.skuDatas.forEach((el,index)=>{
- // console.log(JSON.stringify(el.saleAttrs),'p2')
- // if(JSON.stringify(list) == JSON.stringify(el.saleAttrs)){
- console.log(this.skuId,'0')
- // this.cartImg=res.img
- // this.cartPrice=res.price
- // this.cartSale=res.sale
- // this.skuId=res.id
- // this.skuDatas.forEach((item) => {
- // if (res.sku == item.sku) {
- // this.$set(item, 'selected', true)
- // } else {
- // this.$set(item, 'selected', false)
- // this.sku = res
+ })
// 评论
@@ -22,7 +22,7 @@ export const cartcheck = (params,data,header) => {
export const cartcheckpiliang = (params,header) => {
return request({
url: '/user/cart/batchCheck'+params,
- method: 'put',
+ method: 'put',
header:header,
var url = 'https://www.daweilinli.com/smartcommunity-api/';//https://vote.chuanghai-tech.com/smartcommunity-api/
-var url2 = 'https://www.jinganrenjiams.com/cloud-mall-tmp';
+var url2 = 'https://www.jinganrenjiams.com/cloud-mall';
// var url = 'http://192.168.31.143:9999/';
var nameList = ['赣', '京','辽','吉','黑', '冀', '晋','津','蒙','苏','浙','皖','闽','鲁','沪','豫','湘','鄂','粤','琼','桂','川','滇','贵','渝','藏','陕','甘','青','宁','新','港','澳','台']
export default{
@@ -2,7 +2,7 @@
const BASE_URL = "https://www.jinganrenjiams.com/hotelReservation"
// 商城接口前缀
-const BASE_URL_SHOP = "https://www.jinganrenjiams.com/cloud-mall-tmp"
+const BASE_URL_SHOP = "https://www.jinganrenjiams.com/cloud-mall"
export const myRequest = (options) => {
uni.showLoading({