作者 刘朕

更新

不能预览此文件类型
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
29 "pages/logistics/logistics", 29 "pages/logistics/logistics",
30 "pages/notice/notice", 30 "pages/notice/notice",
31 "pages/outerChain/outerChain", 31 "pages/outerChain/outerChain",
  32 + "pages/outerChain2/outerChain2",
32 "pages/zhuanqu/zhuanqu", 33 "pages/zhuanqu/zhuanqu",
33 "pages/taocandetail/taocandetail", 34 "pages/taocandetail/taocandetail",
34 "pages/taocanpay/taocanpay", 35 "pages/taocanpay/taocanpay",
@@ -620,6 +620,18 @@ Page({ @@ -620,6 +620,18 @@ Page({
620 wx.hideLoading() 620 wx.hideLoading()
621 }) 621 })
622 }, 622 },
  623 + //跳转梓云轩小程序
  624 + ziyunxuan(){
  625 + wx.navigateToMiniProgram({
  626 + appId: 'wxb17ce7aff09d1adf',
  627 + path: 'pages/tab-container-page/tab-container-page',
  628 + envVersion: 'release',
  629 + success(res) {
  630 + // 打开成功
  631 + console.log(123);
  632 + }
  633 + })
  634 + },
623 //获取商品列表 635 //获取商品列表
624 good_list(pid, c_index) { 636 good_list(pid, c_index) {
625 wx.showLoading({ 637 wx.showLoading({
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 <view class="lunbo_box {{nav_index==0?'boxactive':''}}" > 34 <view class="lunbo_box {{nav_index==0?'boxactive':''}}" >
35 <swiper interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" current='{{current}}' bindchange='swiperChange' autoplay="{{autoplay}}" class='swiper_box'> 35 <swiper interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" current='{{current}}' bindchange='swiperChange' autoplay="{{autoplay}}" class='swiper_box'>
36 <swiper-item class='swiper-item' wx:for="{{imgurl}}" wx:key="index"> 36 <swiper-item class='swiper-item' wx:for="{{imgurl}}" wx:key="index">
37 - <image src='{{item.image}}' mode="aspectFill" data-id="{{item.thing_id}}" data-style="{{item.style}}" data-src="{{item.thing_id}}" catchtap="{{item.thing_id == 0?'':'look_more'}}" /> 37 + <image src='{{item.image}}' mode="aspectFill" data-id="{{item.thing_id}}" data-style="{{item.style}}" data-src="{{item.thing_id}}" catchtap="{{item.thing_id == 0?'ziyunxuan':'ziyunxuan'}}" />
38 </swiper-item> 38 </swiper-item>
39 </swiper> 39 </swiper>
40 <view class="dots"> 40 <view class="dots">
@@ -25,7 +25,8 @@ Page({ @@ -25,7 +25,8 @@ Page({
25 name: '' 25 name: ''
26 } 26 }
27 27
28 - } 28 + },
  29 + isSubmitting: false // 控制按钮的提交状态
29 }, 30 },
30 //加减商品数量 31 //加减商品数量
31 num_change(e) { 32 num_change(e) {
@@ -242,6 +243,9 @@ Page({ @@ -242,6 +243,9 @@ Page({
242 let list = that.data.info.products 243 let list = that.data.info.products
243 let coudan = that.data.coudan 244 let coudan = that.data.coudan
244 let info = [] 245 let info = []
  246 + // 检查是否已经提交中,防止多次点击
  247 + if (that.data.isSubmitting) return;
  248 + that.setData({ isSubmitting: true }); // 设置为提交中
245 if (that.data.type == 4) { 249 if (that.data.type == 4) {
246 for (let obj of list) { 250 for (let obj of list) {
247 info.push({ 251 info.push({
@@ -281,7 +285,23 @@ Page({ @@ -281,7 +285,23 @@ Page({
281 order_odd: order_odd 285 order_odd: order_odd
282 } 286 }
283 app.post(url, params).then((res) => { 287 app.post(url, params).then((res) => {
284 - that.payment(res.msg) 288 + console.log('resres',res);
  289 + // that.payment(res.msg)
  290 + if (res.msg.message == "支付成功") {
  291 + // wx.showToast({
  292 + // title: '购买成功',
  293 + // icon:'none'
  294 + // })
  295 + this.setData({
  296 + success: true,
  297 + isSubmitting: false
  298 + })
  299 + } else if (res.msg.message == "余额不足") {
  300 + this.setData({
  301 + fail: true,
  302 + isSubmitting: false
  303 + })
  304 + }
285 }) 305 })
286 }, 306 },
287 payment(res) { 307 payment(res) {
@@ -133,6 +133,39 @@ Page({ @@ -133,6 +133,39 @@ Page({
133 url: '../notice/notice?notice_id=' + id, 133 url: '../notice/notice?notice_id=' + id,
134 }) 134 })
135 }, 135 },
  136 + //跳转梓云轩小程序
  137 + ziyunxuan(){
  138 + wx.navigateToMiniProgram({
  139 + appId: 'wxb17ce7aff09d1adf',
  140 + path: 'pages/tab-container-page/tab-container-page',
  141 + envVersion: 'release',
  142 + success(res) {
  143 + // 打开成功
  144 + console.log(123);
  145 + }
  146 + })
  147 + },
  148 +
  149 + //跳转安鑫h5
  150 + anxin(){
  151 + let url = "https://store.800890.com/mobile/pages/index/index?channel=2c90808b93517ae101938aabcad9125b";
  152 + console.log(encodeURIComponent(url));
  153 + wx.navigateTo({
  154 + url: '/pages/outerChain2/outerChain2?src=' + encodeURIComponent(url)
  155 + })
  156 + },
  157 + shengri(){
  158 + let url = "https://store.800890.com/mobile/pages/index/index?channel=402881c19369440901938aa974f80de5";
  159 + wx.navigateTo({
  160 + url: '/pages/outerChain2/outerChain2?src=' + encodeURIComponent(url)
  161 + })
  162 + },
  163 + zaixian(){
  164 + let url = "https://store.800890.com/mobile/pages/index/index?channel=402881c19369440901938aa7333b0de1";
  165 + wx.navigateTo({
  166 + url: '/pages/outerChain2/outerChain2?src=' + encodeURIComponent(url)
  167 + })
  168 + },
136 169
137 // 进入劳保商城 170 // 进入劳保商城
138 laobao() { 171 laobao() {
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 current='{{current}}' bindchange='swiperChange' autoplay="{{autoplay}}" class='swiper_box'> 42 current='{{current}}' bindchange='swiperChange' autoplay="{{autoplay}}" class='swiper_box'>
43 <swiper-item class='swiper-item' wx:for="{{imgurl}}" wx:key="index"> 43 <swiper-item class='swiper-item' wx:for="{{imgurl}}" wx:key="index">
44 <image src='{{item.image}}' mode="aspectFill" data-id="{{item.goods_id}}" 44 <image src='{{item.image}}' mode="aspectFill" data-id="{{item.goods_id}}"
45 - data-style="{{item.type}}" data-src="{{item.url}}" catchtap="look_more" /> 45 + data-style="{{item.type}}" data-src="{{item.url}}" catchtap="ziyunxuan" />
46 </swiper-item> 46 </swiper-item>
47 </swiper> 47 </swiper>
48 <view class="dots"> 48 <view class="dots">
@@ -79,8 +79,11 @@ @@ -79,8 +79,11 @@
79 <view class="fenleiitem" bindtap="gonghui"> 79 <view class="fenleiitem" bindtap="gonghui">
80 <image src="/images/img_laobao2.png" mode="widthFix"></image> 80 <image src="/images/img_laobao2.png" mode="widthFix"></image>
81 </view> 81 </view>
82 - <view class="fenleiitem" bindtap="canban"> 82 + <!-- <view class="fenleiitem" bindtap="canban">
83 <image src="/images/img_laobao-1@2x.png" mode="widthFix"></image> 83 <image src="/images/img_laobao-1@2x.png" mode="widthFix"></image>
  84 + </view> -->
  85 + <view class="fenleiitem" bindtap="anxin">
  86 + <image src="/images/holiday.png" mode="widthFix"></image>
84 </view> 87 </view>
85 <view class="fenleiitem" bindtap="birthday" id="1"> 88 <view class="fenleiitem" bindtap="birthday" id="1">
86 <image src="/images/img_laobao3@2x.png" mode="widthFix"></image> 89 <image src="/images/img_laobao3@2x.png" mode="widthFix"></image>
@@ -89,8 +92,28 @@ @@ -89,8 +92,28 @@
89 <image src="/images/img_laobao4.png" mode="widthFix"></image> 92 <image src="/images/img_laobao4.png" mode="widthFix"></image>
90 </view> --> 93 </view> -->
91 </view> 94 </view>
  95 + <view class="fenlei2">
  96 + <view class="fenleiitem" bindtap="shengri">
  97 + <image src="/images/birthday.png" mode="widthFix"></image>
  98 + </view>
  99 + <view class="fenleiitem" bindtap="zaixian">
  100 + <image src="/images/movie.png" mode="widthFix"></image>
  101 + </view>
  102 + <view class="fenleiitem">
  103 + <image src="/images/elecshop.png" mode="widthFix"></image>
  104 + </view>
  105 + <view class="fenleiitem">
  106 + <image src="/images/sportshop.png" mode="widthFix"></image>
  107 + </view>
  108 + <!-- <view class="fenleiitem" bindtap="birthday" id="2">
  109 + <image src="/images/img_laobao4.png" mode="widthFix"></image>
  110 + </view> -->
  111 + </view>
  112 + <!-- <view class="huo" bindtap="ziyunxuan">
  113 + <image src="https://binhaidispark.w.broing.cn/assets/img/Group%202@2x.png" style="height: 262rpx;"></image>
  114 + </view> -->
92 <!-- 新品上线 --> 115 <!-- 新品上线 -->
93 - <view class="huo"> 116 + <!-- <view class="huo">
94 <image src="/images/huo.png" class="huoimg"></image> 117 <image src="/images/huo.png" class="huoimg"></image>
95 <view class="pingtai">轻奢各样商品钜惠来袭</view> 118 <view class="pingtai">轻奢各样商品钜惠来袭</view>
96 </view> 119 </view>
@@ -146,12 +169,12 @@ @@ -146,12 +169,12 @@
146 </view> 169 </view>
147 </view> 170 </view>
148 </view> 171 </view>
149 - </view> 172 + </view> -->
150 173
151 <!-- 活动区域 --> 174 <!-- 活动区域 -->
152 - <view class="actboxpage" wx:if="{{nav_index==0}}"> 175 + <!-- <view class="actboxpage" wx:if="{{nav_index==0}}"> -->
153 <!-- <view class="pinpainame">品牌专区</view> --> 176 <!-- <view class="pinpainame">品牌专区</view> -->
154 - <view class="pinpaiheng"> 177 + <!-- <view class="pinpaiheng">
155 <view class="huok"> 178 <view class="huok">
156 <image src="/images/zuanshi.png" class="huoimg"></image> 179 <image src="/images/zuanshi.png" class="huoimg"></image>
157 <view class="pinname">品牌专区</view> 180 <view class="pinname">品牌专区</view>
@@ -162,9 +185,9 @@ @@ -162,9 +185,9 @@
162 <image src="/images/gosee.png" class="seeimg"></image> 185 <image src="/images/gosee.png" class="seeimg"></image>
163 </view> 186 </view>
164 </view> 187 </view>
165 - <view class="actity" wx:if="{{status1==1}}"> 188 + <view class="actity" wx:if="{{status1==1}}"> -->
166 <!-- <view class="miaoshaoname">活动专区</view> --> 189 <!-- <view class="miaoshaoname">活动专区</view> -->
167 - <view class="active flexone"> 190 + <!-- <view class="active flexone">
168 <view wx:for="{{pinpailist}}" class="actbox" wx:key="" bindtap="cityTap" data-id="{{item.id}}"> 191 <view wx:for="{{pinpailist}}" class="actbox" wx:key="" bindtap="cityTap" data-id="{{item.id}}">
169 <view class="activeitem"> 192 <view class="activeitem">
170 <image src="{{item.image}}" mode="widthFix"></image> 193 <image src="{{item.image}}" mode="widthFix"></image>
@@ -172,13 +195,13 @@ @@ -172,13 +195,13 @@
172 <view class="activename">{{item.name}}</view> 195 <view class="activename">{{item.name}}</view>
173 </view> 196 </view>
174 </view> 197 </view>
175 - </view> 198 + </view> -->
176 <!-- <view class="miaosha xianshi" wx:if="{{status2==1&&activitystatus==3&&xianshilist.length!=0}}" bindtap="moremiao"> 199 <!-- <view class="miaosha xianshi" wx:if="{{status2==1&&activitystatus==3&&xianshilist.length!=0}}" bindtap="moremiao">
177 <view class="neigouimg"> 200 <view class="neigouimg">
178 <image src="{{logok}}"></image> 201 <image src="{{logok}}"></image>
179 </view> 202 </view>
180 </view> --> 203 </view> -->
181 - </view> 204 + <!-- </view> -->
182 205
183 <!-- 公告栏 --> 206 <!-- 公告栏 -->
184 <!-- url="../notice/notice" --> 207 <!-- url="../notice/notice" -->
@@ -362,6 +362,13 @@ image { @@ -362,6 +362,13 @@ image {
362 padding:21rpx 32rpx; 362 padding:21rpx 32rpx;
363 box-sizing: border-box; 363 box-sizing: border-box;
364 } 364 }
  365 +.fenlei2 {
  366 + display: flex;
  367 + align-items: center;
  368 + justify-content: space-between;
  369 + padding:0rpx 32rpx 21rpx;
  370 + box-sizing: border-box;
  371 +}
365 372
366 .fenleiitem { 373 .fenleiitem {
367 flex:1; 374 flex:1;
  1 +
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 + this.setData({
  16 + src: decodeURIComponent(options.src)
  17 + })
  18 + },
  19 +
  20 + /**
  21 + * 生命周期函数--监听页面初次渲染完成
  22 + */
  23 + onReady: function () {
  24 +
  25 + },
  26 +
  27 + /**
  28 + * 生命周期函数--监听页面显示
  29 + */
  30 + onShow: function () {
  31 +
  32 + },
  33 +
  34 + /**
  35 + * 生命周期函数--监听页面隐藏
  36 + */
  37 + onHide: function () {
  38 +
  39 + },
  40 +
  41 + /**
  42 + * 生命周期函数--监听页面卸载
  43 + */
  44 + onUnload: function () {
  45 +
  46 + },
  47 +
  48 + /**
  49 + * 页面相关事件处理函数--监听用户下拉动作
  50 + */
  51 + onPullDownRefresh: function () {
  52 +
  53 + },
  54 +
  55 + /**
  56 + * 页面上拉触底事件的处理函数
  57 + */
  58 + onReachBottom: function () {
  59 +
  60 + },
  61 +
  62 + /**
  63 + * 用户点击右上角分享
  64 + */
  65 + onShareAppMessage: function () {
  66 +
  67 + }
  68 + })
  1 +{
  2 + "usingComponents": {}
  3 +}
  1 +
  2 +
  3 +<web-view src="{{src}}"/>
  1 +/* pages/outerChain2/outerChain2.wxss */