Explorar o código

删除目录application/routine/view/crmebN/pages/product-pinke

聆听 %!s(int64=7) %!d(string=hai) anos
pai
achega
a6fe86c65c

+ 0 - 276
application/routine/view/crmebN/pages/product-pinke/index.js

@@ -1,276 +0,0 @@
-// pages/product-con/index.js
-var app = getApp();
-var wxh = require('../../utils/wxh.js');
-var WxParse = require('../../wxParse/wxParse.js');
-Page({
-  /**
-   * 页面的初始数据
-   */
-  data: {
-    url: app.globalData.urlImages,
-    num: 1,
-    description:"",
-    minusStatus: 'disabled',  
-    storeInfo: [],
-    replyCount:0,
-    reply:[],
-    pinking:[],
-    pindAll:[],
-    indicatorDots: true,//是否显示面板指示点;
-    autoplay: true,//是否自动播放;
-    interval: 3000,//动画间隔的时间;
-    duration: 500,//动画播放的时长;
-    indicatorColor: "rgba(51, 51, 51, .3)",
-    indicatorActivecolor: "#ffffff",
-    show :false,
-    combinationId:0,
-    collect:false,//收藏
-    CartCount:0,//购物车数量
-    prostatus:false,
-    timeer: '',
-  },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
-  onLoad: function (options){
-    app.setBarColor();
-    if (options.id){
-      this.setData({
-        combinationId: options.id
-      })
-      this.getCombinationDetail();
-    }else{
-      wx.showToast({
-        title: '参数错误',
-        icon: 'none',
-        duration: 1000,
-      })
-      setTimeout(function(){
-         wx.navigateTo({
-           url: '/pages/pink-list/index',
-         })
-      },1200)
-    }
-  },
-  setTime: function () {//到期时间戳
-    var that = this;
-    var newTime = new Date().getTime() / 1000;
-    var endTimeList = that.data.pinking;
-    var countDownArr = [];
-    for (var i in endTimeList) {
-      var endTime = endTimeList[i].stop_time;
-      var obj = [];
-      if (endTime - newTime > 0) {
-        var time = endTime - newTime;
-        var day = parseInt(time / (60 * 60 * 24));
-        var hou = parseInt(time % (60 * 60 * 24) / 3600);
-        var min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
-        var sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
-        hou = parseInt(hou) + parseInt(day * 24);
-        obj = {
-          day: that.timeFormat(day),
-          hou: that.timeFormat(hou),
-          min: that.timeFormat(min),
-          sec: that.timeFormat(sec)
-        }
-      } else {
-        obj = {
-          day: '00',
-          hou: '00',
-          min: '00',
-          sec: '00'
-        }
-        that.getList();
-      }
-      endTimeList[i].time = obj;
-    }
-    that.setData({
-      pinking: endTimeList
-    })
-    var timeer = setTimeout(that.setTime, 1000);
-    that.setData({
-      timeer: timeer
-    })
-  },
-  timeFormat(param) {//小于10的格式化函数
-    return param < 10 ? '0' + param : param;
-  },
-  getCombinationDetail:function(){
-     var that = this;
-     if (!that.data.combinationId){
-       wx.showToast({
-         title: '参数错误',
-         icon: 'none',
-         duration: 1000,
-       })
-       setTimeout(function () {
-         wx.navigateTo({
-           url: '/pages/pink-list/index',
-         })
-       }, 1200)
-     }
-     wx.request({
-       url: app.globalData.url + '/routine/auth_api/combination_detail?uid=' + app.globalData.uid,
-       data: {
-         id: that.data.combinationId
-       },
-       method: 'GET',
-       dataType: 'json',
-       success: function(res) {
-         if(res.data.code == 200){
-           that.setData({
-             storeInfo: res.data.data.storeInfo,
-             description: res.data.data.storeInfo.description, 
-             replyCount: res.data.data.replyCount,
-             reply: res.data.data.reply,
-             pinking: res.data.data.pink,
-             pindAll: res.data.data.pindAll,
-             collect:res.data.data.storeInfo.userCollect
-           })
-         }
-         that.setTime();
-         WxParse.wxParse('description', 'html', that.data.description, that, 0);
-       }
-     })
-  },
-  showList: function(){
-    this.setData({
-      show:true
-    })
-  },
-  close: function(){
-    this.setData({
-      show: false
-    })
-  },
-  goPink:function(e){
-     console.log(e);
-     var pinkId = e.currentTarget.dataset.id;
-     wx.navigateTo({
-       url: '/pages/join-pink/index?id=' + pinkId,
-     })
-  },
-  parameterShow: function(e){
-    var that = this;
-    var pinkId = e.detail.value.pinkId;
-    wx.request({
-      url: app.globalData.url + '/routine/auth_api/get_form_id?uid=' + app.globalData.uid,
-      method: 'GET',
-      data: {
-        formId: e.detail.formId
-      },
-      success: function (res) { }
-    })
-    wx.request({
-      url: app.globalData.url + '/routine/auth_api/now_buy?uid=' + app.globalData.uid,
-      method: 'GET',
-      data: {
-        productId: that.data.storeInfo.product_id,
-        cartNum: that.data.num,
-        uniqueId: '',
-        combinationId: that.data.combinationId,
-        secKillId: 0
-      },
-      success: function (res) {
-        if (res.data.code == 200) {
-          if (pinkId) {
-            wx.navigateTo({ //跳转至指定页面并关闭其他打开的所有页面(这个最好用在返回至首页的的时候)
-              url: '/pages/order-confirm/order-confirm?id=' + res.data.data.cartId + '&pinkId=' + pinkId
-            })
-          } else {
-            wx.navigateTo({ //跳转至指定页面并关闭其他打开的所有页面(这个最好用在返回至首页的的时候)
-              url: '/pages/order-confirm/order-confirm?id=' + res.data.data.cartId
-            })
-          }
-        } else {
-          wx.showToast({
-            title: res.data.msg,
-            icon: 'none',
-            duration: 2000
-          })
-        }
-      }
-    })
-  },
-  modelbg:function(e){
-    this.setData({
-      prostatus: false
-    })
-  },
-  bindMinus: function () {
-    var that = this;
-    wxh.carmin(that)
-  },
-  bindPlus: function () {
-    var that = this;
-    wxh.carjia(that);
-  },
-  setCollect: function () {
-    if (this.data.collect) this.unCollectProduct();
-    else this.collectProduct();
-  },
-  unCollectProduct: function () {
-    var that = this;
-    wx.request({
-      url: app.globalData.url + '/routine/auth_api/uncollect_product?uid=' + app.globalData.uid,
-      method: 'GET',
-      data: {
-        productId: that.data.combinationId,
-        category:'pink_product'
-      },
-      success: function (res) {
-        wx.showToast({
-          title: '取消收藏成功',
-          icon: 'success',
-          duration: 1500,
-        })
-        that.setData({
-          collect: false,
-        })
-      }
-    })
-  },
-  collectProduct: function () {
-    var that = this;
-    wx.request({
-      url: app.globalData.url + '/routine/auth_api/collect_product?uid=' + app.globalData.uid,
-      method: 'GET',
-      data: {
-        productId: that.data.combinationId,
-        category: 'pink_product'
-      },
-      success: function (res) {
-        wx.showToast({
-          title: '收藏成功',
-          icon: 'success',
-          duration: 1500,
-        })
-        that.setData({
-          collect: true,
-        })
-      }
-    })
-  },
-  getCar: function () {
-    wx.switchTab({
-      url: '/pages/buycar/buycar'
-    });
-  },
-  getCartCount: function () {
-    var that = this;
-    var header = {
-      'content-type': 'application/x-www-form-urlencoded',
-    };
-    wx.request({
-      url: app.globalData.url + '/routine/auth_api/get_cart_num?uid=' + app.globalData.uid,
-      method: 'POST',
-      header: header,
-      success: function (res) {
-        that.setData({
-          CartCount: res.data.data
-        })
-      }
-    })
-  },
-})

