作者 ysx

更新

... ... @@ -169,7 +169,7 @@
}
]
},
"style": "v2",
"sitemapLocation": "sitemap.json",
"permission": {
"scope.userLocation": {
... ...
<view class="container">
<block wx:if="{{pei_type == 1}}">
<view class="address" wx:if="{{address_id}}">
<view class="city">{{address.address}}</view>
<view class="addressDetails">{{address.address2}}</view>
<view class="person_">
<view class="person_ziliao">
<text class="person_name persongeren">{{address.name}}</text>
<text class="person_phone persongeren">{{address.phone}}</text>
</view>
<view class="arrow_r" bindtap="changeReceiverAddress">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
</view>
</view>
<view class="addressde" bindtap="changeReceiverAddress" wx:else>
<view class="cdddd">+请添加收货地址</view>
<view class="arrow_r">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
</view>
</block>
<view class="zhuang">
<image src="{{imagesUrl}}assets/static/img/zhuangshi_img@2x.png" />
</view>
<view class="list_count">
<!-- 商品详情过来 -->
<view class="list" wx:for="{{ConfirmAnOrder}}" wx:for-item="item" wx:key="*this">
... ... @@ -52,6 +28,30 @@
<image class="d_e_img" src="/static/img/img_t.png" wx:else></image>
</view>
</view>
<!-- <view class="zhuang">
<image src="{{imagesUrl}}assets/static/img/zhuangshi_img@2x.png" />
</view> -->
<block wx:if="{{pei_type == 1}}">
<view class="address" wx:if="{{address_id}}">
<view class="city">{{address.address}}</view>
<view class="addressDetails">{{address.address2}}</view>
<view class="person_">
<view class="person_ziliao">
<text class="person_name persongeren">{{address.name}}</text>
<text class="person_phone persongeren">{{address.phone}}</text>
</view>
<view class="arrow_r" bindtap="changeReceiverAddress">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
</view>
</view>
<view class="addressde" bindtap="changeReceiverAddress" wx:else>
<view class="cdddd">请添加收货地址</view>
<view class="arrow_r">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
</view>
</block>
<!-- 备注 -->
<view class="remarks public">
<text class="remarks_ public_1">备注</text>
... ...
... ... @@ -49,7 +49,7 @@ page {
}
.container .addressde {
width: 100%;
padding: 32rpx 64rpx;
padding: 32rpx 30rpx;
box-sizing: border-box;
display: flex;
align-items: center;
... ... @@ -58,8 +58,8 @@ page {
}
.container .addressde .cdddd {
flex: 1;
font-size: 32rpx;
font-weight: bold;
font-size: 28rpx;
color: #3D444C;
}
.container .addressde .arrow_r {
width: 30rpx;
... ...
... ... @@ -12,6 +12,8 @@ Page({
data: {
// 活动id
id: 0,
// 活动个人信息
userMsg:'',
// 顾问id
advisers_id: 0,
// 抽奖总数据
... ... @@ -194,7 +196,10 @@ Page({
*/
onLoad: function (e) {
wx.setStorageSync('drawId', e.id)
console.log(e, '传递的抽奖id')
this.setData({
userMsg:JSON.parse(e.userMsg)
})
console.log(e, this.data.userMsg,'传递的抽奖id')
if (e.id != undefined) {
this.setData({
id: e.id
... ... @@ -513,7 +518,7 @@ Page({
})
} else if (type == 2) {
wx.navigateTo({
url: '/pages/myPrize/myPrize?drawid=' + this.data.id,
url: '/pages/myPrize/myPrize?drawid=' + this.data.id + '&userMsg='+ JSON.stringify(this.data.userMsg),
})
}
},
... ...
... ... @@ -150,12 +150,12 @@
</view>
<!-- 批注 -->
<view class="mark">
<text class="mark-t">粤文网【2017】6138-1456号</text>
<text class="mark-t">苏ICP备20015620号-3</text>
<view class="mark-v">
<text class="mark-vt">Copyright</text>
<text class="mark-t">1998-2021 Tencent.All Rights Reserved.</text>
<text class="mark-t">400-0513-066</text>
</view>
<text class="mark-t">小象优选 版权所有</text>
<text class="mark-t">小象汽车互联网4S店开放平台</text>
</view>
</view>
... ...
... ... @@ -74,6 +74,7 @@ Page({
},
onLoad: function (options) {
console.log(this.data.address,this.data.address_id,'选中的地址')
let that = this
// console.log(options);
if (options.gui_arr) {
... ... @@ -107,6 +108,7 @@ Page({
},
async getConfirmAnOrder() {
let that = this
try {
const {
... ... @@ -296,7 +298,7 @@ Page({
console.log(that.data.pei_type, '支付前得配送')
// 改
if (obj.address_id) {
console.log(obj.addre_id)
console.log(obj.address_id)
request({
url: 'api/gou/buy2',
data: obj
... ...
<view class="container">
<!-- <block wx:if="{{service == '快递配送'}}"> -->
<!-- 配送改 -->
<block wx:if="{{pei_type == 1}}">
<view class="address" wx:if="{{address_id}}">
<view class="city">{{address.address}}</view>
<view class="addressDetails">{{address.address2}}</view>
<view class="person_">
<view class="person_ziliao">
<text class="person_name persongeren">{{address.name}}</text>
<text class="person_phone persongeren">{{address.phone}}</text>
</view>
<view class="arrow_r" bindtap="changeReceiverAddress">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
</view>
</view>
<view class="addressde" bindtap="changeReceiverAddress" wx:else>
<view class="cdddd">+ 请添加收货地址</view>
<view class="arrow_r">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
</view>
</block>
<view class="zhuang">
<image src="{{imagesUrl}}assets/static/img/zhuangshi_img@2x.png" />
</view>
<view class="list_count">
<!-- 商品详情过来 -->
<view class="list">
... ... @@ -55,6 +29,31 @@
<image class="d_e_img" src="/static/img/img_t.png" wx:else></image>
</view>
</view>
<!-- <view class="zhuang">
<image src="{{imagesUrl}}assets/static/img/zhuangshi_img@2x.png" />
</view> -->
<!-- 配送改 -->
<block wx:if="{{pei_type == 1}}">
<view class="address" wx:if="{{address_id}}">
<view class="city">{{address.address}}</view>
<view class="addressDetails">{{address.address2}}</view>
<view class="person_">
<view class="person_ziliao">
<text class="person_name persongeren">{{address.name}}</text>
<text class="person_phone persongeren">{{address.phone}}</text>
</view>
<view class="arrow_r" bindtap="changeReceiverAddress">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
</view>
</view>
<view class="addressde" bindtap="changeReceiverAddress" wx:else>
<view class="cdddd">请添加收货地址</view>
<view class="arrow_r">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
</view>
</block>
<!-- 备注 -->
<view class="remarks public">
<text class="remarks_ public_1">备注</text>
... ...
... ... @@ -59,7 +59,7 @@ page {
.container .addressde {
width: 100%;
padding: 32rpx 64rpx;
padding: 32rpx 30rpx;
box-sizing: border-box;
display: flex;
align-items: center;
... ... @@ -69,8 +69,8 @@ page {
.container .addressde .cdddd {
flex: 1;
font-size: 32rpx;
font-weight: bold;
font-size: 28rpx;
color: #3D444C;
}
.container .addressde .arrow_r {
... ... @@ -518,4 +518,10 @@ van-steps {
font-size: 28rpx;
font-weight: 400;
color: #ee0a24;
}
\ No newline at end of file
}
.van-action-sheet__cancel, .van-action-sheet__item {
color:gray;
width: 100%;
height: 100rpx;
line-height: 100rpx;
}
... ...
... ... @@ -38,14 +38,12 @@ Page({
onLoad: function (options) {
let that = this
console.log(options);
if (options.scene) {
that.setData({
id: options.scene,
})
} else {
if (options.is_share == 1) {
console.log('是分享进入');
this.setData({
is_share: options.is_share,
id: options.id,
... ... @@ -57,7 +55,14 @@ Page({
}
}
this.getTuanDetail()
// 分享朋友圈
wx.showShareMenu({
menus: ['shareAppMessage', 'shareTimeline'],
success(res) {
},
fail(e) {
}
})
},
onShow: function () {
... ... @@ -67,7 +72,24 @@ Page({
}
this.countTime()
},
// 分享朋友圈
onShareAppMessage: function (res) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline'],
})
return {
title: '汽车互联网4S店全面的汽车电商服务体验,邀您一起参与',
path: '/pages/details/details'
}
},
onShareTimeline() {
return {
title: '汽车互联网4S店全面的汽车电商服务体验,邀您一起参与',
path: '/pages/details/details'
}
},
goback() {
if (this.data.is_share == 1) {
wx.reLaunch({
... ... @@ -196,13 +218,11 @@ Page({
a.popTest(err.msg)
}
// console.log(tuan_id, "我是团id");
},
pingdanOn(e) {
let tuan_id = e.currentTarget.dataset.tuan_id || ''
let shop_id = e.currentTarget.dataset.id
// console.log(tuan_id, shop_id);
this.setData({
tuan_id,
shop_id,
... ... @@ -272,7 +292,6 @@ Page({
id: that.data.id
}
})
// console.log(data, "消tuanId情");
that.setData({
goodsPrice: data.goods_price
})
... ... @@ -300,7 +319,6 @@ Page({
that.setData({
tuanGui: list
})
// console.log(that.data.tuanGui, "tuanGui");
}
})
if (list.length == 0 || list.length < arr.length) {
... ... @@ -438,7 +456,6 @@ Page({
details = details.substring(details.indexOf('style="') + 7); //style后面的内容拼接
} else {
// // console.log(34449898)
texts += ' style="width:750rpx;height:auto;margin:0 auto;" ';
}
... ... @@ -451,7 +468,6 @@ Page({
},
onShareAppMessage(options) {
var that = this;
console.log(options)
var shareObj = {
title: that.data.tuanDetail.goods_name, // 默认是小程序的名称(可以写slogan等)
path: '/pages/VtuanDetail/VtuanDetail?id=' + that.data.id + '&is_share=1', // 默认是当前页面,必须是以‘/’开头的完整路径
... ... @@ -464,7 +480,6 @@ Page({
//记录流量
record() {
let that = this
console.log(that.data.id)
request({
url: '/api/new2/userOperateShare',
data: {
... ... @@ -478,7 +493,6 @@ Page({
let that = this
// 计时过程
timerPageA = setTimeout(function () {
console.log('团购+1', intPageATime);
intPageATime = intPageATime + 1
wx.setStorage({
key: "timerPageA",
... ... @@ -617,7 +631,6 @@ Page({
*/
onHide: function () {
clearTimeout(timerPageA);
console.log(intPageATime)
this.sendCountTime()
intPageATime = 0
... ... @@ -629,7 +642,6 @@ Page({
onUnload: function () {
clearTimeout(timerPageA);
this.sendCountTime()
console.log(intPageATime)
intPageATime = 0
},
... ...
... ... @@ -74,7 +74,7 @@
去拼单
</view>
<view class="go_ping_a" wx:if="{{share==2}}" data-onclick="0" catchtap="onclickitem" data-tuan_id="{{item.id}}" data-id="{{tuanDetail.goods_id}}">
立即拼单
立即参团
</view>
</view>
</block>
... ... @@ -139,7 +139,7 @@
</view>
<view class="buy">
<button class=" bind" bindtap="onclickitem" data-id="{{tuanDetail.goods_id}}" data-onclick="1">
发起拼({{tuanDetail.tuan_num}}人成团)
发起拼({{tuanDetail.tuan_num}}人成团)
</button>
</view>
</view>
... ...
... ... @@ -62,6 +62,13 @@ Page({
onShow: function () {
},
// 返回商品详情
returnGoods(){
let id = this.data.ConfirmAnOrder.id
wx.navigateTo({
url: '/pages/VtuanDetail/VtuanDetail?id='+ id,
})
},
cancelOrder(e) { // 取消订单
let that = this
wx.showModal({
... ...
... ... @@ -75,7 +75,7 @@
</view>
<view class="list_count">
<view class="list_title">{{OrderObligation.shop}}</view>
<view class="list">
<view class="list" bindtap="returnGoods">
<view class="left_imgs">
<image src="{{ConfirmAnOrder.img}}" />
</view>
... ...
... ... @@ -34,8 +34,8 @@ Page({
personsun: 100,
timename: '',
// 保存的绑定4s店面数据存储
s4_id:'',
s4_name:''
s4_id: '',
s4_name: ''
},
onShow: function () {
console.log('页面再展示')
... ... @@ -51,7 +51,7 @@ Page({
},
onLoad: function (options) {
let that = this
console.log(options, 'options分享传递的参数','页面首次加载');
console.log(options, 'options分享传递的参数', '页面首次加载');
let token = wx.getStorageSync('token')
if (options.scene) {
... ... @@ -66,10 +66,10 @@ Page({
id: options.id,
type: options.type,
})
if(options.s4_id) {
if (options.s4_id) {
wx.setStorageSync('s4_id', options.s4_id)
}
if(options.s4_name) {
if (options.s4_name) {
wx.setStorageSync('s4_name', options.s4_name)
}
}
... ... @@ -95,8 +95,26 @@ Page({
} else {
that.gethuodong()
}
},
// 分享朋友圈
onShareAppMessage: function (res) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline'],
})
return {
title: '汽车互联网4S店全面的汽车电商服务体验,邀您一起参与',
path: '/pages/details/details'
}
},
onShareTimeline() {
return {
title: '汽车互联网4S店全面的汽车电商服务体验,邀您一起参与',
path: '/pages/details/details'
}
},
async clickAttentn(s4_id) { // 点击关注
let that = this
try {
... ... @@ -311,9 +329,9 @@ Page({
path: '/pages/details/details?id=' + that.data.id + '&type=' + that.data.type + '&s4_id=' + s4_id + '&s4_name=' + s4_name, // 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
success: function (res) {
console.log(res,'转发成功')
console.log(res, '转发成功')
if (res.errMsg == 'shareAppMessage:ok') {
}
},
fail: function () {
... ...
... ... @@ -76,6 +76,8 @@ Page({
chooseClerk() {
let that = this
let s4id = that.data.s4id
// 测试
// this.showModal()
// if (s4id == 0) {
// } else {
... ... @@ -398,7 +400,7 @@ Page({
console.log(result, '截取结果')
wx.navigateTo({
// url: '/pages/webview/webview?url=' + encodeURIComponent(that.data.jump_url)
url: '/pages/LuckDraw/LuckDraw?id=' + result
url: '/pages/LuckDraw/LuckDraw?id=' + result +'&userMsg=' + JSON.stringify(that.data.obj)
})
that.hideModal()
},
... ...
... ... @@ -409,4 +409,10 @@ van-steps {
font-size: 28rpx;
font-weight: 400;
color: #ee0a24;
}
\ No newline at end of file
}
.van-action-sheet__cancel, .van-action-sheet__item {
color:gray;
width: 100%;
height: 100rpx;
line-height: 100rpx;
}
... ...
... ... @@ -29,6 +29,9 @@ Page({
},
godetails(e) {
let id = e.currentTarget.dataset.id
wx.navigateTo({
url: '/pages/productdetailsImg/productdetailsImg?id='+id,
})
// console.log(id);
},
async getMyOrderObligation() { // 获取
... ...
... ... @@ -9,6 +9,8 @@ Page({
* 页面的初始数据
*/
data: {
userMsg:'',
s4:"",
tablist:['未领取','已领取'],
drawid: 0,
active: 0,
... ... @@ -25,7 +27,9 @@ Page({
this.setData({
drawid: options.drawid,
s4_name: wx.getStorageSync('s4_name'),
active:options.type
active:options.type,
userMsg:JSON.parse(options.userMsg),
s4:wx.getStorageSync('s4_name')
})
this.getMyjiang()
},
... ... @@ -61,6 +65,7 @@ Page({
},
// 立即领取
getPrize(e) {
console.log(e)
console.log(e.currentTarget.dataset.thisdraw)
let thisDraw = e.currentTarget.dataset.thisdraw
console.log(thisDraw)
... ...
... ... @@ -22,10 +22,10 @@
<view class="btn" bindtap="getPrize" data-thisDraw="{{item.id}}" wx:if="{{active == 0}}">
立即领取
</view>
<view class="btn2" wx:if="{{active == 1}}">待核销</view>
<view class="btn2" wx:if="{{active == 1}}">{{item.type_id!=1?'待核销':'已领取'}}</view>
</view>
<view class="my" wx:if="{{active == 1}}">
<text class="mytxt">请前往合作经销商获取</text>
<text class="mytxt" hidden="{{item.type_id == 1}}">请前往合作经销商获取</text>
<view class="myitem" bindtap="getMydetail">
<text>领取信息</text>
<image src="https://car.goorcar.com/assets/draw3/Frame765@2x.png"></image>
... ... @@ -38,19 +38,19 @@
<text class="tit">领取信息</text>
<view class="myDetail">
<text>姓名</text>
<text>{{myDetail.name}}</text>
<text>{{userMsg.names}}</text>
</view>
<view class="myDetail">
<text>联系电话</text>
<text>{{myDetail.mobile}}</text>
<text>{{userMsg.phone}}</text>
</view>
<view class="myDetail">
<text>关注品牌</text>
<text>{{myDetail.pin_name}}</text>
<text>{{s4}}</text>
</view>
<view class="myDetail">
<text>关注车系</text>
<text>{{myDetail.pin2_name}}</text>
<text style="color:grey">小象正在考虑...</text>
</view>
<view class="button" bindtap="closeMydetail">确定</view>
</view>
... ...
... ... @@ -10,7 +10,7 @@ Page({
ajxtrue: false,
address2: '',
msg: '',
address: ["北京市", "北京市", "朝阳区"],
address: '',
},
/**
... ...
... ... @@ -15,7 +15,7 @@
<view class="picker_box">
<picker mode="region" bindchange="bindRegionChange" class="pickerLise" value="{{address}}" custom-item="{{customItem}}">
<!-- <view class="picker">{{address[0]}},{{address[1]}},{{address[2]}}</view> -->
<view class="picker">{{address}}</view>
<view class="picker">{{!address?'请选择省市区':address}}</view>
<view class="rowimg">
<image src="{{imagesUrl}}assets/static/img/right_arrow.png" />
</view>
... ...
... ... @@ -97,6 +97,7 @@ Page({
address: obj,
address_id: e.currentTarget.dataset.id
})
console.log(obj,e.currentTarget.dataset.id,'发送的地址数据')
wx.navigateBack()
},
popSuccessTest() { // 消息提示
... ...
... ... @@ -12,7 +12,7 @@
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"nodeModules": true,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
... ... @@ -30,7 +30,7 @@
"outputPath": ""
},
"enableEngineNative": false,
"useIsolateContext": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
... ... @@ -39,7 +39,7 @@
"minifyWXSS": true
},
"compileType": "miniprogram",
"libVersion": "2.10.4",
"libVersion": "2.12.3",
"appid": "wx11011d1f9492b8e0",
"projectname": "%E8%BD%A6%E5%94%9B",
"debugOptions": {
... ...