Просмотр исходного кода

删除目录application/routine/view/crmebN/pages/join-pink

聆听 7 лет назад
Родитель
Сommit
4c827c4351

+ 0 - 176
application/routine/view/crmebN/pages/join-pink/index.js

@@ -1,176 +0,0 @@
-// pages/join-pink/index.js
-var app = getApp();
-var wxh = require('../../utils/wxh.js');
-Page({
-  /**
-   * 页面的初始数据
-   */
-  data: {
-    pinkKId:0,
-    pinkId:0,
-    count:0,
-    currentPinkOrder: '',
-    isOk: 0,
-    pinkAll: [],
-    pinkBool: 0,
-    pinkT: [],
-    storeInfo: [],
-    storeCombination: [],
-    storeCombinationHost: [],
-    userBool: 0,
-    url: app.globalData.urlImages,
-    countDownHour: "00",
-    countDownMinute: "00",
-    countDownSecond: "00"
-  },
-  /**
-   * 生命周期函数--监听页面加载
-   */
-  onLoad: function (options) {
-    app.setBarColor();
-    app.globalData.openPages = '/pages/join-pink/index?id=' + options.id;
-    app.setUserInfo();
-    if (options.id){
-      this.setData({
-        pinkId: options.id
-      })
-      this.getPinkList();
-    }else{
-      wx.showToast({
-        title: '参数错误',
-        icon: 'none',
-        duration: 1000,
-      })
-      setTimeout(function(){
-         wx.navigateBack({})
-      },1200)
-    }
-  },
-  goPinkOrder:function(e){
-    var that = this;
-    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.storeCombination.product_id,
-        cartNum: that.data.pinkT.total_num,
-        uniqueId: '',
-        combinationId: that.data.storeCombination.id,
-        secKillId: 0
-      },
-      success: function (res) {
-        if (res.data.code == 200) {
-            wx.navigateTo({ //跳转至指定页面并关闭其他打开的所有页面(这个最好用在返回至首页的的时候)
-              url: '/pages/order-confirm/order-confirm?id=' + res.data.data.cartId + '&pinkId=' + that.data.pinkT.id
-            })
-        } else {
-          wx.showToast({
-            title: res.data.msg,
-            icon: 'none',
-            duration: 2000
-          })
-        }
-      }
-    })
-  },
-  getPinkList:function(){
-    var that = this;
-    wx.request({
-      url: app.globalData.url + '/routine/auth_api/get_pink?uid=' + app.globalData.uid,
-      data: {
-        id: that.data.pinkId
-      },
-      method: 'GET',
-      dataType: 'json',
-      success: function(res) {
-        console.log(res);
-        if(res.data.code == 200){
-          that.setData({
-            count: res.data.data.count,
-            currentPinkOrder: res.data.data.current_pink_order,
-            isOk: res.data.data.is_ok,
-            pinkAll: res.data.data.pinkAll,
-            pinkBool: res.data.data.pinkBool,
-            pinkT: res.data.data.pinkT,
-            storeInfo: res.data.data.storeInfo,
-            storeCombination: res.data.data.store_combination,
-            storeCombinationHost: res.data.data.store_combination_host,
-            userBool: res.data.data.userBool
-          })
-          var timeStamp = that.data.pinkT.stop_time;
-          wxh.time(timeStamp, that);
-          console.log(that.data.pinkId);
-          console.log(that.data.storeCombinationHost);
-        }
-      },
-    })
-  },
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload: function () {
-  
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh: function () {
-  
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom: function () {
-  
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage: function () {
-    var that = this;
-    return {
-      title: that.data.storeCombination.userInfo.nickname + '邀请您参团',
-      path: '/pages/join-pink/index?id=' + that.data.pinkId,
-      imageUrl: that.data.url + that.data.storeCombination.image,
-      success: function () {
-        wx.showToast({
-          title: '分享成功',
-          icon: 'success',
-          duration: 2000
-        })
-      }
-    }
-  }
-})

+ 0 - 3
application/routine/view/crmebN/pages/join-pink/index.json

@@ -1,3 +0,0 @@
-{
-  "navigationBarTitleText": "开团详情"
-}

+ 0 - 67
application/routine/view/crmebN/pages/join-pink/index.wxml

@@ -1,67 +0,0 @@
-<view class='pro-info flex'>
-  <image src='{{url}}{{storeCombination.image}}'></image>
-  <view class='txt-box flex'>
-    <view class='title'>{{storeCombination.title}}</view>
-    <view class='count'>{{storeCombination.people}}人团  销量:{{storeCombination.sales}}  库存:{{storeCombination.stock}}</view>
-    <view class='price flex'><text>¥</text>{{storeCombination.price}} <view class='old-price'>¥{{storeCombination.product_price}}</view></view>
-  </view>
-</view>
-<view class='con-wrapper'>
-  <view class='join-people flex'>
-    <view class='item'>
-      <image src='{{pinkT.avatar}}'></image>
-      <view class='txt-title'>团长</view>
-    </view>
-    <block wx:for="{{pinkAll}}">
-      <view class='item'>
-        <image src='{{item.avatar}}'></image>
-      </view>
-    </block>
-  </view>
-  <view class='tips flex'>仅剩<text class='number'>{{count}}</text>个名额 <navigator class='out' hover-class='none' url="/pages/index/index">退出</navigator></view>
-  <view class='cound-time flex'>
-    剩余
-    <view class='time'>{{countDownHour}}:{{countDownMinute}}:{{countDownSecond}}</view>
-  </view>
-  <form bindsubmit="goPinkOrder" report-submit='true' wx:if="{{!isOk && !userBool}}" > 
-    <button class='sub-btn' form-type='submit'>一键参团</button>
-  </form>
-  <button class='sub-btn' wx:elif="{{!isOk && userBool}}" open-type='share'>邀请好友</button>
-  <view class='status-txt' wx:elif="{{isOk}}">
-    <view class='success flex' wx:if="{{!count}}"><view class='icon'></view>拼团成功</view>
-    <view class='fhz-txt' wx:elif="{{!count}}">商家正在努力发货,请耐心等待</view>
-    <view class='error flex' wx:elif="{{count}}"><view class='icon'></view>拼团失败</view>
-  </view>
-</view>
-<view class='like-pro'>
-  <view class='title-bar flex'>
-    <view class='line'></view>
-    <view class='text'><text class='iconfont icon-cainixihuan'></text>猜你喜欢</view>
-    <view class='line'></view>
-  </view>
-  <view class='list-wrapper flex'>
-  <block wx:for="{{storeCombinationHost}}">
-    <view class='item'>
-      <navigator hover-class='none' url="/pages/product-pinke/index?id={{item.id}}">
-        <image src='{{url}}{{item.image}}'></image>
-        <view class='text-bar'>
-          <view class='title'>{{item.title}}</view>
-          <view class='count'>已售{{item.sales}}</view>
-          <view class='price flex'><text>¥</text>{{item.price}} 
-          <!-- <view class='small-txt jing'>精</view> -->
-          </view>
-        </view>
-      </navigator>
-       <!-- <view class='buy-car'>
-        <view class='iconfont icon-102'></view> 
-       </view> -->
-    </view>
-    </block>
-  </view>
-</view>
-
-
-
-
-
-

Разница между файлами не показана из-за своего большого размера
+ 0 - 43
application/routine/view/crmebN/pages/join-pink/index.wxss