+ 0 - 3
application/routine/view/crmebN/pages/product-pinke/index.json

@@ -1,3 +0,0 @@
-{
-  "navigationBarTitleText": "拼团产品详情"
-}

+ 0 - 122
application/routine/view/crmebN/pages/product-pinke/index.wxml

@@ -1,122 +0,0 @@
-<view class='swiper_banner'>
-  <swiper class="swiper-box" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActivecolor}}">
-    <block wx:for="{{storeInfo.images}}">
-      <swiper-item>
-        <image src="{{url}}{{item}}" class="slide-image"/>
-      </swiper-item>
-    </block>
-  </swiper>
-</view>
-<view class='pro-wrapper'>
-  <view class='pro-infos'>
-    <view class='title'>{{storeInfo.title}}</view>
-    <view class='price-wrapper flex'>
-      <view class='left flex'>
-        <view class='price'><text>¥</text>{{storeInfo.price}}</view>
-        <view class='old-price'>¥{{storeInfo.product_price}}</view>
-      </view>
-    </view>
-  </view>
-</view>
-<view class='pink-list'>
-  <view class='title-bar flex'>
-    <view class='left-wrapper'>{{pinking.length}}人在拼单,可直接参与</view>
-    <view class='right-wrapper' bindtap="showList">查看更多</view>
-  </view>
-  <view class='list-item'>
-  <block wx:for="{{pinking}}" wx:if="{{index < 2}}">
-    <navigator class='item flex' hover-class='none'>
-      <view class='left-wrapper flex' bindtap='goPink' data-id="{{item.id}}">
-        <image src='{{item.avatar}}'></image>
-        <view class='name'>{{item.nickname}}</view>
-      </view>
-      <view class='right-wrapper flex'>
-        <view class='counts-wrapper' bindtap='goPink' data-id="{{item.id}}">
-          <view class='count'>还差<text class='num'>{{item.count}}人</text>拼成</view>
-          <view class='time'>剩余{{item.time.hou}}:{{item.time.min}}:{{item.time.sec}}</view>
-        </view>
-        <form bindsubmit="parameterShow" report-submit='true'> 
-        <input type='text' style="display:none" name="pinkId" value='{{item.id}}'></input>
-          <button class='join' form-type='submit'>去拼单</button>  
-        </form> 
-        <!-- <view class='join' bindtap='parameterShow'>去拼单</view> -->
-      </view>
-    </navigator> 
-    </block>
-  </view>
-</view>
-<view class='evaluate-wrapper' wx:if="{{replyCount}}">
-  <view class='common-title flex'>
-    <view class='line'></view>
-    <view class='iconfont icon-pinglun'></view>
-    <view class='text'>评价</view>
-    <view class='line'></view>
-  </view>
-  <view class='evaluate-hot'>
-    <view class='hot-title'>宝贝评价({{replyCount}})</view>
-    <view class='infos-wrapper'>
-      <view class='user-info flex'>
-        <image class='avatar' src='{{reply.avatar}}'></image>
-        <text class='name'>{{reply.nickname}}</text>
-        <view class='start star{{reply.star}}'></view>
-      </view>
-      <view class='txt-msg'>{{reply.comment}}</view>
-      <view class='time-bar'>{{reply.add_time}}  {{reply.suk}}</view>
-    </view>
-    <navigator wx:if="{{replyCount > 0}}" hover-class="none" url="/pages/comment/comment?productId={{storeInfo.product_id}}">查看全部评价</navigator>
-  </view>
-</view>
-<view class='content-wrapper'>
-  <view class='common-title flex'>
-    <view class='line'></view>
-    <view class='iconfont icon-tupian'></view>
-    <view class='text'>详情</view>
-    <view class='line'></view>
-  </view>
-  <view class='con-box'>
-<template is="wxParse" data="{{wxParseData:description.nodes}}"/>
-  </view>
-</view>
-<view style='height:130rpx;'></view>
-<view class='foot flex'>
-  <view  class='fn-btns flex'>
-    <view class='item'>
-      <view class='iconfont icon-kefu'></view>
-      <text>客服</text>
-    </view>
-    <view class='item' bindtap='getCar'>
-      <view class='iconfont icon-gouwuche'><span class='item-span'>{{CartCount}}</span></view>
-      <text>购物车</text>
-    </view>
-  </view>
-  <view class='btns-wrapper flex'>
-    <form class="form-btn" bindsubmit="parameterShow" report-submit='true'>
-    <input type='text' style="display:none" name="pinkId" value='0'></input>
-      <button class='payment-btn' form-type='submit'>确认下单</button>
-    </form>
-  </view>
-</view>
-<view class="pinklist-model {{show==true ? 'show':''}}">
-  <view class='tit-bar'>正在拼单</view>
-  <scroll-view scroll-y style="max-height:635rpx;">
-     <block wx:for="{{pinking}}" wx:if="{{index < 10}}">
-          <view class='item flex'>
-              <view class='left-wrapper' bindtap='goPink' data-id="{{item.id}}">
-                <image src='{{item.avatar}}'></image>
-                <view class='text-info'>
-                  <view class='name'>{{item.nickname}}<text>还差{{item.count}}人</text></view>
-                  <view class='time'>剩余{{item.time.hou}}:{{item.time.min}}:{{item.time.sec}}</view>
-                </view>
-              </view>
-              <form bindsubmit="parameterShow" report-submit='true'> 
-              <input type='text' style="display:none" name="pinkId" value='{{item.id}}'></input>
-                <button class='right-wrapper' form-type='submit'>去拼单</button>  
-              </form> 
-        </view>
-     </block>
-  </scroll-view>
-  <view class='tips'>仅显示10个正在拼团的人</view>
-  <view class='close' bindtap='close'></view> 
-</view>
-<include src="/pages/foo-tan/foo-tan.wxml"/>
-<import src="/wxParse/wxParse.wxml"/>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 73
application/routine/view/crmebN/pages/product-pinke/index.wxss